:root{font-family:Arial,Helvetica,sans-serif;color:#282c28;background:#f5f4ef;font-synthesis:none;--orange:#e1663c;--muted:#797d73;--line:#dedfd5}
.brand-name{white-space:nowrap}.brand-prefix{color:var(--orange)}
*{box-sizing:border-box}body{margin:0}button,a,canvas{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;background:none;border:1px solid var(--line);border-radius:6px;padding:9px 13px}button:hover{background:#ebece4}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid var(--orange);outline-offset:3px}button[hidden],[hidden]{display:none!important}header{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 4.5%}.brand{color:inherit;text-decoration:none;display:flex;gap:12px;align-items:center;font-size:24px;font-weight:800;letter-spacing:-1px}.brand-mark{display:grid;grid-template-columns:9px 9px;gap:3px;transform:rotate(-8deg)}.brand-mark i{height:9px;background:var(--orange)}.brand-mark i:last-child{background:#edb49a}.version{font-size:9px;letter-spacing:1.3px;color:var(--muted);font-weight:400;margin-left:15px}.header-right{display:flex;gap:24px;align-items:center}.quiet{background:#fffdf8;font-size:12px}.quiet span{margin-left:18px}.status{font-size:12px;display:flex;align-items:center;gap:7px}.status:before{content:"";width:6px;height:6px;background:#a0a397;border-radius:50%}.status.online:before{background:#639262}.status.offline:before{background:var(--orange)}main{max-width:1550px;margin:auto;padding:42px 4.5% 22px;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:32px}.workspace-heading{display:flex;align-items:flex-end;justify-content:space-between;padding-bottom:25px}.eyebrow{font-family:monospace;font-size:10px;letter-spacing:1.4px;font-weight:500;color:var(--muted)}h1{font-size:35px;line-height:1.1;font-weight:500;letter-spacing:-1.5px;margin:13px 0 0}.workspace-heading p{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 2px}h2{font-size:17px;font-weight:500;letter-spacing:-.4px;margin:13px 0 24px}.canvas-shell{border:1px solid #cfd2c6;border-radius:8px;overflow:hidden;background:#e9ebe2;box-shadow:0 3px 6px #242b2006}.canvas-top,.canvas-bottom{display:flex;align-items:center;justify-content:space-between;font:10px monospace;letter-spacing:.6px;padding:0 16px;background:#f9f9f4;height:37px}.canvas-top{border-bottom:1px solid var(--line)}.canvas-top>span:first-child{display:flex;align-items:center;gap:8px}.orange-dot{width:6px;height:6px;background:var(--orange)}.canvas-top>span:last-child{color:var(--muted)}#viewport{height:clamp(340px,53vh,620px);position:relative;overflow:hidden;touch-action:none}canvas{width:100%;height:100%;display:block;touch-action:none;cursor:crosshair}.canvas-bottom{border-top:1px solid var(--line);height:33px;color:var(--muted)}#coordinates{min-width:110px}#zoom-label{min-width:50px;text-align:right}.overlay{position:absolute;inset:0;background:#e9ebe2e8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;font-size:13px;padding:20px;text-align:center}#toast{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);background:#292f29;color:white;padding:11px 17px;font-size:12px;border-radius:6px;pointer-events:none;max-width:90%;width:max-content}.canvas-controls{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:10px}.segmented,.view-controls{display:flex;align-items:center;gap:3px}.segmented{background:#eceee5;border:1px solid var(--line);padding:4px;border-radius:7px}.segmented button{font-size:12px;border-color:transparent;padding:7px 12px}.segmented button span{font-size:17px;margin-right:5px;vertical-align:-1px}.segmented button.active{background:#fffef9;border-color:#d6d9cc;box-shadow:0 1px 2px #0000000a}.view-controls button{font-size:12px;border:0;padding:9px 12px}.view-controls button[aria-pressed=true]{background:#dce2d3}.divider{height:16px;width:1px;background:var(--line);margin:0 5px}.hint{font-size:10px;color:var(--muted);margin-top:16px}.hint span{margin:0 10px}aside{padding-top:4px}.palette-card,.session-card{border:1px solid var(--line);background:#fafaf5;border-radius:8px;padding:23px}.palette-card h2{margin-bottom:23px}#palette{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.swatch{aspect-ratio:1;padding:0;border-radius:4px;border:1px solid #00000012;position:relative}.swatch:hover{background:var(--swatch)!important;transform:translateY(-2px)}.swatch[aria-pressed=true]{outline:2px solid #343c32;outline-offset:3px}.swatch[aria-pressed=true]:after{content:"";width:5px;height:5px;border-radius:50%;background:var(--tick);position:absolute;top:calc(50% - 2px);left:calc(50% - 2px)}.selected-color{margin-top:26px;padding-top:20px;border-top:1px solid var(--line);display:flex;align-items:center;gap:12px}#selected-swatch{width:33px;height:33px;border:1px solid #00000014;border-radius:5px}.selected-color .eyebrow{font-size:8px;letter-spacing:.8px;display:block}.selected-color strong{font:inherit;font-size:11px;line-height:1.4;display:block;margin-top:6px;overflow-wrap:anywhere}#color-index{margin-left:auto;color:var(--muted);font:10px monospace}.session-card{margin-top:18px}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.card-heading h2{margin:0}.pill{font:8px monospace;letter-spacing:.7px;color:#698061;background:#e9eee2;padding:5px 7px;border-radius:3px}dl{margin:25px 0 21px}dl>div{display:flex;justify-content:space-between;align-items:center;margin-top:19px}dt{font-size:11px;color:var(--muted)}dd{font:13px monospace;margin:0}.muted{color:#92988b;font-size:10px}.session-note{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:17px}.avatar{display:grid;place-items:center;width:29px;height:29px;background:#e9ecdf;font:10px monospace;border-radius:50%}.session-note p{font-size:10px;line-height:1.8;margin:0}.session-note p span{color:var(--muted)}.note{position:relative;margin:26px 8px}.note .eyebrow{font-size:8px}.note p{font-size:12px;line-height:1.8;color:var(--muted)}.note-pixels{position:absolute;right:8px;bottom:0;font:21px/12px monospace;color:#c2cbb5;transform:rotate(-8deg)}footer{margin:0 4.5%;padding:22px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:10px}footer>span:last-child{font:9px monospace;letter-spacing:1px}.orange{color:var(--orange);margin:0 6px}@media(min-width:1600px){header{padding:0 max(4.5%,calc((100vw - 1410px)/2))}}@media(max-width:1000px){main{grid-template-columns:minmax(0,1fr) 240px;gap:22px}.palette-card,.session-card{padding:18px}#palette{gap:7px}h1{font-size:29px}.workspace-heading p{display:none}.version{display:none}.hint span{margin:0 4px}}@media(max-width:720px){header{height:70px;padding:0 20px}.brand{font-size:22px}.header-right{gap:12px}.status{font-size:10px}.quiet{padding:8px;font-size:10px}.quiet span{margin-left:4px}main{display:flex;flex-direction:column;padding:25px 18px 12px;gap:22px}.workspace-heading{padding-bottom:20px}h1{font-size:30px}h1 br{display:none}#viewport{height:48vh;min-height:300px}.canvas-controls{gap:4px}.segmented button{padding:6px 8px}.segmented button span{margin-right:2px}.view-controls button{padding:8px}.hint{font-size:9px;line-height:1.8}.canvas-bottom{font-size:9px;padding:0 10px}aside{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:0}.palette-card,.session-card{padding:16px;margin:0}h2{font-size:14px}#palette{grid-template-columns:repeat(6,1fr);gap:6px}.swatch[aria-pressed=true]{outline-offset:2px}.note{display:none}.card-heading{align-items:flex-start;flex-direction:column;gap:10px}.session-note{align-items:flex-start}.session-note p{font-size:9px}.avatar{flex-shrink:0}.selected-color{gap:8px}#color-index{display:none}.session-card dl{margin:18px 0}dt{font-size:10px}dd{font-size:11px}.selected-color .eyebrow{font-size:7px}footer{font-size:9px;gap:20px;line-height:1.5}footer>span:last-child{font-size:8px}}@media(max-width:390px){aside{grid-template-columns:1fr}.session-card{display:none}.swatch{max-height:34px}.canvas-controls .segmented button{font-size:10px}}

#brush-cursor{position:absolute;left:0;top:0;border:1px solid #242b24;outline:1px solid #fff;pointer-events:none;will-change:transform}

.primary,a.primary,button.primary{background:var(--orange);border-color:var(--orange);color:#fff;font-size:13px}
.primary:hover{background:#c95530;border-color:#c95530}
.canvas-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.canvas-nav a{color:var(--muted);font-size:12px;text-decoration:none}
.canvas-nav a:hover{color:var(--orange)}
#canvas-name{overflow-wrap:anywhere}
.gallery-page{display:block;max-width:1400px;min-height:calc(100vh - 160px);padding-top:52px;padding-bottom:48px}
.gallery-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:34px}
.gallery-heading h1{font-size:42px}
.gallery-heading p{font-size:14px;color:var(--muted);line-height:1.6}
.gallery-status{display:flex;justify-content:space-between;gap:16px;font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding:19px 0}
.canvas-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}
.canvas-card{color:inherit;text-decoration:none;background:#fafaf5;border:1px solid var(--line);border-radius:8px;overflow:hidden;transition:border-color .15s,transform .15s}
.canvas-card:hover{border-color:#b4bbab;transform:translateY(-2px)}
.canvas-preview{height:170px;display:flex;align-items:center;justify-content:center;background-color:#e9ebe2;background-image:radial-gradient(#cdd2c3 1px,transparent 1px);background-size:16px 16px}
.canvas-preview img{display:block;box-shadow:0 2px 8px #242b2018;image-rendering:pixelated}
.canvas-preview>span{color:var(--muted);font-size:12px}
.canvas-details{padding:20px}
.canvas-details h2{font-size:19px;margin:0 0 9px;overflow-wrap:anywhere}
.canvas-details p{font:11px monospace;color:var(--muted);margin:0 0 16px}
.background-label{display:flex;align-items:center;gap:7px;font:10px monospace;color:var(--muted)}
.background-label i{width:12px;height:12px;border:1px solid #0002;border-radius:3px}
.open-canvas{display:block;border-top:1px solid var(--line);padding-top:14px;margin-top:18px;color:#ad4929;font-size:12px}
.create-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:30px;border:1px solid var(--line);border-radius:12px;color:inherit;background:#fafaf5;box-shadow:0 20px 90px #17220d33}
.create-dialog::backdrop{background:#242b2466}
.create-dialog h2{font-size:28px;letter-spacing:-1px;margin:12px 0}
.create-dialog p{color:var(--muted);font-size:12px;line-height:1.6;margin:0 0 24px}
.create-dialog label{display:block;font-size:12px;margin-bottom:18px}
.create-dialog input{font:inherit;background:#fffefb;color:inherit;border:1px solid #cfd2c6;border-radius:5px;width:100%;padding:11px;margin-top:8px}
.create-dialog input:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.create-dialog .checkbox-label,.create-dialog .template-setting-toggle{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-size:13px;font-weight:600}.create-dialog input[type=checkbox]{width:auto;margin:0;padding:0;accent-color:var(--orange)}.create-dialog .template-setting-toggle[hidden]{display:none}
.create-dialog .pace-modes{border:0;padding:0;margin:0 0 14px;display:flex;flex-wrap:wrap;gap:8px 16px}.create-dialog .pace-modes legend{font-size:12px;font-weight:600;padding:0;margin-bottom:6px}.create-dialog .pace-modes label{display:flex;align-items:center;gap:6px;margin:0;font-size:13px}.create-dialog input[type=radio]{width:auto;margin:0;padding:0;accent-color:var(--orange)}.create-dialog label[hidden]{display:none}
.size-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.size-fields label{margin-bottom:0}
.input-unit{position:relative;display:block}
.input-unit input{padding-right:42px}
.input-unit>span{position:absolute;right:25px;top:22px;color:var(--muted);font-size:10px;pointer-events:none}
.create-dialog .field-help{font-size:11px;margin:8px 0 22px}
.background-field{display:flex;align-items:center;gap:12px;margin-top:8px}
.background-field input{width:48px;height:38px;margin:0;padding:3px;cursor:pointer}
.background-field output{font:12px monospace}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}
.dialog-actions button{font-size:12px}
.create-dialog .form-error{color:#b63226;margin:0}
@media(max-width:720px){
  .gallery-page{padding-top:32px}.gallery-heading{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:24px}
  .gallery-heading h1{font-size:34px}.gallery-heading p{font-size:12px}
  .gallery-status{flex-direction:column;gap:6px}.canvas-gallery{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
  .canvas-nav{margin-bottom:20px}.create-dialog{padding:24px}
}
/* Followed-player alerts sit above the canvas without intercepting painting outside each card. */
#presence-notifications{position:absolute;top:16px;right:16px;z-index:8;display:grid;gap:8px;max-width:min(340px,calc(100% - 32px));pointer-events:none}.presence-notification{display:flex;align-items:center;background:#fafaf5;box-shadow:0 3px 15px #17220d33;border:1px solid var(--line);border-radius:8px;pointer-events:auto}.presence-notification button{border:0;font-size:12px;overflow-wrap:anywhere}.presence-notification button:first-child{flex:1;text-align:left}.presence-notification button:last-child{flex:0;font-size:18px}
.account-link{display:inline-flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}.header-username{display:inline-block;max-width:14ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:#30382d;vertical-align:bottom}@media(max-width:560px){.header-username{max-width:8ch}}
body:not(.studio-page) header{height:auto;min-height:88px;gap:12px;flex-wrap:wrap;padding-top:16px;padding-bottom:16px}body:not(.studio-page) header .account-link{margin-left:auto}@media(max-width:720px){body:not(.studio-page) header{min-height:70px}}
.world-link{text-decoration:none;font-size:18px;padding:5px}.world-bucket-description{line-height:1.5}

/* Consistent, readable hover coordinates below every canvas; never follow the pointer. */
.studio-page .workspace-status .coordinate-readout,.world-page .workspace-status .coordinate-readout{display:inline-block;flex-shrink:0;min-width:22ch;padding:4px 8px;border:1px solid #c4cbb8;border-radius:5px;background:#fffef9;color:#30382d;font:600 13px/18px monospace;letter-spacing:0;font-variant-numeric:tabular-nums;white-space:pre}

.chat-message,#world-chat-log p{-webkit-touch-callout:none}

/* Shared regular/Open World painter UI. */
#painter-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.template-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
#templates-toggle[hidden],.templates-panel[hidden],.template-upload[hidden],.template-display[hidden]{display:none}
.templates-panel .panel-heading{display:flex;align-items:center;justify-content:space-between}
.templates-body{padding:10px 12px 14px;font-size:12px}.templates-body .painters-help{margin:6px 0}
.templates-panel label{display:grid;gap:4px;margin:8px 0;font-size:12px;font-weight:600}
.templates-body button{font:inherit;font-size:12px;line-height:1.2;padding:6px 10px;border:1px solid #cfd2c6;border-radius:6px;background:#fff;color:inherit;cursor:pointer}.templates-body button:hover{background:#f1f3ea}
.templates-body button.primary{background:var(--orange);border-color:var(--orange);color:#fff;font-weight:600}.templates-body button.primary:disabled{opacity:.6}
.templates-body input:not([type=range]):not([type=file]),.templates-body select,.templates-body textarea{font:inherit;font-size:12px;font-weight:400;width:100%;box-sizing:border-box;padding:6px 8px;border:1px solid #cfd2c6;border-radius:6px;background:#fffefb;color:inherit}
.templates-body input[type=file]{font:inherit;font-size:11px;font-weight:400;max-width:100%}
.templates-body .form-error{color:#a32621;margin:8px 0 0}.templates-body .form-error[hidden]{display:none}
.templates-panel input[type=range]{width:100%}
.template-heading{margin:14px 0 6px;font-size:12px;text-transform:uppercase;letter-spacing:.6px;color:#5f6956}
.template-display{display:grid;gap:4px;padding:10px;border:1px solid #dfe4d6;border-radius:10px;background:#f3f6ee}
.template-active{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.template-active strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.template-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.template-item{border:1px solid #dfe4d6;border-radius:10px;padding:8px;background:#fff}.template-item.active{border-color:#e1652f;background:#fff7f2}
.template-row{display:flex;align-items:center;gap:8px}.template-info{display:grid;min-width:0}.template-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.template-info small{color:#6b7563;font-size:11px}
.templates-body .template-show{flex-shrink:0;min-width:72px}.templates-body .template-show[aria-pressed=true]{background:#e1652f;border-color:#e1652f;color:#fff}
.template-tools{margin-top:6px;font-size:12px}.template-tools summary{cursor:pointer;color:#5b7148}
.template-position{display:flex;align-items:end;gap:6px;flex-wrap:wrap}.template-position label{flex:1;min-width:70px;margin:4px 0}.template-position button{margin-bottom:4px}
.template-remove{margin-top:6px}.templates-body .template-remove .danger{color:#a32621;border-color:#e3b5ad}
.template-legend{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:3px;max-height:220px;overflow-y:auto}
.templates-body .template-legend-color{display:flex;align-items:center;gap:8px;width:100%;padding:3px 6px;text-align:left}
.template-legend-color span{flex:1}.template-legend-color small{color:#6b7563}
.template-hint{position:absolute;z-index:5;display:flex;align-items:center;gap:6px;padding:4px 8px;max-width:calc(100% - 8px);background:#fafaf6f2;border:1px solid #d1d7c5;border-radius:8px;box-shadow:0 4px 14px #25341c26;font:600 12px "Noto Sans",Verdana,sans-serif;color:#293321;pointer-events:none;white-space:nowrap}
.template-hint[hidden]{display:none}.template-hint small{font-weight:400;color:#6b7563}.template-hint.done small{color:#2f7d32;font-weight:600}.template-hint .template-symbol{width:18px;height:18px}
.template-progress{margin:2px 0 0;font-size:12px;font-weight:600;color:#5b7148}
.template-legend li.done{opacity:.55}
#template-visibility[hidden]{display:none}
.color-picker-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}.color-picker-bar strong{flex:1;font-size:13px}.color-picker-bar strong.too-few{color:#a32621}
.color-picker-bar button{font-size:12px;padding:4px 10px}
.color-choice-grid{display:grid;gap:4px;margin:8px 0}.color-choice-row{display:grid;grid-template-columns:repeat(7,minmax(0,28px));gap:4px}
/* Canvas colors: transparent/white/black on their own top row, then the family rows split into two side-by-side columns (first half down the left, rest down the right). */
.color-picker-grid{grid-template-rows:repeat(var(--rows),auto);grid-template-columns:repeat(2,minmax(0,156px));grid-auto-flow:column;column-gap:20px}.color-picker-grid .color-choice-row{grid-template-columns:repeat(5,minmax(0,28px))}.color-picker-grid .color-choice-special{grid-row:1;grid-column:1/-1;grid-template-columns:repeat(5,minmax(0,28px));width:min(100%,156px)}
.color-choice{width:100%;aspect-ratio:1;min-width:0;padding:0;border:1px solid #0002;border-radius:5px;background:var(--swatch);position:relative}
.color-choice[data-transparent=true]{background:conic-gradient(#d9ddd4 25%,#fff 0 50%,#d9ddd4 0 75%,#fff 0) 0 0/10px 10px}
.color-picker .color-choice[aria-pressed=false]{opacity:.28;filter:saturate(.4)}.color-picker .color-choice[aria-pressed=false]::after{content:"";position:absolute;inset:45% -2px auto;height:2px;background:#a32621;transform:rotate(-45deg)}
.background-picker .color-choice[aria-pressed=true],.color-picker .color-choice[aria-pressed=true]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--orange)}
.color-picker .color-choice[aria-pressed=true]{box-shadow:none}
.background-select{position:relative;margin-top:6px}
.background-select-button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;text-align:left;font:inherit;font-size:14px;background:#fffefb;border:1px solid #cfd2c6;border-radius:5px}
.background-select-button:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.background-select-name{flex:1;min-width:0}.background-select small{color:#6b7563;font-size:12px;font-variant-numeric:tabular-nums}.background-select-caret{color:#6b7563}
.background-swatch{flex-shrink:0;width:22px;height:22px;border-radius:5px;border:1px solid #0003;background:var(--swatch)}
.background-swatch[data-transparent=true]{background:conic-gradient(#d9ddd4 25%,#fff 0 50%,#d9ddd4 0 75%,#fff 0) 0 0/10px 10px}
.background-select-list{position:absolute;z-index:10;left:0;right:0;top:calc(100% + 4px);max-height:280px;overflow-y:auto;margin:0;padding:4px;list-style:none;background:#fffefb;border:1px solid #cfd2c6;border-radius:8px;box-shadow:0 10px 30px #25341c33}
.background-select-list[hidden]{display:none}.background-select-list:focus{outline:none}
.background-select-list li{display:flex;align-items:center;gap:10px;padding:5px 8px;border-radius:5px;font-size:13px;cursor:pointer}
.background-select-list li.active{background:#f1ede3}.background-select-list li[aria-selected=true]{font-weight:600}.background-select-list li[aria-selected=true]::after{content:"✓";margin-left:auto;color:var(--orange)}
.background-setting{margin-bottom:14px}.background-setting [data-background-save]{margin-top:8px}.background-readonly{display:flex;align-items:center;gap:8px;margin:6px 0 0;font-size:13px}
.create-field{margin-bottom:6px}.create-field-label{display:block;font-size:12px}
.create-colors{margin:4px 0 18px;font-size:12px}.create-colors summary{cursor:pointer;font-size:13px;font-weight:600}
.template-mover{position:absolute;z-index:2;box-sizing:border-box;border:2px dashed #e1652f;background:#e1652f14;box-shadow:0 0 0 1px #fff8;cursor:grab;touch-action:none}
.template-mover.dragging{cursor:grabbing;background:#e1652f24}.template-mover:focus-visible{outline:3px solid #e1652f66;outline-offset:2px}.template-mover[hidden],.template-move-bar[hidden]{display:none}
.template-move-bar{position:absolute;z-index:5;display:flex;align-items:center;gap:8px;padding:6px 8px;background:#fafaf6;border:1px solid #d1d7c5;border-radius:10px;box-shadow:0 6px 20px #25341c33;font:12px "Noto Sans",Verdana,sans-serif;color:#293321;white-space:nowrap}
.template-move-bar strong{font-variant-numeric:tabular-nums;min-width:56px}
.template-move-bar button{font:inherit;font-size:12px;padding:5px 10px;border:1px solid #cfd2c6;border-radius:6px;background:#fff;cursor:pointer}.template-move-bar button.primary{background:var(--orange);border-color:var(--orange);color:#fff;font-weight:600}
.templates-body .template-drag{width:100%;margin:8px 0 2px}
.template-symbol{width:21px;height:21px;image-rendering:pixelated;background:#fff;border:1px solid #dfe4d6;border-radius:3px;flex-shrink:0}
.painters-panel{position:absolute;right:12px;top:12px;z-index:4;width:min(360px,calc(100% - 24px));max-height:calc(100% - 52px);overflow-y:auto;overscroll-behavior:contain;background:#fafaf6;border:1px solid #d1d7c5;border-radius:10px;box-shadow:0 8px 35px #25341c26;font-family:"Noto Sans",Verdana,sans-serif}
.painters-panel[hidden],#painter-highlight-status[hidden],#painter-settings[hidden],#painter-overlay[hidden],#painters-toggle[hidden]{display:none}
.painters-panel .panel-heading{padding:9px 12px;position:sticky;top:0;background:#fafaf6;z-index:1;border-bottom:1px solid var(--line)}
.painters-panel h2{font-size:14px;margin:0;letter-spacing:0}.painters-help,#painters-empty{font-size:11px;color:var(--muted);line-height:1.5;margin:10px 12px}
#painters-list{list-style:none;padding:0;margin:0}#painters-list li{display:flex;align-items:center;gap:8px;padding:8px 12px;border-bottom:1px solid #e8eadf}#painters-list li.highlighted{background:#fff1df}
.painter-swatch{width:12px;height:12px;border:1px solid #0003;border-radius:3px;flex-shrink:0}.painter-info{display:flex;flex-direction:column;flex:1;min-width:0;gap:3px}
.painter-name{font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#943d20;text-underline-offset:2px}.painter-meta{font-size:10px;color:var(--muted)}
.painter-location{font-size:11px;color:#526249;text-underline-offset:2px;white-space:nowrap;padding:6px 0;touch-action:manipulation}
.painter-highlight{font-size:23px;line-height:1;width:34px;min-height:36px;padding:3px;background:transparent;border-color:transparent;flex-shrink:0}.painter-highlight[aria-pressed=true]{color:#a84423}
#painter-highlight-status{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 12px;font-size:11px;color:#943d20}#painter-highlight-clear{font-size:11px;padding:5px 8px}
.painter-setting{display:flex;align-items:center;gap:9px;font-size:13px}.painter-setting input{width:17px;height:17px;accent-color:var(--orange)}
@media(max-width:560px){.studio-actions{flex-wrap:wrap;gap:6px}.painters-panel{right:8px;top:8px;width:min(340px,calc(100% - 16px))}}

.studio-actions .header-moderation{display:inline-flex;align-items:center;white-space:nowrap;font-size:12px;color:#9c4426;padding:6px 8px;border-left:1px solid var(--line);text-decoration:none}.studio-actions .header-moderation:hover{text-decoration:underline;text-underline-offset:3px}

.canvas-card-link{display:block;color:inherit;text-decoration:none}
.canvas-details .canvas-description,.canvas-description{font:13px/1.5 Arial,Helvetica,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted)}
.edit-description{margin:0 20px 20px;font-size:12px}
.description-dialog textarea{display:block;width:100%;resize:vertical;min-height:120px;font-family:inherit;font-size:14px;line-height:1.5;padding:10px;border:1px solid var(--line);border-radius:6px}
.description-dialog form label{display:block;margin-bottom:8px}

/* Canvas browsing stays in the current workspace until a different canvas is chosen. */
.connection-dot{display:inline-block;width:8px;height:8px;min-width:8px;border-radius:50%;background:#bb9342;margin-left:-8px;flex-shrink:0;box-shadow:0 0 0 3px #bb934218}
.connection-dot[data-state=online]{background:#548b57;box-shadow:0 0 0 3px #548b5718}
.connection-dot[data-state=offline]{background:#c65d51;box-shadow:0 0 0 3px #c65d5118}
dialog#canvas-browser{width:min(960px,calc(100vw - 40px));max-width:none;height:min(780px,calc(100dvh - 48px));max-height:none;padding:0;border:1px solid #d7dccf;border-radius:16px;background:#f5f4ef;color:#282c28;box-shadow:0 24px 100px #18251b44;overflow:hidden}
#canvas-browser[open]{display:flex;flex-direction:column}
#canvas-browser::backdrop{background:#202a235c;backdrop-filter:blur(3px)}
#canvas-browser [hidden]{display:none!important}
#canvas-browser .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.browser-heading{display:flex;align-items:center;gap:14px;padding:24px 24px 18px;flex-shrink:0}.browser-heading>div{flex:1}
#canvas-browser h2{font-size:27px;letter-spacing:-.7px;margin:0 0 4px}#canvas-browser .browser-heading p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}
#canvas-browser .browser-close{width:36px;height:36px;flex-shrink:0;font-size:24px;padding:0;border-color:transparent}
.browser-search{display:flex;gap:10px;padding:0 24px 16px;flex-shrink:0}.browser-search label:first-child{flex:1;min-width:0}.browser-search label{margin:0!important}
#canvas-browser .browser-search input,#canvas-browser .browser-search select{height:40px;width:100%;margin:0;border:1px solid #cfd6c7;border-radius:8px;background:#fffefb;color:inherit;padding:8px 12px;font:13px Arial,Helvetica,sans-serif}.browser-search select{min-width:150px}
#canvas-browser :focus-visible{outline:2px solid #b95b37;outline-offset:3px}
.browser-summary{display:flex;align-items:center;justify-content:space-between;padding:0 24px 12px;font-size:12px;color:var(--muted);flex-shrink:0}.browser-summary button{font-size:11px;padding:5px 8px;background:#fafaf6}
.browser-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 24px 20px;flex:1}.browser-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.browser-card{min-width:0;border:1px solid #dce0d4;border-radius:10px;background:#fffef9;display:flex;flex-direction:column;overflow:hidden}.browser-card:hover{border-color:#aab79e}
.browser-card-link{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;padding:14px;color:inherit;text-decoration:none;flex:1;min-height:152px}
.browser-preview{height:100px;display:flex;align-items:center;justify-content:center;align-self:center;background:#e9ece3;border-radius:6px;overflow:hidden}.browser-preview img{max-width:100%;max-height:100%;image-rendering:pixelated}.browser-preview>span{font-size:11px;text-align:center;color:#68745f}
.browser-world{flex-direction:column;background:linear-gradient(135deg,#e1e9dc,#f0f2e7)}.browser-world>span{font:54px/1 Georgia,serif;color:#69845d}.browser-world small{font-size:8px;letter-spacing:1.2px;color:#607357}
.browser-card-heading{display:flex;gap:6px;flex-wrap:wrap;align-items:center}#canvas-browser h3{font-size:16px;line-height:1.3;letter-spacing:-.2px;margin:0;overflow-wrap:anywhere}.browser-current{font-size:9px;padding:3px 5px;border-radius:4px;background:#e7efdf;color:#466635;white-space:nowrap}
#canvas-browser .browser-owner{font-size:12px;color:#46533f;margin:6px 0;line-height:1.4;overflow-wrap:anywhere}#canvas-browser .browser-meta{font-size:10px;color:#7d8276;line-height:1.5;margin:0 0 7px}
#canvas-browser .browser-description{font-size:12px;line-height:1.45;color:#71796a;margin:0 0 8px;overflow-wrap:anywhere;white-space:pre-wrap;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.browser-open{display:block;font-size:11px;color:#a74e2b;margin-top:7px}.browser-edit{align-self:flex-end;margin:0 14px 12px;padding:5px 8px;font-size:11px}
#canvas-browser .browser-error{margin:0 24px 12px;padding:10px 12px;background:#f7e6dd;color:#93422c;border-radius:6px;font-size:12px;line-height:1.5}.browser-empty{padding:56px 12px;text-align:center}#canvas-browser .browser-empty p{font-size:13px;color:var(--muted);line-height:1.5}
.browser-footer{border-top:1px solid #dce0d4;padding:13px 24px;display:flex;justify-content:space-between;gap:10px;font-size:10px;line-height:1.4;color:#808577;flex-shrink:0;background:#fafaf6}
@media(max-width:650px){dialog#canvas-browser{width:calc(100vw - 16px);height:calc(100dvh - 20px);border-radius:12px}.browser-heading{padding:18px 16px 14px;gap:6px}#canvas-browser h2{font-size:23px}#canvas-browser .browser-heading p{font-size:11px}.browser-heading .primary{font-size:11px;padding:8px}.browser-search{padding:0 16px 12px;flex-wrap:wrap}.browser-search label:first-child{flex-basis:100%}.browser-search label:last-child{flex:1}.browser-summary{padding:0 16px 12px}.browser-scroll{padding:0 16px 16px}.browser-grid{grid-template-columns:minmax(0,1fr)}.browser-card-link{padding:12px;gap:12px;grid-template-columns:90px minmax(0,1fr)}.browser-preview{width:90px;height:100px}.browser-footer{padding:10px 16px}.browser-footer span{display:none}.studio-page .studio-actions .studio-link[href="/canvases"]{display:inline-flex}}

.studio-page .studio-actions .studio-link[href="/canvases"]{display:inline-flex}

header h1 button.canvas-title-button{font:inherit;letter-spacing:inherit;max-width:100%;padding:5px 3px;border:0;border-radius:4px;color:inherit;background:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;text-align:left}
header h1 button.canvas-title-button:hover{background:#e9ebe2;text-decoration:underline;text-underline-offset:3px}
header h1 button.canvas-title-button:focus-visible{outline-offset:-2px}

#painting-access-dialog{border-bottom:1px solid #d8decc;padding:0 0 20px;margin:20px 0}#painting-access-dialog form{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:14px 0}#painting-access-dialog label{flex:1;min-width:160px}#painting-access-dialog select,#painting-access-dialog input{display:block;width:100%;box-sizing:border-box;font:inherit;padding:10px;margin-top:6px}#painting-access-dialog [data-members] p{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* A dedicated grip supports mouse, touch and keyboard without resizing inputs. */
#chat-window .chat-resize,#world-chat .chat-resize{position:relative;align-self:flex-end;flex:0 0 24px;width:32px;min-height:24px;padding:0 4px;border:0;border-radius:0 0 8px 0;background:transparent;color:#69745e;cursor:nwse-resize;touch-action:none;user-select:none}
.chat-resize svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}.chat-resize:hover{color:#b94e29!important}.chat-resize:focus-visible{outline:2px solid #b94e29;outline-offset:-3px}
#world-chat{overflow:hidden}#world-chat-log{min-height:0}#world-chat-form,.world-chat-tabs,#world-chat-heading{flex-shrink:0}

#canvas-browser .community-tabs{display:flex;gap:8px;padding:0 24px 14px;border-bottom:1px solid #dce1d3}#canvas-browser .community-tabs button{padding:9px 16px;border-radius:8px;font-size:13px}#canvas-browser .community-tabs [aria-selected=true]{background:#e8eddf;border-color:#7e916c;color:#293321}.community-panel{display:flex;flex-direction:column;min-height:0;flex:1}#canvas-browser [hidden]{display:none!important}#community-players{overflow:auto;padding:0 24px 16px}.ranking-lists{display:block;columns:2;column-gap:24px}.ranking-lists>.ranking-list{break-inside:avoid;margin-bottom:24px}.ranking-list{min-width:0}.ranking-list ol{padding:0;list-style:none;counter-reset:rank}.ranking-list li{counter-increment:rank;display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e1e5da;font-size:13px}.ranking-list li:before{content:counter(rank);width:24px;color:#77816e;font-variant-numeric:tabular-nums}.ranking-list a{color:#34482a;overflow-wrap:anywhere;min-width:0;flex:1}.ranking-list li span{font-size:11px;color:#64735a;text-align:right}.ranking-note,.ranking-status{font-size:12px;line-height:1.5;color:#68745e}.ranking-status:empty{display:none}@media(max-width:600px){.ranking-lists{grid-template-columns:1fr;gap:20px;columns:1}#community-players{padding:0 14px 14px}#canvas-browser .community-tabs{padding:0 14px 12px}}

/* Community leaderboards: readable cards in a two-column grid, with a compact mobile switch. */
#community-players{padding:22px 24px 18px;background:#f2f3ed}.ranking-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.ranking-eyebrow{display:block;font-size:9px;letter-spacing:1.5px;color:#758067;font-weight:700;margin-bottom:7px}#canvas-browser .ranking-intro h3{font-size:22px;letter-spacing:-.5px}.ranking-intro p{font-size:12px;color:#6f7867;line-height:1.5;margin:7px 0 0}#canvas-browser [data-ranking-refresh]{flex-shrink:0;border:1px solid #d5dccb;background:#fafbf6;color:#59674e;padding:8px 11px;font-size:12px;border-radius:8px}.ranking-lists{gap:18px;align-items:start}.ranking-list{border:1px solid #d9dfd0;border-radius:12px;background:#fdfdf9;overflow:hidden}.ranking-card-heading{display:flex;gap:11px;align-items:center;padding:18px;border-bottom:1px solid #e6e9df}.ranking-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:10px;background:#eaf0e1;color:#577343;font-size:23px}.ranking-list[data-ranking=followers] .ranking-icon{background:#f8e9e0;color:#a36548}.ranking-list[data-ranking=achievements] .ranking-icon{background:#f6eed6;color:#9a7a2c}.ranking-list[data-ranking=earliest] .ranking-icon{background:#e3ebf2;color:#4f6f8c}.ranking-list[data-ranking=guilds] .ranking-icon{background:#ece6f2;color:#6f5a8c}.ranking-tag{display:inline-block;font-size:9px;font-weight:700;letter-spacing:.5px;color:#6f5a8c;margin-top:3px}.ranking-card-heading p{font-size:10px;color:#7b8472;line-height:1.5;margin:5px 0 0}#canvas-browser .ranking-card-heading h3{font-size:15px}.ranking-list ol{margin:0;padding:0}.ranking-list li{display:block;padding:0;border-bottom:1px solid #eef0e8}.ranking-list li:last-child{border:0}.ranking-list li:before{display:none}.ranking-list a.ranking-player{display:flex;align-items:center;gap:10px;padding:13px 16px;text-decoration:none;color:#303c29;transition:background .12s}.ranking-list a.ranking-player:hover{background:#eef2e6}.ranking-list li.ranking-leader{background:linear-gradient(110deg,#f6efd9,#fcfbf1)}.ranking-list li.ranking-leader a{padding-top:20px;padding-bottom:20px}.ranking-list li span.ranking-number{flex:0 0 20px;text-align:center;color:#87907c;font-size:11px;font-weight:600}.ranking-list li:nth-child(-n+3) .ranking-number{color:#8c7134}.ranking-list li .ranking-avatar{position:relative;display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:8px;background:#e6ebdd;overflow:hidden;border:1px solid #d8dfcf}.ranking-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;image-rendering:pixelated}.ranking-list li .ranking-avatar span{font-size:12px;font-weight:700;color:#60704f}.ranking-list li .ranking-identity{flex:1;min-width:0;text-align:left}.ranking-list li .ranking-name{display:block;font-size:12px;font-weight:600;text-align:left;color:#34412c;overflow-wrap:anywhere}.ranking-you{display:inline-block;font-size:9px;color:#5a7546;background:#e5eddc;padding:1px 5px;border-radius:4px;margin-top:4px}.ranking-leader-label{display:block;font-size:9px;color:#8d783e;margin-top:4px}.ranking-list li .ranking-total{flex-shrink:0;text-align:right;max-width:42%;font-variant-numeric:tabular-nums}.ranking-total strong{display:block;font-size:15px;font-weight:600;color:#3b4b2f;overflow-wrap:anywhere}.ranking-total small{display:block;font-size:9px;color:#838b79;margin-top:3px}.ranking-leader .ranking-total strong{font-size:20px;color:#886b2d}.ranking-empty{text-align:center;padding:32px 20px 38px;color:#7b8770}.ranking-empty>span{font-size:28px;color:#a7b79a}.ranking-empty h4{font-size:13px;color:#56684a;margin:12px 0 8px}.ranking-empty p{font-size:12px;line-height:1.6;margin:0}.ranking-method{font-size:11px;color:#78836e;margin:20px 0 0;line-height:1.6}.ranking-method summary{cursor:pointer;width:fit-content}.ranking-method p{max-width:640px;margin:8px 0}.ranking-switch{display:none}.ranking-status:not(:empty){padding:12px 14px;background:#fff8e9;border:1px solid #eadfc5;border-radius:8px;margin:0 0 16px}@media(max-width:600px){#community-players{padding:18px 14px}.ranking-intro{gap:10px;margin-bottom:16px}#canvas-browser .ranking-intro h3{font-size:20px}.ranking-intro p{max-width:220px}.ranking-switch{display:flex;gap:4px;padding:4px;background:#e5e9de;border-radius:9px;margin-bottom:16px}#canvas-browser .ranking-switch button{flex:1 0 auto;font-size:12px;border:0;padding:9px 10px;border-radius:6px;color:#738168;white-space:nowrap}.ranking-switch{flex-wrap:wrap;flex-shrink:0}#canvas-browser .ranking-switch [aria-pressed=true]{background:#fdfdf9;color:#3d512f;box-shadow:0 1px 3px #26351717}#community-players .ranking-list{display:none}#community-players[data-ranking=pixels] .ranking-list[data-ranking=pixels],#community-players[data-ranking=followers] .ranking-list[data-ranking=followers],#community-players[data-ranking=achievements] .ranking-list[data-ranking=achievements],#community-players[data-ranking=earliest] .ranking-list[data-ranking=earliest],#community-players[data-ranking=guilds] .ranking-list[data-ranking=guilds]{display:block}.ranking-lists{grid-template-columns:1fr;columns:1}.ranking-card-heading{padding:15px}.ranking-list a.ranking-player{padding:12px}.ranking-list li.ranking-leader a{padding:18px 12px}.ranking-list li .ranking-avatar{flex-basis:34px;height:34px}.ranking-list li .ranking-number{flex-basis:18px}.ranking-list li .ranking-total{max-width:40%}}

#community-help{overflow:auto;padding:22px 24px 28px}.community-help-intro{margin-bottom:20px}#canvas-browser .community-help-intro h3{font-size:22px}.community-help-intro p{font-size:13px;color:#738069;line-height:1.6}.help-topic{border:1px solid #d9dfd0;background:#fdfdf8;border-radius:10px;margin:10px 0}.help-topic summary{cursor:pointer;padding:15px 17px;font-size:14px;font-weight:600;color:#425438}.help-topic[open] summary{border-bottom:1px solid #e7ebdf}.help-topic>div{padding:4px 17px 16px}.help-topic p{font-size:13px;line-height:1.75;color:#65715a;margin:12px 0}.help-topic .shortcut-list{margin:12px 0}.help-topic .shortcut-list>div{display:flex;justify-content:space-between;gap:18px;margin:0;padding:9px 0;border-bottom:1px solid #edf0e6}.help-topic dt{font-size:12px}.help-topic dd{font-size:12px;text-align:right}.help-topic kbd{padding:2px 5px;border:1px solid #d6ddcc;border-radius:4px;background:#f1f3ea;font-size:11px}.help-topic .mobile-brush-help{display:flex!important}@media(max-width:600px){#community-help{padding:18px 14px}.help-topic summary{padding:13px}.help-topic>div{padding:3px 13px 13px}#canvas-browser .community-tabs{gap:5px}#canvas-browser .community-tabs button{padding:9px 10px;font-size:12px}}
/* Canvas settings: ownership actions grouped into readable cards. */
#settings-dialog{width:min(620px,calc(100vw - 32px));box-sizing:border-box}
#canvas-dimensions,#painting-access-dialog{padding:20px;background:#f5f7f2;border:1px solid #dce3d5;border-radius:14px;margin:18px 0}
#settings-dialog .settings-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
#settings-dialog h3,#painting-access-title{font-size:18px;margin:4px 0 12px}
#settings-dialog .dimension-inputs{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#settings-dialog .dimension-inputs label{font-weight:600;min-width:0}
#settings-dialog .dimension-inputs span{font-size:12px;font-weight:400;color:#61695c}
#settings-dialog .dimension-inputs input{box-sizing:border-box;width:100%;font:inherit;padding:11px;margin-top:6px;border:1px solid #bac4b2;border-radius:8px;background:white}
#settings-dialog .settings-hint,#settings-dialog .resize-actions span{font-size:13px;line-height:1.5;color:#596251}
#settings-dialog .crop-warning{padding:12px;border-radius:8px;background:#fff0df;color:#8a3b0b;font-size:14px;line-height:1.5}
#settings-dialog .crop-confirm{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5}
#settings-dialog .crop-confirm input[type=checkbox]{flex:0 0 16px;width:16px;height:16px;margin:3px 0 0;padding:0;accent-color:var(--orange)}
#settings-dialog .resize-actions{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-top:20px;flex-wrap:wrap}
#settings-dialog button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:480px){#canvas-dimensions,#painting-access-dialog{padding:14px}#settings-dialog .resize-actions button{width:100%}}

/* Align access controls by their input edges, independent of label spacing. */
#painting-access-dialog form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}
#painting-access-dialog form label{display:block;min-width:0;margin:0;padding:0}
#painting-access-dialog form input,#painting-access-dialog form select{height:42px;margin:6px 0 0;border:1px solid #bac4b2;border-radius:8px;background:#fff;padding:9px 10px}
#painting-access-dialog form>button{height:42px;margin:0;align-self:end;white-space:nowrap}
#painting-access-dialog .access-members-card{margin-top:14px;padding:16px;border:1px solid #dce3d5;border-radius:10px;background:#fdfefa}
#painting-access-dialog .access-members-card h3{font-size:14px;margin:0 0 10px;font-weight:600}
#painting-access-dialog .access-members-card ul{list-style:none;margin:0;padding:0}
#painting-access-dialog .access-members-card li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #e8ece2}
#painting-access-dialog .access-members-card li:first-child{border-top:0;padding-top:0}
#painting-access-dialog .access-members-card li:last-child{padding-bottom:0}
#painting-access-dialog .access-player-name{min-width:0;overflow-wrap:anywhere;font-size:14px;font-weight:500}
#painting-access-dialog .access-player-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;flex-shrink:0}
#painting-access-dialog .access-player-actions button{font-size:12px;padding:7px 10px}
#painting-access-dialog [data-members] .access-empty{display:block;margin:0;color:#697460;font-size:13px;line-height:1.5}
#painting-access-dialog [data-members]>.access-empty{margin-top:12px}
@media(max-width:480px){#painting-access-dialog form{grid-template-columns:minmax(0,1fr)}#painting-access-dialog form>button{width:100%}#painting-access-dialog .access-members-card{padding:12px}#painting-access-dialog .access-player-actions{flex-shrink:1}}
.create-dialog textarea{display:block;box-sizing:border-box;width:100%;margin-top:8px;padding:10px;font:inherit;font-size:14px;line-height:1.5;background:#fffefb;color:inherit;border:1px solid #cfd2c6;border-radius:5px;resize:vertical}
.canvas-rules-section{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.canvas-rules-section h3{font-size:15px;margin:0 0 6px}.canvas-rules-section[hidden]{display:none}
.settings-description-card{position:relative;padding:18px 20px 18px 24px;background:#fff;border:1px solid #e4d3c4;border-radius:14px;margin:14px 0;box-shadow:0 2px 10px #5a3a1a12;overflow:hidden}
.settings-description-card::before{content:'';position:absolute;inset:0 auto 0 0;width:6px;background:var(--orange,#e1663c)}
.settings-description-card.settings-rules-card{background:#fff9e8;border-color:#ecd89a}
.settings-description-card.settings-rules-card::before{background:#e0a526}
.settings-description-card h3,#settings-dialog .settings-description-card h3{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:700;letter-spacing:-.3px;margin:0 0 10px}
.settings-description-card h3::before{content:'';flex:none;width:22px;height:22px;border-radius:6px;background:var(--orange,#e1663c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7.5v.1M12 11v6' stroke='white' stroke-width='2.6' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/18px no-repeat}
.settings-rules-card h3::before{background:#e0a526 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h10M7 12h10M7 17h6' stroke='white' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/18px no-repeat}
.settings-description-card .canvas-description{margin:0;font-size:15px;line-height:1.6;color:#282c28;white-space:pre-wrap;overflow-wrap:anywhere}
.settings-description-card form label{display:block;font-size:13px;margin:0 0 8px}
.settings-description-card textarea{display:block;box-sizing:border-box;width:100%;min-height:100px;resize:vertical;font-size:14px;line-height:1.5;font-family:inherit;padding:10px;border:1px solid #bac4b2;border-radius:8px;background:#fff;color:inherit}
.settings-description-card .field-help,.settings-description-card [role=status]{font-size:12px;line-height:1.5;color:#596251}
@media(max-width:480px){.settings-description-card{padding:14px}.settings-description-card form button{width:100%}}

header .canvas-heading{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
header .canvas-heading h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
header .canvas-heading>button{flex-shrink:0}

/* Language is an account setting, kept with the other account preferences. */
.account-language select{font:inherit;color:inherit;background:#fffefa;border:1px solid #d5d9cd;border-radius:6px;padding:5px;max-width:105px;cursor:pointer}
.account-language{display:flex;align-items:center;gap:12px}
.language-note{font-size:12px;color:#65705c}

/* Shared community policy, readable in the modal and at /rules. */
#community-rules{overflow:auto;padding:22px 24px 28px;display:block}
.rules-page{max-width:820px;margin:36px auto;padding:0 24px 48px}
.rules-content{color:#34432e;line-height:1.7}.rules-content h1{font-size:28px;margin:8px 0}.rules-content h2{font-size:16px;margin:0 0 6px}.rules-content p{font-size:14px;margin:6px 0 12px}.rules-content .rules-lead{font-size:18px;font-weight:600}.rules-list{padding-left:28px}.rules-list li{padding:15px 0 15px 8px;border-bottom:1px solid #dce1d3}.rules-list li::marker{color:#687c58;font-weight:700}.rules-report{padding:18px;background:#eef1e7;border-radius:12px;margin-top:24px}.rules-content .rules-date{font-size:12px;color:#65715a;margin-top:20px}#canvas-browser .community-tabs{flex-wrap:wrap}
@media(max-width:600px){#community-rules{padding:16px 14px 24px}.rules-page{margin:20px auto;padding:0 16px 30px}.rules-content h1{font-size:24px}}

[data-transparent="true"]{background:repeating-conic-gradient(#c7cbbf 0% 25%,#fff 0% 50%) 0 0/10px 10px!important}

/* Palette families occupy complete rows, independent of neighboring families. */
body.studio-page #palette,body.world-page #world-swatches{display:flex;flex-direction:column;gap:7px}
#palette .palette-swatch-row,#world-swatches .palette-swatch-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;width:100%;min-width:0}
#palette .palette-swatch-row[data-family=special],#world-swatches .palette-swatch-row[data-family=special]{padding-bottom:7px;border-bottom:1px solid var(--line)}
#palette .palette-swatch-row[hidden],#world-swatches .palette-swatch-row[hidden]{display:none!important}
#palette .palette-swatch-row .swatch,#world-swatches .palette-swatch-row button{width:100%;min-width:0;aspect-ratio:auto;height:25px}

#community-guilds{overflow:hidden;background:#f1f2ea}#community-guilds iframe{display:block;flex:1;width:100%;height:100%;min-height:420px;border:0;background:#f1f2ea}@media(max-width:600px){#community-guilds iframe{min-height:360px}}

.chat-guild-tag{display:inline-block;margin-right:2px;padding:0 4px;border:1px solid #dce1d3;border-radius:4px;background:#eef1e8;color:#596b49;font-size:9px;font-weight:700;line-height:1.5;letter-spacing:.5px;vertical-align:1px}

/* Chat name markers are buttons: hand cursor, keyboard focus, no button chrome. */
.chat-admin-badge{display:inline-flex;margin:0;padding:0 1px;border:0;border-radius:3px;background:none;font:inherit;line-height:1;vertical-align:-2px;cursor:pointer}
.chat-admin-badge svg{width:14px;height:14px}
button.chat-guild-tag{font-family:inherit;cursor:pointer}
.chat-admin-badge:hover,.chat-admin-badge[aria-expanded=true]{background:#fbefc8}
button.chat-guild-tag:hover{border-color:#a9b79a;background:#e3e9d9}
.chat-admin-badge:focus-visible,button.chat-guild-tag:focus-visible{outline:2px solid #e07a3f;outline-offset:1px}
.chat-badge-info{position:fixed;z-index:1000;max-width:240px;padding:8px 10px;border:1px solid #d9d3c4;border-radius:8px;background:#fffdf7;color:#2d2a24;box-shadow:0 6px 18px rgba(0,0,0,.14);font-size:12px;line-height:1.4}
.chat-badge-info strong{display:block;color:#a84423}.chat-badge-info p{margin:2px 0 0}
/* Pending guild join requests (owners/managers). */
.guild-requests-button{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}
.guild-requests-count{min-width:18px;padding:1px 5px;border-radius:9px;background:#e07a3f;color:#fff;font-size:11px;font-weight:700;line-height:16px;text-align:center}
.guild-request-notice{position:fixed;z-index:1000;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:10px;max-width:min(420px,calc(100vw - 32px));padding:10px 12px;border:1px solid #d9d3c4;border-radius:10px;background:#fffdf7;color:#2d2a24;box-shadow:0 8px 24px rgba(0,0,0,.16);font-size:13px}
.guild-request-notice button{cursor:pointer}
/* Guild chat switcher (players in several guilds). */
.guild-chat-switch{padding:4px 10px 6px;border-bottom:1px solid #e3e6dc;font-size:12px}
.guild-chat-switch label{display:flex;align-items:center;gap:8px;margin:0;font-weight:600;color:#59664c}
.guild-chat-switch select{flex:1;min-width:0;padding:4px 6px;border:1px solid #d5d9cd;border-radius:6px;background:#fffefa;font:inherit;font-weight:400;color:#293321}
.world-guild-switch-off{display:none!important}
.chat-discord-badge{display:inline-flex;vertical-align:-2px;color:#5865f2}
.chat-discord-badge svg{width:14px;height:14px;fill:currentColor}
/* Discord invite in the community modal heading. */
.browser-discord{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 14px;border-radius:9px;background:#5865f2;color:#fff;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
.browser-discord:hover{background:#4752c4}
.browser-discord:focus-visible{outline:2px solid #e07a3f;outline-offset:2px}
.browser-discord svg{width:18px;height:18px;fill:currentColor}
.browser-discord-short{display:none}
@media(max-width:560px){.browser-discord{min-height:32px;padding:0 9px;font-size:11px;gap:5px}.browser-discord svg{width:15px;height:15px}.browser-discord-label{display:none}.browser-discord-short{display:inline}}

.choose-handle-dialog{max-width:440px}.choose-handle-dialog strong{color:#9c4426}.choose-handle-dialog input{text-transform:none}

/* Chat: earlier messages bar above the log */
.chat-history-more{position:absolute;z-index:2;box-sizing:border-box;display:flex;justify-content:center;align-items:center;padding:4px 8px;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line);background:#fafaf6;box-shadow:0 2px 6px #25341c14;pointer-events:auto}
.chat-history-more[hidden]{display:none}.chat-history-more button{font-size:12px;padding:3px 10px;border-radius:999px;color:#9c4426;background:#fff;border:1px solid #e3c4b5}
.chat-history-more button[hidden],.chat-history-more span[hidden]{display:none}
/* @mentions (public/chat-mentions.js): chips, my highlighted messages, chat-button marker, alerts, autocomplete. */
.chat-mention{padding:0 2px;border-radius:3px;background:#e4ecff;color:#1f4fb8;font-weight:600;text-decoration:none}
.chat-mention:hover{background:#d2e0ff;text-decoration:underline}
.chat-mentioned{background:#fff3c4;box-shadow:inset 3px 0 #f0a020;border-radius:3px}
.chat-flash{animation:chat-flash 1.6s ease-out}
@keyframes chat-flash{0%,30%{background:#ffd76a}100%{background:transparent}}
.chat-mentioned.chat-flash{animation-name:chat-flash-mentioned}
@keyframes chat-flash-mentioned{0%,30%{background:#ffd76a}100%{background:#fff3c4}}
@media (prefers-reduced-motion:reduce){.chat-flash{animation:none;outline:2px solid #f0a020}}
#chat-toggle.has-mention,#world-chat-toggle.has-mention,[data-chat-tab].has-mention,[data-world-room].has-mention{position:relative}
#chat-toggle.has-mention::after,#world-chat-toggle.has-mention::after,[data-chat-tab].has-mention::after,[data-world-room].has-mention::after{content:'@';position:absolute;top:-6px;left:-6px;width:16px;height:16px;border:1px solid #fff;border-radius:50%;background:#2a5fd6;color:#fff;font:700 10px/15px system-ui,sans-serif;text-align:center;pointer-events:none}
#mention-alerts{position:fixed;z-index:1001;top:calc(60px + env(safe-area-inset-top,0px));right:16px;display:grid;gap:8px;width:min(340px,calc(100vw - 32px))}
.mention-alert{padding:10px 12px;border:1px solid #c9d6f2;border-left:4px solid #2a5fd6;border-radius:10px;background:#fbfcff;color:#24272e;box-shadow:0 8px 24px rgba(0,0,0,.16);font-size:13px;animation:mention-in .18s ease-out}
@keyframes mention-in{from{opacity:0;transform:translateY(-6px)}}
@media (prefers-reduced-motion:reduce){.mention-alert{animation:none}}
.mention-alert-head{display:flex;align-items:flex-start;gap:8px}.mention-alert-head strong{flex:1;font-size:13px}
.mention-alert-head strong::before{content:'@';display:inline-block;width:16px;height:16px;margin-right:6px;border-radius:50%;background:#2a5fd6;color:#fff;font:700 10px/16px system-ui,sans-serif;text-align:center;vertical-align:1px}
.mention-alert p{margin:4px 0 8px;color:#4a4f5c;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mention-alert-actions{display:flex;gap:8px;align-items:center}
.mention-alert button{cursor:pointer;font:inherit}
.mention-alert-go{padding:5px 12px;border:0;border-radius:7px;background:#2a5fd6;color:#fff;font-weight:600}
.mention-alert-go:hover{background:#1f4fb8}
.mention-alert-sound{padding:4px 9px;border:1px solid #c9d6f2;border-radius:7px;background:#fff;color:#4a4f5c;font-size:12px}
.mention-alert-sound[aria-pressed=true]{border-color:#2a5fd6;color:#1f4fb8}
.mention-alert-close{padding:0 4px;border:0;background:none;color:#6b7080;font-size:18px;line-height:1}
.mention-alert button:focus-visible{outline:2px solid #e07a3f;outline-offset:1px}
form:has(> .mention-suggestions){position:relative}
.mention-suggestions{position:absolute;z-index:20;left:6px;bottom:calc(100% + 4px);min-width:160px;max-width:calc(100% - 12px);padding:4px;border:1px solid #d9d3c4;border-radius:8px;background:#fffdf7;box-shadow:0 6px 18px rgba(0,0,0,.14);font-size:12px}
.mention-suggestion{padding:5px 8px;border-radius:5px;cursor:pointer;color:#2d2a24}
.mention-suggestion[aria-selected=true],.mention-suggestion:hover{background:#e4ecff;color:#1f4fb8}
/* Private messages (public/direct-messages.js) */
.dm-toggle{position:relative;display:inline-flex;align-items:center;gap:6px}.dm-toggle svg{width:17px;height:17px;flex:none}
.dm-badge{position:absolute;top:-7px;right:-7px;min-width:18px;padding:1px 4px;border:1px solid #fafaf6;border-radius:10px;background:#d23b2f;color:#fff;font:700 10px/14px system-ui,sans-serif;text-align:center}
@media(max-width:820px){.dm-toggle-label{display:none}}
.dm-window{position:fixed;z-index:1000;right:16px;bottom:16px;width:min(760px,calc(100vw - 32px));height:min(540px,calc(100dvh - 90px));min-width:420px;min-height:320px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);resize:both;overflow:hidden;display:flex;flex-direction:column;border:1px solid #cfd2c6;border-radius:12px;background:#fafaf5;color:#282c28;box-shadow:0 18px 60px #17220d38;font-size:13px}
.dm-head{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--line,#dedfd5);cursor:move;user-select:none;touch-action:none}
.dm-head h2{margin:0 6px 0 2px;font-size:16px;font-weight:700;letter-spacing:-.3px}
.dm-tabs{display:flex;gap:4px;margin-right:auto}.dm-tabs button{padding:5px 10px;border-radius:999px;font-size:12px}.dm-tabs button[aria-selected=true]{background:#282c28;color:#fff;border-color:#282c28}
.dm-icon-button{width:32px;height:32px;padding:0;display:grid;place-items:center;font-size:17px;line-height:1;border-color:transparent;flex:none}
.dm-body{flex:1;display:grid;grid-template-columns:250px minmax(0,1fr);min-height:0}
.dm-side{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line,#dedfd5);background:#f4f4ee}
.dm-new{position:relative;padding:8px}.dm-new input{width:100%;padding:8px 10px;border:1px solid #cfd2c6;border-radius:8px;font:inherit;background:#fff}
.dm-suggestions{position:absolute;z-index:2;left:8px;right:8px;top:calc(100% - 4px);display:grid;padding:4px;border:1px solid #cfd2c6;border-radius:8px;background:#fff;box-shadow:0 8px 20px #0002}
.dm-suggestion{border:0;text-align:left;padding:6px 8px}
.dm-list{list-style:none;margin:0;padding:0 4px 8px;overflow-y:auto;flex:1}
.dm-row{width:100%;display:flex;align-items:center;gap:9px;padding:8px;border:0;border-radius:9px;text-align:left}
.dm-row.active{background:#e6e8de}.dm-row.unread strong{font-weight:800}.dm-row.unread .dm-preview{color:#282c28;font-weight:600}
.dm-row-text{flex:1;min-width:0;display:grid;gap:2px}.dm-row-top{display:flex;justify-content:space-between;gap:6px}.dm-row-top time{color:var(--muted,#797d73);font-size:11px;flex:none}
.dm-preview{color:var(--muted,#797d73);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.dm-dot{width:9px;height:9px;border-radius:50%;background:#2a5fd6;flex:none}
.dm-avatar{border-radius:50%;background:#e9ecdf;image-rendering:pixelated;flex:none;object-fit:cover}
.dm-list-empty,.dm-empty,.dm-muted{color:var(--muted,#797d73);padding:14px;text-align:center;line-height:1.5}
.dm-main{display:flex;flex-direction:column;min-height:0;min-width:0}
.dm-convo-head{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--line,#dedfd5)}.dm-convo-head h3{margin:0;font-size:15px}
.dm-name{border:0;padding:4px 6px;font-weight:700;font-size:14px;margin-right:auto}
.dm-back{display:none}
.dm-log{flex:1;overflow-y:auto;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.dm-more{align-self:center;font-size:12px;padding:5px 10px}
.dm-day{align-self:center;margin:8px 0 4px;color:var(--muted,#797d73);font-size:11px}
.dm-msg{display:flex;flex-direction:column;max-width:78%}.dm-msg.mine{align-self:flex-end;align-items:flex-end}.dm-msg.theirs{align-self:flex-start;align-items:flex-start}
.dm-bubble{padding:7px 11px;border-radius:16px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4;outline-offset:2px}
.dm-msg.theirs .dm-bubble{background:#e8eae1;border-bottom-left-radius:5px}.dm-msg.mine .dm-bubble{background:#2a5fd6;color:#fff;border-bottom-right-radius:5px}
.dm-msg.mine .dm-bubble a{color:#fff}.dm-bubble a{color:#1f4fb8;text-decoration:underline}
.dm-bubble.deleted{background:none!important;border:1px dashed #cfd2c6;color:var(--muted,#797d73)!important;font-style:italic}
.dm-status{font-size:11px;color:var(--muted,#797d73);margin:2px 4px 0}
.dm-banner{margin:0 10px 8px;padding:10px 12px;border:1px solid #e5d9a6;border-radius:10px;background:#fff8dc;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.dm-banner p{margin:0;flex-basis:100%;line-height:1.45}
.dm-banner button{padding:6px 12px}
.dm-typing{margin:0 14px;min-height:16px;font-size:12px;color:var(--muted,#797d73);font-style:italic}
.dm-error{margin:0 12px 6px;color:#b3261e;font-size:12px}
.dm-compose{display:flex;align-items:flex-end;gap:8px;padding:8px 10px 10px;border-top:1px solid var(--line,#dedfd5)}
.dm-compose textarea{flex:1;resize:none;min-height:38px;max-height:140px;padding:9px 12px;border:1px solid #cfd2c6;border-radius:18px;font:inherit;line-height:1.35;background:#fff}
.dm-compose .primary{border-radius:18px;padding:9px 16px;background:#2a5fd6;border-color:#2a5fd6;color:#fff}
.dm-count{font-size:11px;color:var(--muted,#797d73);align-self:center}.dm-count.over{color:#b3261e;font-weight:700}
.dm-settings{padding:0 0 14px;overflow-y:auto;display:grid;gap:12px}.dm-settings>label,.dm-settings>p,.dm-blocked{margin:0 14px}
.dm-settings>label{display:grid;gap:6px;font-weight:600}.dm-settings select{padding:7px;font:inherit;border-radius:7px}
.dm-check{display:flex!important;align-items:flex-start;gap:8px;font-weight:400!important;line-height:1.4}
.dm-saved{color:#3d7a3c;font-size:12px;min-height:16px}
.dm-blocked h4{margin:6px 0}.dm-blocked-row{display:flex;align-items:center;gap:8px;padding:5px 0}.dm-blocked-row span{flex:1}
.dm-dialog{display:grid;gap:8px}.dm-dialog h2{font-size:20px;margin:0 0 6px}.dm-dialog blockquote{margin:0 0 6px;padding:8px 10px;border-left:3px solid #cfd2c6;white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto}
.dm-dialog .danger,.dm-leave .danger{color:#b3261e}
.dm-leave h2{font-size:22px;margin:0 0 8px}.dm-leave-url{font:12px monospace;overflow-wrap:anywhere;color:var(--muted,#797d73)}.dm-leave-actions{display:flex;justify-content:flex-end;gap:8px}
.dm-alert .mention-alert-head strong::before{content:'';background:#2a5fd6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 7h14v10H5zm.5.5L12 12l6.5-4.5' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}
@media(max-width:700px){
 .dm-window{inset:0!important;width:auto;height:auto;min-width:0;min-height:0;max-width:none;max-height:none;border-radius:0;resize:none;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
 .dm-head{cursor:default}.dm-body{grid-template-columns:1fr}.dm-side{border-right:0}
 .dm-body.show-main .dm-side{display:none}.dm-body:not(.show-main) .dm-main{display:none}.dm-back{display:grid}
 .dm-msg{max-width:88%}
}

/* Community → Chat stats (public/chat-stats.js): a wide modal with a section menu down the left. */
dialog#canvas-browser.stats-wide{width:min(1240px,calc(100vw - 32px));height:min(920px,calc(100dvh - 32px))}#community-chatstats{flex-direction:row;background:#f2f3ed}.stats-nav{flex:0 0 196px;display:flex;flex-direction:column;gap:4px;padding:20px 12px;border-right:1px solid #dce1d3;background:#f7f8f2;overflow:auto}#canvas-browser .stats-nav button{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid transparent;border-radius:8px;padding:9px 11px;font-size:13px;color:#4d5c43;background:none}#canvas-browser .stats-nav button:hover{background:#eef2e6}#canvas-browser .stats-nav button[aria-pressed=true]{background:#e8eddf;border-color:#7e916c;color:#293321;font-weight:600}.stats-nav-icon{display:grid;place-items:center;flex:0 0 26px;height:26px;border-radius:7px;background:#eaf0e1;color:#577343;font-size:12px;font-weight:700}.stats-body{flex:1;min-width:0;overflow:auto;padding:22px 26px 28px}.stats-intro{margin-bottom:16px}.stats-section{display:flex;flex-direction:column;gap:18px}.stats-card{border:1px solid #d9dfd0;border-radius:12px;background:#fdfdf9;padding:16px 18px;min-width:0}#canvas-browser .stats-card-heading h4{margin:0;font-size:15px;color:#34412c}.stats-card-heading p{margin:5px 0 12px;font-size:11px;color:#7b8472;line-height:1.5}.stats-card-heading:last-child p{margin-bottom:0}
.stats-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.stats-tile{border:1px solid #d9dfd0;border-radius:12px;background:#fdfdf9;padding:14px 16px;display:flex;flex-direction:column;gap:5px;min-width:0}.stats-tile small{font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:#7b8472}.stats-tile>strong{font-size:22px;color:#3b4b2f;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.stats-tile>strong .stats-who{font-size:17px}.stats-tile>span{font-size:11px;color:#838b79}
.stats-bars{display:flex;align-items:stretch;gap:3px;height:180px}.stats-bar{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px}.stats-bar-area{flex:1;width:100%;display:flex;align-items:flex-end}.stats-bar-area>span{display:block;width:100%;background:#9fb38a;border-radius:3px 3px 0 0}.stats-bar-hot .stats-bar-area>span{background:#e1652f}.stats-bar-value,.stats-bar-label{font-size:9px;color:#7b8472;white-space:nowrap;line-height:1.2;min-height:11px}.stats-block-0 .stats-bar-area>span,.stats-when-0{background:#4f6f8c}.stats-block-1 .stats-bar-area>span,.stats-when-1{background:#d9a441}.stats-block-2 .stats-bar-area>span,.stats-when-2{background:#7f9a62}.stats-block-3 .stats-bar-area>span,.stats-when-3{background:#c8643a}.stats-when{display:flex;width:92px;height:8px;border-radius:4px;overflow:hidden;background:#eef0e8}.stats-when>span{display:block;height:100%}
.stats-blocks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stats-block{min-width:0}#canvas-browser .stats-block h5{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 6px;font-size:13px;color:#34412c;padding-bottom:6px;border-bottom:3px solid #9fb38a}.stats-block h5 small{font-size:10px;color:#838b79;font-weight:400}.stats-block.stats-block-0 h5{border-color:#4f6f8c}.stats-block.stats-block-1 h5{border-color:#d9a441}.stats-block.stats-block-2 h5{border-color:#7f9a62}.stats-block.stats-block-3 h5{border-color:#c8643a}.stats-block ol,.stats-runners{margin:0;padding:0;list-style:none}.stats-block li,.stats-personality>div,.stats-runners li{display:flex;align-items:center;gap:8px;padding:5px 0;font-size:12px;border-bottom:1px solid #f0f2ea;min-width:0}.stats-personality{margin-top:12px;padding:8px 10px;border-radius:8px;background:#f4f6ee}.stats-personality small,.stats-role small{display:block;font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#758067;margin-bottom:4px}.stats-personality>div:last-child{border:0}.stats-runners{columns:3;column-gap:26px}.stats-runners li{break-inside:avoid}
.stats-table-wrap{overflow:auto}.stats-table{width:100%;border-collapse:collapse;font-size:12px}.stats-table th{text-align:left;font-size:10px;letter-spacing:.5px;text-transform:uppercase;color:#7b8472;font-weight:600;padding:8px 10px;border-bottom:1px solid #e1e5da;white-space:nowrap}.stats-table td{padding:9px 10px;border-bottom:1px solid #eef0e8;vertical-align:middle;color:#3b4b2f;font-variant-numeric:tabular-nums}.stats-table tbody tr:last-child td{border-bottom:0}.stats-chatters tbody tr:first-child{background:linear-gradient(110deg,#f6efd9,#fcfbf1)}.stats-chatters td:first-child{color:#87907c;font-weight:600}.stats-chatters tbody tr:nth-child(-n+3) td:first-child{color:#8c7134}.stats-quote{display:block;min-width:200px;max-width:360px;font-style:italic;color:#6f7867;overflow-wrap:anywhere;line-height:1.45}.stats-player{display:flex;align-items:center;gap:8px;min-width:130px}.stats-player .ranking-avatar{position:relative;flex:0 0 32px;height:32px;border-radius:7px;overflow:hidden;border:1px solid #d8dfcf;background:#e6ebdd}
.stats-who{display:inline-flex;align-items:center;gap:4px;min-width:0;overflow-wrap:anywhere}.stats-name{font-weight:600;color:#34482a;text-decoration:none}a.stats-name:hover{text-decoration:underline}.stats-count{margin-left:auto;padding-left:8px;font-variant-numeric:tabular-nums;color:#64735a;font-size:12px}.stats-muted{color:#a3ab97}
.stats-carry{display:flex;flex-direction:column}.stats-meter{display:grid;grid-template-columns:110px 1fr 60px;align-items:center;gap:12px;padding:6px 0;font-size:12px;color:#4d5c43}.stats-meter strong{text-align:right;font-variant-numeric:tabular-nums;color:#3b4b2f}.stats-track{display:block;height:10px;background:#eef0e8;border-radius:5px;overflow:hidden}.stats-track>span{display:block;height:100%;background:linear-gradient(90deg,#9fb38a,#6f8c55);border-radius:5px}
.stats-pairs{margin:0;padding:0;list-style:none}.stats-pairs li{display:grid;grid-template-columns:minmax(0,1fr) 40%;gap:14px;align-items:center;padding:8px 0;border-bottom:1px solid #f0f2ea}.stats-pairs li:last-child{border:0}.stats-pair{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px}.stats-amp{color:#a3ab97}.stats-graph{display:block;width:100%;max-width:460px;margin:0 auto;overflow:visible}.stats-edge{stroke:#6f8c55;stroke-linecap:round}.stats-node{fill:#e1652f;stroke:#fdfdf9;stroke-width:2}.stats-node-label{font-size:12px;fill:#34412c;font-weight:600}
.stats-roles{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}.stats-role{display:flex;gap:11px;padding:12px;border:1px solid #e6e9df;border-radius:10px;background:#fbfbf6;min-width:0}.stats-role .ranking-icon{flex:0 0 32px;height:32px;font-size:16px}.stats-role p{font-size:11px;color:#7b8472;margin:5px 0 0;line-height:1.45}.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.stats-fact{padding:12px 0;border-bottom:1px solid #eef0e8}.stats-fact:last-child{border:0;padding-bottom:0}.stats-sentence{margin:0;font-size:14px;line-height:1.6;color:#3b4b2f}.stats-fact .stats-sentence+.stats-sentence{font-size:12px;color:#7b8472;margin-top:2px}.stats-sentence strong{color:#b94e29;font-variant-numeric:tabular-nums}.stats-note{font-size:11px;color:#78836e;line-height:1.6;margin:0}.stats-empty{font-size:12px;color:#7b8770;margin:6px 0}.stats-smiley{font-size:18px}.stats-link{color:#943d20;overflow-wrap:anywhere}
.chat-stats-open svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;vertical-align:-3px}#chat-window .chat-stats-open{padding:4px 6px}#world-chat .chat-stats-open{border:0;padding:3px 6px}
@media(max-width:760px){dialog#canvas-browser.stats-wide{width:calc(100vw - 16px);height:calc(100dvh - 20px)}#community-chatstats{flex-direction:column}.stats-nav{flex:none;flex-direction:row;overflow-x:auto;padding:8px 10px;border-right:0;border-bottom:1px solid #dce1d3}#canvas-browser .stats-nav button{flex:0 0 auto;padding:7px 10px;font-size:12px;white-space:nowrap}.stats-nav-icon{display:none}.stats-body{padding:16px 14px}.stats-blocks{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid{grid-template-columns:1fr}.stats-runners{columns:2}.stats-bars{gap:1px;height:150px}.stats-bar-value{display:none}.stats-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-tile>strong{font-size:18px}.stats-meter{grid-template-columns:84px 1fr 48px}}
@media(max-width:420px){.stats-blocks{grid-template-columns:1fr}.stats-runners{columns:1}}
@media(max-width:760px){.stats-chatters th:nth-child(5),.stats-chatters td:nth-child(5),.stats-chatters th:nth-child(6),.stats-chatters td:nth-child(6){display:none}}
/* :shortcode: emoji suggestions (public/chat-emoji.js) and Chat stats → Emoji. */
.emoji-suggestions{min-width:200px}.emoji-suggestion-face{display:inline-block;width:22px;font-size:16px;text-align:center;vertical-align:-1px}
.stats-emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;margin:0;padding:0;list-style:none}.stats-emoji{display:grid;grid-template-columns:18px 44px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:6px;align-items:center;padding:10px 12px;border:1px solid #e6e9df;border-radius:10px;background:#fbfbf6;min-width:0}.stats-emoji-top{background:linear-gradient(110deg,#f6efd9,#fcfbf1);border-color:#eadfc5}.stats-emoji-rank{grid-row:1/3;font-size:11px;font-weight:600;color:#87907c;text-align:center}.stats-emoji:nth-child(-n+3) .stats-emoji-rank{color:#8c7134}.stats-emoji-face{grid-row:1/3;font-size:34px;line-height:1;text-align:center}.stats-emoji-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;min-width:0}.stats-emoji-meta strong{font-size:12px;color:#34412c;overflow-wrap:anywhere}.stats-emoji-meta small{font-size:11px;color:#7b8472}.stats-emoji-meta .stats-track{flex:1 0 100%;height:6px}.stats-emoji-last{grid-column:3;display:flex;align-items:center;gap:5px;font-size:11px;min-width:0}.stats-emoji-last small{color:#9aa190}.stats-emoji-fav{font-size:20px}
.emoji-suggestion-face,.stats-emoji-face,.stats-emoji-fav{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif}
form:has(> .emoji-suggestions){position:relative}.emoji-suggestions{position:absolute;z-index:20;left:6px;bottom:calc(100% + 4px);max-width:calc(100% - 12px);padding:4px;border:1px solid #d9d3c4;border-radius:8px;background:#fffdf7;box-shadow:0 6px 18px rgba(0,0,0,.14);font-size:12px}.emoji-suggestion{padding:5px 8px;border-radius:5px;cursor:pointer;color:#2d2a24}.emoji-suggestion[aria-selected=true],.emoji-suggestion:hover{background:#e4ecff;color:#1f4fb8}
/* Emoji picker (public/chat-emoji.js): smiley button inside the right end of chat inputs and the DM composer. */
.emoji-field{position:relative;display:flex;flex:1;min-width:0;align-self:stretch}.emoji-field>input,.emoji-field>textarea{flex:1;width:100%;min-width:0;padding-right:36px!important}.dm-compose .emoji-field{align-self:flex-end}
.emoji-button{position:absolute;right:3px;bottom:50%;transform:translateY(50%);display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:6px;background:none;color:#8a917f;cursor:pointer}.dm-compose .emoji-button{bottom:4px;transform:none;right:6px}.emoji-button:hover,.emoji-button[aria-expanded=true]{color:#c8643a;background:#f4ead9}.emoji-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.emoji-picker{position:fixed;z-index:2147483000;display:flex;flex-direction:column;border:1px solid #d9d3c4;border-radius:12px;background:#fffdf7;box-shadow:0 10px 30px rgba(0,0,0,.18);font-family:"Noto Sans",Verdana,sans-serif;overflow:hidden}.emoji-picker[hidden]{display:none}
.emoji-search{margin:8px 8px 4px;padding:7px 10px;border:1px solid #d6dacb;border-radius:8px;font:inherit;font-size:13px;background:#fff;min-width:0}.emoji-body{flex:1;overflow:auto;padding:0 6px 6px}.emoji-section h4{position:sticky;top:0;z-index:1;margin:0;padding:8px 4px 4px;font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#758067;background:#fffdf7}.emoji-favorites h4{color:#a07a1f}
.emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(36px,1fr))}.emoji-cell{position:relative;height:36px;padding:0;border:0;border-radius:6px;background:none;font-size:22px;line-height:1;cursor:pointer;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Twemoji Mozilla",sans-serif;-webkit-touch-callout:none;user-select:none}.emoji-cell:hover,.emoji-cell:focus-visible{background:#eef2e6;outline:none}.emoji-cell:focus-visible{box-shadow:inset 0 0 0 2px #c8643a}.emoji-favorite:after{content:"★";position:absolute;right:1px;bottom:0;font-size:9px;color:#d9a441;font-family:sans-serif}
.emoji-preview{display:flex;align-items:center;gap:8px;min-height:40px;padding:6px 10px;border-top:1px solid #ebe6d8;background:#f8f6ee;font-size:12px;color:#4d5c43}.emoji-preview-face{font-size:24px;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}.emoji-preview small{margin-left:auto;color:#a07a1f}.emoji-preview-hint{color:#7b8472;font-size:11px;line-height:1.4}.emoji-empty{padding:20px;text-align:center;font-size:12px;color:#7b8472}
/* The emoji button floats in the text box: no fill or border in any state (overrides the orange Send-button rules). */
.emoji-field>button.emoji-button,.emoji-field>button.emoji-button:hover,.emoji-field>button.emoji-button[aria-expanded=true]{background:transparent!important;border:0!important;box-shadow:none!important;min-height:0!important;padding:0!important;color:#8a917f}.emoji-field>button.emoji-button:hover,.emoji-field>button.emoji-button[aria-expanded=true]{color:#c8643a}.emoji-field>button.emoji-button:focus-visible{outline:2px solid #c8643a;outline-offset:-2px}
/* Community emoji (public/custom-emoji.js, chat-emoji.js): chat images, picker section, editor panel, My emoji, alerts. */
img.custom-emoji{display:inline-block;height:1.45em;width:auto;max-width:3em;vertical-align:-.35em;margin:0 1px;object-fit:contain}
.emoji-cell-image{width:26px;height:26px;object-fit:contain;vertical-align:middle;pointer-events:none}.emoji-suggestion-image{width:18px;height:18px;object-fit:contain;vertical-align:-4px}.emoji-preview-image{width:28px;height:28px;object-fit:contain;vertical-align:middle}
.emoji-community h4{display:flex;align-items:center;justify-content:space-between;gap:6px}.emoji-community-actions{display:flex;gap:4px;text-transform:none;letter-spacing:0}.emoji-community-actions button{padding:2px 7px;border:1px solid #d9d3c4;border-radius:6px;background:#fff;font-size:10px;font-weight:600;color:#7a4a2a;cursor:pointer}.emoji-community-actions button:hover{background:#f4ead9}.emoji-community-empty{margin:4px 4px 8px;font-size:11px;color:#7b8472}
.emoji-panel{position:absolute;left:76px;top:12px;z-index:4;width:min(236px,calc(100% - 96px));max-height:calc(100% - 52px);overflow-y:auto;background:#fafaf6;border:1px solid #d1d7c5;border-radius:10px;box-shadow:0 8px 35px #25341c26;font-family:"Noto Sans",Verdana,sans-serif}.emoji-panel[hidden]{display:none}.emoji-panel .panel-heading{padding:12px 14px 6px}.emoji-panel h2{margin:0;font-size:17px}.emoji-panel-body{padding:4px 14px 14px;font-size:12px;color:#4d5c43}
.emoji-status{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.3px;background:#eef0e8;color:#5d6a52}.emoji-status-pending{background:#fff3d6;color:#8c6a1d}.emoji-status-changes{background:#fde8dc;color:#a24b22}.emoji-status-approved{background:#e3f0da;color:#3f6a2a}.emoji-status-rejected,.emoji-status-retired{background:#f1e4e4;color:#8a3d3d}
.emoji-panel-note{padding:8px 10px;border-radius:8px;background:#fde8dc;color:#7a3a1c;line-height:1.5}.emoji-previews{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin:8px 0}.emoji-preview-box{display:flex;flex-direction:column;align-items:center;gap:4px;margin:0}.emoji-preview-box canvas{display:block;border-radius:6px;padding:6px;box-sizing:content-box}.emoji-preview-light canvas{background:#fffefb;border:1px solid #e1e4d8}.emoji-preview-dark canvas{background:#2b2f2a;border:1px solid #2b2f2a}.emoji-preview-checker canvas{image-rendering:pixelated;background:repeating-conic-gradient(#e6e8df 0 25%,#fff 0 50%) 0 0/16px 16px;border:1px solid #e1e4d8}.emoji-preview-box figcaption{font-size:10px;color:#7b8472}
.emoji-panel-help{line-height:1.55;color:#6a7560}.emoji-submit{display:flex;flex-direction:column;gap:8px;margin-top:6px}.emoji-submit label{display:flex;flex-direction:column;gap:4px;font-weight:600}.emoji-name-field{display:flex;align-items:center;gap:2px;font-family:monospace;font-size:14px}.emoji-name-field input{flex:1;min-width:0;padding:7px 8px;border:1px solid #cfd2c6;border-radius:6px;font:inherit}.emoji-name-check{margin:0;min-height:16px;font-size:11px;color:#a24b22}.emoji-name-check[data-ok=true]{color:#3f6a2a}.emoji-submit .primary{background:var(--orange);border-color:var(--orange);color:#fff}.emoji-discard{border:0;background:none;color:#8a3d3d;font-size:11px;text-decoration:underline;padding:2px}.emoji-panel-mine{display:inline-block;margin-top:10px;color:#7a4a2a;font-size:11px}
.my-emoji-dialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #d7dccf;border-radius:14px;background:#fafaf6;font-family:"Noto Sans",Verdana,sans-serif}.my-emoji-dialog::backdrop{background:#202a235c}.my-emoji-dialog .panel-heading{display:flex;justify-content:space-between;align-items:center;padding:14px 16px 4px}.my-emoji-dialog h2{margin:0;font-size:19px}.my-emoji-intro,.my-emoji-message{margin:4px 16px 10px;font-size:12px;line-height:1.5;color:#6a7560}.my-emoji-message{padding:8px 10px;border-radius:8px;background:#fff3d6;color:#7a5a12}.my-emoji-list{display:flex;flex-direction:column;gap:8px;padding:0 16px;max-height:55dvh;overflow:auto}.my-emoji{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid #e1e4d8;border-radius:10px;background:#fff}.my-emoji-image{width:48px;height:48px;object-fit:contain;background:repeating-conic-gradient(#eef0e8 0 25%,#fff 0 50%) 0 0/12px 12px;border-radius:6px}.my-emoji-text{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;font-size:13px}.my-emoji-note{margin:4px 0 0;font-size:11px;color:#7a3a1c}.my-emoji-open{font-size:12px;color:#7a4a2a;white-space:nowrap}.my-emoji-empty{font-size:12px;color:#7b8472}.my-emoji-actions{padding:12px 16px 16px;display:flex;justify-content:flex-end}.my-emoji-actions .primary{background:var(--orange);border-color:var(--orange);color:#fff}
.emoji-alert{display:flex;gap:10px;align-items:flex-start;padding:12px 12px 12px 14px;border:1px solid #d9d3c4;border-left:4px solid #c8643a;border-radius:10px;background:#fffdf7;box-shadow:0 10px 30px rgba(0,0,0,.18);font-family:"Noto Sans",Verdana,sans-serif;font-size:13px}.emoji-alert-approved{border-left-color:#5f8f45}.emoji-alert p{margin:4px 0;font-size:12px;color:#6a7560}.emoji-alert a{font-size:12px;color:#7a4a2a}
.emoji-queue{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}.emoji-queue-title{margin:16px 0 8px;font-size:14px}.emoji-review-card{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-start;padding:12px;border:1px solid #dcdfd3;border-radius:10px;background:#fff}.emoji-review-previews{display:flex;align-items:flex-end;gap:8px}.emoji-review-frame{display:grid;place-items:center;padding:6px;border-radius:6px;border:1px solid #e1e4d8}.emoji-review-frame img{object-fit:contain}.emoji-review-dark{background:#2b2f2a}.emoji-review-checker{background:repeating-conic-gradient(#e6e8df 0 25%,#fff 0 50%) 0 0/16px 16px}.emoji-review-checker img{image-rendering:pixelated}.emoji-review-info{flex:1;min-width:180px}.emoji-review-info h3{margin:0 0 4px;font-family:monospace}.emoji-review-meta,.emoji-review-note{margin:0 0 6px;font-size:12px;color:#6a7560}.emoji-review-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;width:100%}.emoji-review-actions label{display:flex;flex-direction:column;font-size:11px;gap:3px}.emoji-review-history{font-size:11px;color:#6a7560}#emoji-filter{margin:0 0 8px;padding:7px;border:1px solid #cfd2c6;border-radius:6px;width:min(320px,100%)}
/* Community → Emoji gallery (public/emoji-gallery.js), profile "Emoji by" card, Chat stats community emoji. */
#community-emoji{overflow:auto;padding:22px 24px 18px;background:#f2f3ed}.emoji-gallery-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}#canvas-browser .emoji-gallery-actions button,#canvas-browser .emoji-gallery-actions a{border:1px solid #d5dccb;background:#fafbf6;color:#59674e;padding:8px 11px;font-size:12px;border-radius:8px;text-decoration:none}#canvas-browser .emoji-gallery-actions [data-create]{background:var(--orange);border-color:var(--orange);color:#fff}
.emoji-gallery-tools{display:flex;gap:10px;margin-bottom:14px}.emoji-gallery-tools label:first-child{flex:1}#canvas-browser .emoji-gallery-tools input,#canvas-browser .emoji-gallery-tools select{height:38px;width:100%;margin:0;border:1px solid #cfd6c7;border-radius:8px;background:#fffefb;padding:0 10px;font:inherit;font-size:13px}
.emoji-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}#canvas-browser .emoji-gallery-tile{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #d9dfd0;border-radius:12px;background:#fdfdf9;text-align:left;min-width:0}#canvas-browser .emoji-gallery-tile:hover{background:#eef2e6}.emoji-gallery-tile img{flex:0 0 48px;width:48px;height:48px;object-fit:contain}.emoji-gallery-meta{display:flex;flex-direction:column;gap:2px;min-width:0}.emoji-gallery-meta strong{font-family:monospace;font-size:12px;color:#34412c;overflow-wrap:anywhere}.emoji-gallery-meta small{font-size:11px;color:#7b8472}.emoji-gallery-uses{color:#8c7134!important}
#canvas-browser .emoji-gallery-back{border:0;background:none;color:#59674e;font-size:13px;padding:4px 0;margin-bottom:10px}.emoji-gallery-card{display:grid;grid-template-columns:auto 1fr;gap:16px 24px;align-items:start;padding:20px;border:1px solid #d9dfd0;border-radius:14px;background:#fdfdf9}.emoji-gallery-big{grid-row:1/3;padding:12px;border-radius:12px;background:repeating-conic-gradient(#e6e8df 0 25%,#fff 0 50%) 0 0/16px 16px;border:1px solid #e1e4d8}.emoji-gallery-big img{display:block;width:192px;height:192px;image-rendering:pixelated}.emoji-gallery-sizes{display:flex;gap:8px;grid-column:2}.emoji-gallery-size{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;border:1px solid #e1e4d8}.emoji-gallery-dark{background:#2b2f2a}.emoji-gallery-light{background:#fff}.emoji-gallery-size img{object-fit:contain}
.emoji-gallery-info{grid-column:2;min-width:0}#canvas-browser .emoji-gallery-info h4{margin:0 0 8px;font-family:monospace;font-size:22px;color:#34412c;overflow-wrap:anywhere}.emoji-gallery-info p{margin:4px 0;font-size:13px;color:#5d6a52}.emoji-gallery-creator{font-weight:600;color:#7a4a2a}.emoji-gallery-info .emoji-gallery-actions{margin-top:14px}
@media(max-width:600px){#community-emoji{padding:18px 14px}.emoji-gallery-card{grid-template-columns:1fr;padding:14px}.emoji-gallery-big{grid-row:auto;justify-self:center}.emoji-gallery-big img{width:160px;height:160px}.emoji-gallery-sizes,.emoji-gallery-info{grid-column:1}.emoji-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pp-emoji-list{display:flex;flex-wrap:wrap;gap:8px}.pp-emoji-tile{display:flex;flex-direction:column;align-items:center;gap:4px;width:84px;padding:8px 4px;border:1px solid #e1e4d8;border-radius:10px;background:#fdfdf9;cursor:pointer}.pp-emoji-tile:hover{background:#eef2e6}.pp-emoji-tile img{width:40px;height:40px;object-fit:contain}.pp-emoji-tile small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:monospace;font-size:10px;color:#5d6a52}
button.stats-emoji-face{padding:0;border:0;background:none;cursor:pointer}.stats-emoji-face img{width:34px;height:34px;object-fit:contain;vertical-align:middle}img.custom-emoji{cursor:pointer}
/* Emoji draft page: Fill's brush settings must not hide under the Emoji panel (it sits where they usually open). */
.studio-workspace:has(#emoji-panel:not([hidden])) .brush-settings{left:calc(76px + min(236px,100% - 96px) + 12px);z-index:5}
@media(max-width:800px){.studio-workspace:has(#emoji-panel:not([hidden])) .brush-settings{left:58px;top:10px}}
/* Image logo (public/logo.svg, 1318 × 144, the owner's pxl.party cube and wordmark; scripts/build-logo.py). */
.brand-logo{--logo-height:28px;display:block;height:var(--logo-height);width:auto;max-width:none}
@media(max-width:900px){.brand-logo{--logo-height:24px}}
@media(max-width:600px){.brand-logo{--logo-height:19px}.brand+.connection-dot{margin-left:0}}
/* Gold members (src/gold.js): coin badge (unlike the staff crown/shield), gold name, profile chip. */
.chat-gold-badge svg,.chat-gold-medal svg{width:16px;height:16px}.chat-gold-badge:hover,.chat-gold-badge[aria-expanded=true]{background:#fff3c4}.chat-gold-medal{display:inline-flex;vertical-align:-3px}
.chat-gold-name,a.chat-gold-name,.chat-gold-name *{color:#8f5f00!important;font-weight:700}.pp-gold-name{color:#8f5f00}.pp-name .chat-gold-badge svg{width:22px;height:22px}
.pp-chip-gold{background:linear-gradient(110deg,#fff1bd,#ffe28a);color:#6b4600;border-color:#e9c45a!important;font-weight:700}
.staff-badge.gold{background:#fbefc8;color:#7a5200}
.emoji-locked{opacity:.55}.emoji-locked:before{content:"🔒";position:absolute;left:0;bottom:0;font-size:8px;line-height:1}.emoji-gold-chip{margin-left:6px;padding:1px 5px;border-radius:4px;background:#fff1bd;color:#7a5200;font-size:9px;letter-spacing:.3px}.emoji-gold-note{color:#7a5200!important}
.gold-invite{width:min(420px,calc(100vw - 24px));padding:22px 22px 18px;border:1px solid #e9c45a;border-radius:14px;background:linear-gradient(180deg,#fffaf0,#fdfdf8 40%);font-family:"Noto Sans",Verdana,sans-serif;color:#34412c}.gold-invite::backdrop{background:#202a235c}.gold-invite .eyebrow{display:block;color:#8f5f00;margin-top:6px}.gold-invite h2{margin:6px 0 8px;font-size:20px}.gold-invite p{font-size:13px;line-height:1.6;color:#5d6a52;margin:6px 0}.gold-invite ul{margin:8px 0 12px;padding-left:20px;font-size:13px;line-height:1.8}.gold-invite-coin{pointer-events:none}.gold-invite-coin svg{width:36px;height:36px}.gold-invite-soon{padding:8px 10px;border-radius:8px;background:#fff1bd;color:#6b4600!important}.gold-invite .gold-invite-join{background:#d99a00;border-color:#b07a00;color:#fff}.gold-invite .dialog-actions{display:flex;justify-content:flex-end;gap:8px}
.emoji-gold-join{margin-left:auto;padding:3px 9px;border:1px solid #d99a00;border-radius:6px;background:#ffd24d;color:#5a3a00;font-size:11px;font-weight:700;cursor:pointer}
/* Who-is-painting is a Gold perk: anonymous "Painter N" rows, hidden painters in Inspect, Gold prompts. */
.painters-gold{display:block;width:calc(100% - 24px);margin:0 12px 8px;padding:8px 10px;border:1px solid #e9c45a;border-radius:8px;background:linear-gradient(110deg,#fff1bd,#fffaf0);color:#6b4600;font-size:12px;font-weight:700;text-align:left;cursor:pointer}.painters-gold:before{content:"★ ";color:#d99a00}.painters-gold[hidden]{display:none}
.painter-anonymous .painter-name{color:#5d6a52;text-decoration:none;cursor:pointer}.hidden-painter{color:#7b8472;font-style:italic}
.gold-reveal{margin:4px 0 10px;padding:5px 10px;border:1px solid #d99a00;border-radius:6px;background:#fff1bd;color:#5a3a00;font-size:12px;font-weight:600;cursor:pointer}
.art-alert{border-left-color:#b3261e}.art-alert strong:before{content:"⚔ ";color:#b3261e}
/* World War territory panel (public/territory.js) */
.territory-list{list-style:none;margin:4px 12px;padding:0;display:grid;gap:8px}
.territory-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:4px 8px;font-size:12px}
.territory-name{display:flex;gap:5px;align-items:baseline;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:inherit;text-decoration:none}.territory-name:hover strong{text-decoration:underline}
.territory-rank{color:var(--muted);font-variant-numeric:tabular-nums;min-width:1.4em}
.territory-share{font-weight:700;font-variant-numeric:tabular-nums}
.territory-change{font-size:11px;font-variant-numeric:tabular-nums;min-width:58px;text-align:right}.territory-change[data-direction=up]{color:#2f7d32}.territory-change[data-direction=down]{color:#b3261e}
.territory-bar{grid-column:1/-1;height:6px;border-radius:3px;background:#eceee5;overflow:hidden}.territory-bar span{display:block;height:100%;background:#b94e29;border-radius:3px}
.territory-empty{font-size:12px;color:var(--muted)}
.territory-week{margin:4px 12px 12px;border-top:1px solid var(--line);padding-top:8px}.territory-week h3{font-size:13px;margin:4px 0}.territory-weekly{margin:4px 0;padding-left:20px;font-size:12px;line-height:1.6}
.territory-last{font-size:12px;font-weight:600;color:#6b4600;margin:8px 0 2px}.territory-last:before{content:"🏆 "}
.chat-level{display:inline-block;min-width:16px;padding:0 4px;border-radius:4px;background:#e8ecdf;color:#4b5b3e;font:700 9px/14px "Noto Sans",Verdana,sans-serif;text-align:center;vertical-align:1px;font-variant-numeric:tabular-nums}
.level-alert{border-left-color:#d99a00}.level-alert strong:before{content:"★ ";color:#d99a00}
.golden-alert{border-left-color:#d99a00;background:#fffbea}.golden-alert strong:before{content:"✨ "}.golden-won strong:before{content:"🏆 "}
.dm-system-avatar{display:inline-grid;place-items:center;border-radius:50%;background:#7a1f1a;color:#fff;font:800 11px "Noto Sans",Verdana,sans-serif;letter-spacing:-.5px;flex-shrink:0}
.chat-golden-tag{display:inline-flex;width:14px;height:14px;vertical-align:-2px;cursor:default}.chat-golden-tag svg{width:14px;height:14px}
.territory-golden{margin-left:4px;color:#b07a00;font-weight:700}.territory-golden-week{font-size:12px;color:#6b4600;margin:6px 0}
.gift-alert{border-left-color:#c8643a}.gift-alert strong:before{content:"🎁 "}
.inventory-gold{font-weight:600;margin:8px 0 12px}
.inventory-items{display:grid;gap:10px}
.inventory-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:12px;border:1px solid #e3d6a6;border-radius:10px;background:linear-gradient(110deg,#fffaf0,#fff6d9)}
.inventory-icon{display:grid;place-items:center;width:36px;height:36px}.inventory-icon svg{width:32px;height:32px}
.inventory-info{display:flex;flex-direction:column;gap:2px}.inventory-info small{color:#7c8573}
.inventory-actions{display:flex;gap:6px}
.inventory-gift{grid-column:1/-1;display:flex;gap:6px}.inventory-gift input{flex:1;min-width:0;padding:7px 9px;border:1px solid #cfd4c4;border-radius:6px}
.inventory-empty{color:#7c8573;font-size:13px}
.inventory-history{margin-top:14px;font-size:12px;color:#6a7560}.inventory-history ul{margin:6px 0;padding-left:18px}
.chat-message.chat-system{background:linear-gradient(90deg,#fff6d6,transparent);border-left:3px solid #d99a00;padding-left:6px}.chat-message.chat-system bdi{font-weight:700;color:#7a4a00}
#staff-golden .staff-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:8px 0}#staff-golden .staff-row label{display:inline-flex;align-items:center;gap:8px;font-weight:600}#staff-golden .staff-row input{margin:0}
#golden-today{font-weight:600}
/* Style items (src/inventory.js): chat name colours, painter tag previews, profile frames. Cosmetic only. */
.chat-name-rainbow,.chat-name-sunset,.chat-name-ocean{-webkit-background-clip:text;background-clip:text;font-weight:700}
.chat-name-rainbow,.chat-name-rainbow *,.chat-name-sunset,.chat-name-sunset *,.chat-name-ocean,.chat-name-ocean *{color:transparent!important;-webkit-text-fill-color:transparent;text-decoration-color:currentColor}
.chat-name-rainbow{background-image:linear-gradient(90deg,#e8413c,#f08c2e,#e6c21f,#3fae49,#2f8fd6,#7b5be0,#d74fb0,#e8413c);background-size:200% 100%;animation:rainbow-name 3s linear infinite}
.chat-name-sunset{background-image:linear-gradient(90deg,#e8413c,#f08c2e,#d74fb0)}
.chat-name-ocean{background-image:linear-gradient(90deg,#0f7fb8,#22b5c9,#2f5bd6)}
@keyframes rainbow-name{to{background-position:200% 0}}
@media (prefers-reduced-motion:reduce){.chat-name-rainbow{animation:none}.pp-frame-rainbow::before{animation:none}}
.pp-avatar.pp-frame-gold{background:linear-gradient(135deg,#fff3c4,#e2b23c,#fff3c4);box-shadow:0 10px 24px #d99a0040,0 0 0 2px #c48a00}
.pp-avatar.pp-frame-rainbow{position:relative;background:none;isolation:isolate}
.pp-avatar.pp-frame-rainbow::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:conic-gradient(#e8413c,#f08c2e,#e6c21f,#3fae49,#2f8fd6,#7b5be0,#d74fb0,#e8413c);animation:frame-hue 4s linear infinite}
@keyframes frame-hue{to{filter:hue-rotate(360deg)}}
.pp-avatar.pp-frame-pixel{border-radius:0;background:repeating-conic-gradient(#26341d 0 25%,#e9c46a 0 50%) 0 0/12px 12px;box-shadow:0 10px 24px #26341d30}.pp-avatar.pp-frame-pixel .pp-avatar-image{border-radius:0}
.inventory-icon:has(.inventory-preview-name,.inventory-preview-tag){width:auto;min-width:36px}
.inventory-preview-name{font-size:14px;white-space:nowrap}
.inventory-preview-tag{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border:1px solid #58664d80;border-radius:6px;background:#fafaf6;font:600 12px "Noto Sans",Verdana,sans-serif;color:#26341d;white-space:nowrap}
.inventory-preview-tag i{width:8px;height:8px;background:#b94e29}
.inventory-preview-tag.tag-gold{background:#fff1bd;border:2px solid #c48a00;color:#5a3a00}
.inventory-preview-tag.tag-neon{background:#14141f;border:2px solid #39ff88;color:#39ff88;box-shadow:0 0 6px #39ff88}
.inventory-preview-tag.tag-rainbow{background:#fff;border:2px solid transparent;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#e8413c,#f08c2e,#e6c21f,#3fae49,#2f8fd6,#7b5be0,#d74fb0) border-box}
.inventory-preview-frame{display:inline-block;padding:4px!important;border-radius:9px}.inventory-preview-frame .pp-avatar-image{display:block;width:26px!important;height:26px!important;border-radius:6px;background:#fff}
.inventory-item.equipped{border-color:#7fae63;background:linear-gradient(110deg,#f3fbef,#fffaf0)}
.inventory-equipped{align-self:flex-start;padding:0 6px;border-radius:4px;background:#e2f1d8;color:#3e6531;font-size:11px;font-weight:700}
#items-form{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}#items-form input,#items-form select{padding:7px 9px;border:1px solid #cfd4c4;border-radius:6px;font:inherit}
/* Wrapped gifts (public/inventory-ui.js) */
.inventory-item.wrapped{background:linear-gradient(110deg,#fff4ee,#fdeee6);border-color:#e8b9a4}
.inventory-gift-box{position:relative;display:block;width:34px;height:30px;margin-top:6px;border-radius:4px;background:#c8643a;box-shadow:inset 0 -6px 0 #a94f2a}
.inventory-gift-box::before{content:"";position:absolute;left:14px;top:0;width:6px;height:100%;background:#ffd34d}
.inventory-gift-box::after{content:"";position:absolute;left:-3px;top:-8px;width:40px;height:9px;border-radius:3px;background:#d97448;box-shadow:inset 17px 0 0 -11px #ffd34d,inset -17px 0 0 -11px #ffd34d;transform-origin:left bottom;transition:transform .5s ease}
.inventory-item.unwrapping .inventory-gift-box::after{transform:translate(4px,-14px) rotate(-28deg)}
.inventory-item.unwrapping .inventory-gift-box{animation:gift-shake .5s ease}
@keyframes gift-shake{20%{transform:rotate(-6deg)}40%{transform:rotate(6deg)}60%{transform:rotate(-4deg)}80%{transform:rotate(3deg)}}
@media (prefers-reduced-motion:reduce){.inventory-item.unwrapping .inventory-gift-box,.inventory-gift-box::after{animation:none;transition:none}}
.inventory-note{display:block;margin-top:3px;font-size:12px;color:#6b4a3a;font-style:italic;overflow-wrap:anywhere}
.inventory-gift-note{flex:2 1 160px!important}
.inventory-gift{flex-wrap:wrap}
.help-levels-table{border-collapse:collapse;margin:8px 0;font-size:13px;font-variant-numeric:tabular-nums}.help-levels-table th,.help-levels-table td{padding:4px 14px 4px 0;text-align:left;border-bottom:1px solid #e6e9df}.help-levels-table td:last-child,.help-levels-table th:last-child{text-align:right}
button.pp-chip-level{cursor:pointer;border:1px solid #cfd8c2;font:inherit;font-weight:700}button.pp-chip-level:hover{background:#e2e9d6}
/* Timelapse export (public/timelapse.js) */
.timelapse-dialog{width:min(560px,calc(100vw - 32px));border:1px solid #d6dacb;border-radius:12px;padding:20px;background:#fafaf6;font-family:"Noto Sans",Verdana,sans-serif}
.timelapse-dialog h2{margin:0 0 6px;font-size:18px}.timelapse-info{font-size:13px;color:#5d6656}
.timelapse-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:10px 0}.timelapse-field{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600}.timelapse-field select{padding:6px 8px}
.timelapse-status{font-size:13px;min-height:1.2em}.timelapse-result{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.timelapse-preview{max-width:100%;max-height:360px;image-rendering:pixelated;border:1px solid #d6dacb;border-radius:6px}.timelapse-download{font-weight:700}
.replay-export{font-weight:600}
.rules-points{margin:6px 0 8px;padding-left:20px;display:grid;gap:4px}.rules-points strong{color:#7a1f1a}
.rules-list .rules-points{padding-left:20px;margin:8px 0 10px}.rules-list .rules-points li{padding:2px 0;border-bottom:0;font-size:inherit;line-height:1.5;width:auto}.rules-list .rules-points li::marker{color:#7a1f1a}
.rules-list .rules-points li{font-size:14px;line-height:1.6}
/* Timelapse start/end handles: two range inputs on one track; only their thumbs take the pointer. */
.timelapse-track{position:relative;height:28px;margin:12px 4px 4px;--a:0%;--b:100%}
.timelapse-track::before{content:"";position:absolute;left:0;right:0;top:12px;height:5px;border-radius:3px;background:linear-gradient(90deg,#e4e7dc var(--a),#c8643a var(--a),#c8643a var(--b),#e4e7dc var(--b))}
.timelapse-track input{position:absolute;left:0;top:4px;width:100%;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none;height:20px}
.timelapse-track input::-webkit-slider-runnable-track{background:none}
.timelapse-track input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:18px;height:18px;border-radius:50%;background:#fff;border:3px solid #c8643a;cursor:grab}
.timelapse-track input::-moz-range-thumb{pointer-events:auto;width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid #c8643a;cursor:grab}
.timelapse-times{font-size:13px;font-weight:600;margin:4px 0}.timelapse-presets{display:flex;flex-wrap:wrap;gap:6px}.timelapse-presets button{padding:4px 9px;font-size:12px}
/* Account → Collection (public/collection-ui.js): ink drops and what they buy. */
.ink-drop{width:.8em;height:1em;fill:#2b3a67;flex-shrink:0;vertical-align:-.12em}
.ink-amount{display:inline-flex;align-items:center;gap:4px;font-weight:700;color:#2b3a67;font-variant-numeric:tabular-nums}
.collection-balance{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px 18px;margin:8px 0 14px;padding:12px 14px;border:1px solid #c9d2e8;border-radius:10px;background:linear-gradient(110deg,#f3f6ff,#fbfcff)}
.collection-balance small{display:block;color:#5f6a86;font-size:12px}
.ink-balance{font-size:26px}
.collection-earn{flex:1 1 260px;font-size:12.5px;color:#4a5570}.collection-earn summary{cursor:pointer;font-weight:700;color:#2b3a67}
.collection-earn ul{margin:6px 0;padding-left:18px;line-height:1.55}.collection-earn .account-help{margin:4px 0 0}
.collection-section h3{margin:14px 0 6px;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:#5f6956}
.collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}
.collection-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:10px 12px;border:1px solid #e3d6a6;border-radius:10px;background:linear-gradient(110deg,#fffaf0,#fff6d9)}
.collection-item.owned{border-color:#7fae63;background:linear-gradient(110deg,#f3fbef,#fffaf0)}
.collection-item .inventory-icon:has(.inventory-preview-name,.inventory-preview-tag){width:auto;min-width:36px;max-width:132px;overflow:hidden}
.collection-info{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.collection-info small{color:#7c8573;font-size:11.5px}.collection-short{color:#9a5b2a!important}
.collection-history{list-style:none;padding:0!important}.collection-history li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;padding:3px 0;border-bottom:1px solid #eef0e8}
.collection-history time{color:#8a937f}.ink-plus{color:#3e6531;font-weight:700}.ink-minus{color:#8b3a2a;font-weight:700}
.ink-alert{border-left-color:#2b3a67}.ink-alert-title{display:inline-flex;align-items:center;gap:5px}.ink-alert-title .ink-drop{width:11px;height:14px;fill:#2b3a67}.ink-alert-reasons{margin:4px 0;padding-left:16px;font-size:12.5px}
/* Header ink drops counter (public/account.js): opens Account → Collection. */
.header-ink{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border:1px solid #c9d2e8;border-radius:999px;background:#f3f6ff;color:#2b3a67!important;font-weight:700;font-size:13px;font-variant-numeric:tabular-nums;text-decoration:none;white-space:nowrap}
.header-ink:hover{background:#e7ecfb}.header-ink .ink-drop{width:10px;height:13px;fill:#2b3a67}
/* Header account button (public/account.js): your picture and name, no separate "Account" word. */
.account-link:has(.header-avatar){gap:7px;padding:3px 10px 3px 3px;border:1px solid var(--line);border-radius:999px;text-decoration:none!important;transition:background .15s}
.account-link:has(.header-avatar):hover{background:#f1f3ea}
.header-avatar{width:26px;height:26px;border-radius:50%;background:#fff;border:1px solid #d5decc;image-rendering:pixelated;object-fit:cover;flex-shrink:0}
.header-initial{display:inline-grid;place-items:center;background:#e8eedf;color:#3e5a2f;font:700 13px/1 Arial,Helvetica,sans-serif;box-sizing:border-box}
@media(max-width:340px){.account-link:has(.header-avatar) .header-username{display:none}.account-link:has(.header-avatar){padding:3px}}
.collection-note{grid-column:1/-1;margin-top:-2px;padding-top:6px;border-top:1px dashed #e8dcb4;color:#7c8573;font-size:11.5px}
.ink-alert-first{margin:4px 0;font-size:12.5px;color:#2b3a67;font-weight:600}

/* Pumpkin painter tag (limited, Halloween 2026; drawn on the canvas by public/painter-activity.js). */
.inventory-preview-tag.tag-pumpkin{background:#2b1a0e;border:2px solid #ff7a1a;color:#ffb066}.inventory-preview-tag.tag-pumpkin:after{content:"";display:inline-block;width:13px;height:13px;margin-left:4px;vertical-align:-2px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='6' y='0' width='2' height='3' fill='%234f8a2b'/%3E%3Cellipse cx='7' cy='8' rx='6.5' ry='5.5' fill='%23ff7a1a'/%3E%3Cpath d='M3 7l2-2 1 2zM8 7l1-2 2 2zM3 9h8l-2 2.5H5z' fill='%232b1a0e'/%3E%3C/svg%3E") center/contain no-repeat}
.collection-limited{display:inline-block;padding:1px 6px;border-radius:4px;background:#2b1a0e;color:#ffb066;font-size:11px;font-weight:700}
/* Notices (mentions, art alerts, gifts, levels, ink drops) sit left of an open Colors panel instead of covering its
   swatches while you paint (2026-10-27). Phones: the panel covers the screen anyway. */
@media(min-width:801px){body:has(#color-panel:not([hidden])) #mention-alerts,body.world-colors-open #mention-alerts{right:232px}}
/* Notices never block what is under them: only their buttons, links and fields take clicks and taps; the rest passes
   through to the canvas, tool rail or panel close button underneath (2026-10-27). */
#mention-alerts{pointer-events:none}#mention-alerts :is(a,button,input,textarea,select,summary,label){pointer-events:auto}

/* Golden pixel announcements turned off in Account → Preferences (public/golden-pixel.js). */
.hide-golden-alerts .chat-golden,.hide-golden-alerts .chat-golden-tag{display:none}
.bucket-alert{border-left-color:#2f6b3b}


/* No-bots warning dialog (public/no-bots.js, owner 2026-10-28). */
.fair-play-dialog { max-width: 30rem; border-top: 6px solid #c62828; }
.fair-play-dialog h2 { color: #b71c1c; }
.fair-play-dialog [data-paused] { font-weight: 700; }
.fair-play-dialog .fair-play-warning { background: #fff4e5; border: 1px solid #f0a020; border-radius: 8px; padding: 10px 12px; color: #6b3a00; font-weight: 600; }
.fair-play-dialog .fair-play-warning::before { content: "⚠ "; }

/* Moderation → Ink drops ranking (public/moderation.js loadInkTop, owner 2026-10-28). */
#ink-top table { width: 100%; border-collapse: collapse; }
#ink-top th, #ink-top td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #0001; }
#ink-top td:first-child, #ink-top td:last-child, #ink-top th:last-child { font-variant-numeric: tabular-nums; }
#ink-top td:last-child, #ink-top th:last-child { text-align: right; }
#ink-top .link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
#staff-ink .staff-row { align-items: center; gap: 12px; }

/* Canvas browser card features (public/canvas-browser.js, owner 2026-10-28): No bots and templates. */
#canvas-browser .browser-features{list-style:none;margin:2px 0 8px;padding:0;display:flex;flex-wrap:wrap;gap:4px 10px}
#canvas-browser .browser-feature{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;line-height:1.3;border-radius:999px;padding:2px 8px 2px 4px}
#canvas-browser .browser-feature[hidden]{display:none}
#canvas-browser .browser-feature-icon{display:inline-flex;width:18px;height:18px;flex:none}
#canvas-browser .browser-feature-icon svg{width:18px;height:18px}
#canvas-browser .browser-feature-fair-play{background:#fdecea;color:#8e1c1c}
#canvas-browser .browser-feature-templates{background:#e8f0fb;color:#1f4f8f}

/* Frontline on World War (public/frontline.js, owner 2026-10-28): rainbow zone, banner, standings, pins and result card.
   Stacking in the canvas area: templates 1, zone and band 2, pins and pin card 3, then chat and panels (4+) cover them. */
@property --frontline-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes frontline-spin { to { --frontline-angle: 360deg; } }
@keyframes frontline-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.frontline-zone { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; box-sizing: border-box; border: 6px solid transparent; border-radius: 6px;
  background: conic-gradient(from var(--frontline-angle), #ff3b3b, #ff9f1a, #ffe11a, #3ddc4a, #22c7e8, #3b6dff, #b14bff, #ff3b3b) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  animation: frontline-spin 1.6s linear infinite; filter: drop-shadow(0 0 6px #fff8) drop-shadow(0 0 10px #ff60f080); }
.frontline-zone[data-phase="soon"] { animation: frontline-spin 4s linear infinite, frontline-pulse 1.2s ease-in-out infinite; }
.frontline-zone[hidden] { display: none; }
.frontline-band { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; box-sizing: border-box; border: 2px dashed #7a3cf0; border-radius: 4px; box-shadow: 0 0 0 1px #fffc, inset 0 0 0 1px #fffc; }
.frontline-band[hidden] { display: none; }
.frontline-pins { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; } /* under the Brush button and tool rail, which come later in the page */
.frontline-pins[hidden] { display: none; }
.frontline-pin { position: absolute; left: 0; top: 0; margin: -38px 0 0 -16px; width: 32px; height: 38px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
.frontline-pin::after { content: ''; position: absolute; left: 11px; bottom: 0; border: 5px solid transparent; border-top: 8px solid #7a3cf0; }
.frontline-pin img, .frontline-pin span { display: block; width: 28px; height: 28px; margin: 0 2px; border-radius: 6px; border: 2px solid #7a3cf0; background: #fff; image-rendering: pixelated; object-fit: cover; font: 700 9px/28px system-ui, sans-serif; text-align: center; color: #3b1d78; box-shadow: 0 2px 6px #0004; }
.frontline-pin.frontline-upset img, .frontline-pin.frontline-upset span { border-color: #f0a020; }
.frontline-pin.frontline-upset::after { border-top-color: #f0a020; }
.frontline-card { position: absolute; z-index: 3; display: flex; gap: 10px; align-items: flex-start; width: 260px; padding: 12px; border-radius: 12px; background: #fffef8; box-shadow: 0 8px 28px #0003; border: 1px solid #0001; font-size: 13px; }
.frontline-card[hidden] { display: none; }
.frontline-card p { margin: 3px 0; }
.frontline-card .frontline-emblem { border-radius: 8px; image-rendering: pixelated; flex: none; border: 1px solid #0002; }
.frontline-card .icon-button { position: absolute; top: 4px; right: 4px; }
.frontline-share { font-weight: 700; }
.frontline-chip { display: inline-block; margin: 2px 6px 2px 0; padding: 1px 8px; border-radius: 999px; background: #fff1d6; color: #8a4b00; font-size: 11px; font-weight: 700; }
.frontline-sub { display: block; color: #5d6457; font-size: 12px; }
.frontline-banner { position: fixed; z-index: 60; top: 64px; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: min(560px, calc(100vw - 24px));
  padding: 10px 14px; border-radius: 14px; color: #fff; box-shadow: 0 8px 24px #0005; font-size: 14px; border: 3px solid transparent;
  background: linear-gradient(#1d1630f2, #1d1630f2) padding-box, conic-gradient(from var(--frontline-angle), #ff3b3b, #ff9f1a, #ffe11a, #3ddc4a, #22c7e8, #3b6dff, #b14bff, #ff3b3b) border-box;
  animation: frontline-spin 3s linear infinite; }
.frontline-banner[hidden] { display: none; }
.frontline-banner .frontline-sub { color: #d7d0ea; flex-basis: 100%; }
.frontline-banner .icon-button { color: #fff; margin-left: auto; }
.frontline-go { background: #fff; color: #2a1b52; border: 0; border-radius: 999px; padding: 4px 12px; font-weight: 700; cursor: pointer; }
.frontline-standings { flex-basis: 100%; list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 3px; }
.frontline-standings li { display: grid; grid-template-columns: 64px 1fr 48px; align-items: center; gap: 8px; font-size: 12px; }
.frontline-standings .frontline-bar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #ffe11a, #ff60f0); min-width: 2px; }
.frontline-standings .frontline-empty { display: block; color: #d7d0ea; }
.frontline-alert strong { color: #5b2bbf; }
@media (prefers-reduced-motion: reduce) { .frontline-zone, .frontline-banner { animation: none; } }

/* /me actions in chat (owner, 2026-10-28): "✱ name does something", italic like Discord. */
.chat-action{font-style:italic;color:#5b3f8c;font-synthesis:style;font-synthesis-style:auto} /* the site turns synthesis off; chat fonts load no italic face, so let the browser slant it */
.chat-action time,.chat-action .chat-badge{font-style:normal}
.chat-action .chat-profile,.chat-action bdi,.chat-action > a:not([href*="#x="]){font-weight:700}
.chat-action-mark{color:#8a6bd1;font-style:normal;font-weight:700}

/* Discord-style chat formatting (public/chat-format.js, owner 2026-10-28). Italic may be synthesized (the site sets
   font-synthesis:none and loads no italic face). */
.chat-message em,#world-chat-log em{font-style:italic;font-synthesis:style;font-synthesis-style:auto}
.chat-code{font:12px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#eef0e8;border:1px solid #d8dccf;border-radius:4px;padding:0 4px}
.chat-spoiler{background:#3a3f37;color:transparent;border-radius:3px;padding:0 3px;cursor:pointer;transition:background .15s}
.chat-spoiler *{color:transparent!important;background:transparent!important}
.chat-spoiler img{visibility:hidden}
.chat-spoiler:hover{background:#4a5046}
.chat-spoiler:focus-visible{outline:2px solid #7a3cf0;outline-offset:1px}
.chat-spoiler.revealed{background:#e3e6dc;color:inherit;cursor:text}
.chat-spoiler.revealed *{color:inherit!important}
.chat-spoiler.revealed img{visibility:visible}

/* Templates panel redesign (owner-approved review, 2026-10-28; public/canvas-templates.js). */
.template-add{display:grid;gap:4px;margin-bottom:10px}.template-add[hidden]{display:none}
.template-add [data-add]{justify-self:start}
.template-add .painters-help{margin:0;font-size:11px}
.template-showing{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:#5f6956;font-weight:700}
.template-active-actions{display:flex;gap:6px;flex-wrap:wrap}
.template-display-settings{font-size:12px;margin-top:2px}
.template-display-settings > summary{cursor:pointer;color:#5b7148;font-weight:600}
.template-display-settings[open]{display:grid;gap:6px}
.template-filter{display:flex;gap:6px;margin:0 0 6px}.template-filter[hidden]{display:none}
.template-filter input{flex:1;min-width:0;width:auto}.template-filter select{flex:none;width:auto}
.template-list{max-height:min(46vh,420px);overflow-y:auto;overscroll-behavior:contain;padding-right:2px}
.template-item{padding:6px 8px}
.template-row{gap:6px}
.template-show{min-width:0;width:auto;padding:3px 7px;font-size:12px}
.template-thumb{flex:none;width:36px;height:36px;object-fit:contain;image-rendering:pixelated;border-radius:6px;background:repeating-conic-gradient(#eceee7 0 25%,#fafaf6 0 50%) 50%/8px 8px;border:1px solid #e3e7dc}
.template-info{flex:1}
.template-actions{display:flex;align-items:center;gap:4px;flex:none;position:relative}
.template-actions button{padding:3px 7px;font-size:12px}
.template-go{display:inline-flex;align-items:center;padding:3px 5px!important}.template-go svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.template-info small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.template-tools{margin:0;position:static}
.template-tools > summary{list-style:none;padding:2px 8px;border:1px solid #d9decf;border-radius:6px;font-weight:700;color:#4b5a40}
.template-tools > summary::-webkit-details-marker{display:none}
.template-menu[hidden]{display:none}
.template-menu{display:grid;gap:8px;margin-top:8px;padding:8px;background:#f6f8f2;border:1px solid #e3e7dc;border-radius:8px}
.template-edit{display:flex;align-items:end;gap:6px}.template-edit label{flex:1;margin:0}
.template-move-name{display:flex;align-items:center;gap:4px;font-size:12px}.template-move-name[hidden]{display:none}
.template-move-name input{width:140px}
.template-move-note{flex-basis:100%;color:#6b7563;font-size:11px}
.template-move-bar{flex-wrap:wrap;max-width:min(420px,calc(100% - 8px))}
/* Canvases list (owner, 2026-10-28): World War and the Open World first, then this heading over the user-owned canvases. */
#canvas-browser h3.browser-section{grid-column:1/-1;margin:8px 0 -2px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6c7564}
#canvas-browser h3.browser-section[hidden]{display:none}
/* Favorite canvases (owner, 2026-10-28): a star in each card's corner; favorites get a gold edge. */
#canvas-browser .browser-card{position:relative}
#canvas-browser .browser-favorite{position:absolute;top:8px;right:8px;width:32px;height:32px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:#9aa091;font-size:20px;line-height:1;cursor:pointer}
#canvas-browser .browser-favorite:hover{background:#f1f2ea;color:#c99a06}
#canvas-browser .browser-favorite[aria-pressed=true]{color:#e0a800}
#canvas-browser .browser-favorite:focus-visible{outline:2px solid #e07a3f;outline-offset:1px}
#canvas-browser .browser-favorite[hidden]{display:none}
#canvas-browser .browser-card.favorite{border-color:#e6c86a}
#canvas-browser .browser-card-heading{padding-right:30px}
/* Favorite star beside the canvas name (owner, 2026-10-28; public/canvas-favorite.js). */
header .canvas-heading .canvas-favorite{width:32px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;background:transparent;color:#8b9183;cursor:pointer;flex-shrink:0}
header .canvas-heading .canvas-favorite[hidden]{display:none}
header .canvas-heading .canvas-favorite svg{width:20px;height:20px;fill:none}
header .canvas-heading .canvas-favorite:hover{color:#c99a06;background:rgba(0,0,0,.04)}
header .canvas-heading .canvas-favorite[aria-pressed=true]{color:#c58c00}
header .canvas-heading .canvas-favorite[aria-pressed=true] svg{fill:#f2b600}
header .canvas-heading .canvas-favorite:focus-visible{outline:2px solid #e07a3f;outline-offset:1px}
/* With the star, the name no longer stretches: the star sits right after it (the heading itself still fills the row). */
header .canvas-heading:has(.canvas-favorite:not([hidden])) h1{flex:0 1 auto}

/* Emoji editor "In chat" previews (owner, 2026-10-28): a chat line on light and dark, the emoji at chat size, smooth. */
.emoji-previews{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.emoji-preview-box{align-items:stretch}
.emoji-chat-sample{margin:0;padding:4px 8px;border-radius:6px;font-size:12px;line-height:1.7;white-space:nowrap;overflow:hidden;text-align:center}
.emoji-preview-light .emoji-chat-sample{background:#fffefb;border:1px solid #e1e4d8;color:#26301f}
.emoji-preview-dark .emoji-chat-sample{background:#2b2f2a;border:1px solid #2b2f2a;color:#eef0e8}
.emoji-chat-sample img.custom-emoji{cursor:default;pointer-events:none}
.emoji-chat-sample img.custom-emoji:not([src]){visibility:hidden}
.emoji-preview-box figcaption{text-align:center}
/* Requests to paint waiting for this canvas's owner (owner, 2026-10-29; app.js setCanvasAccess). */
#settings{position:relative}
#settings .settings-pending{position:absolute;top:-3px;right:-5px;min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:#c2410c;color:#fff;font:700 10px/16px "Noto Sans",Verdana,sans-serif;text-align:center;pointer-events:none}
#settings .settings-pending[hidden]{display:none}
/* Open World card: the turning pixel-art globe (scripts/make-globe-gif.mjs), shown at 2×. */
.browser-world .browser-globe{display:block;width:88px;height:88px;image-rendering:pixelated}
/* Pixel inspector (owner, 2026-10-29; public/pixel-inspect.js): header, current color and painter, actions, timeline. */
dialog.px-inspect{width:min(440px,calc(100vw - 24px));max-height:min(640px,calc(100vh - 32px));padding:0;border:1px solid #d4d8cc;border-radius:14px;background:#fbfbf8;color:#262b24;box-shadow:0 18px 60px #1f281a40;display:flex;flex-direction:column;overflow:hidden}
dialog.px-inspect:not([open]){display:none}
dialog.px-inspect::backdrop{background:#1d241a55}
.px-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px 12px}
.px-head h2{margin:2px 0 0;font-size:20px;letter-spacing:-.3px}
.px-eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;color:#7d8576}
.px-where{margin:2px 0 0;font-size:12px;color:#6b7364}
.px-close{width:32px;height:32px;font-size:20px;line-height:1;padding:0;border-radius:8px}
.px-body{padding:12px 18px 18px;overflow:auto;border-top:1px solid #e3e6dc}
.px-loading,.px-empty,.px-error{font-size:13px;color:#6b7364;margin:6px 0 12px}
.px-error{color:#a33a1f}
.px-now{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;padding:12px;border:1px solid #e3e6dc;border-radius:12px;background:#fff}
.px-current{display:flex;align-items:center;gap:10px}
.px-swatch-large{width:44px;height:44px;border-radius:10px;border:1px solid #0000001f;flex:none}
.px-color-label{display:flex;flex-direction:column;gap:2px;min-width:0}
.px-color-label strong{font-size:14px}
.px-color-label code{font-size:11px;color:#6b7364}
.px-painter{border-left:1px solid #e3e6dc;padding-left:14px;min-width:0}
.px-painter-detail{display:flex;flex-direction:column;gap:3px;min-width:0}
.px-painter-line{margin:0;font-size:12px;color:#6b7364}
.px-person{display:flex;align-items:center;gap:8px;min-width:0}
.px-avatar{border-radius:50%;object-fit:cover;background:#e8ebe1;flex:none;image-rendering:pixelated;box-shadow:0 0 0 1px #00000024}
.px-person-large .px-avatar{width:36px;height:36px}
.px-person-small .px-avatar{width:22px;height:22px}
.px-avatar-empty{display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#6b7364}
.px-person-large .px-avatar-empty{font-size:15px}
.px-name{font-weight:700;color:#2d4a26;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.px-name:hover{text-decoration:underline}
.px-person-large .px-name{font-size:15px}
.px-person-small .px-name{font-size:13px}
.px-hidden{font-weight:600;color:#7d8576;font-style:italic}
.px-gold{margin:10px 0 0}
.px-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.px-action{font-size:12px;padding:6px 11px;border-radius:8px}
.px-report{margin-left:auto;color:#a33a1f}
.px-history-head{display:flex;align-items:baseline;justify-content:space-between;margin:16px 0 6px}
.px-history-head h3{margin:0;font-size:14px}
.px-count{font-size:11px;color:#7d8576}
.px-timeline{list-style:none;margin:0;padding:0 0 0 6px;position:relative}
.px-timeline::before{content:"";position:absolute;left:11px;top:10px;bottom:10px;width:2px;background:#e3e6dc}
.px-timeline li{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:7px 0}
.px-dot{width:12px;height:12px;border-radius:50%;border:2px solid #fbfbf8;box-shadow:0 0 0 1px #0000002e;position:relative;z-index:1}
.px-entry{display:flex;flex-direction:column;gap:2px;min-width:0}
.px-what{font-size:11px;color:#6b7364}
.px-color-name{font-weight:600;color:#3c4537}
.px-when{font-size:11px;color:#7d8576;white-space:nowrap}
.px-latest .px-entry .px-name{color:#a8471f}
.px-now-chip{display:inline-block;margin-left:2px;padding:0 6px;border-radius:999px;background:#fbe3d6;font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#a8471f;vertical-align:1px}
.px-swatch[data-transparent=true],.px-dot[data-transparent=true]{background:repeating-conic-gradient(#d9ddd4 0 25%,#fff 0 50%) 0 0/8px 8px!important}
@media(max-width:480px){.px-now{grid-template-columns:1fr}.px-painter{border-left:0;padding-left:0;border-top:1px solid #e3e6dc;padding-top:10px}}
/* TV Room (owner, 2026-10-29; public/tv-room.js): the screen on the locked TV, and the bar. */
.tv-screen{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none;z-index:1;background:#000;overflow:hidden}
.tv-power{position:absolute;left:0;top:0;pointer-events:none;z-index:1;background:#ff0000}.tv-power[hidden]{display:none}
.tv-screen[hidden]{display:none}
.tv-screen video,.tv-screen canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.tv-screen video{object-fit:contain;background:#000} /* letterboxed: some films are wider than 4:3 */
.tv-screen canvas{image-rendering:pixelated}
.tv-screen video[hidden],.tv-screen canvas[hidden]{display:none}
/* YouTube films: YouTube's own player, the whole screen, clickable; kept loaded (invisible) while paused off screen. */
.tv-youtube{position:absolute;inset:0;pointer-events:auto}.tv-youtube iframe{width:100%;height:100%;border:0;display:block}
.tv-youtube[hidden]{display:block;visibility:hidden;pointer-events:none}
.tv-youtube-allow{position:absolute;left:50%;top:35%;transform:translate(-50%,-50%);pointer-events:auto;max-width:90%;padding:6px 12px;border:1px solid #fff;border-radius:8px;background:#101010e6;color:#fff;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.tv-youtube-allow:hover{background:#c62828}.tv-youtube-allow[hidden]{display:none}
.tv-bar{position:absolute;top:10px;left:50%;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:10px;max-width:calc(100% - 140px);padding:6px 8px 6px 12px;border:1px solid #d5d9cc;border-radius:12px;background:#fbfbf8ee;box-shadow:0 6px 22px #1f281a24;font-size:12px}
.tv-now{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4b5446}
.tv-live{display:inline-block;padding:1px 6px;border-radius:4px;background:#c62828;color:#fff;font-size:9px;font-weight:800;letter-spacing:.08em;vertical-align:1px}
.tv-title{font-weight:700;color:#26301f;text-decoration:none}a.tv-title:hover{text-decoration:underline}
.tv-next{color:#7d8576}
.tv-controls{display:flex;align-items:center;gap:6px;flex:none}
.tv-controls button{font-size:12px;padding:4px 9px;border-radius:7px;line-height:1.3}
.tv-sound{min-width:34px}.tv-skip-button{min-width:30px;display:inline-flex;align-items:center;justify-content:center}.tv-skip-button svg{width:14px;height:14px}.tv-skip-button[hidden]{display:none}
.tv-volume{width:80px}.tv-volume[hidden]{display:none}
.tv-tap{font-weight:700}.tv-tap[hidden]{display:none}
/* Next-film vote (public/tv-room.js) */
.tv-ballot{position:absolute;top:58px;left:50%;transform:translateX(-50%);z-index:5;width:min(560px,calc(100% - 140px));padding:8px 10px;border:1px solid #d5d9cc;border-radius:12px;background:#fbfbf8ee;box-shadow:0 6px 18px #1d241a1f;font-size:12px}
.tv-ballot[hidden]{display:none}
.tv-ballot-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.tv-ballot-close{flex:none;border:0;background:none;padding:0 4px;font-size:18px;line-height:1;color:#6b7364}
.tv-vote{font-variant-numeric:tabular-nums}.tv-vote.active{background:#e6f0e2;border-color:#2f6b3b}
.tv-ballot-head{margin:0 0 6px;color:#4b5446;font-weight:700;font-variant-numeric:tabular-nums}
.tv-ballot-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:6px}
.tv-choice{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 9px;border-radius:8px;font-size:12px;text-align:left;background:#fff;min-width:0}
.tv-choice-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tv-choice-votes{flex:none;min-width:22px;padding:1px 6px;border-radius:10px;background:#eef1e8;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
.tv-choice[aria-pressed=true]{border-color:#2f6b3b;background:#e6f0e2;box-shadow:inset 0 0 0 1px #2f6b3b}
.tv-choice.won{border-color:#c62828;background:#fdecea}
.tv-choice:disabled{opacity:1;cursor:default}
/* Suggest a film (public/tv-room.js) */
.tv-suggest-dialog{width:min(480px,calc(100vw - 32px));border:1px solid #d5d9cc;border-radius:12px;padding:20px 22px;background:#fbfbf8;color:#26301f}
.tv-suggest-dialog::backdrop{background:#1d241a55}
.tv-suggest-dialog h2{margin:0 0 8px;font-size:19px}.tv-suggest-dialog h3{margin:16px 0 6px;font-size:14px}
.tv-suggest-help{margin:0 0 12px;font-size:13px;line-height:1.5;color:#4b5446}
.tv-suggest-dialog label{display:grid;gap:5px;font-size:13px;font-weight:700}
.tv-suggest-dialog input{font:inherit;font-weight:400;padding:8px 10px;border:1px solid #cfd3c5;border-radius:7px;background:#fff}
.tv-suggest-message{min-height:18px;margin:8px 0;font-size:13px}.tv-suggest-message.ok{color:#2f6b3b}.tv-suggest-message.error{color:#b3261e}
.tv-suggest-buttons{display:flex;justify-content:flex-end;gap:8px}
.tv-mine-list{margin:0;padding:0;list-style:none;display:grid;gap:5px;font-size:13px}
.tv-mine-status{font-size:11px;padding:1px 7px;border-radius:9px;background:#eef1e8;color:#4b5446}
.tv-mine.added .tv-mine-status{background:#e6f0e2;color:#2f6b3b}.tv-mine.declined .tv-mine-status{background:#fdecea;color:#b3261e}
.tv-mine-reason{color:#6b7364;font-size:12px}
@media(max-width:700px){.tv-ballot{top:66px;left:62px;right:8px;transform:none;width:auto;padding:6px 8px}.tv-ballot-list{grid-template-columns:1fr;gap:4px}.tv-choice{padding:4px 8px}}
@media(max-width:700px){.tv-bar{top:6px;width:max-content;max-width:calc(100% - 16px);flex-wrap:wrap;gap:6px}.tv-controls{flex:0 1 100%;flex-wrap:wrap;min-width:0}.tv-volume{width:60px}} /* the controls wrap instead of running off a phone's screen (owner, 2026-10-30) */
.tv-sound{display:inline-flex;align-items:center;justify-content:center}.tv-sound svg{width:16px;height:16px}
/* Cookie consent (owner, 2026-10-29; public/consent.js) and the Privacy & cookies page (public/privacy.html). */
dialog.consent-dialog{width:min(520px,calc(100vw - 24px));padding:22px 22px 16px;border:1px solid #d4d8cc;border-radius:14px;background:#fbfbf8;color:#262b24;box-shadow:0 18px 60px #1f281a40;font-size:14px;line-height:1.55}
dialog.consent-dialog::backdrop{background:#1d241a66}
.consent-dialog h2{margin:0 0 8px;font-size:20px}
.consent-dialog p{margin:0 0 10px}
.consent-summary{margin:0 0 10px;padding-left:20px}
.consent-purposes{display:grid;gap:10px;margin:0 0 10px}.consent-purposes[hidden]{display:none}
.consent-purposes label{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:10px;border:1px solid #e3e6dc;border-radius:10px;background:#fff;font-size:13px}
.consent-purposes input{margin-top:3px;width:18px;height:18px}
.consent-more{font-size:13px;color:#5f6956}
.consent-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.consent-buttons .consent-choice{padding:11px 12px;font-size:14px;font-weight:700;border-radius:10px;border:1px solid #2f6b3b;background:#2f6b3b;color:#fff;cursor:pointer}
.consent-buttons .consent-choice[hidden]{display:none}
.consent-buttons:has(> .consent-choice:not([hidden]) ~ .consent-choice:not([hidden]) ~ .consent-choice:not([hidden])){grid-template-columns:1fr 1fr 1fr}
.consent-pick{display:block;margin:10px auto 0;border:0;background:none;color:#2f6b3b;text-decoration:underline;cursor:pointer;font-size:13px}.consent-pick[hidden]{display:none}
.consent-setting{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0}
.privacy-page{display:block;max-width:820px;margin:0 auto;padding:24px 20px 60px;line-height:1.6;font-size:15px}
.privacy-page h1{font-size:30px;margin:8px 0 4px}.privacy-page h2{font-size:19px;margin:28px 0 8px}
.privacy-updated{color:#6b7364;font-size:13px}
.privacy-table{width:100%;border-collapse:collapse;font-size:13px;margin:8px 0}
.privacy-table th,.privacy-table td{border:1px solid #dfe3d7;padding:7px 9px;text-align:left;vertical-align:top}
.privacy-table th{background:#f2f4ec}
.link-button{border:0;background:none;padding:0;color:#2f6b3b;text-decoration:underline;cursor:pointer;font:inherit}
/* Auto-paint (public/image-paint.js; a Gold perk) */
.image-paint-rail{display:contents}
.tool-rail .image-paint-toggle.active{background:#e6f0e2;color:#2f6b3b}
.tool-rail .image-paint-toggle svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.image-paint-panel{position:absolute;left:78px;top:12px;z-index:6;width:min(340px,calc(100% - 96px));max-height:calc(100% - 24px);overflow-y:auto;overscroll-behavior:contain;background:#fafaf6;border:1px solid #d1d7c5;border-radius:10px;box-shadow:0 8px 35px #25341c26;font-family:"Noto Sans",Verdana,sans-serif;font-size:13px;color:#26301f;padding:0 12px 12px}
.image-paint-panel[hidden]{display:none}
.image-paint-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fafaf6;padding:9px 0 7px;border-bottom:1px solid var(--line);z-index:1}
.image-paint-head h2{margin:0;font-size:16px;letter-spacing:0}
.image-paint-body{border:0;margin:0;padding:0;min-width:0}
.image-paint-body:disabled .image-paint-drop{opacity:.6}
.image-paint-step h3{margin:12px 0 6px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#6b7364}
.image-paint-drop{display:grid;justify-items:center;gap:8px;padding:14px 10px;border:1.5px dashed #c5cbb9;border-radius:9px;background:#fff;text-align:center}
.image-paint-drop p{margin:0;color:#4b5446}.image-paint-drop.over{border-color:#2f6b3b;background:#eef5ea}
.image-paint-note{margin:6px 0 0;font-size:12px;color:#6b7364}
.image-paint-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.image-paint-field{display:grid;gap:3px;font-size:11px;color:#4b5446;min-width:0}
.image-paint-field input[type=number]{width:100%;min-width:0;font:inherit;font-size:13px;padding:5px 6px;border:1px solid #cfd3c5;border-radius:6px;background:#fff}
.image-paint-field.wide{grid-template-columns:auto 1fr;align-items:center;gap:8px;margin-top:6px}
.image-paint-check{display:flex;align-items:center;gap:4px;margin:6px 0;font-size:12px}
.image-paint-panel select{width:100%;margin-top:6px;font:inherit;font-size:13px;padding:5px 6px;border:1px solid #cfd3c5;border-radius:6px;background:#fff}
.image-paint-buttons{display:flex;gap:6px;margin-top:6px}.image-paint-buttons button{flex:1;font-size:12px;padding:5px 8px}
.image-paint-segmented{display:flex;margin-top:8px;border:1px solid #cfd3c5;border-radius:7px;overflow:hidden}
.image-paint-segmented button{flex:1;border:0;border-radius:0;font-size:12px;padding:5px}.image-paint-segmented button[aria-pressed=true]{background:#e6f0e2;color:#2f6b3b;font-weight:700}
.image-paint-stats{margin:12px 0 6px;font-size:12px;color:#4b5446;font-variant-numeric:tabular-nums}
.image-paint-progress{width:100%;height:8px;accent-color:#2f6b3b}.image-paint-progress[hidden]{display:none}
.image-paint-message{min-height:0;margin:6px 0;font-size:12px;color:#2f6b3b}.image-paint-message:empty{display:none}.image-paint-message.error{color:#b3261e}
.image-paint-actions{display:flex;gap:6px}.image-paint-actions button{flex:1}
.image-paint-gate{margin:10px 0;padding:10px;border-radius:8px;background:#fff7e0;border:1px solid #ecd9a0}.image-paint-gate p{margin:0 0 8px}.image-paint-gate[hidden]{display:none}
.image-paint-overlay{position:absolute;left:0;top:0;transform-origin:0 0;image-rendering:pixelated;z-index:2;cursor:move;outline:1.5px dashed #2f6b3bcc;outline-offset:0;touch-action:none}
.image-paint-overlay.running{cursor:default;pointer-events:none;outline-color:#2f6b3b66}
.image-paint-overlay[hidden],.image-paint-handle[hidden]{display:none}
.image-paint-handle{position:absolute;left:0;top:0;z-index:3;width:14px;height:14px;border-radius:3px;background:#fff;border:2px solid #2f6b3b;cursor:nwse-resize;touch-action:none}
@media(max-width:700px){.image-paint-panel{left:8px;right:8px;top:auto;bottom:8px;width:auto;max-height:55%}}

/* Linked accounts: the evidence pair by pair (public/moderation.js) */
.linked-pairs{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:4px;font-size:12px}
.linked-pair{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}
.linked-pair .linked-evidence{color:#4b5446}

/* Sign-in emails for admins (public/account-emails.js) */
.account-emails{margin:6px 0;font-size:13px}.account-emails code{font-size:12px;user-select:all}.account-emails .link-button{margin-left:2px}
/* Chat replies (public/chat-replies.js) */
.chat-reply-line{display:block;width:100%;text-overflow:ellipsis;margin:0 0 1px;padding:0 0 0 14px;border:0;background:none;font:inherit;font-size:11px;line-height:1.4;color:#6b7364;text-align:left;cursor:pointer;position:relative;overflow:hidden;white-space:nowrap}
.chat-reply-line::before{content:"";position:absolute;left:4px;top:55%;width:7px;height:6px;border-left:1.5px solid #b9bfb0;border-top:1.5px solid #b9bfb0;border-top-left-radius:4px}
.chat-reply-line strong{font-weight:700;color:#4b5446}
.chat-reply-line:hover:not(.gone) .chat-reply-excerpt{text-decoration:underline}
.chat-reply-line.gone{cursor:default}.chat-reply-line.gone em{color:#8a9083}
.chat-message.chat-is-reply,.dm-msg[data-reply-to]{display:block}
.dm-bubble .chat-reply-line{padding-left:12px;margin-bottom:3px;opacity:.85}
.chat-reply-linked{background:#fff3c4!important;transition:background .15s}
.chat-reply-bar{display:flex;align-items:center;gap:6px;margin:0 0 4px;padding:4px 6px 4px 9px;border-left:3px solid #2f6b3b;border-radius:6px;background:#eef3ea;font-size:12px;color:#4b5446;min-width:0}
.chat-reply-bar[hidden]{display:none}
.chat-reply-bar-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-reply-bar-excerpt{color:#6b7364}
.chat-reply-ping{flex:none;padding:1px 7px;border-radius:9px;font-size:11px;font-weight:700;line-height:1.5;border:1px solid #c5cbb9;background:#fff}
.chat-reply-ping[aria-pressed=true]{color:#2f6b3b;border-color:#2f6b3b}.chat-reply-ping[aria-pressed=false]{color:#8a9083}
.chat-reply-cancel{flex:none;border:0;background:none;padding:0 4px;font-size:16px;line-height:1;color:#6b7364}
.dm-msg.mine .dm-bubble .chat-reply-line,.dm-msg.mine .dm-bubble .chat-reply-line strong{color:#ffffffd9}.dm-msg.mine .dm-bubble .chat-reply-line::before{border-color:#ffffff99}
/* Changelog for staff (public/community-changelog.js) */
.changelog-panel{display:block;overflow:auto;padding:22px 24px 28px}@media(max-width:700px){.changelog-panel{padding:18px 14px}}
.changelog-intro h3{margin:4px 0 2px}.changelog-intro p{margin:0 0 10px;color:#6b7364;font-size:13px}
.changelog-day{margin:14px 0 0}.changelog-day h4{margin:0 0 6px;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#6b7364}
.changelog-day ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.changelog-day li{padding:8px 10px;border:1px solid #e1e5d9;border-radius:8px;background:#fff}
.changelog-day li strong{display:block;font-size:14px;margin-bottom:2px}.changelog-day li p{margin:0;font-size:13px;line-height:1.5;color:#4b5446}

/* Private messages: collapsing the conversation list (public/direct-messages.js) */
.dm-side-toggle{position:relative;flex:none}.dm-side-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.dm-side-toggle[aria-pressed=true]{background:#e6f0e2;color:#2f6b3b}
.dm-side-badge{position:absolute;top:-4px;right:-6px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#c62828;color:#fff;font-size:10px;font-weight:800;line-height:16px;text-align:center}
.dm-side-badge[hidden]{display:none}.dm-side-badge.pulse{animation:dm-side-pulse 1.2s ease-out 2}
@keyframes dm-side-pulse{0%{box-shadow:0 0 0 0 #c6282899}100%{box-shadow:0 0 0 9px #c6282800}}
.dm-window.dm-collapsed .dm-body.show-main{grid-template-columns:minmax(0,1fr)}.dm-window.dm-collapsed .dm-body.show-main .dm-side{display:none}
@media(max-width:700px){.dm-side-toggle{display:none}.dm-window.dm-collapsed .dm-body.show-main{grid-template-columns:1fr}}

/* Site-wide alerts (public/site-alerts.js): in the top layer, above any dialog */
.site-alert{position:fixed;inset:12px auto auto 50%;transform:translateX(-50%);margin:0;z-index:2147483647;display:flex;align-items:flex-start;gap:10px;width:min(560px,calc(100vw - 24px));padding:12px 12px 12px 14px;border:2px solid #f0a020;border-radius:12px;background:#fff6dc;color:#3a2a00;box-shadow:0 10px 32px #0005;font-family:"Noto Sans",Verdana,sans-serif;overflow:visible}
.site-alert:popover-open{display:flex}
.site-alert-icon{flex:none;color:#c27a00}.site-alert-icon svg{width:24px;height:24px;display:block}
.site-alert-body{flex:1;min-width:0}.site-alert-body strong{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#8a5a00}
.site-alert-body p{margin:2px 0 4px;font-size:15px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.site-alert-body small{color:#7a6a40;font-size:11px}
.site-alert-close{flex:none;border:0;background:none;padding:0 4px;font-size:20px;line-height:1;color:#7a5a10;cursor:pointer}

/* Images in private messages (public/direct-messages.js) */
.dm-image-button{flex:none;align-self:center}.dm-image-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.dm-image-button[hidden]{display:none}
.dm-image{display:block;margin:2px 0;line-height:0}.dm-image img{max-width:100%;height:auto;border-radius:10px;background:#00000010;object-fit:contain}

/* Moderation → Message images (public/moderation.js) */
.dmimages-tools,.dmimages-gallery-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:8px 0}
.dmimages-tools button[aria-pressed=true],.dmimages-gallery-head button[aria-pressed=true]{background:#e6f0e2;border-color:#2f6b3b;color:#2f6b3b}
.dmimages-senders{width:100%;border-collapse:collapse;font-size:13px}.dmimages-senders th,.dmimages-senders td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line,#dedfd5)}
.dmimages-gallery-head h3{margin:0 8px 0 0}
.dmimages-grid{list-style:none;margin:8px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.dmimages-item{display:grid;gap:4px;font-size:11px}.dmimages-item a{display:grid;place-items:center;height:150px;border:1px solid var(--line,#dedfd5);border-radius:8px;background:#f4f4ee;overflow:hidden}
.dmimages-item img{max-width:100%;max-height:100%;object-fit:contain}.dmimages-item.deleted a{background:#f8eeee}

/* An image waiting to be sent (public/direct-messages.js) */
.dm-attachment{display:flex;align-items:center;gap:10px;margin:0 12px 6px;padding:6px 8px;border:1px solid var(--line,#dedfd5);border-radius:10px;background:#f4f4ee}
.dm-attachment[hidden]{display:none}.dm-attachment img{width:64px;height:64px;object-fit:cover;border-radius:6px;background:#0000000d}
.dm-attachment-info{flex:1;font-size:12px;color:#6b7364}.dm-attachment-remove{flex:none;font-size:18px}
/* Moderation window over the canvas pages (public/moderation-window.js; owner, 2026-10-29) and the page inside it. */
dialog.moderation-window{width:min(1320px,calc(100vw - 32px));max-width:none;height:calc(100dvh - 32px);max-height:none;padding:0;border:1px solid #d7dccf;border-radius:16px;background:#f5f4ef;color:#282c28;box-shadow:0 24px 100px #18251b44;overflow:hidden;flex-direction:column}
dialog.moderation-window[open]{display:flex}
dialog.moderation-window::backdrop{background:#1d241a66}
.moderation-window-bar{display:flex;align-items:center;gap:14px;padding:8px 10px 8px 18px;border-bottom:1px solid #d7dccf;background:#fbfbf8}
.moderation-window-bar strong{flex:1;font-size:15px}
.moderation-window-page{font-size:13px}
.moderation-window-close{width:34px;height:34px;padding:0;font-size:22px;line-height:1;border-radius:8px}
.moderation-window iframe{flex:1;width:100%;min-height:0;border:0;background:#f5f4ef}
.moderation-window iframe[data-loading]{visibility:hidden}
html.embedded .moderation-body>.studio-header,html.embedded .staff-heading{display:none}
/* See-through Colors panel (owner, 2026-10-30; Account → Preferences, off by default): the panel floats over the canvas or map.
   Each color gets a white and a black pixel around it so it reads as a palette, not art; text keeps a backing so it stays readable. */
body.palette-see-through .color-panel,body.palette-see-through #world-palette{background:transparent;border-color:transparent;box-shadow:none}
@media(min-width:801px){body.palette-see-through .color-panel{position:absolute;top:0;right:0;bottom:36px}
 /* The canvas runs under the panel, but these stay beside it, where they sit with a solid panel. */
 body.palette-see-through:has(#color-panel:not([hidden])) .chat-launcher{right:214px}body.palette-see-through:has(#color-panel:not([hidden])) .painters-panel{right:212px}body.palette-see-through:has(#color-panel:not([hidden])) #presence-notifications{right:216px}}
body.palette-see-through{--panel-backing:#fafaf6e6}
body.palette-see-through .color-panel>:not(.palette-scroll),body.palette-see-through #world-palette>:not(#world-swatches){background:var(--panel-backing);border-radius:6px}
body.palette-see-through #palette-empty{background:#fafaf6e6;border-radius:6px;padding:4px 6px}
body.palette-see-through #palette .swatch,body.palette-see-through #world-swatches button{box-shadow:0 0 0 1px #fff,0 0 0 2px #000}
body.palette-see-through #palette .swatch[aria-pressed=true],body.palette-see-through #world-swatches button[aria-pressed=true]{outline-offset:3px}
/* Community window logo and the top bar's canvas list icon (owner, 2026-10-30). */
#canvas-browser h2 .brand-logo{--logo-height:34px}@media(max-width:650px){#canvas-browser h2 .brand-logo{--logo-height:17px}}
header a.canvas-list-link{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex-shrink:0;border-radius:8px;color:inherit}
header a.canvas-list-link svg{width:20px;height:20px;fill:currentColor;stroke:none}
header a.canvas-list-link:hover{background:rgba(0,0,0,.06)}
@media(max-width:600px){header a.canvas-list-link{width:30px;height:30px}}
.frontline-guild-link{display:block;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:700;text-align:left;text-decoration:underline;overflow-wrap:anywhere;cursor:pointer}.frontline-guild-link:hover{background:none;color:#7a3cf0}
/* Tags button: green while painter names are on, not the orange of the selected tool (owner, 2026-10-30). */
#painter-tags-toggle[aria-pressed=true],#painter-tags-toggle[aria-pressed=true]:hover{background:#e6f0e2;color:#2f6b3b;border-color:#b9d4b5}
/* Pixelcraft uses the existing canvas gestures with server-authorized digs. */
.pixelcraft-mode:not(.pixelcraft-admin-tools) #palette-dock,.pixelcraft-mode:not(.pixelcraft-admin-tools) #color-panel,.pixelcraft-mode [data-tool="pick"],.pixelcraft-mode:not(.pixelcraft-admin-tools) #canvas-tools,.pixelcraft-mode .image-paint-rail,.pixelcraft-mode #image-paint-panel,.pixelcraft-mode #templates-toggle,.pixelcraft-mode #templates-panel{display:none!important}
.pixelcraft-mode .tool-rail button[data-tool="draw"]{display:flex;align-items:center;justify-content:center;padding:0}
.pixelcraft-mode .tool-rail button[data-tool="draw"] svg{width:22px;height:22px;flex:none}

#pixelcraft-entry{position:absolute;top:0;left:0;border-top:2px dashed #e59139;pointer-events:none;z-index:2;text-align:center}
#pixelcraft-entry span{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);white-space:nowrap;background:var(--panel,#fff);color:var(--text,#222);border:1px solid #e59139;border-radius:5px;padding:3px 8px;font-size:12px}

/* Discovered Pixelcraft loot; ordinary pixel inspection keeps its existing layout. */
.px-loot .px-head{height:auto;flex-shrink:0}
.px-loot .px-now{grid-template-columns:1fr}
.px-loot .px-painter{border-left:0;border-top:1px solid #e3e6dc;padding:12px 0 0}
.px-loot .px-current{gap:16px}
.px-loot-image{width:64px;height:64px;object-fit:contain;image-rendering:pixelated;flex:none}
.px-loot-detail{display:flex;flex-direction:column;gap:3px}
.px-loot-name{font-size:18px}
.px-loot-points{font-size:16px;font-weight:700}
.px-loot-value{font-size:11px;color:#6b7364}

/* Pixelcraft scoreboard: a compact toolbar total and an accessible dialog. */
#pixelcraft-score-toggle small{max-width:44px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-scoreboard{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:18px;border:1px solid #d4d8cc;border-radius:14px;background:#fbfbf8;color:#262b24;overflow:auto}
.pc-scoreboard:not([open]){display:none}
.pc-scoreboard::backdrop{background:#1d241a55}
.pc-discovery{box-sizing:border-box;width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid #d4d8cc;border-radius:16px;background:#fbfbf8;color:#262b24;overflow:auto;box-shadow:0 16px 70px #1d241a33}
.pc-discovery:not([open]){display:none}.pc-discovery::backdrop{background:#1d241a66}
.pc-discovery .panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.pc-discovery h2{margin:0;font-size:21px}.pc-discovery .icon-button{flex:none}
.pc-discovery-card{margin-top:18px;padding:16px;border:1px solid #e3e6dc;border-radius:12px;background:#fff}
.pc-discovery-hero{display:flex;align-items:center;gap:16px}.pc-discovery-image{width:72px;height:72px;object-fit:contain;image-rendering:pixelated;flex:none}.pc-discovery-hero>div{min-width:0}.pc-discovery-name{margin:0 0 5px;font-size:20px;overflow-wrap:anywhere}.pc-discovery-points{font-size:25px;color:#45733b}
.pc-discovery-message{margin:16px 0 8px;font-size:14px;line-height:1.5;font-weight:600}.pc-discovery-collection{margin:0;font-size:13px;color:#6b7364}.pc-discovery-facts{margin:16px 0 0;font-size:12px;line-height:1.6;color:#6b7364}.pc-discovery-location{color:inherit}.pc-discovery-hint{margin:14px 0 0;font-size:11px;text-align:center;color:#6b7364}
.pc-scoreboard h2{margin:0;font-size:20px}
.pc-score-mine{display:flex;flex-direction:column;gap:4px;margin:16px 0;padding:14px;border:1px solid #e3e6dc;border-radius:10px;background:#fff}
.pc-score-mine strong{font-size:26px}
.pc-score-mine small,.pc-score-status{font-size:12px;color:#6b7364}
.pc-score-table{width:100%;border-collapse:collapse;font-size:13px}
.pc-score-table th,.pc-score-table td{text-align:right;padding:9px 5px;border-bottom:1px solid #e3e6dc}
.pc-score-table th:nth-child(2),.pc-score-table td:nth-child(2){text-align:left}
.pc-score-table a{color:inherit;font-weight:600;text-decoration:none;overflow-wrap:anywhere}
.pc-score-table a:hover{text-decoration:underline}
.pc-score-self{background:#edf2e5}
.pc-personal-mined{font-size:15px;font-weight:600}.pc-personal-finds,.pc-dialog-guide{margin:14px 0}.pc-personal-finds summary,.pc-dialog-guide summary{cursor:pointer;font-weight:600;font-size:13px}
.pc-find-table{width:100%;border-collapse:collapse;margin-top:8px;font-size:12px}.pc-find-table th,.pc-find-table td{text-align:right;border-bottom:1px solid #e3e6dc;padding:7px 4px}.pc-find-table th:first-child,.pc-find-table td:first-child{text-align:left}.pc-find-table img{vertical-align:middle;margin-right:6px;image-rendering:pixelated}.pc-find-table td:first-child span{vertical-align:middle}
.pc-loot-list{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:3px}.pc-loot-list li{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:6px;min-height:22px}.pc-loot-list img{image-rendering:pixelated;object-fit:contain}.pc-loot-list strong{text-align:right;white-space:nowrap}.pc-loot-label small{display:block;font-size:.85em;color:#6b7364}.pc-dialog-guide .pc-loot-list{font-size:12px;gap:8px}
.pc-stats-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:16px 0;border-bottom:1px solid #d4d8cc;padding-bottom:10px}.pc-stats-tabs button{padding:7px 9px;border:1px solid #d4d8cc;border-radius:7px;background:#fff;color:#4c5744;font-size:12px;cursor:pointer}.pc-stats-tabs button[aria-selected=true]{background:#e5eddb;border-color:#8c9d77;color:#26371e;font-weight:700}.pc-stats-panel[hidden]{display:none}.pc-stats-panel h3{font-size:17px;margin:10px 0}.pc-stats-panel>p{font-size:13px;line-height:1.6}.pc-stats-panel:focus-visible{outline:2px solid #8c9d77;outline-offset:3px}
.pc-rank-controls,.pc-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;margin:12px 0}.pc-rank-controls select,.pc-pagination button{font:inherit;padding:7px;border:1px solid #d4d8cc;border-radius:6px;background:#fff;color:#262b24}.pc-pagination[hidden]{display:none}.pc-pagination button:disabled{opacity:.45}.pc-game-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.pc-game-totals>div{padding:12px;border:1px solid #e3e6dc;border-radius:9px;background:#fff}.pc-game-totals dt{font-size:12px;color:#6b7364}.pc-game-totals dd{margin:5px 0 0;font-size:17px;font-weight:700;overflow-wrap:anywhere}.pc-load-error{font-size:13px;color:#9b352b}
@media(max-width:480px){.pc-scoreboard{padding:12px}.pc-score-table{font-size:11px}.pc-score-table th,.pc-score-table td{padding:8px 3px}}

/* Canvas-space system column: keep the white artwork background in both themes. */
.pc-world-column{position:absolute;top:0;left:0;transform-origin:0 0;box-sizing:border-box;display:block;padding:38px 16px 20px;overflow:hidden;pointer-events:none;user-select:none;z-index:1;background:#fff;color:#242424;border-left:2px solid #ddd;font:12px/1.4 monospace}
.pc-world-column h2{margin:0;font:bold 22px/1.2 monospace;letter-spacing:0;color:#242424}
.pc-world-column .pc-world-subtitle{margin:7px 0 22px;font-size:11px;letter-spacing:1px;color:#686868}
.pc-world-column .pc-world-status{margin:0 0 10px;font-size:11px;color:#686868}
.pc-world-column table{width:100%;border-collapse:collapse;table-layout:fixed;font:11px/1.4 monospace}
.pc-world-column th,.pc-world-column td{padding:4px 0;border-bottom:1px solid #e7e7e7;text-align:right;white-space:nowrap;overflow:hidden;vertical-align:top}
.pc-world-column th:first-child,.pc-world-column td:first-child{width:20px;text-align:left;color:#686868}
.pc-world-column th:nth-child(2),.pc-world-column td:nth-child(2){text-align:left;width:116px}
.pc-world-column th{font-size:10px;color:#686868;font-weight:normal;text-transform:uppercase}
.pc-world-column td:last-child{font-weight:bold}
.pc-world-column .pc-world-note{margin:22px 0 0;font-size:10px;line-height:1.6;color:#777}
.pc-world-column .pc-world-name{display:block;overflow:hidden;text-overflow:ellipsis}.pc-world-column .pc-world-mined{display:block;font:9px/1.4 monospace;color:#686868}
.pc-world-column h3{font:bold 14px/1.3 monospace;letter-spacing:.5px;margin:22px 0 8px;color:#242424}.pc-world-column .pc-guide-caption{font:10px/1.4 monospace;color:#686868;margin:0 0 6px}.pc-world-column .pc-loot-list{font:10px/1.3 monospace;color:#242424}.pc-world-column .pc-world-instructions p{font:10px/1.5 monospace;margin:0;color:#686868}
.pc-world-column .pc-loot-label small{color:#686868}.pc-world-column .pc-loot-remaining{font-size:9px}.pc-world-column .pc-loot-list{gap:2px}
.pc-season-card{padding:12px;margin:12px 0;border:1px solid #d4d8cc;border-radius:9px;background:#fff}.pc-season-card h4{margin:0 0 8px}.pc-season-card a{font-weight:700;color:#456a37}.pc-season-card p{font-size:13px}.pc-season-card small{font-size:11px;color:#6b7364}
.pc-reset-form{display:grid;gap:12px;margin-top:14px}.pc-reset-form label{display:grid;gap:6px;font-size:13px}.pc-reset-form select,.pc-reset-form input{width:100%;min-width:0;box-sizing:border-box;padding:9px;font:inherit;border:1px solid #d4d8cc;border-radius:6px;background:#fff;color:#262b24}.pc-reset-form p{margin:0;font-size:12px;line-height:1.6}.pc-reset-form button{padding:10px;cursor:pointer}.pc-reset-status{font-size:12px;line-height:1.5}
.pc-season-card .pc-season-archive{display:block;margin:8px 0}
#pixelcraft-pickaxe-toggle[data-broken="true"]{color:#a12e22;background:#fff0dd;border-color:#c56846}
.pc-pickaxe progress{width:100%;height:16px;accent-color:#587d43}.pc-pickaxe-summary{font-size:17px;font-weight:700}.pc-pickaxe-costs{width:100%;border-collapse:collapse;font-size:13px}.pc-pickaxe-costs th,.pc-pickaxe-costs td{text-align:left;padding:7px;border-bottom:1px solid #d4d8cc}.pc-pickaxe-status{min-height:1.5em;font-size:13px}.pc-pickaxe .primary-button{width:100%;min-height:40px}
.emoji-admin-edit{display:flex;flex-direction:column;gap:8px;margin-top:6px}.emoji-admin-edit [data-edit-tools]{display:flex;flex-direction:column;gap:8px}.emoji-admin-edit [data-edit-tools][hidden],.emoji-admin-edit[hidden],.emoji-admin-edit [hidden]{display:none}.emoji-admin-edit label{display:flex;flex-direction:column;gap:4px;font-weight:600}.emoji-admin-edit textarea{width:100%;box-sizing:border-box;resize:vertical;font:inherit}
/* Dark mode look of a community emoji, set by admins (src/custom-emoji.js). Preview boxes show the same on any theme. */
html[data-theme=dark] img[data-emoji-dark=outline],.emoji-review-dark img[data-emoji-dark=outline],.emoji-gallery-dark img[data-emoji-dark=outline]{filter:drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff)}
html[data-theme=dark] img[data-emoji-dark=flip],.emoji-review-dark img[data-emoji-dark=flip],.emoji-gallery-dark img[data-emoji-dark=flip]{filter:invert(1) hue-rotate(180deg)}
html[data-theme=dark] .emoji-review-light img[data-emoji-dark],html[data-theme=dark] .emoji-gallery-light img[data-emoji-dark]{filter:none}
.emoji-dark-style{display:flex;align-items:center;gap:8px;font-weight:600}
/* Pixelcraft creeper notice: stays out of the way of the mine and never takes focus. */
#pixelcraft-creeper{position:fixed;top:64px;left:50%;transform:translateX(-50%);z-index:30;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;max-width:calc(100vw - 24px);padding:10px 14px;background:var(--panel,#fff);color:var(--text,#222);border:2px solid #4a8a2a;border-radius:8px;box-shadow:0 4px 16px #0004;font-weight:600}
#pixelcraft-creeper[hidden]{display:none}
#pixelcraft-creeper button{width:auto}
.pc-discovery-effect,.pc-pickaxe-charms{font-weight:700;color:#3d6b2a}
.pc-pickaxe-hide{display:flex;gap:6px;align-items:center;font-size:13px;margin-top:8px}
#pixelcraft-sonar-toggle[aria-pressed="true"]{outline:2px solid #2e8b57}
#pixelcraft-guide{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:25;width:min(460px,calc(100vw - 24px));padding:12px 14px;background:var(--panel,#fff);color:var(--text,#222);border:2px solid #e59139;border-radius:8px;box-shadow:0 4px 16px #0004}
#pixelcraft-guide[hidden]{display:none}
#pixelcraft-guide p{margin:0 0 8px}
.pc-guide-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.pc-guide-actions button{width:auto}
/* The guide sits where notices appear, so while it is open they move to the top of the canvas, clear of the creeper notice. */
body:has(#pixelcraft-guide:not([hidden])) #toast{top:12px;bottom:auto}
body:has(#pixelcraft-guide:not([hidden])):has(#pixelcraft-creeper:not([hidden])) #toast{top:96px}
.pc-pickaxe-details{margin-top:10px;font-size:14px}.pc-pickaxe-details summary{cursor:pointer;font-weight:600}
#pickaxe-upgrade{pointer-events:auto;margin-left:6px;padding:2px 8px;border:1px solid #c9d2e8;border-radius:999px;background:#f3f6ff;color:#2b3a67;font-weight:700;font-size:12px;cursor:pointer}

/* Left toolbar collapse (owner, 2026-10-31; public/canvas-ui.js): only the toggle stays. It stays reachable when a short toolbar scrolls. */
:is(.tool-rail,.world-tools) .tools-collapse{position:sticky;top:0;flex:none;z-index:1;background:inherit}
:is(.tool-rail,.world-tools) .tools-collapse svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tools-show-icon,html[data-tools-collapsed] .tools-hide-icon{display:none}html[data-tools-collapsed] .tools-show-icon{display:block}
html[data-tools-collapsed] :is(.tool-rail,.world-tools)>:not(.tools-collapse){display:none!important}

/* Paint before signing up (owner, 2026-10-31; public/app.js): the guest's count and the way to publish. */
#guest-paint-status{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:2;display:flex;align-items:center;gap:10px;max-width:calc(100% - 120px);padding:6px 6px 6px 12px;background:#fafaf6f5;border:1px solid #d6dacb;border-radius:10px;box-shadow:0 3px 14px #26341d0d;font-size:13px}
#guest-paint-status[hidden]{display:none}
#guest-paint-signup{flex:none;padding:5px 10px;background:var(--orange);border-color:var(--orange);color:#fff;border-radius:6px;font-weight:600}
.canvas-invite svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* Phones: the cooldown window wraps and stops short of the chat button in the opposite corner, on every canvas. */
@media(max-width:800px){.pixel-cooldown{max-width:calc(100% - 118px);flex-wrap:wrap;gap:2px 6px;padding:6px 8px}.pixel-cooldown strong{min-width:0;text-align:left}#pickaxe-upgrade{margin-left:0;padding:1px 6px;font-size:11px}.pixel-cooldown.repairing #cooldown-label{display:none}}
@media(max-width:360px){.pixel-cooldown.repairing strong{font-size:10px}.pixel-cooldown.repairing #pickaxe-upgrade{padding:1px 5px;font-size:10px}.pixel-cooldown.repairing{gap:4px}}

/* Help: chat commands (public/chat-commands.js). */
.help-commands-group{margin:14px 0 4px;font-size:12px;letter-spacing:.4px;text-transform:uppercase;color:#65705c}.help-commands-group:first-child{margin-top:4px}
.help-command{display:grid;grid-template-columns:minmax(0,230px) minmax(0,1fr);gap:4px 12px;padding:5px 0;border-top:1px solid #eef0e8;font-size:13px;line-height:1.45}
.help-command code{justify-self:start;padding:1px 6px;border-radius:4px;background:#eef0e6;color:#30382d;font-size:12px;overflow-wrap:anywhere}.help-command small{color:#65705c;white-space:nowrap}
@media(max-width:560px){.help-command{grid-template-columns:minmax(0,1fr)}}

/* Frontline wars in Leaderboards (public/frontline-history.js). */
.frontline-history{margin-bottom:24px;padding:0 0 14px;border:1px solid #d9dfd0;border-radius:12px;background:#fdfdf9;overflow:hidden}.frontline-history>:not(.ranking-card-heading){margin-left:18px;margin-right:18px}
.frontline-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px;margin:12px 0}
.frontline-tile{padding:10px 12px;border:1px solid #e3e6da;border-radius:8px;background:#fafaf6}.frontline-tile strong{display:block;font-size:20px;line-height:1.2}.frontline-tile span{font-size:12px;color:#65705c}
.frontline-tops{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:0 0 12px}
.frontline-top h5{margin:0 0 6px;font-size:12px;letter-spacing:.4px;text-transform:uppercase;color:#65705c}.frontline-top ol{margin:0;padding:0;list-style:none}.frontline-top li{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:3px 0;font-size:13px}
.frontline-none{margin:0;font-size:13px;color:#65705c}.frontline-record{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:0 0 6px;font-size:13px}.frontline-record>span{color:#65705c}
.frontline-guild{display:inline-flex;align-items:center;gap:4px;min-width:0;color:inherit;text-decoration:none}.frontline-guild:hover{text-decoration:underline}.frontline-guild img{width:20px;height:20px;image-rendering:pixelated;border-radius:3px}
.frontline-history .frontline-battles{margin:0 18px;padding:0;list-style:none}.frontline-battle{padding:9px 0;border-top:1px solid #eef0e8;font-size:13px}
.frontline-battle-head{display:flex;gap:8px;font-size:12px;color:#65705c}.frontline-place{font-weight:600}.frontline-winner{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:3px 0 2px}
.frontline-upset{padding:1px 6px;border-radius:4px;background:#f6e1d6;color:#b94e29;font-size:11px;font-weight:700}.frontline-battle-detail{margin:0;font-size:12px;color:#65705c}.frontline-more{margin-top:10px}
.frontline-pin[hidden]{display:none}
.frontline-old{font-size:11px;color:#65705c}
.template-hint.pickable small{font-weight:600;color:#b94e29}@media(pointer:coarse){.template-hint.pickable{pointer-events:auto;cursor:pointer}}
