*{box-sizing:border-box}body{margin:0;color:#302e28;font:16px system-ui,sans-serif;background:#364746}.brand,button,.choices span{user-select:none}button{font:inherit;cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #d58546;outline-offset:2px}#view{position:fixed;inset:0;overflow:hidden;touch-action:none;cursor:crosshair}#world{position:absolute;left:0;top:0;width:1440px;height:680px;transform-origin:0 0}canvas{width:100%;height:100%;image-rendering:pixelated;display:block}header{position:fixed;inset:16px 18px auto;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none}.brand,.tools{background:#253c35;color:#fff0cf;border:2px solid #182e29;box-shadow:0 3px 0 #172d29a0;border-radius:9px;display:flex;align-items:center;padding:8px 12px;gap:8px}.brand{font-size:24px;font-weight:900;letter-spacing:-1.6px;line-height:1}.brand b{font:bold 10px monospace;background:#f3dcae;color:#35463b;padding:2px 3px;align-self:start}.brand i{font:700 20px/18px monospace;color:#292e29;background:#e8a575;border:2px solid #deb88a;padding:0 2px}.tools{pointer-events:auto;gap:8px;padding:5px}.tools button,#close{background:#395449;color:#fff0cf;border:1px solid #667b68;border-radius:5px;padding:5px 9px;font-size:14px;font-weight:700}.tools span{font:12px monospace;margin:0 5px}.tools span:before{content:'●';color:#afd08a;margin-right:5px}#panel{position:fixed;top:50%;left:clamp(12px,4vw,70px);transform:translateY(-50%);width:min(350px,calc(100vw - 24px));max-height:calc(100dvh - 80px);overflow:auto;background:#fff3d8;border:3px solid #453e34;border-radius:14px;box-shadow:4px 6px 0 #29373199, inset 0 0 0 4px #ead6b0;padding:23px 23px 25px}.stripe{height:7px;margin:-23px -23px 16px;background:repeating-linear-gradient(110deg,#b6684e 0 14px,#f2d8a9 14px 22px,#739380 22px 36px,#f2d8a9 36px 44px)}.top{display:flex;align-items:center;justify-content:space-between}.top small{font:700 10px monospace;letter-spacing:2px;color:#79684e}#close{background:#eddfbe;color:#625440;border:1px solid #c9b893;font-size:18px;line-height:18px;padding:2px 6px}h1{font:900 42px/.96 Georgia,serif;letter-spacing:-2px;margin:11px 0 22px}h1 span{color:#b95e3c}fieldset{border:0;margin:0 0 16px;padding:0}legend,form>label{font-size:14px;font-weight:750;display:block;margin-bottom:7px}.choices{display:flex;gap:7px}.choices label{flex:1;position:relative}.choices input{position:absolute;opacity:0}.choices span{display:grid;justify-items:center;align-content:center;gap:4px;height:78px;border:1px solid #c8b895;border-bottom-width:3px;border-radius:7px;background:#f5e8cb;font-weight:650;font-size:13px;cursor:pointer}.choices img{height:42px;image-rendering:pixelated}.choices input:checked+span{background:#dce5c5;border-color:#577054;color:#314832}.choices input:focus-visible+span{outline:2px solid #b86842}#name{width:100%;border:1px solid #b7a27e;border-radius:6px;background:#fffbef;padding:11px 12px;font:inherit}#enter,#resume,#leave{width:100%;border:1px solid #314c3b;border-bottom:4px solid #2f493a;border-radius:7px;margin-top:13px;padding:10px 14px;font-weight:750;color:#fff6e0;background:#54735c}#enter b{float:right}#leave{color:#594a3d;background:transparent;border:1px solid #bfac88}button:hover{filter:brightness(1.08)}[hidden]{display:none!important}#error:not(:empty){position:fixed;bottom:12px;left:50%;transform:translateX(-50%);background:#fff0ce;padding:10px 16px;border-radius:8px}#controls p{line-height:1.5}
@media(max-width:560px){header{inset:8px 8px auto}.brand{font-size:19px}.tools span{font-size:10px}.tools{gap:3px}#panel{left:50%;transform:translate(-50%,-45%)}}
@media(max-height:500px){#panel{top:54px;transform:none;max-height:calc(100dvh - 60px);left:12px}}
#world{background:url('/assets/hojas.webp') center/100% 100% no-repeat}#scene3d{display:block;width:100%;height:100%;border:0;pointer-events:none}

#panel form input,#panel textarea{width:100%;border:1px solid #b7a27e;border-radius:6px;background:#fffbef;color:inherit;padding:9px 11px;font:inherit;margin-bottom:10px}
#panel textarea{resize:vertical}
#panel form button,#logout{width:100%;padding:9px 12px;border:1px solid #314c3b;border-radius:6px;background:#54735c;color:#fff6e0;font-weight:700}
#logout{background:transparent;color:#514737;border-color:#bfac88;margin-top:12px}
#identity{font-weight:bold;overflow-wrap:anywhere}
#admin{margin-top:14px}#admin summary{cursor:pointer;font-weight:650}#admin a{display:block;color:#36543c;margin:12px 0}
#skin-status:empty,#register-status:empty{display:none}

#skin-size{margin:16px 0}.skin-preview{height:104px;display:grid;justify-items:center;align-items:end;padding-bottom:4px;background:#e8d9ba;border-radius:6px}
#skin-sample{width:48px;height:48px;background-size:300% 100%;image-rendering:pixelated;transform-origin:bottom}
#size-slider{accent-color:#54735c}
header .brand{padding:0;background:none;border:none;box-shadow:none;border-radius:0}
header .brand img{display:block;width:clamp(90px,13vw,155px);height:auto}

#wallet{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font:700 12px system-ui;color:#ffefc5}
#wallet i{width:12px;height:12px;border-radius:50%;background:#e7aa49;border:2px solid #ffe5a0;box-shadow:inset -2px -1px #aa7031}
@media(max-width:540px){header .tools{max-width:calc(100vw - 122px);justify-content:flex-end;flex-wrap:wrap}}

#collection {display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:7px}
#collection button {display:grid;justify-items:center;gap:5px;padding:7px 3px;font-weight:700;line-height:1.3;font-family:inherit;font-size:12px;color:#594733;background:#f7e9cd;border:1px solid #c8b58e;border-radius:12px}
#collection button:disabled {color:#355037;background:#deebce;border:2px solid #749369;cursor:default}
.wardrobe-sprite {width:48px;height:48px;background-size:300% 100%;image-rendering:pixelated}
#panel .skin-preview {background:linear-gradient(#e3ecda 77%,#b9cea9 77%);border-radius:12px}
#panel p[role=status]:empty {display:none}
#panel :focus-visible {outline:3px solid #986032;outline-offset:2px}

#panel {
  --ink:#344d47; --mint:#347466;
  top:auto; bottom:clamp(14px,5vh,50px); left:clamp(12px,2.6vw,44px); transform:none;
  width:min(300px,82vw); max-height:calc(100dvh - 100px); overflow:auto;
  padding:20px; border:0; border-radius:26px; background:#fbf9ed; color:var(--ink);
  box-shadow:0 6px 22px #193f392e; scrollbar-width:thin; overscroll-behavior:contain;
  font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;
}
.menu-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:16px}
#panel h1 {margin:0;font:800 27px/1.12 ui-rounded,"Trebuchet MS",sans-serif;letter-spacing:-1px}
#player-name {display:block;font-size:13px;margin-top:3px;color:#577067;overflow-wrap:anywhere}
#panel #close {flex:none;width:32px;height:32px;border:0;border-radius:50%;background:#e9eee2;color:#486459;font:24px/1 sans-serif}
#panel form button,#panel #resume {background:var(--mint);border:0;color:white;border-radius:24px;margin:0;padding:11px 14px;font-size:15px;font-weight:700;line-height:1.2;font-family:inherit}
#panel .menu-choices {display:grid;gap:2px;margin-top:8px}
.menu-choices button,#panel #menu-wordle {display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:16px;background:transparent;color:var(--ink);text-align:left;padding:8px 10px;margin:0;font:700 15px/1.3 ui-rounded,"Trebuchet MS",sans-serif}
.menu-choices button::after {content:'›';margin-left:auto;color:#658378;font-size:19px}
.menu-choices svg {width:30px;height:30px;padding:5px;border-radius:50%;background:#d8ede2;fill:none;stroke:#396e60;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.menu-choices [data-page=identity-page] svg {background:#f5e6bb;stroke:#856635}
.menu-choices button:is(:hover,:focus-visible),#panel #menu-wordle:is(:hover,:focus-visible){background:#e8efdf}
#panel #menu-back,#panel #leave,#panel #logout {width:auto;background:transparent;color:#46685e;border:0;margin:4px 0;padding:7px 3px;font-size:14px;font-weight:700;line-height:1.2;font-family:inherit}
#panel form input:not([type=range]),#panel textarea {background:#fffef7;border:1px solid #bfcebd;border-radius:13px}
#panel #collection button {background:#edf1e4;color:var(--ink);border:2px solid transparent;border-radius:16px}
#panel #collection button:disabled {background:#daeee1;border-color:#578e79}
#panel :focus-visible {outline:3px solid #3b8278;outline-offset:2px}
#panel #controls p {font-size:14px}
@media(max-height:420px){#panel{bottom:8px;max-height:calc(100dvh - 62px)}}
#actions {margin-top:18px;border-top:1px solid #c5d1be;padding-top:12px}
#actions h2 {margin:0;font-size:19px}
#actions p {font-size:14px}
#action-list {display:grid;gap:5px;margin-bottom:10px}
#action-list button {border:1px solid #98b2a0;background:#e2edde;border-radius:10px;text-align:left;padding:7px;color:#395746;overflow-wrap:anywhere}
.wardrobe-switch {display:flex;background:#e6eada;padding:3px;border-radius:16px;margin-bottom:12px}
.wardrobe-switch button {flex:1;border:0;border-radius:14px;padding:7px;background:transparent;color:#486459;font-weight:700}
.wardrobe-switch [aria-pressed=true] {background:#fffdf2;box-shadow:0 1px 3px #384a3933}
#actions {border:0;margin:0;padding:0}
#actions kbd {background:#dce9d8;padding:1px 4px;border-radius:4px}
#action-list {grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
#action-list article {display:grid;gap:5px;background:#edf0e4;border-radius:12px;padding:6px;min-width:0}
#action-list article strong,#action-list article span {font-size:12px;overflow-wrap:anywhere}
.action-preview {height:64px;display:grid;place-items:center;background:#dce8d9;border-radius:9px}
.action-preview i {display:block;max-width:100%;image-rendering:pixelated}
#action-notice:empty {display:none}
@media(pointer:fine){#touch-action{display:none}}
#edit-action {margin:12px 0;padding:10px;background:#e4ecdf;border-radius:12px}
#edit-action label {overflow-wrap:anywhere}
#edit-wait:empty {display:none}
.action-preview {position:relative;overflow:hidden}
.action-world-preview {position:absolute;inset:0;pointer-events:none;opacity:.65;background-size:28px 24px}
#action-list small {color:#496355;font-size:11px}

#eye-view[aria-pressed=true]{background:#f3dcae;color:#314c3b}
#eye-walk{display:none}
@media(pointer:coarse){#eye-walk{position:fixed;bottom:20px;left:16px;display:flex;gap:8px}#eye-walk button{touch-action:none;padding:12px 18px;border-radius:6px;background:#395449;color:#fff0cf}}

.skin-card{display:grid;gap:3px;align-content:start}
#panel #collection .delete-skin{background:transparent;color:#874534;border-radius:7px;padding:5px}
#panel #collection .delete-skin:hover{background:#f5e4dc}

.animation-speed{display:grid;gap:3px;font:600 12px system-ui;color:#395746}
.animation-speed select{width:100%;padding:5px;background:#fffdf1;color:inherit;border:1px solid #98b2a0;border-radius:6px;font:inherit}
