:root{color-scheme:dark;font-family:"Microsoft JhengHei","Noto Sans TC",sans-serif;background:#0b151d;color:#f5f0e5}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,summary{touch-action:manipulation}button{cursor:pointer;background:linear-gradient(#ba995b,#8f6838);color:#fff9e8;border:1px solid #d0b179;border-radius:6px;min-height:46px;padding:10px 18px;letter-spacing:.04em}button:hover{filter:brightness(1.12)}button:disabled{opacity:.5;cursor:wait}button.secondary{background:#132633de;border-color:#49616e}.small{min-height:40px;padding:7px 12px;font-size:14px}input,select{width:100%;min-height:46px;padding:10px;color:#f8f5ec;background:#08141de8;border:1px solid #49616e;border-radius:5px;font-size:16px}label{display:grid;gap:7px;font-size:14px;flex:1}form{display:grid;gap:16px}.row{display:flex;gap:12px;align-items:center}.row h2{margin-right:auto}h1{font-family:serif;font-size:clamp(42px,7vw,72px);letter-spacing:.22em;margin:16px 0}h2{font-size:20px}.card{background:#0b1924ed;border:1px solid #53646a;border-radius:12px;padding:24px;box-shadow:0 20px 70px #0008}.content{position:relative;z-index:1;width:min(100%,570px);margin:auto;padding:48px 24px}.shade{position:fixed;inset:0;background:linear-gradient(90deg,#07131ee8,#0b1721bb),url('/assets/world03/loading13.webp') center/cover no-repeat}#health{color:#a7d5cf;font-size:14px;line-height:1.6}#message{color:#ffd1af;line-height:1.6;font-size:14px}#roleList{display:grid;gap:10px;margin:12px 0 24px}.role{display:flex;align-items:center;justify-content:space-between;background:#122b39;border:1px solid #425f70;border-radius:7px;padding:14px;gap:12px}.role p{font-size:13px;color:#bed0d5;margin:6px 0 0}details{border-top:1px solid #354b59;padding-top:16px}summary{cursor:pointer;padding:8px 0 16px;color:#e3c99b}#world{position:fixed;inset:0;background:#08141b;overflow:hidden}#scene{position:absolute;inset:0;width:100%;height:100%;touch-action:none}#hud{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-start;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 14px max(14px,env(safe-area-inset-left));background:linear-gradient(#08141bed,transparent);pointer-events:none}#hud>*{pointer-events:auto}#life{font-size:13px;margin-top:7px;color:#c6ddd9}.world-note{position:absolute;top:82px;left:50%;transform:translateX(-50%);font-size:12px;background:#0a1b22cf;border:1px solid #50616a;border-radius:16px;padding:7px 12px;white-space:nowrap;pointer-events:none}#worldStatus{position:absolute;bottom:55px;left:20px;font-size:12px;color:#d8e9e5;pointer-events:none}.controls-note{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);font-size:12px;white-space:nowrap;background:#09161cba;padding:7px 12px;border-radius:20px;pointer-events:none}#joystick{position:absolute;width:116px;height:116px;border-radius:50%;border:2px solid #d4e9e97a;background:#9ee9f31c;pointer-events:none;transform:translate(-50%,-50%)}#stick{position:absolute;width:44px;height:44px;left:34px;top:34px;border-radius:50%;border:1px solid #c5eff3;background:#c5eff366}[hidden]{display:none!important}@media(max-width:600px){.content{padding:28px 16px}.card{padding:18px}.world-note{top:100px}#hud{font-size:14px}#hud .row{gap:7px}.small{font-size:12px;padding:7px 9px}}@media(max-height:500px){.world-note{top:60px}.content{padding-top:20px}#hud{padding-top:8px}}
#worldLabels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.world-label{position:absolute;left:0;top:0;white-space:nowrap;font-size:13px;line-height:1.4;color:#e3d7af;text-shadow:0 1px 3px #000,1px 0 2px #000,-1px 0 2px #000}.world-label[data-self=true]{color:#cdf6ff;font-weight:700}#visualSettings{position:absolute;right:16px;top:72px;padding:10px 13px;background:#0b1924e6;border:1px solid #526672;border-radius:8px;width:164px;font-size:13px}#visualSettings summary{padding:0;list-style:none;text-align:center}#visualSettings[open] summary{margin-bottom:12px}#visualSettings label{font-size:12px}#visualSettings select{min-height:36px;padding:5px;font-size:13px}#visualSettings button{width:100%;margin-top:10px}#renderStatus{left:16px;transform:none;top:82px;max-width:calc(100vw - 210px);overflow:hidden;text-overflow:ellipsis}@media(max-width:600px){.world-label{font-size:12px}#visualSettings{right:10px;top:90px;width:145px}#renderStatus{left:10px;top:98px;max-width:calc(100vw - 175px);font-size:11px}.controls-note{font-size:11px;max-width:95vw;white-space:normal;text-align:center}#worldStatus{left:12px;bottom:58px}}

#inventoryPanel{position:fixed;z-index:25;right:16px;top:125px;width:min(500px,calc(100vw - 32px));max-height:calc(100dvh - 155px);overflow:auto;background:rgba(9,23,29,.97);border:1px solid #64726d;border-radius:12px;padding:16px;box-shadow:0 12px 40px #0009;touch-action:pan-y}#inventoryPanel[hidden]{display:none}.inventory-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.inventory-header h2{font-size:19px;margin:0}.inventory-item{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;border-top:1px solid #ffffff1c;padding:10px 0}.inventory-item img{width:40px;height:40px;object-fit:contain;border:1px solid #8d7851;border-radius:4px}.inventory-item strong{font-size:15px;line-height:1.45}.inventory-item div div{color:#b2c2c4;font-size:12px;margin-top:3px}.inventory-item[data-equipped=true] strong{color:#d8c697}.inventory-item img[hidden]+div{grid-column:1/3}#inventorySummary{font-size:13px;color:#ddcba8;margin-top:14px}#inventoryMessage{font-size:13px;color:#efccaa}#inventoryPanel button{min-height:38px}@media(max-width:500px){#hud>.row{gap:5px}#hud>.row button{padding:7px 9px;font-size:12px}#inventoryPanel{top:115px;right:10px;width:calc(100vw - 20px);max-height:calc(100dvh - 140px);padding:12px}.inventory-item{gap:7px}.inventory-item strong{font-size:14px}}

#questPanel{position:fixed;z-index:25;right:16px;top:125px;width:min(500px,calc(100vw - 32px));max-height:calc(100dvh - 155px);overflow:auto;background:#09171bf7;border:1px solid #82724e;border-radius:12px;padding:16px;box-shadow:0 12px 40px #0009;touch-action:pan-y}.quest-tabs{display:flex;gap:8px;margin:16px 0}.quest-tabs button[aria-pressed=true]{border-color:#e1c086;color:#ffe4ad;background:#5c4728}#questSummary{color:#decca6;font-size:13px}#questMessage{color:#becdc8;font-size:14px;line-height:1.7}.quest-row{border-top:1px solid #ffffff20;padding:14px 0}.quest-row strong{font-size:16px;line-height:1.5;color:#edddba}.quest-row p{font-size:13px;color:#aebfbc;margin:7px 0 0}.quest-row[data-status=REWARD] strong{color:#f3cf72}
#targetPanel{position:absolute;z-index:6;left:16px;top:132px;width:285px;max-height:40dvh;overflow:auto;padding:12px 14px;background:linear-gradient(110deg,#102a23f5,#0a191be8);border:1px solid #7a9c81;border-radius:10px;box-shadow:0 8px 30px #0005;touch-action:pan-y}#targetPanel[data-hostile=true]{border-color:#b46b62;background:linear-gradient(110deg,#38201ff5,#191216e8)}#targetPanel header{display:flex;align-items:center;gap:10px;justify-content:space-between}#targetName{font-size:16px;color:#e9efcd}#targetClose{min-width:36px;min-height:34px;padding:2px 9px;font-size:20px}#targetPanel[data-hostile=true] #targetName{color:#ffb6a3}.target-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#c4d5ca;margin:9px 0 4px}#targetLife{display:block;width:100%;height:14px;accent-color:#88ba95}#targetLifeText{font-size:11px;color:#d9e3d9;margin:3px 0 0}#targetQuestHeading{font-size:12px;color:#b7c3af;margin-top:12px}.target-quest{color:#efce81;font-size:13px;margin-top:8px;line-height:1.6}.world-label[data-selected=true]{color:#dcf1be;outline:1px solid #bdd39c;border-radius:4px;padding:2px 7px;background:#10271bd9}.world-label[data-selected=true][data-hostile=true]{color:#ffc5b6;outline-color:#e28a75;background:#3a1718d9}.inventory-item[data-quality=rare] strong{color:#a7df96}.inventory-item[data-quality=legend] strong{color:#91ceff}.inventory-item[data-quality=unique] strong{color:#f3cf79}.inventory-item[data-quality=epic] strong{color:#f2a266}.inventory-item[data-quality=mythic] strong{color:#d7b4ff}
@media(max-width:600px){#hud{flex-wrap:wrap;gap:9px}#hud>.row{width:100%;justify-content:flex-end;gap:7px}#hud>.row button{font-size:12px;padding:7px 10px}#visualSettings{top:118px}#renderStatus{top:124px}#targetPanel{left:10px;top:168px;width:min(280px,calc(100vw - 20px));max-height:35dvh}#inventoryPanel,#questPanel{top:166px;right:10px;width:calc(100vw - 20px);max-height:calc(100dvh - 188px);padding:12px}}
@media(max-height:500px){#inventoryPanel,#questPanel{top:72px;max-height:calc(100dvh - 90px)}#targetPanel{top:112px;max-height:45dvh}.quest-tabs{margin:10px 0}}

/* Original NPC dialog pages, responsive and readable over the native scene. */
#dialogPanel{position:absolute;z-index:18;left:22px;top:110px;width:min(440px,calc(100vw - 44px));max-height:calc(100dvh - 150px);overflow:auto;padding:20px;border:1px solid #8c7951;border-radius:12px;background:linear-gradient(145deg,rgba(20,30,37,.98),rgba(10,18,23,.98));box-shadow:0 16px 60px #0009;color:#eee6d1;pointer-events:auto}#dialogPanel[hidden]{display:none}#dialogTitle{font-size:20px;margin:0;color:#ead7a5}#dialogText{font-size:17px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 0 16px}#dialogQuestName{color:#edcd79;font-size:15px;margin:10px 0 0}#dialogMessage{font-size:14px;color:#edcd79}#dialogChoices{display:grid;gap:9px}.dialog-choice{width:100%;text-align:left;white-space:normal;min-height:44px;font-size:16px;line-height:1.5;padding:10px 14px;border-color:#6d654c}.dialog-choice:before{content:'◆ ';color:#d7b968}#targetTalk{margin-top:10px;width:100%}@media(max-width:600px){#dialogPanel{left:12px;top:94px;width:calc(100vw - 24px);max-height:calc(100dvh - 120px);padding:16px}#dialogText{font-size:16px;line-height:1.8}}

/* Original appearance options, usable on portrait and landscape phones. */
.content:has(#createDetails[open]){width:min(1080px,100%)}.creator-grid14{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.85fr);gap:18px;margin:16px 0}.creator-options14{min-width:0}#previewBox14{height:390px;position:relative;border:1px solid #6d705f;border-radius:10px;overflow:hidden;background:#0d1e29;touch-action:none}#previewBox14 #scene{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.preview-actions14{justify-content:center;margin-top:10px}#creatorMessage14{font-size:12px;line-height:1.7;color:#c5d7d3}.creator-colors14{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.creator-colors14 input[type=color]{height:42px;width:100%;padding:3px;cursor:pointer}.creator-options14 input[type=range]{width:100%;accent-color:#b5d6cf;padding:0;height:36px}.creator-options14 label{font-size:14px}.creator-options14 .row>*{min-width:0;flex:1}.role{flex-wrap:wrap}.role>div{flex:1;min-width:130px}@media(max-width:680px){.creator-grid14{grid-template-columns:1fr}#previewBox14{height:340px}.creator-colors14{gap:7px}}

#bodySliders15{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}#bodySliders15 label{display:block;min-width:0}#bodySliders15 output{font-variant-numeric:tabular-nums;color:#d9c49a}#bodySliders15 input{width:100%;touch-action:pan-y}#cosmeticsOptions15 select{width:100%}@media(max-width:480px){#bodySliders15{grid-template-columns:1fr}}

#combatBar16{position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:12;max-width:calc(100vw - 24px)}.combat-buttons16,#skillSlots16{display:flex;gap:5px;align-items:center}#combatBar16 button{margin:0;min-height:50px;padding:7px 10px}#skillSlots16 .skill-slot16{position:relative;width:54px;height:54px;padding:0;overflow:hidden}.skill-slot16 img{width:100%;height:100%;object-fit:cover}.skill-slot16 span{position:absolute;bottom:0;left:0;right:0;font-size:10px;line-height:14px;background:#081820cc;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.skill-cooldown16{position:absolute;inset:0;background:#071622cc;color:white;font-size:17px;display:grid;place-items:center}.skill-cooldown16[hidden]{display:none}#combatMessage16{margin:0 0 4px;text-align:right;color:#ffe0a0;text-shadow:0 1px 3px black}#attack16[aria-pressed=true]{background:#863e2e}#skillPanel16{position:fixed;z-index:30;top:12%;right:12px;width:min(560px,calc(100vw - 24px));max-height:70vh;overflow:auto;padding:16px;background:#0b1d27f5;border:1px solid #8d9caa;border-radius:12px}#skillPanel16 h2{margin:0}.skill-row16{display:grid;grid-template-columns:1fr auto;gap:6px;padding:10px 0;border-bottom:1px solid #70808055}.skill-row16 p{grid-column:1;font-size:13px;margin:0}.skill-pick16{display:flex;align-items:center;gap:10px;text-align:left;padding:4px}.skill-pick16 img{width:40px;height:40px}.skill-row16>button:last-child:not(.skill-pick16){grid-column:2;grid-row:1 / 3}.controls-note{bottom:78px}@media(max-width:700px){#combatBar16 button{min-height:44px;padding:6px;font-size:12px}#skillSlots16 .skill-slot16{width:38px;height:44px}.combat-buttons16,#skillSlots16{gap:3px}#combatBar16{right:6px;bottom:max(6px,env(safe-area-inset-bottom));max-width:calc(100vw - 12px)}.controls-note{display:none}}

@media(max-width:520px){#combatBar16{width:min(360px,calc(100vw - 12px))}.combat-buttons16{display:grid;grid-template-columns:repeat(3,1fr)}#skillSlots16{grid-column:1 / -1;grid-row:1;display:grid;grid-template-columns:repeat(6,1fr)}#skillSlots16 .skill-slot16{width:100%;height:46px}#attack16{grid-column:1;grid-row:2}#skills16{grid-column:2;grid-row:2}#cancelCast16{grid-column:3;grid-row:2}}

#deathPanel17,#lootPanel17{position:fixed;z-index:45;padding:18px;background:#0b1d27f7;border:1px solid #95a7ad;border-radius:12px;box-shadow:0 8px 40px #0009;max-height:75vh;overflow:auto}#deathPanel17{left:50%;top:50%;transform:translate(-50%,-50%);width:min(360px,calc(100vw - 32px));text-align:center}#deathPanel17 h2{margin-top:0}#reviveOptions17{display:grid;gap:8px}#lootPanel17{right:12px;top:15%;width:min(420px,calc(100vw - 24px))}#lootPanel17 h2{margin:0}.loot-row17{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #70808055}.loot-row17 img{width:40px;height:40px;object-fit:contain}.loot-row17 span{flex:1;min-width:0;overflow-wrap:anywhere}#nearbyLoot17{position:fixed;right:12px;bottom:86px;z-index:15}#deathPanel17[hidden],#lootPanel17[hidden],#nearbyLoot17[hidden]{display:none}@media(max-width:520px){#nearbyLoot17{bottom:120px;right:6px}#lootPanel17{right:6px;width:calc(100vw - 12px);max-height:72vh}}

#travelPanel19{position:fixed;z-index:65;right:max(12px,env(safe-area-inset-right));top:12vh;width:min(520px,94vw);max-height:78vh;overflow:auto;padding:18px;box-sizing:border-box;background:rgba(12,29,37,.97);border:1px solid #658391;border-radius:16px;box-shadow:0 12px 48px #0008;overscroll-behavior:contain}#travelPanel19[hidden]{display:none!important}.travel-row19{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #aec5cc29}.travel-row19 button{min-height:44px;flex-shrink:0}#travelMessage19{min-height:1.5em;color:#ffe5a5}.travel-wait19 #scene{opacity:.45;pointer-events:none}#scene{transition:opacity .18s ease}@media(max-width:600px){#travelPanel19{top:8vh;right:3vw;padding:14px;max-height:83vh}.travel-row19{gap:8px;font-size:15px}.travel-row19 button{font-size:14px}}

#shopPanel20{position:absolute;z-index:25;right:max(12px,env(safe-area-inset-right));top:max(72px,env(safe-area-inset-top));width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 100px);overflow:auto;padding:16px;border:1px solid #8aa5ad;border-radius:16px;background:#10252af5;color:#f4ead0;overscroll-behavior:contain}#shopPanel20[hidden]{display:none}#shopList20{display:grid;gap:6px;max-height:40dvh;overflow:auto;margin:12px 0}.shop-item20{display:flex;align-items:center;gap:10px;text-align:left;min-height:48px;width:100%;font-size:16px;white-space:normal}.shop-item20 img{width:36px;height:36px;object-fit:contain}.shop-item20[aria-pressed=true]{outline:2px solid #e9c77e}#shopQuantity20{width:90px;min-height:44px;font-size:18px}#shopPanel20 .row{flex-wrap:wrap;gap:8px}#shopMessage20{line-height:1.5;min-height:24px}

#skillGuide84 { margin-top: 10px; }
#skillGuideSearch84 { display: block; margin: 4px 0 8px; max-width: 100%; }
.skill-guide-row84 { padding: 8px 2px; border-bottom: 1px solid rgb(180 195 220 / 20%); }
.skill-guide-row84 p { margin: 3px 0; }
#lobby:not([hidden]):has(#characters[hidden]) { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; }
#lobby:has(#characters[hidden]) .content { width: min(100%, 430px); }
#lobby:has(#characters[hidden]) h1 { margin: 0 0 24px; text-align: center; font-size: clamp(38px, 9vw, 62px); letter-spacing: .12em; }
#lobby #health:empty, #lobby #message:empty { display: none; }
@media (orientation: landscape) and (max-height: 520px) {
 #lobby:has(#characters[hidden]) .content { padding: 14px 16px; }
 #lobby:has(#characters[hidden]) h1 { margin-bottom: 12px; font-size: 36px; }
 #lobby:has(#characters[hidden]) .card { padding: 16px; }
 #authForm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
 #authForm label { grid-column: 1 / -1; gap: 4px; }
 #authForm > button { min-width: 0; padding-inline: 8px; }
}

#roleList .role { flex-wrap: wrap; }
.role-info { flex: 1 1 112px; overflow-wrap: anywhere; }
.role-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.role-actions .small { min-height: 44px; }
button.role-delete { background: #ab2937; color: #fff3f4; border-color: #e25865; }
#deleteCharacter { width: min(420px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto; padding: 20px; background: #0b1924; color: #f5f0e5; border: 1px solid #53646a; border-radius: 12px; }
#deleteCharacter::backdrop { background: #0009; }
#deleteCharacter h2, #deleteCharacter p { margin: 0; }
#deleteCharacter .row { justify-content: flex-end; }
#deleteCharacterError { color: #ffd1af; }
#deleteCharacterError:empty { display: none; }

.creator-fields14 { min-width: 0; }
.creator-identity14, .creator-options14 { display: grid; gap: 14px; }
.creator-identity14 { margin-bottom: 16px; }
.creator-fields14 .row > * { min-width: 0; }
.creator-submit14 { display: flex; gap: 10px; }
.creator-submit14 > button { flex: 1; }
.character-heading { flex-wrap: wrap; }
#lobbyFullscreenStatus { color: #a7d5cf; font-size: 14px; line-height: 1.6; }
#lobbyFullscreenStatus:empty { display: none; }
.preview-actions14 [aria-pressed="true"] { color: #fff4d9; border-color: #c6a66f; background: #3a3023; }
.preview-actions14 { gap: 6px; }
.preview-actions14 > button { min-width: 44px; padding-inline: 8px; }
.preview-actions14 > .preview-zoom14 { font-size: 18px; }
#creatorMessage14:empty { display: none; }

.creator-choice-field { display: grid; gap: 5px; min-width: 0; align-content: start; font-size: 14px; }
.creator-fields14 .row:has(.creator-choice-field) { align-items: start; }
.creator-choice { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 4px; min-width: 0; }
.creator-choice > button, .creator-choice-list > button { min-height: 44px; padding: 4px; letter-spacing: 0; line-height: 1.25; overflow-wrap: anywhere; }
.creator-choice > button:disabled { cursor: default; }
.creator-choice > button:first-child:not(.creator-color-choice),
.creator-choice > button:nth-child(3) { font-size: 21px; }
.creator-choice-list {
 grid-column: 1 / -1;
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(min(73px, 100%), 1fr));
 gap: 4px;
 max-height: 144px;
 overflow-y: auto;
 margin: 3px 0;
 padding: 4px;
 background: #0a1520;
 border: 1px solid #354b59;
 border-radius: 7px;
}
.creator-choice [aria-expanded="true"], .creator-choice-list [aria-pressed="true"] {
 background: #3a3023;
 border-color: #c6a66f;
 color: #fff4d9;
}
.creator-choice > .creator-color-choice {
 grid-column: 1 / -1;
 background: linear-gradient(var(--choice-color), var(--choice-color)) center / calc(100% - 10px) calc(100% - 10px) no-repeat, #132633;
}
.creator-color-panel { display: grid; gap: 2px; padding: 6px 10px; border: 1px solid #354b59; border-radius: 7px; }
.creator-color-panel > label { grid-template-columns: 1.5em minmax(0, 1fr); align-items: center; }

@media (min-width: 761px) and (min-height: 601px) {
 .creator-preview14 { position: sticky; top: 12px; align-self: start; }
}

@media (max-width: 760px), (orientation: landscape) and (max-height: 600px) {
 body:has(#lobby:not([hidden]) #createDetails[open]) { overflow: hidden; }
 #lobby #characters:has(> #createDetails[open]) > :not(#createDetails) { display: none; }
 #lobby #createDetails[open] {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #0b1924;
  border: 0;
  padding: 0;
 }
 #createDetails[open] > summary {
  position: absolute;
  inset: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) auto max(12px, env(safe-area-inset-left, 0px));
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-bottom: 1px solid #354b59;
  font-weight: 600;
 }
 #createDetails[open] > summary::after { content: '×'; font-size: 24px; line-height: 1; }
 #createDetails[open] > #createForm {
  position: absolute;
  inset: calc(52px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
 }
 #createForm .creator-grid14 {
  min-height: 0;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(136px, 43%) minmax(0, 1fr);
  gap: 8px;
 }
 .creator-preview14 { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 4px; }
 #previewBox14 { height: auto; min-height: 0; }
 .preview-actions14 { margin: 0; }
 .preview-actions14 > button { min-height: 44px; }
 #creatorMessage14 { margin: 0; text-align: center; }
 .creator-fields14 {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 8px 18px 2px;
  border-top: 1px solid #354b59;
 }
 .creator-colors14 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
 .creator-choice { grid-template-columns: 33px minmax(0, 1fr) 33px; }
 .creator-colors14 input[type=color], .creator-options14 input[type=range] { height: 44px; }
 #faceSliders14, #bodySliders15 { display: grid; gap: 10px; }
}

@media (orientation: landscape) and (max-height: 600px) {
 #createForm .creator-grid14 {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
 }
 .creator-fields14 { border-top: 0; padding-top: 2px; }
}

@media (min-width: 980px) and (min-height: 601px) and (hover: hover) and (pointer: fine) {
 body #world {
  --edge24: 16px;
  --key24: 45px;
  --skill24: 44px;
  --gap24: 5px;
  --bottom24: max(14px, env(safe-area-inset-bottom));
  --left24: max(16px, env(safe-area-inset-left));
  --right24: max(16px, env(safe-area-inset-right));
 }
 body #world #hud { padding: 14px var(--right24) 12px var(--left24); }
 body #world #hud > div {
  max-width: min(260px, 25vw);
  padding: 8px 12px;
  border: 1px solid #62818e85;
  border-radius: 8px;
  background: #111f28df;
 }
 body #world #renderStatus { top: 80px; }
 body #world #targetPanel {
  top: 12px;
  left: 50%;
  right: auto;
  width: min(300px, 30vw);
  translate: -50% 0;
 }
 body #world #questTrack84 { top: 16px; left: auto; right: var(--right24); width: min(264px, 24vw); }
 body #world #combatBar16 {
  left: 50%;
  right: auto;
  width: max-content;
  max-width: 62vw;
  translate: -50% 0;
 }
 body #world .combat-buttons16 {
  display: flex;
  align-items: center;
  padding: 5px;
  border: 1px solid #62818e85;
  border-radius: 8px;
  background: #111f28eb;
 }
 body #world #combatBar16 button { min-height: 44px; }
 body #world #combatBar16 #attack16 { min-width: 58px; order: -1; }
 body #world #combatMessage16 { bottom: 57px; }
 body #world #autoHuntStatus39:not([hidden]) { text-align: center; }
 body #world #edgeMenu24 { right: var(--right24); left: auto; }
 body #world #morePanel24 { right: var(--right24); left: auto; bottom: calc(var(--bottom24) + 52px); }
 body #world #dialogPanel { left: var(--left24); right: auto; top: 92px; }
 body #world #inventoryPanel, body #world #skillPanel16, body #world #shopPanel20 {
  top: 92px;
  right: var(--right24);
  left: auto;
  max-height: calc(100dvh - 162px);
 }
 #lobby:has(#characters:not([hidden])) .content {
  width: min(550px, 50vw);
  margin-inline: auto max(34px, 5vw);
 }
 #lobby:has(#createDetails[open]) .content {
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: 20px;
 }
 #createForm .creator-grid14 { grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr); }
 #createForm .creator-fields14 { max-height: min(65dvh, 700px); overflow-y: auto; overscroll-behavior: contain; }
 #createForm #previewBox14 { height: clamp(280px, 57dvh, 680px); }
}
