@font-face { font-family:Arcade; src:url(arcade-bold.ttf) format("truetype"); font-style:normal; font-weight:700; font-display:swap; }
@font-face { font-family:DM; src:url(dm-sans.woff2) format("woff2"); font-weight:100 1000; font-display:swap; }
:root {
  color-scheme:light; --ink:#1c2446; --night:#182044; --line:#bdb6a3;
  --paper:#f4f0e4; --muted:#575848; --gold:#ffcf4e; --rule:#435477;
  --pad:clamp(22px,2.8vw,47px); --head:Arcade,DM,sans-serif;
}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; background:var(--night); color:var(--ink); font:500 16px/1.45 DM,sans-serif; }
button,input,textarea { font:inherit; }
button { color:inherit; cursor:pointer; touch-action:manipulation; }
button:disabled { cursor:default; }
button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible,
.option input:focus-visible + span,.color-well:focus-within { outline:3px solid #2b73a1; outline-offset:3px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; border:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.mast { height:62px;display:flex;align-items:center;justify-content:space-between;padding:3px clamp(17px,3vw,58px);position:relative;z-index:2;color:#fff3da; }
.brand { width:clamp(144px,14vw,218px);height:auto;display:block;filter:drop-shadow(2px 3px 0 #17234b); }
.twitch { display:flex;align-items:center;gap:7px;min-height:40px;color:#fff2d8;text-decoration:none;font-weight:700;font-size:14px;text-shadow:1px 2px #1b275e; }
.twitch span { color:var(--gold); } .twitch:hover {text-decoration:underline;text-underline-offset:4px;}
body {background:#26349a url(sky.webp) center top/cover fixed;}
.studio {
  --frame:clamp(21px,2vw,30px); --board-pad:clamp(9px,1.25vw,25px); --board-w:clamp(420px,40.5vw,628px);
  position:relative;isolation:isolate;display:grid;
  grid-template-columns:minmax(0,1fr) var(--board-w);grid-template-rows:minmax(385px,1fr) auto auto;
  grid-template-areas:"window inventory" "tools inventory" "shelf inventory";
  padding:0 clamp(20px,3.1vw,68px) clamp(60px,6.1vw,100px) 0; min-height:calc(100svh - 62px);
}
.view-window {grid-area:window;min-width:0;pointer-events:none;}
.scene {position:absolute;inset:0;overflow:hidden;z-index:-2;pointer-events:none;}
#portrait {position:absolute;inset:0;width:100%;height:100%;display:block;}
#trial-label {position:absolute;left:clamp(16px,3vw,50px);top:6px;color:white;text-shadow:1px 2px #141c52;font-size:13px;font-weight:700;}
.preview-tools,.starter-shelf {justify-self:start;margin-left:clamp(15px,3.2vw,62px);max-width:calc(100% - 35px);position:relative;color:#fff3dc; }
.preview-tools {grid-area:tools;display:flex;gap:clamp(12px,2vw,30px);align-items:center;justify-content:space-between;padding:0 15px;margin-bottom:8px;}
.preview-tools::before,.starter-shelf::before {content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(172deg,#676197 0 4%,#383661 5% 84%,#252649 86%);border:2px solid #18204c;box-shadow:3px 4px #141c42;transform:skew(-5deg); }
.view-switch,.look-actions {display:flex;align-items:center;gap:clamp(8px,1.2vw,19px);}
.preview-tools button {display:inline-flex;align-items:center;gap:6px;min-height:40px;border:0;padding:4px 0;background:none;color:#e7e7fa;font-size:13px;font-weight:700;white-space:nowrap;}
.preview-tools button:hover:not(:disabled) {color:#fff2c2;}
.view-switch button { position:relative; }
.view-switch button[aria-pressed=true] { color:#ffdc7d; }
.view-switch button[aria-pressed=true]::after { content:""; position:absolute; left:0; right:0; height:2px; bottom:5px; background:var(--gold); }
.preview-tools button:disabled { color:#8992b0; }
.dice { position:relative; width:15px; height:15px; flex:none; border:1.5px solid currentColor; border-radius:3px; transform:rotate(-9deg); }
.dice::before { content:""; position:absolute; top:2px; left:2px; width:2.5px; height:2.5px; border-radius:50%; background:currentColor; box-shadow:5px 5px currentColor,2.5px 2.5px currentColor; }
.back { position:relative; width:15px; height:14px; flex:none; }
.back::before { content:""; position:absolute; inset:4px 1px 1px 2px; border:1.5px solid currentColor; border-left:0; border-radius:0 5px 5px 0; }
.back::after { content:""; position:absolute; left:2px; top:2px; width:4px; height:4px; border:1.5px solid currentColor; border-top:0; border-right:0; transform:rotate(45deg); }
.starter-shelf {grid-area:shelf;min-width:0;padding:8px 15px 9px;}
.starter-shelf h2 { margin:0 0 5px; color:#bfc6d8; font:600 13px/1.3 DM,sans-serif; }
#starters { display:flex; flex-wrap:wrap; gap:6px 20px; }
.starter { position:relative; display:flex; align-items:center; gap:6px; border:0; padding:0 4px; min-height:47px; color:#e9e9ec; background:none; font:650 14px/1.15 DM,sans-serif; }
.starter canvas { width:38px; height:46px; flex:none; }
.starter span { border-bottom:2px solid transparent; padding:3px 0; }
.starter[aria-pressed=true] span { color:#ffdf86; border-color:var(--gold); }
.starter:hover span { color:white; }
.inventory {
  grid-area:inventory;align-self:center;min-width:0;position:relative;isolation:isolate;
  border:var(--frame) solid transparent;border-image:url(bench-board.webp) 96 fill / var(--frame) round;
}
.inventory::after {content:"";position:absolute;z-index:-2;pointer-events:none;left:calc(-1 * var(--frame) - 4%);right:calc(-1 * var(--frame) - 4%);top:calc(100% + var(--frame) - 9px);aspect-ratio:900/214;background:url(workshop-footing.webp) center top/100% 100% no-repeat;}
.inventory-head { padding:10px var(--board-pad) 2px;display:flex;align-items:center;justify-content:space-between;gap:7px; }
h1 {margin:0;color:#24254b;font:700 clamp(31px,3.1vw,48px)/1.06 var(--head);letter-spacing:-.052em; }
.shop-note {display:flex;flex-wrap:wrap;align-items:center;gap:2px 12px;margin:5px var(--board-pad) 15px;color:#534323;font:650 13px/1.35 DM,sans-serif;}
.shop-note > span {display:inline-flex;gap:5px;align-items:center;} .shop-note img {object-fit:cover;}
.shop-note a,.account-slip a {color:#493767;font-weight:750;text-underline-offset:3px;} .shop-note a:hover {color:#251d44;}
.lookup {position:relative;z-index:4;max-width:35%;font-size:13px;color:var(--ink);}
.lookup summary {position:relative;list-style:none;cursor:pointer;padding:6px 7px 7px 19px;color:#47351f;font:750 13px/1.15 DM,sans-serif;overflow-wrap:anywhere;isolation:isolate;}
.lookup summary::-webkit-details-marker {display:none;}
.lookup summary::before {content:"";position:absolute;inset:0;z-index:-1;transform:rotate(2deg);background:#e9c585;border:1px solid #876740;clip-path:polygon(6px 0,100% 0,100% calc(100% - 3px),calc(100% - 3px) 100%,6px 100%,0 52%);}
.lookup summary::after {content:"";position:absolute;left:6px;top:calc(50% - 2px);width:4px;height:4px;border:1px solid #805c38;border-radius:50%;background:#fff0c4;}
.lookup summary:hover,.lookup summary:focus-visible {text-decoration:underline;text-underline-offset:3px;}
.account-slip {position:absolute;right:0;top:calc(100% + 4px);width:min(263px,calc(100vw - 72px));padding:13px 14px;
  color:#362f36;background:#fae9bd;border:2px solid #5b4538;border-top:4px solid #997640;box-shadow:3px 4px 0 #41364a42;}
.account-slip .sign-in {display:block;width:fit-content;padding:6px 10px;color:#fff5e0;background:#493769;
  border:1px solid #32274d;box-shadow:1px 2px 0 #342b43;text-decoration:none;}
.account-slip .sign-in:hover {background:#362a50;} .account-slip .sign-in[aria-disabled=true] {background:#625869;}
.lookup form,.lookup p {margin:0;}
.lookup form {margin-top:12px;}
.lookup p {margin-top:8px;font:550 12px/1.35 DM,sans-serif;}
.lookup p:empty {display:none;}
.lookup label {display:block;font-weight:750;}
.lookup form div {display:flex;gap:6px;}
.lookup input {width:0;min-width:0;flex:1;}
.lookup input,.lookup button {font:600 12px DM,sans-serif;background:#fff6e0;border:1px solid #625552;border-radius:0;padding:6px;}
.lookup button {background:#ffdb78;}
#owned-list {max-height:min(29vh,174px);overflow:auto;margin:8px 0 6px;padding:0;list-style:none;overscroll-behavior:contain;}
#owned-list li {display:flex;gap:8px;align-items:baseline;padding:3px 0;border-bottom:1px solid #d8c49b;font-weight:700;}
#owned-list li span {min-width:56px;color:#645143;font-size:11.5px;font-weight:600;}
#viewer-sign-out {margin-top:6px;border:0;padding:3px 0;color:#493767;background:none;text-decoration:underline;text-underline-offset:3px;}
.tabs {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));position:relative;isolation:isolate;margin:0 var(--board-pad);padding:0 3px 3px;}
.tabs::before {content:"";position:absolute;z-index:-1;left:0;right:0;bottom:1px;height:25px;border:1.5px solid #272449;border-radius:2px 3px 1px 2px;background:linear-gradient(#9289c0 0 2px,#484466 2px 80%,#36324f 80%);box-shadow:1px 2px 0 #a48a63;}
.tabs button {
  position:relative;display:grid;justify-items:center;align-content:end;gap:3px;min-width:0;min-height:52px;
  border:0;background:none;padding:0 0 5px;color:#f7edd4;font:700 14px/1.05 DM,sans-serif;
}
.tabs button::before {content:"";width:33px;height:33px;background:url(wardrobe-tools.webp) 0 center/600% 100% no-repeat;}
#tab-mood::before {background-position-x:20%;} #tab-hat::before {background-position-x:40%;}
#tab-shirt::before {background-position-x:60%;} #tab-eyes::before {background-position-x:80%;} #tab-neck::before {background-position-x:100%;}
.tabs button[aria-selected=true] {color:#ffe28b;}
.tabs button[aria-selected=true]::after {content:"";position:absolute;bottom:0;left:21%;right:21%;height:3px;background:#ffcf60;clip-path:polygon(0 28%,100% 0,98% 82%,3% 100%);}
.tabs button:hover {color:white;}
.catalog {min-width:0;padding:14px var(--board-pad) 15px;}
.panel,fieldset { min-width:0; }
fieldset { margin:0; padding:0; border:0; }
legend { display:block; width:100%; padding:0; margin:0 0 10px; font:700 20px/1.25 var(--head); letter-spacing:-.03em; }
.equipped { float:right; margin-top:4px; font:600 13px/1.3 DM,sans-serif; color:var(--muted); letter-spacing:0; }
.wood-palette,.finish-rack,.gear-rack { display:grid; align-items:end; }
.wood-palette { grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:10px; row-gap:7px; }
.option { position:relative; min-width:0; display:block; cursor:pointer; }
.option input { position:absolute; z-index:2; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.option > span { position:relative; display:flex; flex-direction:column; align-items:center; min-width:0; padding:2px 1px 4px; }
.option canvas { display:block; width:100%; object-fit:contain; }
.option b { display:block; width:fit-content; max-width:100%; padding:0 1px 2px; border-bottom:2px solid transparent; color:#434855; text-align:center; font:570 13px/1.16 DM,sans-serif; }
.option input:checked + span b { font-weight:800; color:#162747; border-color:#233d54; }
.option input:hover + span b { color:var(--ink); }
.wood-option > span { min-height:56px; justify-content:flex-end; gap:1px; }
.wood-option canvas { height:31px; }
.custom-row { display:flex; align-items:center; flex-wrap:wrap; column-gap:8px; row-gap:5px; margin-top:16px; color:#454852; font-size:13px; }
.color-well { position:relative; display:grid; place-items:center; height:34px; width:32px; cursor:pointer; }
.color-well i { display:block; width:21px; height:21px; border:1.5px solid #343c46; transform:rotate(-9deg); background:linear-gradient(135deg,#edbd66 0 32%,#74bda4 32% 62%,#aaa3d8 62%); }
.color-well.chosen::after { content:"✓"; position:absolute; bottom:0; right:0; padding:0 3px; background:#263750; color:white; font:bold 10px/1.35 sans-serif; pointer-events:none; }
.color-well input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
#hex { margin-left:auto; padding:4px 2px; height:34px; width:86px; min-width:0; border:0; border-bottom:1.5px solid #a09e95; border-radius:0; background:transparent; color:var(--ink); font:600 14px/1.3 ui-monospace,monospace; }
#hex[aria-invalid=true] { border-color:#a34536; }
#apply-hex { border:0; min-height:34px; background:transparent; color:var(--ink); padding:3px 2px 3px 6px; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.error { color:#913f33; font-size:13px; margin:5px 0 0; }
.patterns { margin-top:clamp(16px,3vh,28px); }
.patterns legend { border-top:1px solid var(--line); padding-top:15px; }
.finish-rack { grid-template-columns:repeat(5,minmax(0,1fr)); align-items:start; gap:4px; }
.finish-rack canvas { height:51px; }
.finish-rack .option > span { gap:3px; min-height:62px; }
.gear-rack { grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px 10px; }
.gear-rack .option > span { min-height:87px; padding-top:7px; gap:5px; }
.gear-rack canvas { height:67px; }
.shirt-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;}
.shirt-heading h2 {margin:0;font:700 20px/1.25 var(--head);letter-spacing:-.03em;}
.item-dyes {margin:0 0 16px;border:0;}
.item-dyes legend {display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 3px;font:700 14px/1.2 DM,sans-serif;letter-spacing:0;}
#dye-note {font:550 12px/1.25 DM,sans-serif;color:#65523c;}
.fabric-book {display:grid;grid-template-columns:minmax(0,7fr) minmax(0,1fr);gap:3px;}
#dye-swatches {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;}
.fabric-sample > span {justify-content:center;min-height:41px;gap:3px;padding:2px 0;}
.fabric-sample i {width:min(82%,38px);height:20px;display:block;position:relative;transform:rotate(-3deg);
  background:var(--selvage,#795e60);
  clip-path:polygon(0 4%,98% 0,100% 82%,91% 100%,81% 85%,72% 100%,62% 85%,52% 100%,42% 85%,32% 100%,22% 85%,12% 100%,2% 86%);}
.fabric-sample i::before {content:"";position:absolute;inset:1px 1px 1.5px;clip-path:inherit;background:repeating-linear-gradient(98deg,transparent 0 2px,rgba(255,255,255,.16) 2px 2.7px,transparent 2.7px 4px),linear-gradient(106deg,var(--selvage) 0 15%,var(--cloth) 16% 79%,var(--thread) 94%,var(--cloth));}
.fabric-sample:not(.fabric-mix) i::after {content:"";position:absolute;left:15%;right:9%;top:4px;border-top:1px dashed var(--thread);}
.fabric-sample b {font-size:11.5px;line-height:1.15;color:#584a3c;}
.fabric-sample input:checked + span b,.fabric-mix.chosen b {border-bottom:2px solid #302e48;color:#302e48;font-weight:800;}
.fabric-mix i::before {background:linear-gradient(118deg,#d69a75 0 26%,#74a79a 27% 56%,#948ab7 57% 80%,#e4c79a 82%);}
.fabric-mix.chosen i::before {background:var(--cloth);}
.fabric-mix i::after {content:"+";position:absolute;right:5px;bottom:1px;color:#fff2cd;text-shadow:0 1px 2px #35283e;font:800 16px/1 DM,sans-serif;}
.item-dyes:disabled .fabric-book {opacity:.64;}
.item-dyes:disabled .option,.item-dyes:disabled input {cursor:default;}
.dye-actions {display:flex;align-items:center;justify-content:space-between;gap:8px;margin:3px 1px 0;}
.dye-actions button {display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:3px 4px;background:transparent;color:#413948;border:0;font:700 12px/1.25 DM,sans-serif;}
.dye-actions button:disabled {color:#736650;opacity:.72;}
.dye-actions button:enabled:hover {text-decoration:underline;text-underline-offset:3px;}
#original-dye::before {content:"";width:10px;height:10px;border:1px solid #66604b;border-radius:50%;background:var(--native,#eee5ca);}
#original-dye[aria-pressed=true]::before {box-shadow:0 0 0 1px #f6e9c6,0 0 0 2px #40364e;}
#match-shirt i {width:15px;height:14px;border:1px solid #56485b;background:var(--match,#bab8a4);box-shadow:inset -3px -2px 0 rgba(27,32,58,.18);transform:rotate(-5deg);}
#shirt-reset .option > span {padding:5px 1px;min-height:30px;justify-content:center;}
#shirt-reset b {display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:650;}
#shirt-reset b::before {content:"";width:8px;height:8px;border:1px solid #60523c;border-radius:50%;background:#f5e8c7;}
#shirt-reset input:checked + span b {border-color:transparent;}
#shirt-reset input:checked + span b::before {background:#383453;box-shadow:inset 0 0 0 1.6px #f5e8c7;}
.shirt-rack {--hanging-height:clamp(86px,8vw,120px);display:grid;row-gap:15px;padding:0 0 6px;}
.shirt-rail {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:relative;isolation:isolate;}
.rail-hardware {position:absolute;left:0;top:0;width:100%;height:26px;z-index:1;pointer-events:none;}
.shirt-rack .option > span {padding:0;gap:1px;}
.shirt-rack .option canvas {height:var(--hanging-height);width:100%;object-fit:fill;transform-origin:50% 22px;}
.shirt-rack .option:last-child {--swing:2.7deg;}
.shirt-rack .option b {position:relative;min-width:68px;max-width:96%;padding:3px 11px 4px 15px;isolation:isolate;border:0;color:#493d36;font:700 13px/1.15 DM,sans-serif;}
.shirt-rack .option b::after {content:"";position:absolute;inset:0;z-index:-1;transform:rotate(-2deg);background:#eddeba;border:1px solid #ae8f61;clip-path:polygon(5px 0,100% 0,100% 91%,3px 100%,0 50%);}
.shirt-rack .option:last-child b::after {transform:rotate(1.5deg);}
.shirt-rack .option input:checked + span b::after {background:#ffcf61;border-color:#6f513c;}
.shirt-rack .option input:checked + span b {color:#292541;text-decoration:underline;text-underline-offset:2px;}
.shirt-rack .option:not(.locked) input:checked + span b::before {content:"✓";margin-right:4px;font:800 12px/1 DM,sans-serif;}
.send {padding:11px 0 7px;margin:0 var(--board-pad);border-top:2px solid #9b7c55; }
.send-head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:3px 8px; margin-bottom:9px; }
.send-head h2 { margin:0; font:700 18px/1.2 var(--head); letter-spacing:-.025em; }
.send-head p { margin:0; font-size:12px; color:#4c514e; }
.copy-row { display:flex; align-items:stretch; gap:8px; }
#command { width:0; min-width:0; flex:1; resize:none; align-content:center; padding:7px 8px; background:#f8f6eb; min-height:42px;
  border:1px solid #a9a99b; border-radius:0; color:var(--ink); font:600 12.5px/1.4 ui-monospace,monospace; }
#copy { padding:8px 13px; border:1.5px solid var(--ink); border-bottom-width:3px; border-radius:2px; background:var(--gold); color:#192448; font:700 15px/1.2 var(--head); }
#copy:hover { background:#ffdf7e; }
#copy:active { transform:translateY(1px); }
#jump-preview { display:none; }

.option.locked b::before {content:"";display:inline-block;width:8px;height:10px;vertical-align:-1px;margin-right:3px;background:url(lock.webp) center/contain no-repeat;}
.option.locked b {color:#514335;} .equipped {color:#65523c;}
.wood-palette {gap:4px 7px;} .wood-option > span {min-height:50px;} .gear-rack {row-gap:7px;}
.custom-row {margin-top:9px;} .patterns {margin-top:14px;} .patterns legend {padding-top:9px;}
:root {--line:#aa8d63;}
.send-head {align-items:center;} .send-head h2 {font-size:16px;} .send-head p {font-size:11.5px;color:#5a4834;}
#command {background:#fff1d0;border-color:#a5845d;} #copy {box-shadow:1px 2px #615674;}
.channel-page .setup-sign {width:min(560px,calc(100% - 24px));margin:clamp(12px,6vh,64px) auto 64px;padding:12px clamp(12px,3vw,30px) 24px;border:26px solid transparent;border-image:url(bench-board.webp) 96 fill / 26px round;color:#272947;}
.setup-sign h1 {margin:5px 0 18px;} .setup-sign p {font-size:15px;} .setup-sign a {color:#27376c;font-weight:700;}
.setup-sign form {display:flex;flex-direction:column;gap:6px;} .setup-sign label {font-weight:750;}
.setup-sign input,.setup-sign button {padding:9px;border:2px solid #3d3555;background:#fff4d7;color:#282747;}
.setup-sign button {align-self:flex-start;font-weight:800;background:#ffcf54;}
@media(min-width:1500px){.wood-option canvas {height:36px;} .wood-option > span {min-height:57px;} .gear-rack canvas {height:72px;}}
@media(min-width:821px) and (max-width:1080px){
  .studio {--board-w:46vw;--board-pad:7px;padding-right:15px;--frame:20px;}
  .preview-tools,.starter-shelf {margin-left:14px;} .preview-tools {gap:11px;padding:0 8px;}
  .view-switch,.look-actions {gap:8px;} .preview-tools button {font-size:12px;}
  #starters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px;}
  .starter canvas {height:39px;width:32px;} .starter {min-height:39px;}
}
@media(max-width:820px){
  :root {--pad:16px;}
  .mast {height:49px;padding-inline:17px;} .brand {width:135px;} .twitch {font-size:13px;}
  .studio {--frame:clamp(16px,4.25vw,25px);--board-pad:clamp(4px,1.3vw,13px);display:flex;flex-direction:column;padding:0 0 24px;min-height:0;}
  .scene {inset:0 0 auto;height:clamp(235px,57vw,390px);}
  .view-window {height:clamp(235px,57vw,390px);flex:none;}
  .preview-tools {margin:-3px auto 12px;max-width:calc(100% - 18px);gap:12px;padding:0 10px;align-self:center;}
  .view-switch,.look-actions {gap:10px;} .preview-tools button {font-size:12px;gap:4px;min-height:37px;}
  .inventory {width:min(calc(100% - 20px),620px);align-self:center;margin:0;}
  .inventory::after {left:calc(-1 * var(--frame) - 4px);right:calc(-1 * var(--frame) - 4px);}
  .inventory-head {padding-top:2px;} h1 {font-size:clamp(27px,6.8vw,36px);}
  .shop-note {margin:5px var(--board-pad) 8px;font-size:12px;} .shop-note img {width:18px;height:18px;}
  .tabs button {min-height:49px;font-size:12.5px;} .tabs button::before {width:29px;height:29px;} .tabs::before {height:23px;}
  .catalog {padding:12px var(--board-pad) 6px;} legend {font-size:18px;margin-bottom:3px;}
  .wood-palette {grid-template-columns:repeat(4,minmax(0,1fr));gap:2px 4px;} .wood-option canvas {height:24px;} .wood-option > span {min-height:44px;}
  .option b {font-size:12px;} .custom-row {margin-top:3px;font-size:12px;} .patterns {margin-top:10px;}
  .gear-rack {grid-template-columns:repeat(3,minmax(0,1fr));gap:3px 4px;} .gear-rack canvas {height:53px;} .gear-rack .option > span {min-height:72px;}
  .shirt-heading {margin-bottom:6px;} .shirt-heading h2 {font-size:18px;}
  .item-dyes {margin-bottom:11px;} .item-dyes legend {font-size:13px;} #dye-note {font-size:11px;}
  .fabric-book {gap:1px;} #dye-swatches {gap:1px;} .fabric-sample b {font-size:10.5px;} .fabric-sample i {height:18px;}
  .shirt-rack {--hanging-height:clamp(85px,23vw,112px);row-gap:10px;padding-bottom:8px;}
  .finish-rack canvas {height:43px;} .finish-rack .option > span {min-height:53px;}
  .starter-shelf {order:4;align-self:center;margin:clamp(66px,19vw,112px) 8px 4px;padding:8px 14px;max-width:calc(100% - 24px);}
  #starters {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;}
  .starter {flex-direction:column;justify-content:flex-end;gap:0;font-size:12px;text-align:center;} .starter canvas {height:45px;width:34px;}
}
@media(max-width:820px) and (min-height:520px){
  html {scroll-padding-bottom:calc(var(--dock-height,84px) + 8px);} body {padding-bottom:calc(var(--dock-height,84px) + 6px);}
  .send {position:fixed;inset:auto 6px max(3px,env(safe-area-inset-bottom));z-index:6;margin:0;padding:3px 6px 4px;display:grid;
    grid-template-columns:28px minmax(0,1fr);gap:2px 5px;align-items:center;border:10px solid transparent;border-image:url(bench-board.webp) 96 fill / 10px round;}
  #jump-preview {display:grid;place-items:center;grid-column:1;grid-row:1/3;width:28px;height:46px;padding:0;border:0;background:none;}
  #jump-preview canvas {width:30px;height:44px;} .send-head,.copy-row {grid-column:2;}
  .send-head {margin:0;gap:0 7px;} .send-head h2 {font-size:14px;} .send-head p {font-size:10.5px;}
  #command {min-height:30px;font-size:11.5px;padding:2px 4px;} #copy {font-size:12px;padding:5px 7px;}
}
@media(max-width:365px){
  .preview-tools {gap:7px;padding:0 7px;} .view-switch,.look-actions {gap:7px;} .preview-tools i {display:none;}
  .preview-tools button {font-size:11px;} .option b {font-size:11px;} .custom-row {gap:3px;}
  .finish-rack {column-gap:1px;} .shop-note {font-size:11px;} .lookup {font-size:12px;}
}
@media(prefers-reduced-motion:no-preference){.option canvas {transition:transform .12s ease-out;} .option input:hover+span canvas {transform:translateY(-2px);}}
.shirt-rack .option input:hover + span canvas {transform:none;}
@media(prefers-reduced-motion:no-preference){
  .shirt-rack .option canvas {transition:transform .52s cubic-bezier(.2,.75,.27,1.27);}
  .shirt-rack .option input:hover + span canvas,.shirt-rack .option input:focus-visible + span canvas {transform:rotate(var(--swing,-2.7deg));}
}
.inventory-head h1 {background:url(workshop-nameplate.webp) center/100% 100% no-repeat;color:#272342;padding:8px clamp(19px,2.2vw,34px) 13px;line-height:1.08;font-size:clamp(25px,2.6vw,38px);transform:rotate(-1.3deg);text-align:center;}
@media(max-width:820px){.inventory-head h1 {font-size:clamp(21px,5.7vw,29px);padding:6px 17px 10px;}}

body {position:relative;isolation:isolate;}
.sky-sun {position:absolute;z-index:-1;pointer-events:none;inset:0 0 auto;height:clamp(180px,27vw,430px);background:url(sun.webp) 42% -5vw/clamp(178px,21vw,345px) auto no-repeat;}
.inventory {z-index:2;}
@media(min-width:821px) {.catalog {min-height:300px;} .preview-tools,.starter-shelf {z-index:1;} }
@media(min-width:821px){
  .shirt-heading {margin-bottom:4px;} .item-dyes {margin-bottom:10px;} .shirt-rack {row-gap:12px;}
  .shirt-rack {--hanging-height:clamp(83px,11.5vh,116px);}
  .send {position:relative;isolation:isolate;margin:2px var(--board-pad) 7px;padding:11px 12px 12px 16px;border:0;}
  .send::before {content:"";position:absolute;z-index:-1;inset:0;background:#eddbaf;border:1px solid #b29a6f;clip-path:polygon(3px 1px,99% 0,100% 5px,calc(100% - 2px) 100%,4px calc(100% - 1px),0 94%,2px 75%,0 59%,2px 44%,0 24%,2px 16%);}
  .send::after {content:"";position:absolute;pointer-events:none;left:6px;top:7px;bottom:6px;border-left:1px dashed #b69b74;}
  #command {background:transparent;border:0;border-bottom:1px solid #a68a65;padding-left:2px;}
}
@media(max-width:820px) {.sky-sun {height:200px;background-position:calc(100% + 40px) -13px;background-size:150px auto;} .starter-shelf {z-index:1;} }
@media(min-width:1190px){.wood-palette {grid-template-columns:repeat(6,minmax(0,1fr));} .studio {padding-bottom:clamp(112px,9.8vw,152px);}}
@media(max-width:820px){.mast .twitch {text-shadow:0 1px 2px #14204a,1px 1px 1px #14204a,-1px -1px 2px #14204a;}}

.channel-tools {display:flex;align-items:center;gap:clamp(9px,1.5vw,24px);}
#watch-stream {display:inline-flex;align-items:center;gap:8px;padding:6px 12px;
  color:#fff0cd;background:#333257;border:2px solid #191f43;box-shadow:1px 2px 0 #151d42;
  font:750 14px/1.15 DM,sans-serif;}
#watch-stream:hover,#watch-stream[aria-expanded=true] {background:#49416a;}
#watch-stream i {width:0;height:0;border-block:5px solid transparent;border-left:8px solid #f6ce69;}
#watch-stream[data-state=live] i {width:8px;height:8px;border:0;border-radius:50%;background:#ff8076;}
.studio.watching {grid-template-areas:"window inventory" "tools inventory" "watch inventory" "shelf inventory";
  grid-template-rows:minmax(215px,1fr) auto auto auto;}
.studio.watching .inventory {align-self:start;position:sticky;top:8px;}
.stream-dock {grid-area:watch;z-index:1;justify-self:start;align-self:start;
  width:min(536px,calc(100% - 48px));margin:5px 0 14px clamp(15px,3.2vw,62px);
  color:#fff0d5;background:#262746;border:3px solid #23243e;box-shadow:3px 4px 0 #111a3bcc;}
.stream-bar {position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:7px 17px;color:#2e2533;background:#e8c68a;border-bottom:2px solid #2b2944;
  box-shadow:inset 0 2px #f6dcab,inset 0 -2px #bf995b;}
.stream-bar::before,.stream-bar::after {content:"";position:absolute;top:calc(50% - 2px);width:4px;height:4px;
  background:#8b693d;border-radius:50%;box-shadow:0 1px #f7ddaa;}
.stream-bar::before {left:5px;} .stream-bar::after {right:5px;}
.stream-bar > div {display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;}
.stream-bar h2 {margin:0;font:700 18px/1.1 var(--head);letter-spacing:-.02em;}
.stream-bar button {border:0;padding:4px 0 4px 8px;background:none;font:750 13px/1 DM,sans-serif;text-decoration:underline;text-underline-offset:3px;}
#stream-state {font:750 12px/1.2 DM,sans-serif;} .stream-dock[data-state=live] #stream-state {color:#7e291c;}
#stream-player {width:100%;min-height:300px;aspect-ratio:16/9;background:#161725;}
#stream-player iframe {display:block;width:100%;height:100%;min-height:300px;border:0;}
.stream-dock footer {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;font:600 12px/1.3 DM,sans-serif;}
.stream-dock footer a {margin-left:auto;color:#ffe2a4;text-underline-offset:3px;white-space:nowrap;}
.setup-sign ol {padding-left:21px;} .setup-sign li {margin-block:11px;}
.callback-address {display:block;overflow-wrap:anywhere;font:650 13px/1.5 DM,sans-serif;margin:6px 0;}
.setup-sign .copy-address {padding:4px 8px;font-size:12px;}
@media(min-width:821px) and (max-width:1080px){
  .stream-dock {width:calc(100% - 28px);margin-left:14px;}
}
@media(max-width:820px){
  .channel-tools {gap:10px;} #watch-stream {padding:5px 7px;font-size:12px;}
  .stream-dock {align-self:center;width:min(550px,100%);margin:0 0 10px;}
  .studio.watching .inventory {align-self:center;position:relative;top:auto;}
}
@media(max-width:550px){.stream-dock {border-inline-width:0;}}
@media(min-width:400px) and (max-width:820px) and (min-height:750px){
  .stream-dock {position:sticky;top:0;z-index:4;}
  .watching-stream {scroll-padding-top:394px;}
}
@media(max-width:365px){
  .mast {padding-inline:10px;} .mast .brand {width:112px;}
  .channel-tools {gap:7px;} .channel-tools .twitch {font-size:12px;}
}
