/* Shared windows and the structural game-client menu. */
/* Real dialogs share the same violet-and-gold frame; battle controls retain their own contrast. */
html[data-layout=dimensions] body dialog:not(.world-map-dialog){--cream:#f7e6c5;--gold:#efcc94;--muted:#c8bfd6;background:linear-gradient(145deg,#39354e,#252b43);color:#f3e6d3;border:1px solid #d6b886;border-radius:16px;box-shadow:0 0 0 3px #9a779927,0 24px 70px #1d173ba3;color-scheme:dark}
html[data-layout=dimensions] dialog::backdrop{background:#25213fb5;backdrop-filter:blur(8px)}
html[data-layout=dimensions] body :is(.workshop-header,.adv-header,.housing-header,.workbench-header,.friends-header,.market-heading,.staff-heading,.jukebox-header){background:linear-gradient(115deg,#615079,#333b5a);border-bottom-color:#d3b59266;color:#f4e6ca}
html[data-layout=dimensions] body :is(.workshop-header,.adv-header,.housing-header,.workbench-header,.friends-header,.market-heading,.staff-heading,.jukebox-header) :is(h1,h2,h3){color:#ffe7b9}
html[data-layout=dimensions] body :is(.workshop-tabs,.adv-tabs,.housing-tabs,.market-tabs,.workbench-tabs){background:#2b2d46;border-color:#b699ba55}
html[data-layout=dimensions] body :is(.workshop-tab,.adv-tabs button,.housing-tabs button,.market-tabs button,.workbench-tabs button){color:#cfc3db;border-bottom-color:transparent}
html[data-layout=dimensions] body :is(.workshop-tab.active,[aria-selected=true],.adv-tabs button[aria-pressed=true],.housing-tabs button[aria-pressed=true],.market-tabs button[aria-pressed=true],.workbench-tabs button[aria-pressed=true]){color:#ffe1aa;border-color:#c7a0d0}
html[data-layout=dimensions] body :is(.ws-class,.ws-talent,.ws-race,.ws-hero-card,.ws-live-abilities,.ws-catalog-card,.ws-concept-card,.adv-resource,.adv-section,.adv-choice,.adv-combatant,.adv-enemy,.market-item,.workbench-card,.housing-preview,.friend-card){background:#353850;border-color:#ac98ba50;color:#eee5d2}
html[data-layout=dimensions] body :is(.ws-class,.ws-talent,.ws-race,.adv-section,.adv-choice,.market-item,.workbench-card) :is(strong,h3,h4){color:#f3dbb2}
html[data-layout=dimensions] body :is(.ws-class,.ws-talent,.ws-race,.adv-section,.adv-choice,.market-item,.workbench-card) :is(p,small){color:#c3bdd0}
html[data-layout=dimensions] body dialog :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){background:#232b43;border-color:#b9a1c070;color:#f4e5c8;border-radius:6px}
html[data-layout=dimensions] body dialog .button.gold{background:linear-gradient(125deg,#ad81ce,#72518f);border-color:#dec293;color:#fff1d2;box-shadow:inset 0 1px #efd8ed66,0 3px 10px #241d3e55;border-radius:8px}
html[data-layout=dimensions] body dialog :is(.button.outline,.button.subtle){background:#4a3d5e66;border-color:#b69ac17a;color:#e7d7ea;border-radius:7px}
html[data-layout=dimensions] body dialog :is(.text-link,.ws-text-button){color:#e4bde9}
html[data-layout=dimensions] .theme-dialog{width:min(670px,94vw);padding:31px!important;background:linear-gradient(125deg,#fff8eafc,#f2e5effc)!important;color:#594264!important;color-scheme:light!important;border-color:#c6a27f!important}
html[data-layout=dimensions] .theme-dialog h2{color:#634574;font-size:29px}html[data-layout=dimensions] .theme-dialog>p{color:#826d8a;font-size:12px}.theme-swatch.dimensions{background:url('/assets/interface/weltenpark-main-v1.png') center/cover}.theme-choice[data-theme-choice=dimensions]{border-color:#bb93c8;background:linear-gradient(120deg,#ab82d31b,#f0d9ac12)}
html[data-layout=dimensions] .theme-dialog .theme-choice{border-color:#c9b1c7;background:#fffcf44d;color:#5e4570}html[data-layout=dimensions] .theme-dialog .theme-choice strong{font-size:20px}html[data-layout=dimensions] .theme-dialog .theme-choice small{color:#826e89;font-size:11px}html[data-layout=dimensions] .theme-dialog .theme-choice[aria-pressed=true]{border-color:#a078b8;box-shadow:0 0 0 2px #b18cc831;background:#eadcf4a8}html[data-layout=dimensions] .theme-dialog .theme-close{color:#876a98}

.ds-profile-avatar{display:flex;align-items:center}.ds-hero-chooser,.ds-hub{width:min(1040px,94vw);max-height:90dvh;padding:26px;overflow:auto}.ds-hero-chooser>header,.ds-hub>header{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #bda2c05c;padding:0 0 18px;margin-bottom:16px}.ds-hero-chooser h2,.ds-hub h2{font:31px Georgia;color:#ffe3b4;margin:0}.ds-hero-chooser>header>button,.ds-hub>header>button{border:0;background:none;color:#e7c9e9;font:28px system-ui;padding:0 5px}.ds-hero-chooser>p,.ds-hub>p{font:13px/1.6 system-ui;color:#c9c1d5;margin:0 0 20px}.ds-hero-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ds-hero-grid>button{position:relative;display:flex;flex-direction:column;gap:5px;align-items:center;padding:18px 16px;background:linear-gradient(140deg,#60507380,#35364d);border:1px solid #b29abe70;border-radius:12px;color:#e9dfed;text-align:center;min-width:0;cursor:pointer}.ds-hero-grid>button img{width:100%;height:160px;object-fit:contain;filter:drop-shadow(0 8px 7px #241b3d77)}.ds-hero-grid>button strong{font:24px Georgia;color:#f9e1b4;margin-top:6px}.ds-hero-grid>button small{font:11px system-ui;color:#c8bcd3}.ds-hero-ownership{margin-top:8px;font:700 10px/1.5 system-ui;color:#dac299}.ds-hero-grid>button[data-state=locked]{background:#303147;border-style:dashed;opacity:.72}.ds-hero-grid>button[data-state=locked] img{filter:grayscale(.5) brightness(.8)}.ds-hero-grid>button[data-state=rotation] .ds-hero-ownership{color:#e7b7e7}.ds-hero-grid>button[aria-pressed=true]{border:2px solid #efce97;padding:17px 15px;box-shadow:0 0 0 3px #b995d53b,inset 0 0 30px #be8be928}.ds-hero-grid>button[aria-pressed=true]:after{content:'✓';position:absolute;top:13px;right:13px;display:grid;place-items:center;border:1px solid #e9cd94;border-radius:50%;width:25px;height:25px;color:#ffe6b2;background:#57406e;font:700 13px system-ui}.ds-hero-grid>button:hover{filter:brightness(1.12)}.ds-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ds-hub-grid>button{display:flex;flex-direction:column;gap:10px;align-items:flex-start;text-align:left;padding:24px;background:linear-gradient(140deg,#5f487b7d,#33384d);border:1px solid #a68caf75;border-radius:12px;min-height:140px;color:#efe2ec;cursor:pointer}.ds-hub-grid>button strong{font:24px Georgia;color:#f9dfb0}.ds-hub-grid>button small,.ds-hub-grid>button p{font:12px/1.6 system-ui;color:#c8bdd4;margin:0}.ds-hub-grid>button>span:first-child{font:30px Georgia;color:#ebc995}.ds-hub-grid>button:hover{border-color:#dfbdea;background:linear-gradient(140deg,#8060938c,#44455f)}.ds-preview-note{position:fixed;left:50%;bottom:3px;transform:translateX(-50%);z-index:10;font:700 8px/1.2 system-ui;letter-spacing:.07em;color:#7e637e;pointer-events:none;white-space:nowrap}

/* The two permanent controls have one position in either home layout. */
.appearance-controls{position:fixed;right:16px;bottom:calc(135px + env(safe-area-inset-bottom,0px));z-index:36;display:flex;align-items:center;gap:8px;max-width:calc(100vw - 30px)}
html[data-layout] body .appearance-controls :is(.theme-toggle,.layout-transform){position:static;inset:auto;margin:0;border:1px solid #d5b885a6;border-radius:25px;background:#39304aeb;color:#f7e5bd;box-shadow:0 3px 14px #251d3b55;font:700 10px/1.3 system-ui;padding:10px 14px;min-height:36px;white-space:nowrap;cursor:pointer}
html[data-layout] body .appearance-controls .layout-transform{background:linear-gradient(125deg,#9674bc,#655088);border-color:#f0cd90;box-shadow:inset 0 1px #dfcaee55,0 3px 15px #50336d55}
html[data-layout=classic] body .appearance-controls .theme-toggle{background:#253c35ed;color:#efdbab;border-color:#b6ad7a99}
html[data-layout=classic][data-theme=weltenpark] body .appearance-controls .theme-toggle{background:#fff8ee;color:#74548a;border-color:#bca3ca}
.appearance-controls :is(.layout-transform,.theme-toggle):focus-visible{outline:3px solid #ffe1a2;outline-offset:4px}
body:not(.screen-home) .appearance-controls{bottom:17px}body:not(.screen-home) .appearance-controls .layout-transform{display:none}
.screen-game .appearance-controls,.screen-tavern .appearance-controls{display:none}
.theme-layout-note{font-size:11px!important;padding:11px 13px;border-left:2px solid #c9a6d0;background:#9f7ab914;border-radius:0 7px 7px 0}
@media(max-height:680px) and (min-width:701px){.appearance-controls{bottom:calc(108px + env(safe-area-inset-bottom,0px))}}
@media(max-width:700px){.appearance-controls{right:9px;bottom:calc(10px + env(safe-area-inset-bottom,0px));gap:6px;max-width:calc(100vw - 18px)}html[data-layout] body .appearance-controls :is(.theme-toggle,.layout-transform){font-size:9px;min-height:33px;padding:8px 11px}body:not(.screen-home) .appearance-controls{bottom:10px}}


/* The account doorway uses the same violet, cream and gold as the game. */
html[data-layout=dimensions] body.screen-auth{background:#51435f}
html[data-layout=dimensions] .screen-auth .auth-gate{background:radial-gradient(ellipse at 98% 4%,#c7acda55,transparent 60%),linear-gradient(140deg,#6e597b,#413d5b);padding-right:clamp(20px,3vw,55px);column-gap:clamp(20px,3vw,55px)}
html[data-layout=dimensions] .screen-auth .auth-world{background:#7b6c87;border-right:1px solid #e1c69588}
html[data-layout=dimensions] .auth-world:before{background:linear-gradient(180deg,#30243b80,transparent 30%,transparent 75%,#392e4d66)}
html[data-layout=dimensions] .auth-panel{max-width:570px;margin:34px 0;padding:36px clamp(24px,3vw,46px);background:linear-gradient(135deg,#fff9eaf9,#f3e6edf7);border:1px solid #d8ba8c;border-radius:18px;box-shadow:0 0 0 4px #e8cfaa19,0 22px 70px #211a3d55;color:#5b446c;color-scheme:light}
html[data-layout=dimensions] .auth-panel .auth-entrance-link{color:#7c608a;font-size:12px;margin-bottom:25px}
html[data-layout=dimensions] .auth-panel .auth-entrance-link:hover{color:#533970}
html[data-layout=dimensions] .auth-panel .auth-form-brand{color:#755087}
html[data-layout=dimensions] .auth-panel .auth-tabs{padding:5px;gap:5px;border:1px solid #c8b0cd;background:#e8dcec;border-radius:10px}
html[data-layout=dimensions] .auth-panel .auth-tabs button{border-radius:6px;color:#796786;min-height:44px}
html[data-layout=dimensions] .auth-panel .auth-tabs button[aria-pressed=true]{color:#fff0ce;background:linear-gradient(120deg,#a279c0,#73518e);box-shadow:inset 0 1px #dac2ed99,0 2px 7px #78538b30}
html[data-layout=dimensions] .auth-panel h2{color:#624476;margin-top:26px}
html[data-layout=dimensions] .auth-panel>p,html[data-layout=dimensions] .auth-panel .auth-requirements{color:#7c6887;font-size:13px;line-height:1.7}
html[data-layout=dimensions] .auth-panel label{color:#695477;font-size:11px;letter-spacing:.05em}
html[data-layout=dimensions] .auth-panel input{background:#fffcf5;color:#513b65;border:1px solid #baa1c3;border-radius:8px}
html[data-layout=dimensions] .auth-panel input::placeholder{color:#99869d}
html[data-layout=dimensions] .auth-panel input:focus{border-color:#9670af;box-shadow:0 0 0 3px #b18ccd26;outline:2px solid transparent}
html[data-layout=dimensions] .auth-input>span,html[data-layout=dimensions] .auth-input button{color:#9a79a4}
html[data-layout=dimensions] .auth-panel #authMessage{color:#a6575e;background:#b2675910;border-radius:5px}
html[data-layout=dimensions] .auth-panel #authMessage:empty{background:none}
html[data-layout=dimensions] .auth-panel #authSubmit{background:linear-gradient(125deg,#a67fc6,#73508e);border:1px solid #d5b385;border-radius:9px;color:#fff1d0;box-shadow:inset 0 1px #ead2f0aa,0 4px 12px #71508528}
html[data-layout=dimensions] .auth-panel .auth-local{border-color:#c3a9c444;color:#856f8d;font-size:12px}
html[data-layout=dimensions] .auth-panel .auth-world-preview{color:#7e598f;font-size:12px;text-decoration:underline;text-underline-offset:4px}
@media(max-width:1000px) and (min-width:761px){html[data-layout=dimensions] .screen-auth .auth-gate{grid-template-columns:minmax(280px,42%) minmax(0,1fr);padding-right:22px;column-gap:22px}html[data-layout=dimensions] .auth-panel{padding:28px 25px}.auth-art-brand>span{font-size:17px}}
@media(max-width:760px){html[data-layout=dimensions] .screen-auth .auth-gate{padding:25px 18px 80px;background:linear-gradient(160deg,#3c365ebf,#6d5375bb),url('/assets/interface/heldenhof-v1.png') center/cover fixed}html[data-layout=dimensions] .auth-panel{margin:20px 0;padding:28px 25px;max-width:470px}html[data-layout=dimensions] .auth-panel .auth-form-brand{margin-bottom:22px}}

/* Waiting for friends is part of the same game, with clear readable cards. */
html[data-layout=dimensions] body.screen-lobby{background:radial-gradient(ellipse at 8% 5%,#dcc8ee 0,transparent 58%),radial-gradient(ellipse at 95% 70%,#f7d8c0 0,transparent 60%),#f1e9f3;color:#594769}
html[data-layout=dimensions] .screen-lobby .world-shade{background:linear-gradient(110deg,#f0e9f6ed,#f2e7edeb)}
html[data-layout=dimensions] .lobby-screen{padding-bottom:85px}
html[data-layout=dimensions] .lobby-top h1{color:#5e4174;font-size:clamp(34px,4vw,52px)}
html[data-layout=dimensions] .lobby-top .eyebrow,html[data-layout=dimensions] .lobby-screen .section-label{color:#9874a2}
html[data-layout=dimensions] .lobby-screen :is(.button.outline,.button.subtle){background:#fff8ec;color:#77568a;border-color:#bea2c5;border-radius:8px;font-size:10px}
html[data-layout=dimensions] .lobby-screen .button.gold{color:#fff1d0;background:linear-gradient(125deg,#aa80c9,#73508f);border-color:#d6b383;border-radius:9px;font-size:11px}
html[data-layout=dimensions] .lobby-screen :is(.lobby-scene-entry,.ux-lobby-next){background:linear-gradient(120deg,#6d537f,#42415e);border:1px solid #cfb28b;border-radius:12px;box-shadow:0 5px 14px #6a4b7d1a}
html[data-layout=dimensions] .lobby-screen :is(.lobby-scene-entry,.ux-lobby-next) strong{color:#ffe8b8}
html[data-layout=dimensions] .lobby-screen :is(.lobby-scene-entry,.ux-lobby-next) :is(p,span){color:#e5d7e9;font-size:12px}
html[data-layout=dimensions] .lobby-screen .ux-lobby-next[data-ready=true]{background:linear-gradient(120deg,#605a80,#3e5669);border-color:#c6cdae}
html[data-layout=dimensions] .lobby-screen .player-slot{background:linear-gradient(140deg,#756183,#3b3d59);border:1px solid #bda0c2;border-radius:11px;box-shadow:0 4px 13px #6b4d7e18}
html[data-layout=dimensions] .lobby-screen .player-slot.ready{border-color:#d5bd83;background:linear-gradient(140deg,#876b8f,#484966)}
html[data-layout=dimensions] .lobby-screen .player-slot.empty{background:#e9deed;border-color:#bfa7c5;color:#97839e}
html[data-layout=dimensions] .lobby-screen .slot-name{color:#fff0ce}
html[data-layout=dimensions] .lobby-screen .slot-champion,html[data-layout=dimensions] .lobby-screen .slot-state{color:#e1d5e8;font-size:11px}
html[data-layout=dimensions] .lobby-screen .slot-number{color:#d2bddd;font-size:9px}
html[data-layout=dimensions] .lobby-screen .empty :is(.slot-name,.slot-champion,.slot-state,.slot-number,.empty-plus){color:#9981a3;text-shadow:none}
html[data-layout=dimensions] .lobby-screen .mode-card{background:linear-gradient(125deg,#fff9ef,#f1e5ed);border-color:#cbb3cb;border-radius:10px;padding:17px;min-height:90px}
html[data-layout=dimensions] .lobby-screen .mode-card :is(strong,span){color:#78598d;font-size:12px}
html[data-layout=dimensions] .lobby-screen .mode-card>span{font-size:26px}
html[data-layout=dimensions] .lobby-screen .mode-card small{color:#8a7393;font-size:11px;line-height:1.5}
html[data-layout=dimensions] .lobby-screen .mode-card.selected{background:linear-gradient(120deg,#956fba,#6b508b);border-color:#dfc28e;box-shadow:0 0 0 2px #c2a0d13b}
html[data-layout=dimensions] .lobby-screen .mode-card.selected :is(strong,span){color:#fff0c7}
html[data-layout=dimensions] .lobby-screen .mode-card.selected small{color:#ead7ee}
html[data-layout=dimensions] .lobby-screen :is(.mode-description,.difficulty-setting){background:#e8dcecc9;border-color:#b99ac3;color:#7f6489;border-radius:0 8px 8px 0;font-size:12px}
html[data-layout=dimensions] .lobby-screen :is(.difficulty-setting label,.difficulty-setting small,.muted){color:#856b90;font-size:11px;line-height:1.6}
html[data-layout=dimensions] .lobby-screen select{background:#fff9ee;color:#6d4c82;border:1px solid #c1a5c9;border-radius:6px;padding:8px}
html[data-layout=dimensions] .lobby-screen .invite-panel{background:linear-gradient(140deg,#fff9ec,#f0e0ea);border:1px solid #c8a77e;border-radius:14px;box-shadow:0 8px 24px #8865941c;align-self:start}
html[data-layout=dimensions] .lobby-screen .invite-panel :is(h2,.tiny){color:#78568b}
html[data-layout=dimensions] .lobby-screen .invite-panel :is(p,.field-label,.room-code span){color:#907698;font-size:11px}
html[data-layout=dimensions] .lobby-screen .invite-panel .copy-field input{background:#fffdf6;border-color:#c4a8ca;color:#796086;font-size:12px}
html[data-layout=dimensions] .lobby-screen .copy-field button{color:#fff0d2;border-color:#b69ac2;background:#8f6cab}
html[data-layout=dimensions] .lobby-screen .room-code strong{color:#8a609c;font-size:26px}
html[data-layout=dimensions] .lobby-screen .text-link{color:#805b92;font-size:12px}
@media(max-width:760px){html[data-layout=dimensions] .lobby-screen{padding:28px 18px 80px}html[data-layout=dimensions] .lobby-layout{gap:18px}html[data-layout=dimensions] .lobby-top{align-items:center}.lobby-screen .lobby-actions{flex-wrap:wrap}.lobby-screen .lobby-actions>.button{min-width:180px}}

/* Small account and lobby dialogs keep one visual hierarchy and usable touch targets. */
html[data-layout=dimensions] body :is(#entryDialog,#settingsDialog,.ds-hub,.ds-hero-chooser,.menu-preview-dialog){scrollbar-width:thin;scrollbar-color:#b396bd #2c2c43;scroll-padding:20px;overscroll-behavior:contain}
html[data-layout=dimensions] body:not(.screen-game) #entryDialog{width:min(530px,calc(100vw - 28px));max-height:calc(100dvh - 30px);padding:32px;overflow:auto}
html[data-layout=dimensions] #entryDialog h2{font-size:33px;color:#ffe4b5;margin-right:25px}
html[data-layout=dimensions] #entryDialog #entryCopy{font-size:13px;line-height:1.7;color:#cfc4dc}
html[data-layout=dimensions] #entryDialog :is(label,.field-label){color:#cbb7d6;font-size:10px;letter-spacing:.07em}
html[data-layout=dimensions] #entryDialog .ux-entry-hero{background:linear-gradient(120deg,#674d7e,#3d3c57);border-color:#b599ba7a;border-radius:10px;padding:15px}
html[data-layout=dimensions] #entryDialog .ux-entry-hero strong{color:#ffe5b4}
html[data-layout=dimensions] #entryDialog .ux-entry-hero small,html[data-layout=dimensions] #entryDialog .ux-entry-heroes summary{color:#d4bfdc}
html[data-layout=dimensions] #entryDialog .entry-pick{min-height:61px;background:#363b53;border:1px solid #a78bb566;border-radius:8px;color:#d9ccde;font-size:16px}
html[data-layout=dimensions] #entryDialog .entry-pick.selected{background:linear-gradient(120deg,#8764a5,#4f406c);border-color:#e2c494;color:#ffe8b6;box-shadow:0 0 0 2px #ae8bc32b}
html[data-layout=dimensions] #entryDialog #entrySubmit{min-height:52px;font-size:11px;margin-top:22px}
html[data-layout=dimensions] body dialog :is(.close-dialog,.theme-close){min-width:36px;min-height:36px;border-radius:50%;background:#e0bfeb0a}
html[data-layout=dimensions] body dialog :is(.close-dialog,.theme-close):hover{background:#d8b7e520;color:#fff0cf}
html[data-layout=dimensions] .ds-hero-chooser>header,html[data-layout=dimensions] .ds-hub>header{position:sticky;top:-26px;z-index:5;margin:-26px -26px 16px;padding:22px 26px 18px;background:linear-gradient(115deg,#4b3e5c,#30344c);border-bottom:1px solid #ceb38a66}
html[data-layout=dimensions] .ds-hero-chooser>header>button,html[data-layout=dimensions] .ds-hub>header>button{min-width:38px;min-height:38px;border:1px solid #b397be55;border-radius:50%;background:#be95d00b;flex:none}
@media(max-width:700px){html[data-layout=dimensions] body:not(.screen-game) #entryDialog{padding:26px 21px}html[data-layout=dimensions] .ds-hero-chooser>header,html[data-layout=dimensions] .ds-hub>header{top:-22px;margin:-22px -17px 16px;padding:17px 17px 14px}.ds-hero-chooser>header h2,.ds-hub>header h2{font-size:25px}.menu-preview-dialog header button{min-width:38px;min-height:38px}}


/* Client shell: one hero hall, one navigation rail, and separate social space. */
#dimensionHome{display:none}
html[data-layout=dimensions] body.screen-home{--ds-social-height:48px;--ds-utility-height:52px;--ds-header-height:78px;padding:0;margin:0;overflow:hidden;height:100dvh;min-height:0;background:#d3c3dc}
html[data-layout=dimensions] body.screen-home :is(#home,#topbar,.home-atmosphere,.world-shade,.ux-connection,#audioToggle,.site-footer){display:none!important}
html[data-layout=dimensions] body.screen-home #world{visibility:hidden}
html[data-layout=dimensions] body.screen-home #dimensionHome{display:grid;grid-template-rows:var(--ds-header-height) minmax(0,1fr) var(--ds-utility-height)}
.ds-shell{--ds-ink:#493a60;--ds-gold:#e8c88f;--ds-pale:#fff0d0;position:fixed;inset:0 0 calc(var(--ds-social-height,48px) + env(safe-area-inset-bottom,0px));z-index:24;isolation:isolate;overflow:hidden;color:var(--ds-pale);font-family:system-ui,-apple-system,'Segoe UI',sans-serif;background:linear-gradient(125deg,#c8b5df,#e7cfdf 55%,#f2dcc4)}
.ds-shell *{box-sizing:border-box}.ds-shell [hidden]{display:none!important}.ds-shell :is(button,a,select){font-family:inherit;-webkit-tap-highlight-color:transparent}.ds-shell button{cursor:pointer}.ds-shell button:disabled{cursor:default;opacity:.5;filter:saturate(.4)}
.ds-shell :is(button,a,select):focus-visible{outline:3px solid #ffe0a0;outline-offset:4px;box-shadow:0 0 0 7px #72538b66}
.ds-header{grid-row:1;position:relative;z-index:12;display:flex;align-items:center;gap:20px;padding:12px clamp(18px,2.2vw,54px);border-bottom:1px solid #e2c18bb3;background:linear-gradient(100deg,#3b3556f5,#675074f2 65%,#41405df5);box-shadow:0 4px 20px #3f2c5733}
.ds-brand{border:0;background:none;padding:0;display:flex;align-items:center;gap:9px;color:#ffe6b4;font:clamp(22px,1.4vw,36px)/1 Georgia,serif;letter-spacing:.045em;white-space:nowrap;text-shadow:0 2px 6px #2b224e66}
.ds-brand img{width:38px;height:42px;object-fit:contain}.ds-brand :is(strong,span){font-weight:400}
.ds-current-section{display:grid;grid-template-columns:15px minmax(0,1fr);align-items:center;gap:3px 10px;padding-left:24px;border-left:1px solid #d4bad75c;color:#eadbeb;font:17px Georgia,serif;min-width:0;white-space:nowrap}
.ds-current-section:before{content:'✦';grid-row:span 2;color:#e4c48e;font:15px Georgia}
.ds-current-section small{font:700 8px/1.2 system-ui;letter-spacing:.11em;color:#c8adc9}.ds-current-section strong{font:20px/1.15 Georgia;color:#ffebc8}
.ds-view-switch{display:none}
.ds-account{margin-left:auto;display:flex;gap:11px;align-items:center;border:1px solid #d6b68a80;border-radius:10px;padding:6px 12px;background:#302d49ab;color:#ffedc4;text-align:left;min-height:48px}
.ds-account img{width:36px;height:36px;object-fit:contain;border:1px solid #d4b98e99;border-radius:50%;background:#78638c}
.ds-account strong{display:block;font:18px Georgia}.ds-account small{display:block;margin-top:3px;font:10px system-ui;color:#d7c4e0}.ds-profile-avatar{display:flex;align-items:center}
.ds-wallet{display:flex;align-items:center;gap:7px;min-height:43px;padding:9px 14px;border:1px solid #d9bd8f55;border-radius:8px;background:#51405899;color:#ffe1a7;font:700 14px system-ui;white-space:nowrap}
.ds-wallet small{font:10px system-ui;color:#dcc7dd}
.ds-friends,.ds-settings{display:flex;align-items:center;gap:7px;border:1px solid #cdb28d77;border-radius:8px;background:#7057744d;color:#f4dfb8;min-height:43px;padding:9px 12px;font:600 12px system-ui;white-space:nowrap}
.ds-settings{font-size:19px;min-width:43px;justify-content:center}.ds-friends b{display:grid;place-items:center;min-width:20px;height:20px;border-radius:50%;background:#e6d6ef;color:#725081;font:800 10px system-ui}
.ds-stage{grid-row:2;position:relative;display:grid;grid-template-columns:clamp(110px,9vw,160px) minmax(0,1fr);align-items:stretch;gap:clamp(14px,1.5vw,34px);min-height:0;overflow:hidden;padding:clamp(16px,2vw,42px);background:radial-gradient(ellipse at 53% 24%,#fff4d7c9,transparent 55%),radial-gradient(ellipse at 30% 90%,#ae99c66b,transparent 55%),linear-gradient(130deg,#c2afdc,#ead5df 62%,#f1dcc1)}
.ds-stage:before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.27;background:repeating-linear-gradient(90deg,transparent 0 109px,#fff6dd80 110px 111px),repeating-linear-gradient(0deg,transparent 0 109px,#fff6dd70 110px 111px);mask-image:linear-gradient(transparent 25%,#000 100%);transform-origin:50% 100%;transform:perspective(600px) rotateX(50deg) scale(1.7);z-index:0}
.ds-stage>.ds-rail{grid-column:1;grid-row:1;z-index:3}
.ds-rail{display:flex;flex-direction:column;gap:9px;justify-content:flex-start;align-self:stretch;min-height:0;padding:17px 9px;border:1px solid #d4b78c99;border-radius:15px;background:linear-gradient(180deg,#4f3c61f5,#34364ff0);box-shadow:0 8px 22px #5a3e7126;overflow:auto;scrollbar-width:thin;scrollbar-color:#9b7aa8 transparent}
.ds-rail button{display:flex;align-items:center;justify-content:flex-start;gap:9px;flex:none;min-width:0;min-height:63px;padding:15px 6px;border:1px solid transparent;border-radius:9px;text-align:left;background:transparent;color:#eadbed;font:clamp(14px,1.1vw,16px)/1.35 Georgia,serif;white-space:normal;overflow-wrap:anywhere;word-break:normal;hyphens:auto}
.ds-rail button :is(span,i){font:24px Georgia;color:#ebca94;min-width:24px;text-align:center}
.ds-rail button:hover{background:#d5b4ef12;border-color:#ceb2d333}
.ds-rail .ds-transformation-link{display:flex;flex:none;align-items:center;min-height:63px;padding:15px 6px;border:1px solid #e1a66488;border-radius:9px;background:#b168431c;color:#ffe1b1;font:14px/1.35 Georgia,serif;text-decoration:none;overflow-wrap:anywhere}
.ds-rail .ds-transformation-link:hover{background:#d5b4ef24;border-color:#f1c891}
.ds-rail .ds-transformation-link:focus-visible{outline:2px solid #ffe2a3;outline-offset:-4px}
@media(max-width:700px){.ds-rail .ds-transformation-link{min-width:130px;min-height:53px;justify-content:center;padding:8px;text-align:center;font-size:12px}}
.ds-rail button[aria-current=page],.ds-rail button[aria-pressed=true]{border-color:#e6c493;background:linear-gradient(120deg,#9a72bb,#6c4d8c);color:#ffedc5;box-shadow:inset 0 1px #d9bdf144,0 3px 12px #2b1d4730}
.ds-stage>.ds-hall{grid-column:2;grid-row:1}
.ds-hall{position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(350px,440px);gap:clamp(16px,2vw,42px);min-width:0;min-height:0;padding:0;background:none;z-index:1;animation:ds-section-arrive .35s ease-out both}
.ds-hero-stage{position:relative;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;isolation:isolate;border:1px solid #e8d1aaad;border-radius:24px;background:radial-gradient(ellipse at 50% 32%,#fff9df9c,transparent 54%),linear-gradient(155deg,#fff7e136,#b7a0cc25);box-shadow:inset 0 1px #fff9e5cc,0 6px 35px #765a8512;overflow:hidden}
.ds-hero-stage:before{content:'';position:absolute;inset:7% 10% 13%;width:auto;height:auto;border:1px solid #c2a4be55;border-bottom:0;border-radius:50% 50% 8px 8px;background:linear-gradient(90deg,transparent,#fff3d62b,transparent);box-shadow:0 0 0 20px #f8e8da14,inset 0 0 0 14px #fff4de21;pointer-events:none;transform:none;z-index:-1}
.ds-hero-stage:after{content:'';position:absolute;left:12%;right:12%;top:9%;height:66%;pointer-events:none;background:radial-gradient(ellipse at 50% 0,#fff2c266,transparent 70%);mask-image:linear-gradient(90deg,transparent,#000 40%,#000 60%,transparent);z-index:-1}
.ds-hero-canvas{position:absolute;inset:0 0 210px;width:100%;height:calc(100% - 210px);min-height:180px;display:block;touch-action:pan-y;outline:none;opacity:1;transition:opacity .35s ease,filter .35s ease}
.ds-hero-canvas[data-hero-state=loading]{opacity:.42;filter:saturate(.55)}
.ds-hero-canvas[data-hero-state=error]{opacity:.7}
.ds-hero-status{position:absolute;left:50%;top:17px;transform:translateX(-50%);z-index:3;max-width:90%;padding:8px 13px;border:1px solid #c9adcb80;border-radius:9px;color:#7c5d8b;background:#fff6e4d9;text-align:center;font:12px/1.5 system-ui;pointer-events:none}.ds-hero-status:empty{display:none}
.ds-hero-name{position:absolute;z-index:4;bottom:18px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;justify-items:center;gap:7px 10px;width:min(550px,calc(100% - 32px));min-width:0;max-width:none;padding:15px 20px;border:1px solid #cfb590;border-radius:14px;background:linear-gradient(120deg,#fff6e3e8,#f1e4eceb);box-shadow:0 7px 22px #6e4a7d24;text-align:center}
.ds-hero-name strong{grid-column:1/-1;display:block;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;color:#60436f;text-shadow:none;font:clamp(27px,2.4vw,43px)/1 Georgia,serif;letter-spacing:.01em;white-space:normal}
.ds-hero-name small{grid-column:1/-1;font:12px/1.5 system-ui;color:#8b7195;text-shadow:none;margin:0 0 5px}
.ds-hero-role{grid-column:1/-1;width:fit-content;max-width:100%;padding:7px 12px;border:1px solid var(--hero-role-color,#c1a0df);border-radius:20px;background:linear-gradient(105deg,#42364f,#564063);color:var(--hero-role-color,#ead7f2);box-shadow:inset 0 0 16px color-mix(in srgb,var(--hero-role-color,#c1a0df) 12%,transparent),0 0 0 2px color-mix(in srgb,var(--hero-role-color,#c1a0df) 13%,transparent);font:700 13px/1.35 system-ui;white-space:normal;overflow-wrap:anywhere}.ds-hero-role:empty{display:none}.ds-hero-name .ds-change-hero{flex-basis:calc(50% - 10px)}.ds-hero-name .ds-auxiliary{flex-basis:calc(50% - 10px)}
.ds-hero-name button{width:100%;max-width:240px;min-height:37px;padding:8px 11px;border:1px solid #bca0c6;border-radius:8px;color:#80608f;background:#fffaf0b8;font:600 11px/1.3 system-ui;box-shadow:none;white-space:normal}
.ds-hero-name button:hover{background:#e9daf2;color:#5d3c76}
.ds-play-panel{align-self:stretch;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:clamp(20px,1.8vw,35px);border:1px solid #caa87d;border-radius:19px;background:linear-gradient(135deg,#fff9ebf7,#f2e4edf5 70%,#f9ebdcf5);box-shadow:0 0 0 3px #ffefd773,0 12px 35px #6e4b7d2b;color:#5d466f}
.ds-play-panel>:not(.ds-modes){flex-shrink:0}
.ds-panel-kicker{display:block;color:#a080a3;font:700 9px/1.5 system-ui;letter-spacing:.07em;text-align:center;margin-bottom:7px}
.ds-play-panel h2{font:clamp(28px,2.2vw,40px)/1.12 Georgia,serif;text-align:center;color:#624774;margin:0 0 20px}
.ds-categories{display:flex;gap:5px;margin-bottom:17px;padding-bottom:16px;border-bottom:1px solid #cbb3cb80}
.ds-categories button{flex:1;min-width:0;min-height:42px;padding:10px 4px;border:1px solid #c7abcb;border-radius:8px;color:#84648f;background:#fffbf0a6;font:600 11px system-ui;white-space:nowrap}
.ds-categories button[aria-pressed=true]{border-color:#a380b9;background:linear-gradient(125deg,#ac85cd,#7a5798);color:#fff1cc;box-shadow:0 2px 8px #8a5e9e25}
.ds-modes{display:flex;flex-direction:column;gap:12px;flex:1 1 auto;min-height:86px;max-height:none;overflow:auto;padding:3px 4px 5px;scrollbar-width:thin;scrollbar-color:#b89bc4 transparent;overscroll-behavior:contain;scroll-padding:5px}
.ds-modes>button{position:relative;display:grid;grid-template-columns:27px minmax(0,1fr);gap:7px 12px;flex:none;width:100%;padding:18px 17px;border:1px solid #c8afca;border-radius:12px;color:#6b4d80;background:linear-gradient(125deg,#fffcf1,#f1e5ef);text-align:left;box-shadow:0 3px 9px #a785ad14}
.ds-mode-icon{grid-row:span 2;align-self:center;color:#ae87b8;text-align:center;font:28px Georgia}
.ds-modes>button strong{font:23px/1.13 Georgia,serif;max-width:calc(100% - 23px);font-weight:400}.ds-modes>button small{font:12px/1.5 system-ui;color:#8e7898;max-width:100%}
.ds-modes>button[aria-pressed=true]{color:#fff0ce;border-color:#e2bf8f;background:linear-gradient(110deg,#a77bca,#755093 75%,#8c65a7);box-shadow:0 0 0 2px #c9a3d733,inset 0 1px #e2c3ef88}
.ds-modes>button[aria-pressed=true] small{color:#efdbf1}.ds-modes>button[aria-pressed=true] .ds-mode-icon{color:#f4d6a2}
.ds-modes>button[aria-pressed=true]:after{content:'✓';position:absolute;right:13px;top:18px;display:grid;place-items:center;width:22px;height:22px;border:1px solid #f1d5ae;border-radius:50%;color:#ffedc6;font:700 12px system-ui}
.ds-mode-detail{min-height:0;margin:0;padding:16px 2px;color:#8a7196;font:12px/1.6 system-ui;overflow-wrap:anywhere}.ds-mode-detail p{margin:0 0 7px}.ds-mode-detail small{display:block;color:#a286a7;font:11px/1.5 system-ui}.ds-mode-detail strong{color:#765085}
.ds-primary-start{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:10px;min-height:60px;padding:14px 26px;border:1px solid #efcd95;border-radius:12px;color:#fff0c6;background:linear-gradient(125deg,#b18bd5,#9264b7 45%,#745095);box-shadow:inset 0 2px #ecd8f188,inset 0 -2px #583d7566,0 0 0 2px #b99c7c55,0 5px 14px #7c58973b;text-shadow:0 2px 3px #62437599;font:28px/1.1 Georgia,serif;letter-spacing:.03em;white-space:nowrap;transition:filter .18s,transform .18s}
.ds-primary-start:before{content:'';position:absolute;inset:-50% -80%;z-index:-1;background:linear-gradient(115deg,transparent 42%,#fff4db26 50%,transparent 58%);animation:ds-button-glimmer 8s ease-in-out infinite}
.ds-primary-start:hover{filter:brightness(1.1);transform:translateY(-2px)}.ds-primary-start:active{transform:translateY(1px)}.ds-play-panel>.ds-primary-start{width:100%;margin-top:3px}
.ds-secondary-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:12px;flex-shrink:0}
.ds-secondary-actions :is(button,a){flex:1 1 120px;display:flex;align-items:center;justify-content:center;min-height:40px;padding:9px 11px;border:1px solid #bea3c6;border-radius:8px;background:#fff8edaa;color:#81608e;font:600 11px/1.3 system-ui;text-decoration:none;text-align:center}
.ds-secondary-actions :is(button,a):hover{background:#e9dbee;border-color:#9f7bb1}
.ds-heroes-workspace{grid-column:2;grid-row:1;position:relative;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aa89b6 transparent;padding:clamp(18px,2vw,34px);border:1px solid #d7ba99;border-radius:18px;background:linear-gradient(135deg,#665074ed,#3b3a56f5);box-shadow:inset 0 1px #e9cfe329,0 8px 28px #75508626;z-index:2;animation:ds-section-arrive .35s ease-out both}
.ds-cards-loading{padding:35px 20px;text-align:center;font:16px/1.7 Georgia;color:#efdbb8}
.ds-shell[data-page=heroes]>.ds-stage{background:radial-gradient(ellipse at 60% 10%,#fff0d4c9,transparent 55%),linear-gradient(135deg,#c5b1db,#ecd3df 75%,#eadbc8)}
.ds-shell>.ds-quick-links{grid-row:3;position:relative;inset:auto;z-index:14;display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:nowrap;width:100%;max-width:none;min-height:52px;padding:7px 290px 7px 22px;border-top:1px solid #d6b98a80;background:linear-gradient(100deg,#443651f7,#63506ff5);box-shadow:0 -3px 14px #5b3f6c19}
.ds-quick-links button{flex:none;min-height:36px;padding:8px 13px;border:1px solid #bea0c36b;border-radius:8px;background:#3a304f66;color:#ead6ed;font:600 11px system-ui;white-space:nowrap;box-shadow:none}

html[data-layout=dimensions] body.screen-home .appearance-controls{right:18px;bottom:calc(56px + env(safe-area-inset-bottom,0px));z-index:36}
.ds-shell>.ds-dock{display:none}
.ds-preview-note{position:fixed;left:50%;bottom:calc(99px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:28;padding:3px 10px;border-radius:8px;background:#63506f66;font:700 8px/1.3 system-ui;letter-spacing:.04em;color:#fff1d1;pointer-events:none;white-space:nowrap}
@keyframes ds-section-arrive{from{opacity:.4;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes ds-button-glimmer{0%,76%,100%{transform:translateX(-45%)}92%{transform:translateX(45%)}}
@media(min-width:2200px){
 html[data-layout=dimensions] body.screen-home{--ds-header-height:96px}.ds-header{gap:30px}.ds-brand{font-size:36px}.ds-current-section{font-size:24px;padding-left:34px}.ds-stage{padding:38px 48px;gap:34px}.ds-rail{padding:22px 11px;gap:12px}.ds-rail button{font-size:20px;min-height:78px;padding:18px 11px}
 .ds-hall{grid-template-columns:minmax(0,1fr) minmax(440px,560px);gap:40px}.ds-play-panel{padding:36px}.ds-play-panel h2{font-size:42px;margin-bottom:26px}.ds-panel-kicker{font-size:11px}.ds-categories{margin-bottom:24px;padding-bottom:22px}.ds-categories button{min-height:52px;font-size:14px}.ds-modes{gap:18px}.ds-modes>button{padding:25px 23px;grid-template-columns:35px minmax(0,1fr)}.ds-modes>button strong{font-size:29px}.ds-modes>button small{font-size:15px}.ds-mode-icon{font-size:34px}.ds-mode-detail{font-size:16px;padding:24px 2px}.ds-mode-detail small{font-size:14px}.ds-primary-start{min-height:76px;font-size:36px}.ds-secondary-actions :is(button,a){font-size:14px;min-height:51px}.ds-hero-name{bottom:28px;padding:23px 30px;width:min(720px,calc(100% - 60px));gap:11px}.ds-hero-name strong{font-size:49px}.ds-hero-name small{font-size:16px}.ds-hero-name button{font-size:14px;max-width:300px;min-height:45px}.ds-hero-canvas{bottom:270px;height:calc(100% - 270px)}
}
@media(max-width:1100px){.ds-header{gap:12px;padding:12px 18px}.ds-current-section{font-size:15px;padding-left:17px}.ds-brand{font-size:23px}.ds-stage{grid-template-columns:110px minmax(0,1fr);padding:18px;gap:15px}.ds-hall{grid-template-columns:minmax(0,1fr) 335px;gap:16px}.ds-rail{padding:12px 6px}.ds-rail button{font-size:15px;min-height:59px;padding:12px 8px}.ds-play-panel{padding:21px 18px}.ds-play-panel h2{font-size:29px}.ds-categories{gap:4px}.ds-categories button{font-size:10px;padding:9px 3px}.ds-modes>button{padding:15px 13px;gap:5px 8px}.ds-modes>button strong{font-size:21px}.ds-modes>button small{font-size:11px}.ds-mode-detail{font-size:11px}.ds-hero-name{padding:14px 12px;width:calc(100% - 24px);gap:7px}.ds-hero-name strong{font-size:30px}.ds-hero-name small{font-size:11px}.ds-hero-name button{font-size:10px;padding:8px;min-height:37px;flex-basis:100px}.ds-wallet{font-size:12px;padding:9px}.ds-wallet small{display:none}}
@media(max-width:850px){html[data-layout=dimensions] body.screen-home{--ds-header-height:68px}.ds-header{gap:9px;padding:9px 13px}.ds-brand{font-size:20px}.ds-current-section{font-size:13px;padding-left:12px;gap:7px}.ds-account{padding:5px 8px;gap:7px;min-height:42px}.ds-account img{width:29px;height:29px}.ds-account strong{font-size:15px}.ds-account small{font-size:9px}.ds-settings{min-width:36px;min-height:39px;padding:8px}.ds-wallet{min-height:39px;font-size:11px}.ds-friends{font-size:10px;min-height:39px;padding:8px}.ds-stage{grid-template-columns:88px minmax(0,1fr);padding:13px;gap:12px}.ds-hall{grid-template-columns:minmax(0,1fr) 295px;gap:12px}.ds-rail{padding:9px 4px;gap:6px}.ds-rail button{font-size:14px;padding:12px 6px;min-height:61px;text-align:center;justify-content:center;flex-direction:column}.ds-play-panel{padding:17px 13px;border-radius:13px}.ds-play-panel h2{font-size:27px}.ds-modes>button{padding:12px 11px}.ds-modes>button strong{font-size:19px}.ds-modes>button small{font-size:10px}.ds-mode-icon{font-size:25px}.ds-primary-start{min-height:54px;font-size:25px;padding:13px 16px}.ds-secondary-actions{gap:5px}.ds-secondary-actions :is(button,a){font-size:10px;flex-basis:100px}.ds-hero-stage{border-radius:17px}.ds-hero-name strong{font-size:27px}.ds-hero-name button{flex-basis:100%;max-width:none;min-height:34px}.ds-hero-canvas{bottom:185px;height:calc(100% - 185px)}.ds-shell>.ds-quick-links{padding-left:13px}}
@media(max-height:850px) and (min-width:761px){
 html[data-layout=dimensions] body.screen-home{--ds-header-height:68px}.ds-stage{padding-top:15px;padding-bottom:15px}.ds-play-panel{padding:17px}.ds-panel-kicker{font-size:8px;margin-bottom:5px}.ds-play-panel h2{font-size:28px;margin-bottom:11px}.ds-categories{margin-bottom:11px;padding-bottom:11px}.ds-categories button{min-height:36px;padding:8px 3px;font-size:10px}.ds-modes{gap:8px}.ds-modes>button{padding:12px 13px;row-gap:4px}.ds-modes>button strong{font-size:20px}.ds-modes>button small{font-size:10px}.ds-mode-detail{padding:10px 2px;font-size:11px;line-height:1.5}.ds-mode-detail small{font-size:10px}.ds-play-panel>.ds-primary-start{min-height:49px;font-size:24px;padding:11px 18px}.ds-secondary-actions{margin-top:8px}.ds-secondary-actions :is(button,a){min-height:37px;font-size:10px}.ds-hero-name{bottom:13px;padding:12px}.ds-hero-name strong{font-size:30px}.ds-hero-name small{font-size:11px}.ds-hero-name button{min-height:34px;font-size:10px}.ds-hero-canvas{bottom:185px;height:calc(100% - 185px)}
}
@media(max-height:560px) and (min-width:761px){.ds-stage{overflow:auto;align-items:start}.ds-rail{min-height:400px}.ds-hall{min-height:400px}.ds-hero-stage{min-height:400px}.ds-hero-canvas{min-height:240px}}
@media(max-width:760px){
 html[data-layout=dimensions] body.screen-home{overflow:auto;height:auto;min-height:100dvh}
 html[data-layout=dimensions] body.screen-home #dimensionHome{position:relative;inset:auto;min-height:calc(100dvh - 48px);height:auto;grid-template-rows:auto auto 0;overflow:visible;padding-bottom:calc(108px + env(safe-area-inset-bottom,0px))}
 .ds-header{position:sticky;top:0;min-height:74px;flex-wrap:wrap;gap:8px;padding:10px 13px}.ds-brand{font-size:21px;margin-right:auto}.ds-current-section{order:5;flex:0 0 100%;padding-left:0;border:0;font-size:13px;margin-top:1px}.ds-current-section:before{font-size:11px}.ds-account{margin:0;min-height:36px;padding:4px 7px}.ds-account img{width:25px;height:25px}.ds-account strong{font-size:13px}.ds-account small{font-size:8px}.ds-wallet{min-height:35px;font-size:11px;padding:7px}.ds-settings{min-height:34px;min-width:31px;font-size:17px;padding:6px}.ds-friends{min-height:34px;font-size:9px;padding:7px}
 .ds-stage{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:14px;padding:13px;overflow:visible;min-height:0;background:radial-gradient(ellipse at 40% 20%,#fff5db8c,transparent 60%),linear-gradient(135deg,#c7b4df,#edd4dd 75%,#ecd7c2)}
 .ds-stage:before{transform:none;opacity:.09}.ds-stage>.ds-rail{grid-column:1;grid-row:1;position:relative;display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start;gap:4px;min-height:0;padding:6px;overflow-x:auto;scrollbar-width:thin;border-radius:11px}.ds-rail button{flex:1 0 70px;min-width:70px;min-height:53px;padding:8px 7px;font-size:12px;justify-content:center;text-align:center;white-space:nowrap;flex-direction:column}
 .ds-stage>.ds-hall{grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(400px,46dvh) auto;min-height:0;gap:14px}.ds-hero-stage{min-height:400px;border-radius:18px}.ds-hero-stage:before{inset:5% 17% 14%;border-radius:50% 50% 10px 10px}.ds-hero-canvas{bottom:170px;height:calc(100% - 170px);min-height:235px}.ds-hero-name{bottom:12px;width:min(500px,calc(100% - 28px));padding:11px 14px;gap:5px 8px}.ds-hero-name strong{font-size:29px}.ds-hero-name small{font-size:10px;margin-bottom:3px}.ds-hero-name button{flex:1 1 130px;min-height:34px;max-width:none;font-size:10px}.ds-hero-status{font-size:10px;top:10px;padding:6px 10px}
 .ds-play-panel{justify-self:center;width:100%;max-width:610px;padding:24px;overflow:visible;border-radius:15px}.ds-panel-kicker{font-size:9px}.ds-play-panel h2{font-size:32px;margin-bottom:20px}.ds-categories button{font-size:11px;min-height:43px}.ds-modes{flex:0 1 auto;min-height:0;max-height:370px;gap:10px}.ds-modes>button{padding:18px 15px;gap:6px 12px}.ds-modes>button strong{font-size:24px}.ds-modes>button small{font-size:12px}.ds-mode-detail{font-size:13px;padding:17px 2px}.ds-mode-detail small{font-size:11px}.ds-primary-start{min-height:59px;font-size:29px}.ds-secondary-actions :is(button,a){min-height:44px;font-size:12px}
 .ds-heroes-workspace{grid-column:1;grid-row:2;overflow:visible;padding:0;min-height:380px}
 .ds-shell>.ds-quick-links{position:fixed;inset:auto 0 calc(48px + env(safe-area-inset-bottom,0px));z-index:35;min-height:52px;height:52px;padding:7px 215px 7px 10px;gap:6px;background:#4a3a58f5;box-shadow:0 -4px 16px #4f355e26;backdrop-filter:blur(12px)}
 .ds-quick-links button{display:grid;place-items:center;width:36px;min-height:36px;padding:7px;font-size:13px}.ds-quick-links .ds-music{font-size:0}.ds-quick-links .ds-music:before{content:'♫';font:20px Georgia}
 html[data-layout=dimensions] body.screen-home .appearance-controls{right:9px;bottom:calc(57px + env(safe-area-inset-bottom,0px));gap:6px}.ds-preview-note{bottom:calc(100px + env(safe-area-inset-bottom,0px));font-size:6px;max-width:90vw;overflow:hidden;text-overflow:ellipsis}
 .ds-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ds-hub-grid>button{min-height:140px;padding:18px}.ds-hub-grid>button strong{font-size:22px}.ds-hub-grid>button small{font-size:11px}
}
@media(max-width:420px){.ds-header{gap:6px;padding:9px}.ds-brand{font-size:18px}.ds-account img{display:none}.ds-account strong{font-size:12px}.ds-wallet{font-size:10px}.ds-friends{max-width:68px;font-size:8px;overflow:hidden}.ds-stage{padding:10px;gap:10px}.ds-rail button{min-width:66px;flex-basis:66px;font-size:11px}.ds-play-panel{padding:19px}.ds-play-panel h2{font-size:29px}.ds-categories button{font-size:10px;padding:9px 3px}.ds-modes>button strong{font-size:22px}.ds-modes>button small{font-size:11px}.ds-hero-name button{flex-basis:120px;font-size:9px}.ds-hub-grid{grid-template-columns:1fr}.theme-choice{grid-template-columns:74px 1fr;gap:6px 12px;padding:12px}.theme-swatch{height:77px}.theme-dialog .theme-choice strong{font-size:17px!important}.theme-dialog .theme-choice small{font-size:10px!important}.theme-dialog{padding:25px 20px!important}}
@media(prefers-reduced-motion:reduce){.ds-shell *,.ds-shell *:before,.ds-shell *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.ds-hall,.ds-heroes-workspace{animation:none}.ds-primary-start:before{display:none}}

/* Sidebar destinations are full workspaces; only confirmations use the modal layer. */
.ds-page-workspace{grid-column:2;grid-row:1;position:relative;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b596c5 transparent;padding:clamp(20px,2.4vw,42px);border:1px solid #d7ba99;border-radius:18px;background:linear-gradient(140deg,#64516ff5,#34394ff7);color:#f1e3d5;box-shadow:inset 0 1px #f5dfed26,0 8px 28px #75508626;animation:ds-section-arrive .3s ease-out both}
.ds-page-workspace[hidden]{display:none!important}.ds-page-heading{padding:0 0 22px;margin-bottom:23px;border-bottom:1px solid #bfa1bc55}.ds-page-heading>small{font:750 9px/1.5 system-ui;letter-spacing:.14em;color:#d3b3d7}.ds-page-heading>h1{font:clamp(30px,3vw,47px)/1.15 Georgia,serif;color:#ffe4b3;margin:8px 0 11px}.ds-page-heading>p{font:13px/1.8 system-ui;color:#dfd1e1;margin:0;max-width:850px}
.ds-collection-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.ds-collection-tabs>button{font:650 12px/1.5 system-ui;border:1px solid #ad8db66b;border-radius:9px;padding:12px 18px;background:#292d43;color:#d9cbe3;min-height:45px;cursor:pointer}.ds-collection-tabs>button:hover{background:#675278;border-color:#e0bdde}.ds-collection-tabs>button[aria-selected=true]{color:#fff0c9;border-color:#e6c58e;background:linear-gradient(120deg,#9b71b4,#684d87);box-shadow:inset 0 1px #e5c5e366,0 4px 12px #251e3e44}.ds-collection-content{min-height:250px;min-width:0;position:relative}.ds-collection-intro{padding:28px;border:1px solid #c1a3bb66;border-radius:12px;background:#2c3047}.ds-collection-intro h2{font:28px Georgia,serif;color:#ffe3b2;margin:0 0 15px}.ds-collection-intro p{font:13px/1.8 system-ui;color:#d4c7dc;max-width:680px}.ds-inline-login{display:inline-block;font:700 12px/1.5 system-ui;color:#ffdf9e;padding:11px 0;text-underline-offset:4px}
html[data-layout=dimensions] body .ds-page-workspace .home-panel-inline{position:static!important;inset:auto!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#f2e4d7;contain:none;animation:none}
html[data-layout=dimensions] .ds-page-workspace .home-panel-inline:not([open]){display:none!important}
html[data-layout=dimensions] .ds-page-workspace .home-panel-inline[open]{display:block!important}
.ds-page-workspace .home-panel-inline :is(.adv-close,.housing-close,.wonder-close,.ws-close),.ds-page-workspace .home-panel-inline :is(.adv-nav,.housing-tabs,.workshop-tabs){display:none!important}
.ds-page-workspace .home-panel-inline .adv-shell{display:block;max-height:none;height:auto;overflow:visible}.ds-page-workspace .home-panel-inline :is(.adv-content,.housing-content,.workshop-content){max-height:none!important;overflow:visible!important}.ds-page-workspace .home-panel-inline :is(.adv-header,.housing-header,.workshop-header){border-radius:12px 12px 0 0;padding:20px 24px}.ds-page-workspace .home-panel-inline .adv-top{padding:18px 24px}.ds-page-workspace .home-panel-inline .wonder-layout{min-height:520px}.ds-page-workspace .home-panel-inline .wonder-viewport{height:620px;max-height:68vh}
html[data-layout=dimensions] .ds-page-workspace .home-panel-inline :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){background:#252a40;color:#f7e6d4;border-color:#bc9ebc99;max-width:100%}
html[data-layout=dimensions] .ds-page-workspace .home-panel-inline :is(.adv-button,.housing-button,.button,.workshop-tab){background:#50405f;color:#f5dfbd;border-color:#b99cc28c}html[data-layout=dimensions] .ds-page-workspace .home-panel-inline :is(.adv-button.gold,.housing-button.gold,.button.gold){background:linear-gradient(120deg,#a57bc3,#71528b);color:#fff1ce;border-color:#d9ba88}
.ds-place-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;min-width:0}.ds-place-card{min-width:0;overflow:hidden;border:1px solid #c9acbd88;border-radius:16px;background:linear-gradient(145deg,#685077,#30364d);box-shadow:0 9px 25px #1c173d33;transition:transform .2s ease,border-color .2s ease}.ds-place-card:hover{transform:translateY(-4px);border-color:#efd09a}.ds-place-art{height:clamp(150px,18vw,270px);position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 80%,#f2ca8966,transparent 60%),linear-gradient(145deg,#a27c7866,#3a394f)}.ds-place-art:before,.ds-place-art:after{content:'';position:absolute;width:140%;height:140%;border:1px solid #e7c49144;border-radius:50%;transform:rotateX(65deg);bottom:-90%}.ds-place-art:after{width:110%;height:110%;bottom:-70%;border-color:#ffe3b57a}.ds-place-emblem{position:relative;z-index:1;display:grid;place-items:center;height:105px;width:105px;border:1px solid #e3c28c;border-radius:26px;background:linear-gradient(140deg,#ffe3b52c,#44374b77);box-shadow:inset 0 1px #fff1cd88,0 17px 0 -8px #473b5188,0 30px 23px #17152d66;font:65px Georgia,serif;color:#ffe4ae;text-shadow:0 3px 0 #62445e;transform:perspective(500px) rotateY(-12deg) rotateX(8deg)}.ds-place-card[data-place=market] .ds-place-art{background:radial-gradient(ellipse at 60% 80%,#b7a7fa77,transparent 65%),linear-gradient(130deg,#354969,#6b5281)}.ds-place-card[data-place=winter] .ds-place-art{background:radial-gradient(ellipse at 50% 70%,#b4e9ed88,transparent 65%),linear-gradient(135deg,#6d7caa,#3c4b76)}.ds-place-card[data-place=winter] .ds-place-art:before{box-shadow:0 -50px 80px #daf7ff22}.ds-place-copy{padding:24px;display:flex;flex-direction:column;height:calc(100% - clamp(150px,18vw,270px))}.ds-place-copy>small{font:700 8px/1.6 system-ui;letter-spacing:.11em;color:#d2b3db}.ds-place-copy>h2{font:clamp(24px,2.2vw,34px)/1.2 Georgia,serif;color:#ffe4b4;margin:10px 0 13px}.ds-place-copy>p{font:13px/1.8 system-ui;color:#e0d2e3;margin:0 0 17px}.ds-place-peace{font:11px/1.7 system-ui;color:#c7dfd3;display:block;margin:auto 0 19px}.ds-place-enter{font:750 11px/1.5 system-ui;letter-spacing:.04em;color:#fff1cd;background:linear-gradient(125deg,#a57dc1,#72558c);border:1px solid #d5b78b;border-radius:8px;min-height:45px;padding:12px;cursor:pointer}.ds-place-enter:hover{filter:brightness(1.14)}.ds-place-room{display:flex;align-items:center;gap:18px;padding:22px 24px;margin-top:26px;border:1px dashed #b69eb75c;border-radius:12px;color:#d3c8de;font:12px/1.8 system-ui;background:#33354b66}.ds-place-room>span{font-size:34px;color:#e5c38f}.ds-page-workspace :is(button,a):focus-visible{outline:2px solid #ffdc96;outline-offset:3px}
@media(min-width:2200px){.ds-page-heading>p{font-size:17px}.ds-collection-tabs>button{font-size:16px;padding:16px 24px}.ds-place-copy{padding:32px}.ds-place-copy>p{font-size:17px}.ds-place-copy>small{font-size:11px}.ds-place-peace{font-size:14px}.ds-place-enter{font-size:15px;min-height:56px}}
@media(max-width:1000px){.ds-place-grid{gap:13px}.ds-place-copy{padding:18px}.ds-place-copy>p{font-size:12px}.ds-place-copy>h2{font-size:25px}.ds-collection-tabs>button{padding:10px 12px;font-size:11px}}
@media(max-width:700px){.ds-page-workspace{grid-column:1;grid-row:auto;min-height:450px;overflow:visible;padding:22px 16px;border-radius:14px}.ds-place-grid{grid-template-columns:1fr}.ds-place-art{height:170px}.ds-place-copy{height:auto}.ds-place-copy>p{font-size:13px}.ds-collection-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.ds-collection-tabs>button{font-size:11px;padding:12px 6px}.ds-page-heading>p{font-size:12px}.ds-place-room{padding:18px}.ds-page-workspace .home-panel-inline .wonder-layout{min-height:400px}.ds-page-workspace .home-panel-inline .wonder-viewport{height:490px}}
@media(prefers-reduced-motion:reduce){.ds-page-workspace{animation:none}.ds-place-card{transition:none;transform:none!important}}

/* Inventory has a natural page height here; its old modal used bounded flex rows. */
.ds-collection-content{container:collectionPage/inline-size}
.ds-page-workspace .home-panel-inline .adv-shell{background:linear-gradient(145deg,#34364e,#292e44);border-radius:12px;--adv-cream:#f4e3c5;--adv-muted:#c5b9d0}
.ds-page-workspace .home-panel-inline .adv-top,.ds-page-workspace .home-panel-inline .adv-footer{background:#292e46;border-color:#ac92b14d;color:#c7bad1}
.ds-page-workspace .home-panel-inline .adv-content:has(>.adv-inventory),.ds-page-workspace .home-panel-inline .adv-content>.adv-inventory{display:block;flex:none;height:auto;min-height:0;overflow:visible}
.ds-page-workspace .home-panel-inline .adv-inventory-layout{flex:none;grid-template-columns:minmax(170px,.85fr) minmax(220px,1.2fr) minmax(240px,1fr);grid-template-rows:auto;overflow:visible;align-items:start}
.ds-page-workspace .home-panel-inline .adv-inventory-layout>.adv-section{max-height:none;height:auto;overflow:visible;background:#35374e;border-color:#ae96b352;color:#eedfc7}
.ds-page-workspace .home-panel-inline .adv-inventory-layout .adv-item-list{flex:none;max-height:540px;min-height:160px;overflow:auto;scrollbar-color:#ae8abc #2d3046}
.ds-page-workspace .home-panel-inline :is(.adv-equipped-slot,.adv-item-card,.adv-item-row){background:#292e43;color:#ecdcc2;border-color:#9c84ad66}.ds-page-workspace .home-panel-inline .adv-equipped-pick{color:#f0dfc5}
.ds-page-workspace .home-panel-inline :is(.adv-muted,.adv-note,.adv-header-copy,.adv-hero-label){color:#cbbbd4}.ds-page-workspace .home-panel-inline .adv-intro h3{color:#f4d9b1}
@container collectionPage (max-width:800px){.ds-page-workspace .home-panel-inline .adv-inventory-layout{grid-template-columns:minmax(160px,.8fr) minmax(210px,1.2fr)}.ds-page-workspace .home-panel-inline .adv-inventory-layout>.adv-section:last-child{grid-column:1/-1}.ds-page-workspace .home-panel-inline .adv-content{padding:18px}}
@container collectionPage (max-width:520px){.ds-page-workspace .home-panel-inline .adv-inventory-layout{display:flex;flex-direction:column}.ds-page-workspace .home-panel-inline .adv-inventory-layout>.adv-section{width:100%}.ds-page-workspace .home-panel-inline .adv-top{align-items:flex-start;flex-direction:column;gap:12px;padding:18px}.ds-page-workspace .home-panel-inline .adv-materials{gap:18px}}

.ds-page-workspace :is(.ds-workbench-content,.ds-profile-content,.ds-build-content){min-width:0}
.ds-inline-back{font:700 11px system-ui;color:#e6c892;background:transparent;border:1px solid #b89cb36b;border-radius:7px;padding:9px 14px;margin-bottom:17px;cursor:pointer}
.ds-page-workspace .home-panel-inline :is(.workbench-close,.auxiliary-close,.close-dialog){display:none!important}
.ds-page-workspace .home-panel-inline .workbench-nav{display:none!important}
html[data-layout=dimensions] .ds-page-workspace .home-panel-inline.profile-dialog{padding:24px!important;background:#30324b!important;border:1px solid #b79bb455!important;border-radius:12px!important;--cream:#f5e6d0;--gold:#e7c18c;--muted:#c7bdd3}
.ds-page-workspace .home-panel-inline .ws-collection{margin-top:0}.ds-page-workspace .home-panel-inline .workshop-content{padding:22px 0}.ds-page-workspace .home-panel-inline .auxiliary-slots{margin-top:25px}.ds-page-workspace .home-panel-inline .auxiliary-choices{margin-top:20px}.ds-page-workspace .home-panel-inline.auxiliary-dialog>header{padding:20px 0}.ds-page-workspace .home-panel-inline.auxiliary-dialog>footer{position:static;margin-top:24px}
.ds-page-workspace .home-panel-inline .workbench-content{padding:24px}.ds-page-workspace .home-panel-inline :is(.workbench-resources,.workbench-message){padding-left:24px;padding-right:24px}

/* Parties stay on the same client stage, with authoritative ready/slot controls. */
html[data-layout=dimensions] body.screen-lobby{--ds-social-height:48px;--ds-utility-height:52px;--ds-header-height:78px;padding:0;margin:0;overflow:hidden;height:100dvh;min-height:0;background:#d3c3dc}
html[data-layout=dimensions] body.screen-lobby :is(#lobby,#topbar,.world-shade,.ux-connection,#audioToggle,.site-footer){display:none!important}html[data-layout=dimensions] body.screen-lobby #world{visibility:hidden}html[data-layout=dimensions] body.screen-lobby #dimensionHome{display:grid;grid-template-rows:var(--ds-header-height) minmax(0,1fr) var(--ds-utility-height)}
.ds-hero-skill-preview{grid-column:1/-1;display:flex;justify-content:center;gap:7px;width:100%;margin:2px 0 4px}.ds-hero-name .ds-hero-skill-preview>button{white-space:nowrap;flex-shrink:0;width:46px;min-height:32px;max-width:58px;padding:6px 8px;color:#fce4b0;border-color:#b994c2;background:linear-gradient(130deg,#86639d,#53415f);box-shadow:inset 0 1px #d7b4dd66,0 3px 7px #6d467333}.ds-hero-name .ds-hero-skill-preview>button:hover{background:linear-gradient(130deg,#ac7ec2,#75508c);color:#fff4d8}.ds-hero-stage .ds-hero-canvas{bottom:255px;height:calc(100% - 255px)}
.ds-party-status{position:absolute;top:14px;left:15px;right:15px;width:fit-content;margin:0;padding:8px 13px;border:1px solid #b89bc578;border-radius:20px;background:#473852d9;color:#f9e2b7;font:700 11px/1.4 system-ui;pointer-events:none;z-index:4}
.ds-lobby-panel{overflow-y:auto!important;scrollbar-width:thin;gap:10px}.ds-lobby-panel h2{margin-bottom:4px}.ds-lobby-code{align-self:center;padding:9px 20px;border:1px solid #c2a1ce;border-radius:8px;background:#ede1f1;color:#735080;font:750 14px system-ui;letter-spacing:.12em;cursor:pointer}.ds-lobby-description{margin:0;text-align:center;color:#80628a;font:12px/1.7 system-ui}.ds-lobby-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:260px;overflow:auto;flex:none;scrollbar-width:thin}.ds-lobby-player{min-width:0;display:flex;align-items:center;gap:7px;padding:8px;border:1px solid #bda2c478;border-radius:8px;background:#fff7ea88;color:#70517e}.ds-lobby-player>img{width:29px;height:39px;object-fit:contain}.ds-lobby-player>span:not(.ds-lobby-free){display:grid;gap:4px;min-width:0}.ds-lobby-player strong{font:700 11px system-ui;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-lobby-player small{font:9px system-ui;color:#907599}.ds-lobby-player>b{margin-left:auto;color:#ae8b4f}.ds-lobby-player[data-ready=true]{border-color:#9aa89b;background:#e4eadc91}.ds-lobby-player[data-ready=true]>b{color:#527765}.ds-lobby-player.is-free{font:10px/1.5 system-ui;color:#a38eaa;background:transparent;border-style:dashed}.ds-lobby-free{font:23px Georgia;color:#bb9fc2;min-width:29px;text-align:center}.ds-lobby-teams{display:flex;gap:8px}.ds-lobby-teams>button{flex:1;padding:10px;border:1px solid #bea2c8;border-radius:7px;background:#fff9ed;color:#80618d;font:650 11px system-ui}.ds-lobby-teams>button[aria-pressed=true]{background:#806097;color:#ffebc0;border-color:#dfbd89}.ds-lobby-setting{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;font:700 10px system-ui;color:#907398}.ds-lobby-setting select{min-width:0;width:100%;padding:9px;border:1px solid #baa0c6;border-radius:7px;color:#735782;background:#fff9ee;font:12px system-ui}.ds-lobby-ready{padding:12px;min-height:42px;border:1px solid #b499c1;border-radius:8px;background:#eee2ef;color:#725281;font:750 11px system-ui;cursor:pointer}.ds-lobby-tip{font:10px/1.6 system-ui;color:#957b9d;text-align:center}.ds-lobby-panel .ds-primary-start{font-size:23px;min-height:52px}
@media(max-width:850px){.ds-hero-stage .ds-hero-canvas{bottom:270px;height:calc(100% - 270px)}.ds-lobby-roster{grid-template-columns:1fr;max-height:210px}}
@media(min-width:2200px){html[data-layout=dimensions] body.screen-lobby{--ds-header-height:96px}.ds-lobby-player strong{font-size:14px}.ds-lobby-player small{font-size:11px}.ds-lobby-player>img{width:38px;height:49px}.ds-lobby-roster{max-height:360px}.ds-lobby-tip{font-size:13px}.ds-hero-stage .ds-hero-canvas{bottom:315px;height:calc(100% - 315px)}}
@media(max-width:700px){html[data-layout=dimensions] body.screen-lobby{overflow:auto;height:auto;min-height:100dvh;padding-bottom:48px}html[data-layout=dimensions] body.screen-lobby #dimensionHome{position:relative;inset:auto;min-height:calc(100dvh - 48px);overflow:visible;grid-template-rows:68px auto 52px}.ds-lobby-roster{grid-template-columns:repeat(2,minmax(0,1fr));max-height:300px}.ds-hero-stage .ds-hero-canvas{bottom:255px;height:calc(100% - 255px)}}

/* Global client utilities live above the workspace, separate from the sidebar. */
.ds-header-tools{margin-left:auto;display:flex;align-items:center;gap:8px;min-width:0}.ds-header-tools>button{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 14px;border:1px solid #bda0b85e;border-radius:8px;background:#302d4566;color:#f4dbad;font:700 11px system-ui;cursor:pointer;white-space:nowrap}.ds-header-tools>button b{font:24px Georgia}.ds-header-tools>button:hover{background:#8661a566;border-color:#efcc95;box-shadow:0 0 14px #c596eb33}.ds-header-tools~.ds-account{margin-left:0}
.ds-page-workspace .home-panel-inline :is(.close-dialog,.team-close){display:none!important}.ds-page-workspace .home-panel-inline#entryDialog{max-width:900px!important;margin:0 auto!important;padding:24px!important;border:1px solid #baa1b875!important;border-radius:13px!important;background:#33354d!important;box-shadow:inset 0 1px #d7b4de22!important}.ds-page-workspace .home-panel-inline#entryDialog .entry-champions{max-height:310px;overflow:auto;scrollbar-width:thin}.ds-page-workspace .home-panel-inline#entryDialog .entry-current{background:#4a3e5b;border-color:#c3a7b8;color:#f5deb5}
@media(max-width:1100px){.ds-current-section{display:none}.ds-header-tools>button{padding:8px 10px;font-size:10px}.ds-header-tools{gap:6px}}
@media(max-width:700px){.ds-header-tools>button{padding:4px;min-height:31px;width:31px;justify-content:center}.ds-header-tools>button span{display:none}.ds-header-tools>button b{font-size:20px}.ds-header-tools{gap:4px}.ds-header>.ds-wallet{display:none}.ds-header>.ds-account{padding:4px;min-height:32px;gap:0}.ds-header>.ds-account>span:last-child{display:none}.ds-header>.ds-account img{display:block;width:27px;height:27px}.ds-header>.ds-settings{width:31px;min-width:31px;min-height:31px;padding:4px}.ds-header .ds-brand{font-size:clamp(14px,3.6vw,20px)}.ds-header{gap:6px}}

/* Menu feedback: tactile violet/gold controls. Append after workspace/lobby styles.
   Borders retain their existing width; hover never moves or resizes a control. */
#dimensionHome :is(.ds-primary-start,.ds-categories>button,.ds-modes>button,.ds-rail>button,.ds-collection-tabs>button,.ds-place-enter,.ds-hero-name button){
 position:relative;isolation:isolate;overflow:hidden;
 transition:border-color .16s ease,box-shadow .2s ease,filter .16s ease,text-shadow .16s ease;
}
#dimensionHome :is(.ds-primary-start,.ds-categories>button,.ds-modes>button,.ds-rail>button,.ds-collection-tabs>button,.ds-place-enter,.ds-hero-name button)::before{
 content:'';position:absolute;inset:-80% -120%;z-index:-1;pointer-events:none;
 background:linear-gradient(110deg,transparent 43%,#ffe4aa00 46%,#fff5d6a6 49%,#e5bdfb80 51%,#ffe4aa00 55%,transparent 58%);
 opacity:0;transform:translateX(-44%);animation:none;
}
/* Preserve the established purple fill and gold selection marks. */
#dimensionHome :is(.ds-categories>button[aria-pressed=true],.ds-modes>button[aria-pressed=true],.ds-rail>button[aria-current=page],.ds-collection-tabs>button[aria-selected=true]){
 border-color:#edcc94;color:#fff0cc;
 box-shadow:inset 0 1px #f9dfb966,inset 0 -2px #39234380,0 0 0 1px #c895d93d,0 4px 12px #2d1a463d;
}
@media(hover:hover){
 #dimensionHome :is(.ds-primary-start,.ds-categories>button,.ds-modes>button,.ds-rail>button,.ds-collection-tabs>button,.ds-place-enter,.ds-hero-name button):not(:disabled):hover{
  border-color:#fff0be;filter:brightness(1.055);transform:none;
  box-shadow:inset 0 1px #fff4d6cc,inset 0 -2px #54336680,inset 0 0 0 1px #f2d6aa73,0 0 0 1px #f2cf9d80,0 0 19px #c297ed82,0 6px 18px #3b235c4d;
  text-shadow:0 0 10px #ffedc138;
 }
 #dimensionHome :is(.ds-primary-start,.ds-categories>button,.ds-modes>button,.ds-rail>button,.ds-collection-tabs>button,.ds-place-enter,.ds-hero-name button):not(:disabled):hover::before{
  animation:fa-menu-light-pass .78s ease-out 1;
 }
 #dimensionHome .ds-primary-start:not(:disabled):hover{
  box-shadow:inset 0 2px #fff4d6e0,inset 0 -3px #513268b3,0 0 0 2px #f4d39ba8,0 0 28px #d5aff7b3,0 8px 22px #4a2b686b;
 }
}
#dimensionHome :is(.ds-primary-start,.ds-categories>button,.ds-modes>button,.ds-rail>button,.ds-collection-tabs>button,.ds-place-enter,.ds-hero-name button):not(:disabled):focus-visible{
 border-color:#fff1c2;outline:2px solid #fff0bd;outline-offset:-5px;filter:brightness(1.055);transform:none;
 box-shadow:inset 0 1px #fff4d6cc,inset 0 -2px #54336680,0 0 0 1px #f2cf9da8,0 0 22px #c297ed99,0 6px 18px #3b235c4d;
 text-shadow:0 0 10px #ffedc138;
}
#dimensionHome :is(.ds-primary-start,.ds-categories>button,.ds-modes>button,.ds-rail>button,.ds-collection-tabs>button,.ds-place-enter,.ds-hero-name button):not(:disabled):focus-visible::before{
 animation:fa-menu-light-pass .78s ease-out 1;
}
/* A real pressed surface: sunk lighting, with no layout or pointer-target shift. */
#dimensionHome :is(.ds-primary-start,.ds-categories>button,.ds-modes>button,.ds-rail>button,.ds-collection-tabs>button,.ds-place-enter,.ds-hero-name button):not(:disabled):active{
 transform:none;filter:brightness(.98);border-color:#e6c18b;
 box-shadow:inset 0 3px 9px #29133799,inset 0 -1px #f7deb58c,0 0 0 1px #f0ce9b66,0 0 13px #bc93df66;
 text-shadow:0 1px 2px #3820434d;
}
@keyframes fa-menu-light-pass{
 0%{opacity:0;transform:translateX(-44%)}
 18%{opacity:.65}
 55%{opacity:.48}
 100%{opacity:0;transform:translateX(44%)}
}
@media(prefers-reduced-motion:reduce){
 #dimensionHome :is(.ds-primary-start,.ds-categories>button,.ds-modes>button,.ds-rail>button,.ds-collection-tabs>button,.ds-place-enter,.ds-hero-name button){transition:none;transform:none}
 #dimensionHome :is(.ds-primary-start,.ds-categories>button,.ds-modes>button,.ds-rail>button,.ds-collection-tabs>button,.ds-place-enter,.ds-hero-name button)::before{display:none;animation:none}
}
@media(forced-colors:active){
 #dimensionHome :is(.ds-primary-start,.ds-categories>button,.ds-modes>button,.ds-rail>button,.ds-collection-tabs>button,.ds-place-enter,.ds-hero-name button):focus-visible{outline:2px solid Highlight;outline-offset:-4px}
}

/* The current online scene lives inside the same persistent client frame. */
html[data-layout=dimensions] body:is(.screen-game,.screen-tavern){--ds-social-height:48px;--ds-utility-height:52px;--ds-header-height:78px;padding:0;margin:0;overflow:hidden;height:100dvh;min-height:0;background:#d3c3dc}
html[data-layout=dimensions] body:is(.screen-game,.screen-tavern) #dimensionHome{display:grid;grid-template-rows:var(--ds-header-height) minmax(0,1fr) var(--ds-utility-height)}
html[data-layout=dimensions] body:is(.screen-game,.screen-tavern) :is(#topbar,.world-shade,.ux-connection,#audioToggle,.site-footer){display:none!important}
.ds-scene-workspace{grid-column:2;grid-row:1;position:relative;min-width:0;min-height:0;overflow:hidden;border:1px solid #dfc496a3;border-radius:17px;background:#122232;box-shadow:0 8px 28px #4a355738}
.ds-scene-region{position:absolute;inset:0;overflow:hidden;isolation:isolate;transform:translateZ(0);container-type:inline-size}
html[data-layout=dimensions] .ds-scene-region :is(#world,.game-ui,.tavern-ui){position:absolute;inset:0;width:100%;height:100%;visibility:visible}
.ds-scene-region #world{z-index:0}.ds-scene-region .game-ui{z-index:3}.ds-scene-region .tavern-ui{z-index:4}
.ds-shell>.ds-quick-links .ds-return-scene{display:inline-flex;align-items:center;justify-content:center;width:auto;margin-left:auto;flex:none;min-height:35px;padding:8px 15px;background:linear-gradient(125deg,#b58cd2,#785393);border:1px solid #e2c18c;border-radius:8px;color:#fff0c8;font:700 11px/1.2 system-ui;box-shadow:inset 0 1px #f4dcec70,0 2px 12px #291b4255}
.ds-live-note{color:#e0d0e5;font:11px/1.4 system-ui;max-width:480px;margin-left:10px}.ds-shell[data-page=scene] .ds-live-note{margin-left:auto}.ds-shell[data-scene=game] .ds-stage{padding:12px;gap:12px;grid-template-columns:110px minmax(0,1fr)}
.ds-shell[data-scene=game] .ds-rail{padding:10px 5px}.ds-shell[data-scene=game] .ds-rail>button{font-size:14px;min-height:55px;padding:10px 6px}
html[data-layout=dimensions] .comm-panel{bottom:115px;left:190px;z-index:35}
@media(min-width:2200px){html[data-layout=dimensions] body:is(.screen-game,.screen-tavern){--ds-header-height:96px}}
@media(max-width:850px){html[data-layout=dimensions] body:is(.screen-game,.screen-tavern){--ds-header-height:68px}.ds-shell[data-scene=game] .ds-stage{grid-template-columns:80px minmax(0,1fr);padding:8px;gap:8px}.ds-shell[data-scene=game] .ds-rail>button{font-size:11px;min-height:48px}.ds-live-note{max-width:270px;font-size:10px}}
@media(max-width:700px){html[data-layout=dimensions] body:is(.screen-game,.screen-tavern) #dimensionHome{position:fixed;inset:0 0 calc(48px + env(safe-area-inset-bottom,0px));min-height:0;height:auto;padding:0;overflow:hidden;grid-template-rows:64px minmax(0,1fr) 52px}.ds-shell:is([data-scene=game],[data-scene=tavern]) .ds-header{position:relative;min-height:0;flex-wrap:nowrap}.ds-shell:is([data-scene=game],[data-scene=tavern]) .ds-header .ds-current-section{display:none}.ds-shell:is([data-scene=game],[data-scene=tavern]) .ds-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:51px minmax(0,1fr);padding:7px;gap:7px;overflow:hidden}.ds-shell:is([data-scene=game],[data-scene=tavern]) .ds-stage>.ds-rail{grid-column:1;grid-row:1;min-height:0;padding:3px;border-radius:7px;gap:3px}.ds-shell:is([data-scene=game],[data-scene=tavern]) .ds-rail>button{min-width:65px;flex-basis:65px;min-height:40px;font-size:10px;padding:5px}.ds-scene-workspace{grid-column:1;grid-row:2;border-radius:10px}.ds-shell:is([data-scene=game],[data-scene=tavern]) .ds-page-workspace,.ds-shell:is([data-scene=game],[data-scene=tavern]) .ds-heroes-workspace{grid-row:2;grid-column:1;overflow:auto;min-height:0}.ds-shell:is([data-scene=game],[data-scene=tavern])>.ds-quick-links{position:relative;inset:auto;padding:6px 9px}.ds-shell>.ds-quick-links .ds-return-scene{font-size:9px;min-height:34px;padding:7px 9px}.ds-live-note{display:none}.ds-scene-region .scoreboard{min-width:0;max-width:100%;gap:7px;padding:7px 11px}.ds-scene-region .score-player{min-width:65px;gap:5px}.ds-scene-region .tavern-top{padding:12px}.ds-scene-region .tavern-guests{display:none}}

html[data-layout=dimensions] body:has(#dimensionHome:not([data-page=play]):not([data-page=scene]))>.comm-panel{display:none}

/* Real seats are visible before joining, with a direct invitation action. */
.ds-party-seats{position:absolute;inset:0 0 255px;pointer-events:none;z-index:5}.ds-party-seat{position:absolute;left:var(--seat-x);top:var(--seat-y);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:6px;width:135px;min-width:0;border:0;background:none;color:#6b4d80;text-shadow:0 1px #fff4e9;pointer-events:auto;padding:8px 4px;transition:filter .16s}
.ds-party-seat>b{display:grid;place-items:center;width:57px;height:57px;border:1px solid #c39ec8;border-radius:50%;background:radial-gradient(circle at 35% 20%,#fff8ed,#d1b9e4c9);box-shadow:inset 0 0 0 4px #fff1d34d,0 5px 18px #79598b30;color:#8a649f;font:300 35px/1 Georgia}.ds-party-seat>strong{font:700 12px/1.3 system-ui;max-width:100%;overflow-wrap:anywhere}.ds-party-seat>small{font:10px/1.3 system-ui;max-width:100%}.ds-party-seat:hover:not(:disabled)>b,.ds-party-seat:focus-visible>b{background:#fff0cc;color:#744896;box-shadow:0 0 0 4px #d3abe64d,0 0 24px #c78be199;border-color:#ffe0a5}.ds-party-seat[data-occupied=true]{opacity:1!important;filter:none!important;cursor:default;color:#61416f}.ds-party-seat[data-occupied=true]>b{display:none}.ds-party-seat[data-ready=true]>strong:before{content:'✓ ';color:#387b6c}.ds-party-seat[data-occupied=true]>strong,.ds-party-seat[data-occupied=true]>small{background:#fff8e6d9;border-radius:5px;padding:3px 6px}
@media(min-width:2200px){.ds-party-seats{bottom:315px}.ds-party-seat{width:160px}.ds-party-seat>b{width:64px;height:64px}.ds-party-seat>strong{font-size:14px}}
@media(max-width:850px){.ds-party-seat{width:90px}.ds-party-seat>b{width:40px;height:40px;font-size:28px}.ds-party-seat>small{font-size:8px}.ds-party-seat>strong{font-size:10px}}

.ds-categories{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:1300px){.ds-categories{grid-template-columns:repeat(3,minmax(0,1fr))}}

.ds-future-workspace{grid-column:2;grid-row:1;color:#f7e7cc;padding:30px}.ds-future-card{display:inline-block;vertical-align:top;width:min(420px,100%);margin:8px;padding:24px;border:1px solid #b9a6ca88;background:#36384e99;border-radius:13px}.ds-future-card small{color:#efd29a;font-size:10px}.ds-future-card h2{font:25px Georgia}.ds-future-card p{font:13px/1.7 system-ui;color:#e0d3e3}

/* Festival palette: warm red against luminous blue, independent of hero colors. */
html[data-palette=festival] .ds-shell{--ds-ink:#173d68;--ds-gold:#ffe1a0;--ds-pale:#fff3d7;background:radial-gradient(ellipse at 78% 10%,#ffe1a5 0,transparent 48%),linear-gradient(125deg,#67c6f4,#a9dafa 45%,#ffc4a1)}
html[data-palette=festival] :is(.ds-header,.ds-quick-links,.social-dock){background:linear-gradient(110deg,#142e69,#1b5ba1 65%,#a13c4b);border-color:#f0ca82;color:#fff0cf}
html[data-palette=festival] .ds-rail{background:linear-gradient(160deg,#174780,#173056);border-color:#71caf5}
html[data-palette=festival] .ds-rail button[aria-current=page]{background:linear-gradient(125deg,#ed6b56,#b83552);border-color:#ffe5a0;box-shadow:0 0 22px #ffae6760}
html[data-palette=festival] :is(.ds-play-panel,.ds-hero-name){background:linear-gradient(135deg,#fff7dd,#dbedff 75%,#f9d9c8);color:#214d7a;border-color:#d69167}
html[data-palette=festival] :is(.ds-hero-name h1,.ds-play-panel h2,.ds-modes>button strong,.ds-place-copy h2){color:#184d81}
html[data-palette=festival] :is(.ds-hero-name p,.ds-modes>button small,.ds-mode-detail,.ds-mode-reward,.ds-play-panel>small){color:#406b8d}
html[data-palette=festival] :is(.ds-categories button,.ds-modes>button,.ds-secondary-actions button,.ds-hero-name>button){background:#f3faff;color:#275982;border-color:#80b6d9}
html[data-palette=festival] :is(.ds-categories button[aria-pressed=true],.ds-modes>button[aria-pressed=true],.ds-primary-start){background:linear-gradient(120deg,#f3805c,#c73350);color:#fff2d6;border-color:#ffe3a1;box-shadow:inset 0 1px #fff5ce88,0 4px 16px #d44b4c55}
html[data-palette=festival] .ds-hero-stage{background:radial-gradient(ellipse at 50% 55%,#fff5d2bb,transparent 64%),linear-gradient(130deg,#9bd8ff55,#ffe1b566);border-color:#e9c481}
html[data-palette=festival] .ds-shell[data-page=heroes]>.ds-stage{background:linear-gradient(130deg,#71bbf1,#c4e1ef,#f1c4aa)}
html[data-palette=festival] :is(.ds-page-workspace,.ds-future-workspace){background:linear-gradient(135deg,#183b6aee,#235678e8);color:#fff0d2;border-color:#82c7e9}
html[data-palette=festival] :is(.ds-place-card,.ds-future-card){background:linear-gradient(125deg,#1c4776,#233957);border-color:#e4bd80}
html[data-palette=festival] :is(.ds-place-copy h2,.ds-page-heading h1,.ds-page-workspace>h1){color:#ffe0a0}
html[data-palette=festival] :is(.ds-party-seat,.ds-role){color:#1c527c}
html[data-palette=festival] .ds-party-seat>b{background:linear-gradient(135deg,#fff0b9,#f4a270);border-color:#cf6451;box-shadow:0 0 23px #f5907666}
html[data-palette=festival] body dialog:not(.world-map-dialog),html[data-palette=festival] :is(.game-context,.game-tooltip,.social-drawer,.social-chat,.comm-panel,.festival-toolbar,.festival-heading,.festival-result,.party-invitation-stack>section){background:linear-gradient(135deg,#16457a,#142a50);color:#ffedc9;border-color:#f0b974}
html[data-palette=festival] :is(.profile-dashboard,.profile-identity,.profile-content,.profile-summary,.ds-profile-workspace){background-color:#153a64;color:#ffedcc}
html[data-palette=festival] .social-ui .social-friends-toggle{background:#193d6a!important;color:#fff0cd!important;border-color:#83c8ee!important}
html[data-palette=festival] :is(.ds-shell button:hover:enabled,.game-context button:hover,.social-invite-friend:hover){box-shadow:0 0 19px #7ad5ff66,inset 0 1px #ffe5b04d;border-color:#fff1bd}
html[data-palette=festival] :is(.ds-collection-tabs button[aria-selected=true],.ds-profile-tabs button[aria-selected=true]){color:#ffe0a0;border-color:#ee805f}

.ds-party-seat{width:100px}.ds-party-seat>b{width:49px;height:49px}.ds-party-seat>small{font-size:9px}.ds-quick-links .ds-palette-toggle{display:block;width:auto;font-size:11px}

html[data-palette=festival] .ds-hero-name>strong{color:#1b4e7b}html[data-palette=festival] .ds-hero-name>small{color:#426d8b}html[data-palette=festival] .ds-hero-skill-preview>button{background:linear-gradient(125deg,#236cac,#194c85);color:#fff2ce;border-color:#78c5f2}html[data-palette=festival] .ds-modes>button[aria-pressed=true] :is(strong,small){color:#fff2d5}html[data-palette=festival] #profileDialog :is(.profile-banner,.profile-avatar,.profile-panel){background:linear-gradient(140deg,#204f7a,#19365b);color:#fff0d0}

/* One palette throughout the client, including lobby and account doorway. */
html[data-layout=dimensions][data-palette=festival] .ds-stage{background:radial-gradient(ellipse at 62% 22%,#fff4c9d9,transparent 57%),radial-gradient(ellipse at 7% 90%,#56a9f38a,transparent 60%),linear-gradient(128deg,#80bee8,#c4e5ef 60%,#f7c2a0)}
html[data-palette=festival] :is(.ds-lobby-code,.ds-lobby-ready,.ds-lobby-teams>button,.ds-lobby-setting select){background:#e4f3ff;color:#214b76;border-color:#79acd2}
html[data-palette=festival] .ds-lobby-teams>button[aria-pressed=true]{background:linear-gradient(120deg,#2772b5,#174572);color:#fff2cc;border-color:#ffcb87}
html[data-palette=festival] .ds-lobby-ready[aria-pressed=true]{background:#d3eabf}
html[data-palette=festival] :is(.ds-lobby-description,.ds-lobby-setting,.ds-lobby-player,.ds-lobby-player small,.ds-lobby-tip){color:#3a6288}
html[data-layout=dimensions][data-palette=festival] body :is(.workshop-header,.adv-header,.housing-header,.workbench-header,.market-heading,.staff-heading,.jukebox-heading){background:linear-gradient(120deg,#1c5689,#163254);color:#ffedc5;border-color:#edb876}
html[data-layout=dimensions][data-palette=festival] body :is(.workshop-tabs,.adv-tabs,.housing-tabs,.market-tabs,.workbench-tabs){background:#17385b;border-color:#79b8df}
html[data-layout=dimensions][data-palette=festival] .auth-gate{background:radial-gradient(ellipse at 98% 4%,#f5985c55,transparent 60%),linear-gradient(140deg,#285f91,#142e53)}
html[data-layout=dimensions][data-palette=festival] .auth-panel{background:linear-gradient(130deg,#fff4da,#e1f1ff);color:#224b78;border-color:#efb77d}
html[data-layout=dimensions][data-palette=festival] .auth-panel :is(h2,.auth-form-brand){color:#205180}
html[data-layout=dimensions][data-palette=festival] .auth-panel .auth-tabs button[aria-pressed=true]{background:linear-gradient(120deg,#ee815d,#bb374e);color:#fff0cd}
.social-invite-friend:disabled{opacity:.6;cursor:default}
