:root{--ink:#283d32;--green:#365a44;--mint:#e9f0e5;--bg:#f7f7f1;--line:#dce1d5;--mut:#627164;--paper:#fffef8}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);margin:0;font-family:DM Sans,Segoe UI,Arial,sans-serif;font-size:15px}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0}button:disabled{cursor:default;opacity:.7}button:focus-visible{outline-offset:3px;outline:3px solid #b7814e}button:hover:not(:disabled){filter:brightness(.95)}button,nav,.brand,.profile,.top,.kicker,.time,.sectionhead,.events,.savebtn,.signature,.news,.stagecontrols,.goalhead,.goalitems,.doing,.sideheading,.entry,.titleline{align-items:center;display:flex}h1,h2,h3,p{margin:0}h1,h2{letter-spacing:-.04em;font-family:Georgia,Times New Roman,serif;font-weight:500}small{color:var(--mut);font-size:12px}header{background:var(--paper);border-bottom:1px solid var(--line)}.top,main{max-width:1470px;margin:auto;padding-inline:clamp(18px,4.2vw,74px)}.top{justify-content:space-between;gap:15px;height:72px}.brand{letter-spacing:-1.2px;gap:9px;font:600 22px Georgia,serif}.brand i{color:#799078;font-weight:400}.brandmark,.homeicon{background:var(--green);color:#fffef3;border-radius:12px;place-items:center;width:36px;height:36px;display:grid}.brandmark svg{transform:rotate(-14deg)}nav{gap:5px}nav button,.profile{color:#617166;border-radius:24px;gap:8px;padding:10px 15px;font-size:13px;font-weight:600}.navon,.on{background:var(--mint);color:var(--green)}.profile{border:1px solid var(--line);padding:8px 13px}.titleline{justify-content:space-between;padding:29px 0 23px}.kicker{letter-spacing:1.9px;color:#657a62;gap:8px;font-size:10px;font-weight:750;line-height:1.4}.kicker>span{background:#7d9576;width:18px;height:2px}h1{margin-top:7px;font-size:clamp(40px,4.2vw,64px);line-height:1.05}h1 em{color:#8b9f77;font-style:normal}.savebtn{color:#59705a;gap:7px;font-size:12px}.layout{grid-template-columns:minmax(0,2.35fr) minmax(305px,1fr);align-items:start;gap:19px;padding-bottom:35px;display:grid}.world,aside,.panel,.goals{background:var(--paper);border:1px solid var(--line);border-radius:19px;overflow:hidden}.worldhead{align-items:center;gap:12px;padding:17px 21px;display:flex}.worldhead h2{font-size:24px}.worldhead small{margin-top:3px;display:block}.homeicon{background:var(--mint);color:var(--green);width:41px;height:41px}.time{gap:7px;margin-left:auto;font-size:12px;font-weight:600}.time svg{color:#ae803f}.time span{color:#939e8f}.stage{background:radial-gradient(at 48% 32%,#f4f1e3 0,#e8e6d8 69%,#d8ddcf 100%);padding:9px 0 39px;position:relative;overflow:hidden}.scene{cursor:pointer;width:100%;max-width:775px;margin:auto;line-height:0;position:relative}.room{-webkit-user-select:none;user-select:none;filter:drop-shadow(0 7px 5px #5a614c26);width:100%;height:auto;display:block}.sprite{width:9.2%;padding:0;line-height:0;transition:top .85s,left .85s;display:block;position:absolute;transform:translate(-50%,-99%)}.sprite img{filter:drop-shadow(1px 3px 1px #524a3e57);width:100%;display:block}.nametag{color:#465642;white-space:nowrap;background:#fcfcf5e8;border-radius:20px;padding:4px 8px;font-size:clamp(9px,.86vw,12px);line-height:1.05;position:absolute;bottom:103%;left:50%;transform:translate(-50%);box-shadow:0 2px 5px #35442f18}.active .nametag{color:#fff;background:#34583f}.active .nametag:after{content:"";border:4px solid #0000;border-top-color:#34583f;position:absolute;top:100%;left:46%}.hiddenCat img{opacity:.62}.move img{animation:.22s 3 bob}.protest img{animation:.45s infinite bob}@keyframes bob{50%{transform:translateY(-4%)rotate(-2deg)}}.pin{z-index:100;background:#fffdf2f5;border:1px solid #839878;border-radius:8px;padding:5px 8px;font-size:11px;line-height:1;position:absolute;transform:translate(-50%)}.stagecontrols{pointer-events:none;justify-content:space-between;position:absolute;inset:auto 14px 12px}.stagecontrols div{gap:5px;display:flex}.stagecontrols button{pointer-events:auto;background:#fffdf4e8;border:1px solid #a9b39e88;border-radius:9px;gap:5px;padding:7px 9px;font-size:11px;font-weight:600}.stagecontrols .on{background:#d7e7ce}.news{color:#455c44;background:#f3f5eb;gap:10px;min-height:47px;padding:10px 19px;font-size:13px}.news svg{flex-shrink:0}.events{flex-wrap:wrap;gap:7px;padding:13px 18px}.events>span{margin-right:auto;font-size:12px;font-weight:650}.events button,.album button{border:1px solid var(--line);border-radius:8px;gap:6px;padding:7px 10px;font-size:12px}.events svg{width:15px;height:15px}aside{padding:20px}.sideheading,.sectionhead{justify-content:space-between;gap:12px}.sideheading>svg{color:#869577}.catsel{background:#f1f2e9;border-radius:13px;gap:4px;margin:15px 0 19px;padding:4px;display:flex}.catsel button{border:1px solid #0000;border-radius:10px;flex:1;gap:8px;padding:5px 7px;font-size:13px}.catsel img{object-fit:cover;border-radius:50%;width:26px;height:26px}.catsel .selected{background:#fffef8;border-color:#d9decf;box-shadow:0 1px 2px #62755c14}.dot{background:#69885d;border-radius:50%;width:6px;height:6px;display:inline-block}.catsel .dot{margin-left:auto}.character{border-bottom:1px solid var(--line);align-items:center;gap:14px;margin:2px 0 21px;padding-bottom:18px;display:flex}.character>img{object-fit:cover;border-radius:17px;width:72px;height:78px}.character h2{font-size:36px;line-height:1.1}.character small span{margin:0 2px}.doing{color:#5f7358;gap:6px;margin-top:6px;font-size:11px}h3{letter-spacing:-.3px;font-size:15px}.textbtn{color:#5f785c;text-underline-offset:3px;font-size:11px;text-decoration:underline}.meters{grid-template-columns:1fr 1fr;gap:14px 16px;margin:15px 0 22px;display:grid}.meters label{color:#5c685b;align-items:center;gap:5px;font-size:11px;display:flex}.meters label span{margin-left:auto;font-size:10px}.track{background:#e9e9df;border-radius:5px;height:5px;margin-top:6px;overflow:hidden}.track i{border-radius:5px;height:100%;transition:width .4s;display:block}.actions{grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0 10px;display:grid}.actions button{background:#f6f6ed;border:1px solid #e4e6d9;border-radius:10px;flex-direction:column;justify-content:center;gap:5px;min-height:53px;font-size:11px;font-weight:600}.actions svg{color:#637a59;stroke-width:1.7px}.signature,.primary{background:var(--green);color:#fffdf3;border-radius:10px;gap:8px;width:100%;padding:11px 12px;font-size:12px;font-weight:600}.signature svg:last-child{margin-left:auto}.goals{grid-column:1/-1;align-items:center;gap:24px;padding:16px 20px;display:flex}.goalhead{gap:9px}.goalhead>svg{width:17px}.goalitems{flex-wrap:wrap;gap:13px}.goalitems button{gap:6px;font-size:12px}.ring,.done{border:1px solid #abb79c;border-radius:50%;place-items:center;width:16px;height:16px;display:grid}.done{background:var(--green);color:#fff}.panel{margin-bottom:36px;padding:24px}.panel h2,.dialog-inner h2{font-size:29px}.entry{border-bottom:1px solid var(--line);gap:18px;padding:15px 0}.entry time{color:#73826f;font-size:12px}.album .sectionhead>div{gap:6px;display:flex}.album img{border-radius:12px;width:100%;max-width:850px;margin:auto;display:block}.album p,.dialog-inner p{margin:16px 0;line-height:1.6}.album small{letter-spacing:0}.options{gap:7px;margin:14px 0 3px;display:grid}.options button{text-align:left;background:#f2f4eb;border-radius:9px;gap:6px;width:100%;padding:12px}.options button svg:last-child{margin-left:auto}.icon{border:1px solid var(--line);border-radius:50%;padding:6px}.icon svg{width:17px;height:17px}dialog{border:1px solid var(--line);background:var(--paper);width:min(420px,92vw);color:var(--ink);border-radius:19px;padding:0;box-shadow:0 16px 80px #293c3433}dialog::backdrop{background:#293b3066}.dialog-inner{padding:23px}.primary{justify-content:center}.goalhead small{white-space:nowrap}@media (min-width:1000px) and (max-height:900px){.scene{max-width:620px}.titleline{padding:21px 0 17px}}@media (max-width:950px){.layout{grid-template-columns:minmax(0,1fr) 290px;gap:12px}.top,main{padding-inline:17px}aside{padding:14px}.goals{flex-wrap:wrap;gap:10px}.brand{font-size:20px}}@media (max-width:730px){.layout{grid-template-columns:1fr}.top{flex-wrap:wrap;gap:5px;height:auto;padding-top:11px}.brand{order:0}.profile{order:1;margin-left:auto}nav{order:2;justify-content:center;width:100%;padding:5px 0}nav button{padding:8px 16px}.titleline{padding:20px 0 14px}.savebtn{gap:4px;max-width:125px;font-size:10px}.stage{padding-top:7px}.worldhead{padding:13px}.events{padding:10px}.character{margin-bottom:13px}.goals{grid-column:auto}.goalitems{gap:8px;display:grid}.goalhead{width:100%}.entry{flex-direction:column;align-items:flex-start;gap:5px}.panel{padding:15px}.kicker{font-size:9px}.nametag{padding:3px 5px;font-size:9px}.news{padding:10px 12px;font-size:12px}.sprite{width:10%}.stagecontrols{inset:auto 8px 6px}.events>span{width:100%}.time{font-size:11px}.worldhead h2{font-size:21px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.rigstage{padding:0;overflow:hidden}.rigwindow{touch-action:none;background:radial-gradient(#f5efdf,#e1e3d2);width:100%;height:clamp(290px,38vw,550px);position:relative;overflow:hidden}.rigwindow canvas{cursor:grab;width:100%;height:100%;display:block}.rigwindow canvas:active{cursor:grabbing}.rigtools,.rigtools>div,.rigtools button{align-items:center;display:flex}.rigtools{flex-wrap:wrap;gap:7px;padding:2px 12px 10px}.rigtools>div,.rigtools>button{background:#fffdf3;border:1px solid #cbd1bf;border-radius:10px;box-shadow:0 2px 5px #374a3410}.rigtools button{justify-content:center;gap:5px;min-height:32px;padding:7px 8px;font-size:11px}.rigtools button svg{width:16px;height:16px}.rigtools output{text-align:center;font-variant-numeric:tabular-nums;min-width:32px;font-size:12px}.rigtools button[aria-pressed=true]{background:#dce8d5}.rigtools .othercam{margin-left:auto}.catlabel{z-index:4;color:#455b44;background:#fffdf5e8;border-radius:9px;padding:3px 7px;font-size:11px;position:absolute;transform:translate(-50%,-100%);box-shadow:0 1px 4px #40513b26}.catlabel.active{color:#fff;background:#365d43}.catlabel:after{content:"";border:4px solid #0000;border-top-color:#fffdf5e8;position:absolute;top:100%;left:40%}.catlabel.active:after{border-top-color:#365d43}.needs-attention{animation:2.1s ease-in-out infinite panelpulse}.actions .calling{background:#f4e1ba;border-color:#c69342;animation:1.9s ease-in-out infinite actionpulse}.actioncue{color:#71572b;align-items:center;gap:7px;margin-top:9px;font-size:12px;display:flex}.actioncue span,.catnotice{background:#bd8536;border-radius:50%}.actioncue span{width:7px;height:7px}.catnotice{color:#fff;padding:0 5px;font-size:10px}.rigwindow .pin{transform:translate(-50%,-15%)}@keyframes panelpulse{0%,to{border-color:#d2d9c7;box-shadow:0 0 #d6ad6d00}50%{border-color:#c79648;box-shadow:0 0 0 3px #d6ad6d42}}@keyframes actionpulse{50%{background:#fff5df;box-shadow:inset 0 0 0 1px #d5b77a}}@media (max-width:730px){.rigwindow{height:clamp(250px,74vw,430px)}.rigtools{gap:4px;padding-inline:7px}.rigtools button{padding:6px}.rigtools output{min-width:26px}}@media (prefers-reduced-motion:reduce){.needs-attention{border-color:#bd8536}}.plano-modal{width:min(760px,94vw);max-height:90dvh}.plano-modal img{border-radius:9px;width:100%;margin:16px 0 8px;display:block}.plano-list{flex-wrap:wrap;gap:7px;margin-top:12px;display:flex}.plano-list button,.litter-choice button{border:1px solid var(--line);background:#f2f4eb;border-radius:8px;padding:7px 10px;font-size:13px}.litter-choice{gap:8px;margin:14px 0 4px;display:flex}.litter-choice [aria-pressed=true]{background:#dbe8d5;border-color:#71866b}.castbar{background:#f2f4e9;border-top:1px solid #dce1d5;gap:7px;padding:8px 14px;display:flex}.castbar button{background:#fffdf5;border:1px solid #c1cbb8;border-radius:20px;align-items:center;gap:7px;padding:3px 13px 3px 4px;font-size:13px;font-weight:650;display:flex}.castbar button[aria-pressed=true]{color:#fff;background:#35593f;border-color:#35593f}.castbar img{object-fit:cover;border-radius:50%;width:27px;height:27px}.camhelp{color:#52634f;padding:0 15px 10px;font-size:12px;line-height:1.45}.rigtools{padding-top:8px}.rigwindow:focus-visible{outline-offset:-2px;outline:2px solid #496c52}.rigwindow button[hidden]{display:none}.loading3d{pointer-events:none;text-align:center;color:#37513d;font-size:12px;position:absolute;inset:auto 12px 14px}.loading3d button{pointer-events:auto;background:#fff;border-radius:10px;margin:auto;padding:8px}.rigwindow:not(.loaded){background:#ece9da url(/hogar/planta.webp) 50%/contain no-repeat}.fullscreen-btn,.fullsave{color:#35583f;border:1px solid #b9c9b7;border-radius:9px;gap:7px;min-height:36px;padding:8px 11px;font-size:13px;font-weight:650}.fullscreen-btn{margin-left:auto}.worldhead .time{margin-left:6px}.fullsave{padding:8px}.news progress{accent-color:#507d54;flex-shrink:0;width:clamp(60px,18%,140px);height:6px;margin-left:auto}.play-expanded{overflow:hidden}.play-expanded header,.play-expanded .titleline,.play-expanded .goals{display:none}.play-expanded main{max-width:none;padding:0}.play-expanded .layout{background:var(--bg);grid-template-columns:minmax(0,1fr) clamp(264px,26vw,360px);align-items:stretch;gap:10px;padding:10px;display:grid;position:fixed;inset:0;overflow:auto}.play-expanded .world{flex-direction:column;min-width:0;min-height:0;display:flex}.play-expanded .worldhead{flex-wrap:wrap;flex:none;padding:8px 12px}.play-expanded .worldhead h2{font-size:21px}.play-expanded .rigstage{flex-direction:column;flex:1;min-height:0;display:flex}.play-expanded .rigwindow{flex:1;height:auto;min-height:120px}.play-expanded .rigtools,.play-expanded .castbar,.play-expanded .camhelp{flex:none}.play-expanded .news,.play-expanded .events{flex:none;min-height:0;padding:8px 12px}.play-expanded aside{min-height:0;overflow-y:auto}.play-expanded aside .actions button{font-size:13px}.play-expanded .time{font-variant-numeric:tabular-nums}@media (max-width:730px){.worldhead{flex-wrap:wrap;gap:7px}.worldhead .homeicon{display:none}.worldhead .time{font-size:10px}.fullscreen-btn{padding:7px;font-size:12px}}@media (max-width:720px) and (orientation:portrait){.play-expanded .layout{padding:0 0 env(safe-area-inset-bottom);flex-direction:column;gap:0;display:flex}.play-expanded .world,.play-expanded aside{border-radius:0;flex-shrink:0}.play-expanded .world{min-height:min(68dvh,600px)}.play-expanded .worldhead{z-index:11;background:var(--paper);position:sticky;top:0}.play-expanded .rigwindow{flex:auto;height:clamp(170px,35dvh,410px)}.play-expanded .camhelp{display:none}.play-expanded aside{overflow:visible}.play-expanded .worldhead .time{display:none}}@media (orientation:landscape) and (max-height:580px){.play-expanded .layout{grid-template-columns:minmax(0,1fr) 225px;gap:4px;padding:3px}.play-expanded .worldhead{gap:3px;padding:3px 6px}.play-expanded .worldhead .time,.play-expanded .worldhead small,.play-expanded .homeicon,.play-expanded .camhelp,.play-expanded .events>span{display:none}.play-expanded .castbar{padding:2px 6px}.play-expanded .rigtools{padding:3px}.play-expanded .rigtools button{min-height:26px;padding:3px}.play-expanded .events,.play-expanded .news{padding:3px 7px}.play-expanded aside{padding:9px}}.ref-foto{border-radius:16px;flex:none;padding:0;display:block;position:relative}.ref-foto img{object-fit:cover;border-radius:16px;width:76px;height:80px;display:block}.ref-foto svg{background:var(--paper);border-radius:5px;width:18px;height:18px;padding:2px;position:absolute;bottom:3px;right:3px}

.recovery-note{position:absolute;left:12px;bottom:8px;z-index:5;pointer-events:none;padding:6px 9px;max-width:90%;background:#fff9d4d9;color:#76582b;border-radius:8px;font-size:10px;font-weight:700;line-height:1.3;box-shadow:0 2px 4px #0002}

/* Panel de herramientas local, aislado de la interfaz React original. */
.kc-helper-trigger{position:fixed;right:15px;bottom:15px;z-index:1200;display:flex;align-items:center;gap:6px;border:1px solid #8ca88f;border-radius:999px;background:#2d6044;color:#fffef9;padding:10px 15px;box-shadow:0 7px 26px #1b3a2733;font-weight:700;font-size:12px}
.kc-helper-trigger:hover{background:#194d34;filter:none}
.kc-helper-trigger:focus-visible,.kc-helper-dialog button:focus-visible{outline:3px solid #b7814e;outline-offset:2px}
.kc-helper-dialog{padding:0;border:1px solid #cdd9c9;border-radius:20px;background:#fffef9;color:#293d32;max-height:88dvh;width:min(570px,94vw);box-shadow:0 25px 80px #182e2580}
.kc-helper-dialog::backdrop{background:#10271da0}
.kc-helper-body{padding:22px 24px 28px;overflow:auto;max-height:88dvh;line-height:1.5}
.kc-helper-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;background:none;border:0;margin:0 0 14px}
.kc-helper-head h2{font-size:28px;line-height:1.05;margin-top:7px}
.kc-helper-head small{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#618268}
.kc-helper-dialog h3{font-size:15px;margin:18px 0 10px}
.kc-helper-dialog .kc-close{font-size:19px;background:#edf3e9;border-radius:12px;width:35px;height:35px;flex:none}
.kc-helper-dialog .kc-helper-note,.kc-helper-dialog .kc-helper-warning,.kc-helper-dialog .kc-helper-footer{font-size:12px;color:#5d6c61;line-height:1.5;margin:8px 0}
.kc-helper-dialog .kc-helper-warning{color:#81633d}
.kc-key-grid{display:grid;grid-template-columns:1fr auto;column-gap:14px;row-gap:8px;font-size:12px;padding:12px;background:#f3f6ee;border-radius:12px}
.kc-key-grid strong{text-align:right;color:#335842}
.kc-save-slot{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e1e8df;font-size:12px}
.kc-helper-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.kc-helper-actions button{background:#deebdd;color:#355c43;padding:9px 13px;border-radius:10px;border:1px solid #bed0b9;font-weight:650;font-size:12px}
.kc-helper-actions button:first-child{background:#355c43;color:#fff}
.kc-helper-dialog .kc-assets{font-size:12px;padding:10px;border-radius:10px;background:#f1f5ec}
.kc-helper-dialog .kc-helper-result{font-size:12px;color:#246a48;font-weight:700;margin-top:12px}
.kc-helper-dialog .kc-helper-result.kc-error{color:#a14336}
@media (max-width:730px){.kc-helper-trigger{right:10px;bottom:10px;padding:8px 12px;font-size:11px}.kc-helper-body{padding:17px}.kc-key-grid{grid-template-columns:1fr auto}}

/* v0.3: diseño adaptable para Android, iOS y escritorio; controles tactiles 44px minimo */
.kc-mobile-pad{display:none;padding:9px 12px 12px;border-top:1px solid #d7ddce;background:#f5f7f0}
.kc-mobile-label{font-size:11px;line-height:1.45;color:#4d634e;margin-bottom:8px;text-align:center}
.kc-mobile-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;max-width:510px;margin:0 auto}
.kc-touch-btn{min-width:0;min-height:46px;border-radius:12px;border:1px solid #bdcdb8;background:#fffef8;color:#335c43;font-size:24px;font-weight:700;box-shadow:0 2px 5px #0000000b;touch-action:manipulation}
.kc-touch-btn:active{background:#d9e7d1;transform:translateY(1px)}
.rigwindow canvas{touch-action:none;overscroll-behavior:contain}
button{touch-action:manipulation}
html{overflow-x:hidden}body{overflow-x:hidden}
@media (pointer:coarse), (max-width:730px){
 .kc-mobile-pad{display:block}
 .rigwindow{touch-action:none;overscroll-behavior:contain}
 .castbar{flex-wrap:wrap;padding:7px 10px}
 .castbar button{min-height:44px;flex:1;justify-content:center}
 .rigtools{justify-content:center;gap:6px;padding:9px 8px}
 .rigtools button{min-height:44px;padding:8px 10px;font-size:12px}
 .actions button{min-height:64px;font-size:12px;line-height:1.25}
 .events button{min-height:42px}
 .catsel button{min-height:44px}
 .kc-helper-trigger{min-height:44px;right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom))}
 .kc-helper-dialog{max-height:calc(100dvh - 2rem);max-width:calc(100vw - 18px)}
 .kc-helper-body{max-height:calc(100dvh - 2rem)}
 .kc-helper-actions button{min-height:44px}
}
@media (max-width:730px) and (orientation:portrait){
 .rigwindow{height:clamp(340px,52dvh,560px)}
 .worldhead h2{font-size:20px}
 .play-expanded .rigwindow{min-height:36dvh;height:50dvh;flex:0 0 auto}
 .play-expanded .kc-mobile-pad{padding:5px 10px 10px}
 .play-expanded .layout{overflow-y:auto;-webkit-overflow-scrolling:touch}
}
@media (max-width:830px) and (orientation:landscape){
 .rigwindow{height:clamp(235px,67dvh,520px)}
 .kc-mobile-label{display:none}
 .kc-mobile-pad{padding:5px 8px}
 .kc-touch-btn{min-height:44px;font-size:20px}
 .play-expanded .rigwindow{min-height:150px}
}
@media (max-width:380px){
 .kc-mobile-buttons{gap:4px}
 .kc-touch-btn{font-size:21px;padding:0}
 .rigtools button{padding:7px 8px}
 .actions{gap:6px}
 .actions button{font-size:11px}
}

/* 0.4 · official visual character sheet */
.kc-v04-open{border:1px solid #98bdb0;background:#e7f9f3;color:#185a54;border-radius:999px;min-height:35px;padding:6px 13px;font-size:12px;font-weight:700;line-height:1.2;white-space:normal}
.castbar .kc-v04-open{margin-left:auto;min-height:38px}
.worldhead .kc-v04-open{margin-left:auto}
.kc-v04-sheet-dialog{width:min(1100px,96vw);max-width:96vw;max-height:93dvh;overflow:auto;padding:0;border-radius:20px;box-shadow:0 10px 60px #112c2870;background:#f9fffd;color:#173e3b;border:1px solid #a5dad5}
.kc-v04-sheet-dialog::backdrop{background:#0f3639a8;backdrop-filter:blur(4px)}
.kc-v04-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 17px;background:#ddf9f5}
.kc-v04-sheet-head strong{display:block;font-size:16px}.kc-v04-sheet-head small{display:block;font-size:11px;color:#416967}
.kc-v04-sheet-head button{min-height:42px;padding:10px 13px;border-radius:10px;background:#ffffff;color:#1a5550;font-size:13px;font-weight:700}
.kc-v04-sheet-dialog img{width:100%;height:auto;display:block;object-fit:contain}
.kc-v04-sheet-dialog p{font:13px/1.5 system-ui,sans-serif;padding:0 19px 15px;margin:7px 0;color:#49645e}
@media(max-width:730px){.kc-v04-open{min-height:44px}.castbar .kc-v04-open{width:100%;order:7}.worldhead .kc-v04-open{min-height:40px}.kc-v04-sheet-dialog{width:100vw;max-width:100vw;max-height:96dvh;border-radius:12px}.kc-v04-sheet-head{padding:9px}.kc-v04-sheet-head strong{font-size:14px}.kc-v04-sheet-dialog p{font-size:12px}}

/* Version 0.5 · panel de protección de partidas y estado PWA */
.kc-v05-trigger{position:fixed;z-index:110;right:max(14px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));padding:11px 15px;border-radius:28px;background:#123f38;color:#fff;box-shadow:0 5px 20px #102b2455;font-weight:700;font-size:13px;border:2px solid #c0e0d2}
.kc-v05-trigger:focus-visible{outline:3px solid #e6c878}
.kc-v05-dialog{width:min(620px,96vw);max-height:90dvh;overflow:auto;padding:0;border-radius:18px;border:1px solid #bdcaba;background:#fffef8;color:#283d32}
.kc-v05-dialog::backdrop{background:#1b2927aa}
.kc-v05-head{position:sticky;top:0;background:#fffef8;border-bottom:1px solid #d8e0d5;padding:14px 17px;display:flex;align-items:center;gap:10px;justify-content:space-between;z-index:2}
.kc-v05-head h2{font-size:26px}.kc-v05-body{padding:16px 18px 24px}.kc-v05-body p{line-height:1.5;margin:7px 0 12px}.kc-v05-body h3{font-size:16px;margin-top:20px;margin-bottom:8px}.kc-v05-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.kc-v05-card{border:1px solid #d6dfd4;border-radius:11px;padding:11px;background:#f3f6ee}.kc-v05-card b,.kc-v05-card small{display:block}.kc-v05-card small{margin-top:4px}.kc-v05-body button{background:#e5eee2;border:1px solid #b3c6b2;padding:10px 11px;border-radius:10px;font-size:13px;font-weight:650}.kc-v05-body button:hover{background:#d6e6d4}.kc-v05-body button.kc-v05-primary{background:#365a44;color:white}.kc-v05-body button:disabled{opacity:.6}.kc-v05-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.kc-v05-body input:not([type=file]),.kc-v05-body select{border:1px solid #b5c4b8;border-radius:9px;padding:9px;min-width:0;max-width:100%;font:inherit}.kc-v05-body label{display:block;margin:8px 0;font-size:13px}.kc-v05-body .kc-v05-auth{display:grid;grid-template-columns:1fr 1fr;gap:8px}.kc-v05-muted{color:#5f7365;font-size:12px}.kc-v05-status{padding:10px;background:#e8f1e9;border-radius:9px;font-size:13px;white-space:pre-wrap;line-height:1.45}.kc-v05-issue{color:#803f19}.kc-v05-save-table{display:grid;gap:7px}.kc-v05-save-row{display:flex;justify-content:space-between;align-items:center;padding:9px;border:1px solid #dae4d7;border-radius:8px;gap:10px}.kc-v05-save-row small{font-size:11px}.kc-v05-pref{display:flex!important;gap:10px;align-items:center}.kc-v05-pref input{accent-color:#365a44}.kc-v05-updater{position:fixed;z-index:150;left:10px;right:10px;bottom:10px;max-width:550px;margin:auto;background:#234839;color:white;padding:15px;border-radius:13px;box-shadow:0 5px 20px #19281f77;display:none;align-items:center;gap:10px}.kc-v05-updater button{background:#fff;color:#234839;border-radius:8px;padding:8px}.kc-v05-updater.visible{display:flex}.kc-v05-large{font-size:110%}.kc-v05-reduced *, .kc-v05-reduced *::before,.kc-v05-reduced *::after{transition-duration:0s!important;animation-duration:.01ms!important}@media(max-width:600px){.kc-v05-grid{grid-template-columns:1fr}.kc-v05-body .kc-v05-auth{grid-template-columns:1fr}.kc-v05-trigger{font-size:12px;padding:10px}.kc-v05-dialog{max-height:94dvh}.kc-v05-body{padding:12px}}
