
*{box-sizing:border-box}body{margin:0;background:#21140e;color:#fff;font:16px system-ui}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible{outline:2px solid white;outline-offset:3px}.app{min-height:100svh;position:relative;display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr) minmax(180px,1fr);align-items:center;isolation:isolate;overflow:hidden}.back{position:absolute;inset:0;background:radial-gradient(ellipse,#52331f,#1a100b);z-index:-2}.back:after{content:'';position:absolute;inset:0;background:url(escenario-1.jpg) center/cover no-repeat;opacity:.95}.info{padding:24px;z-index:2;text-shadow:0 2px 12px #000}.eyebrow{color:#e9b969;letter-spacing:.2em;font-size:12px}h1{font:clamp(32px,3.8vw,62px) Georgia;margin:12px 0}p{color:#ead8bd;line-height:1.5}.bar{height:5px;background:#ffffff26;border-radius:8px;overflow:hidden}.bar i{display:block;height:100%;background:#efbd65;transition:width .3s}.viewer{position:relative;height:100svh;min-height:420px;overflow:hidden;touch-action:none;z-index:1;cursor:grab}.stage{position:absolute;left:0;top:0;width:100%;height:100%;transform-origin:0 0;will-change:transform}.art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.tile{position:absolute;transform:translate(-50%,-50%);border:1px solid #ffffff20;border-radius:2px;background:#08170c15;padding:0;overflow:hidden;cursor:pointer}.tile.filled{border-color:#e6bd75;box-shadow:0 0 5px #ffcf6460}.tile img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}.bulb{position:absolute;transform:translate(-50%,-50%);width:4px;height:6px;background:#243324;border-radius:50%;pointer-events:none}.bulb.on{background:#fff5c2;box-shadow:0 0 5px 2px #ffdd7c,0 0 16px 5px #ffaa38,0 0 30px 8px #ffa52b55}.star{position:absolute;left:50%;top:6%;width:8%;height:12%;transform:translate(-50%,-50%);opacity:0;pointer-events:none;filter:drop-shadow(0 0 12px gold)}.star.on{opacity:1}.actions{padding:20px;display:grid;gap:12px;z-index:2;align-self:end;margin-bottom:13vh}.gold,.secondary{border:1px solid #bc9655;border-radius:30px;padding:13px 18px;background:#edc47d;color:#26160b;font-weight:600}.secondary{background:#22170de6;color:#ffedcb}.zoom{position:absolute;right:12px;top:12px;display:flex;gap:6px;z-index:5;touch-action:auto}.zoom button{border:1px solid #ad8755;background:#25170eea;color:#fff;border-radius:12px;min-width:44px;height:44px}.hint{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:#1e130dd9;border-radius:20px;padding:8px 12px;font-size:11px;white-space:nowrap;pointer-events:none}.demo{padding:12px;font-size:12px;color:#d4bda0;background:#1a100c;display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}.demo input{accent-color:#eabd76}.snow{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:3}.flake{position:absolute;top:-12px;border-radius:50%;background:white;animation:fall linear infinite}@keyframes fall{to{transform:translate(55px,105vh)}}dialog{border:1px solid #a98047;background:#261a12;color:white;border-radius:20px;width:min(92vw,460px);max-height:90dvh;overflow:auto;padding:22px;text-align:center}dialog::backdrop{background:#000c;backdrop-filter:blur(5px)}dialog img{width:100%;max-height:48dvh;object-fit:contain;border-radius:12px;display:block;margin:10px auto}dialog textarea,dialog input:not([type=file]){width:100%;background:#38271c;color:white;border:1px solid #826445;border-radius:10px;padding:12px;margin:8px 0}dialog label{display:block;text-align:left;color:#ead8bd;font-size:14px}dialog .close{float:right;background:none;border:0;color:white;font-size:24px}#detail p{white-space:pre-wrap;overflow-wrap:anywhere}#detail h2{overflow-wrap:anywhere}.notice{font-size:12px;color:#d4bda0}@media(max-width:850px){.app{display:flex;flex-direction:column;min-height:100svh;overflow:hidden}.back:after{background-size:auto 100%;opacity:.28}.info{padding:18px 22px 8px;text-align:center;width:min(100%,460px)}h1{font-size:34px;margin:5px 0}.intro{display:none}.info p{margin:7px 0;font-size:13px}.viewer{width:100%;height:clamp(320px,55svh,620px);min-height:0;flex:none}.actions{width:min(100%,460px);padding:12px 18px 20px;margin:0;align-self:center;grid-template-columns:1fr 1fr}.actions button{font-size:13px;padding:12px 8px}.zoom{top:4px;right:8px}.hint{bottom:4px}.demo{padding:8px}.demo input{width:125px}}@media(prefers-reduced-motion:reduce){.flake{animation:none;display:none}}
@media(min-width:851px){.app{grid-template-columns:1fr 2fr 1fr}.viewer{grid-column:1/-1;grid-row:1;width:100%;height:100svh}.info{grid-column:1;grid-row:1;pointer-events:none}.actions{grid-column:3;grid-row:1}.back:after{display:none}.zoom{right:24px;top:24px}.hint{bottom:14px}}@media(max-width:850px){.viewer .art{mask-image:linear-gradient(to bottom,transparent 0%,black 4%,black 96%,transparent 100%)}}
.app{height:100dvh;min-height:0;display:block}.viewer{position:absolute;inset:0;width:100%;height:100%;min-height:0}.info{position:absolute;left:clamp(16px,3vw,48px);top:clamp(22px,9vh,90px);width:min(25vw,330px);padding:0}.actions{position:absolute;right:clamp(16px,3vw,48px);bottom:clamp(65px,12vh,120px);width:min(23vw,270px);padding:0;margin:0}.back:after{display:none}.back{background:radial-gradient(ellipse at center,#382318,#170e08)}.art{mask-image:none!important}.tile{border:0;background:transparent;border-radius:0}.tile.filled{border:0;box-shadow:none;opacity:.91;background:#18351e!important}.tile.filled img{filter:saturate(.82) brightness(.88);mix-blend-mode:normal}.tile.filled:after{content:'';position:absolute;inset:0;background:#24552e;opacity:.23;pointer-events:none;mix-blend-mode:multiply}.tile.filled:hover,.tile.filled:focus-visible{opacity:1;z-index:2;outline:1px solid #ffe3a3}.bulb{background:transparent}.bulb.on{background:#fff8d1;box-shadow:0 0 5px 2px #ffdd7c,0 0 14px 4px #ffaa38}.demo{position:absolute;bottom:12px;left:16px;z-index:6;background:#21150cdd;border:1px solid #ad875544;border-radius:16px;padding:8px 12px;max-width:calc(100% - 32px);color:#ead8bd}.demo summary{cursor:pointer}.demo-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}.demo button{background:#39271a;color:#fff1d5;border:1px solid #80613e;border-radius:12px;padding:6px 10px}.demo input{width:110px}.hint{bottom:14px}.zoom{top:16px;right:16px}.snow{z-index:3}.info{pointer-events:none}.actions button:disabled{opacity:.5}.status{font-size:11px;max-width:250px}.stage{overflow:visible}.star.on{filter:drop-shadow(0 0 8px #ffd15c) drop-shadow(0 0 20px #ffae34)}
@media(max-width:850px){.app{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;height:100dvh;min-height:460px}.info{position:relative;inset:auto;width:100%;padding:12px 18px 4px;grid-row:1;align-self:start}.info h1{font-size:clamp(24px,6vw,36px)}.info p{margin:5px 0}.bar{max-width:280px;margin:auto}.viewer{position:relative;inset:auto;grid-row:2;height:100%;width:100%;min-height:0}.actions{position:relative;inset:auto;grid-row:3;width:100%;padding:8px 14px;grid-template-columns:1fr 1fr;gap:8px}.actions button{min-height:44px;font-size:12px}.demo{position:relative;inset:auto;grid-row:4;justify-self:center;margin:0 8px max(8px,env(safe-area-inset-bottom));padding:6px 10px}.zoom{top:6px;right:8px;flex-direction:column}.zoom button{min-width:36px;height:36px}.hint{font-size:10px;bottom:3px}.intro{display:none}.demo-controls{justify-content:center}.back{background:radial-gradient(ellipse at center,#382318,#170e08)}}
@media(min-width:851px) and (max-height:650px){.info h1{font-size:32px}.intro{font-size:13px}.actions{bottom:65px}}

/* Luces navideñas independientes de las fotografías */
.tile.filled{box-shadow:none;animation:none}
.bulb.on{background:var(--bulb-core,#fff1b5);box-shadow:0 0 4px 1px var(--bulb-color,#ffcb65),0 0 12px 3px var(--bulb-halo,#ffbd5655);animation:christmasTwinkle var(--bulb-duration,3.4s) ease-in-out var(--bulb-delay,0s) infinite;}
@keyframes christmasTwinkle{0%,100%{opacity:.30}45%,60%{opacity:1}78%{opacity:.68}}
@media(prefers-reduced-motion:reduce){.bulb.on{animation:none;opacity:.85}}

/* Responsive: una sola columna real, sin columnas heredadas. */
@media(max-width:850px){
.app{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;width:100%;height:100dvh;min-height:480px;align-items:stretch;justify-items:stretch}
.info,.viewer,.actions,.demo{grid-column:1/-1;min-width:0}
.info{width:100%;max-width:none;text-align:center;padding:12px 16px 6px}
.info h1{font-size:clamp(24px,7vw,36px);margin:5px 0}
.viewer{width:100%;height:100%;overflow:hidden}
.actions{width:100%;max-width:480px;justify-self:center;align-self:stretch;padding:8px 12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.actions button{font-size:13px;min-height:46px;padding:8px 6px}
.demo{width:calc(100% - 24px);max-width:456px;justify-self:center;margin:0 0 max(8px,env(safe-area-inset-bottom));text-align:center}
.zoom{flex-direction:row;right:8px;top:4px}.zoom button{min-width:38px;height:38px}
.hint{max-width:95%;white-space:normal;text-align:center;padding:5px 9px}
.viewer .art{mask-image:linear-gradient(to bottom,transparent,black 3%,black 97%,transparent)!important}
}
@media(max-width:850px) and (max-height:550px){.app{min-height:550px}.info{padding-top:8px}}

/* Escenario independiente: solo escritorio; móvil conserva la vista aprobada. */
.scene-decor,.art-desktop{display:none}
@media(min-width:851px){
.back{background:radial-gradient(ellipse at 50% 48%,#38241a 0%,#2c1b12 43%,#21140d 76%,#190f09 100%)}
.scene-decor{display:block;position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.scene-decor i{position:absolute;display:block;background-repeat:no-repeat;background-size:100% 100%}
.scene-decor .snow-floor{bottom:0;left:0;width:100%;height:2.1vh;background-size:auto 100%;background-repeat:repeat-x;mask-image:linear-gradient(transparent,black 42%)}
.scene-decor .tl,.scene-decor .tr{top:0;width:min(28vw,48.9vh);aspect-ratio:460/330}
.scene-decor .bl,.scene-decor .br{bottom:0;width:min(25vw,42.5vh);aspect-ratio:400/310}
.scene-decor .tl,.scene-decor .bl{left:0}.scene-decor .tr,.scene-decor .br{right:0}
.viewer .art{display:none}.viewer .art-desktop{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
}
.scene-decor .tl{background-image:url(escenario-2.webp)}
.scene-decor .tr{background-image:url(escenario-3.webp)}
.scene-decor .bl{background-image:url(escenario-4.webp)}
.scene-decor .br{background-image:url(escenario-5.webp)}
.scene-decor .snow-floor{background-image:url(escenario-6.webp)}

.dialog-error{color:#ffb5a6;font-size:13px}dialog select{width:100%;background:#38271c;color:white;border:1px solid #826445;border-radius:10px;padding:12px;margin:8px 0}dialog input[type=checkbox]{width:auto;margin-right:8px}.notice{overflow-wrap:anywhere} .demo[hidden]{display:none!important}


/* Mejora visual: modal y tarjeta tipo postal navideña */
dialog{box-shadow:0 24px 80px #00000085,0 0 0 1px #f0c98022 inset;background:radial-gradient(circle at top,#3b2418 0%,#24160f 68%,#1a100b 100%)}
dialog .close{float:none;position:absolute;right:18px;top:16px;width:34px;height:34px;display:grid;place-items:center;border-radius:999px;background:#ffffff10;border:1px solid #d8af6b55;color:#fff;transition:transform .2s ease,background .2s ease}
dialog .close:hover{transform:scale(1.05);background:#ffffff18}
#compose,#modal{position:relative;overflow:auto;border:1px solid #c99b57;background:linear-gradient(180deg,#332014 0%,#24160f 100%)}
#compose h2,#detail .postcard-name{font-family:Georgia,serif}
#compose h2{margin:4px 38px 16px;text-align:center;font-size:28px;color:#fff7e8;text-shadow:0 2px 10px #00000040}
#compose #draftImg{max-height:34dvh;object-fit:cover;border:10px solid #f6ead6;border-radius:18px;padding:0;background:#fff;box-shadow:0 0 0 6px #8d5f33,0 16px 28px #00000033}
#compose form{display:grid;gap:8px;margin-top:10px}
#compose label{font-size:14px;font-weight:500}
#compose .gold{margin-top:8px}
#compose .notice{margin-top:14px;padding:10px 12px;background:#ffffff08;border:1px solid #ffffff12;border-radius:12px}
#detail{padding-top:8px}
#detail .postcard{position:relative;padding:6px 4px 2px}
#detail .postcard::before,#detail .postcard::after{content:"✦";position:absolute;top:2px;font-size:15px;color:#f4cf82;opacity:.9}
#detail .postcard::before{left:10px}
#detail .postcard::after{right:10px}
#detail .postcard-eyebrow{display:block;text-transform:uppercase;letter-spacing:.20em;font-size:11px;color:#e9b969;margin:8px 0 14px;text-align:center}
#detail .postcard-frame{position:relative;padding:14px;border-radius:24px;background:linear-gradient(145deg,#e8c06f,#a26f38 46%,#f2d38d);box-shadow:0 20px 36px #00000038,0 0 0 1px #fff2c455 inset}
#detail .postcard-frame::before{content:"";position:absolute;inset:8px;border-radius:18px;border:1px solid #fff4d388;pointer-events:none}
#detail .postcard-photo-wrap{position:relative;border-radius:18px;background:linear-gradient(180deg,#fffdfa,#f5ebd7);padding:12px;box-shadow:inset 0 0 0 1px #a6784333}
#detail .postcard-photo-wrap::before,#detail .postcard-photo-wrap::after{content:"";position:absolute;width:22px;height:22px;border-radius:999px;background:radial-gradient(circle,#d64d3d 0%,#b43124 65%,#7f1f15 100%);top:10px;box-shadow:0 0 0 4px #fff4e6}
#detail .postcard-photo-wrap::before{left:10px}
#detail .postcard-photo-wrap::after{right:10px}
#detail .postcard-frame img{margin:0 auto;width:100%;max-height:42dvh;object-fit:contain;border-radius:14px;border:8px solid #f7efdf;background:#fff;box-shadow:0 12px 24px #00000018}
#detail .postcard-content{padding:18px 8px 4px;text-align:center}
#detail .postcard-name{margin:0;font-size:clamp(26px,4.2vw,42px);line-height:1.08;color:#fff6e9;text-wrap:balance;text-shadow:0 2px 14px #00000040}
#detail .postcard-message,#detail .postcard-empty{margin:16px auto 0;max-width:28ch;white-space:pre-wrap;overflow-wrap:anywhere;color:#f0debf;font-size:clamp(16px,2.2vw,20px);line-height:1.6}
#detail .postcard-message{position:relative;padding:0 12px}
#detail .postcard-message::before,#detail .postcard-message::after{position:absolute;color:#d9ad67;font-size:30px;line-height:1;opacity:.85}
#detail .postcard-message::before{content:"“";left:-2px;top:-2px}
#detail .postcard-message::after{content:"”";right:-2px;bottom:-10px}
#detail .postcard-empty{font-style:italic;color:#dfc9a4}
#modal .secondary{margin-top:14px;min-width:190px}
@media(max-width:850px){
  #compose,#modal{width:min(94vw,500px);padding:18px}
  #compose h2{font-size:24px;margin-inline:28px}
  #detail .postcard-frame{padding:12px;border-radius:20px}
  #detail .postcard-name{font-size:clamp(22px,8vw,34px)}
  #detail .postcard-message,#detail .postcard-empty{font-size:16px}
}

/* Registro mobile-first, sin cambios en el escenario */
#compose [hidden]{display:none!important}#compose{width:min(94vw,470px);max-height:92dvh;padding:22px;scrollbar-width:thin;scrollbar-color:#826445 transparent;overscroll-behavior:contain}#compose .compose-head h2{margin:8px 30px;font-size:28px}#stepLabel{font-size:13px;margin:8px 0 14px}#compose form{display:block}#compose .mission-options{display:grid;gap:9px;margin-bottom:16px}#compose .mission-option{display:flex;align-items:center;gap:12px;border:1px solid #826445;border-radius:15px;padding:14px;background:#ffffff06;cursor:pointer}#compose .mission-option:has(input:checked){border-color:#edc47d;background:#edc47d18}#compose .mission-option input{width:18px;margin:0;accent-color:#edc47d;flex-shrink:0}#compose .mission-icon{color:#edc47d;font-size:13px;min-width:40px}#compose .mission-option strong,#compose .mission-option small{display:block}#compose small{color:#cdb69a;font-size:12px}#compose button{min-height:44px}#compose .close{min-height:34px}#nextMission{width:100%}#compose button:disabled{opacity:.5;cursor:not-allowed}#compose .photo-preview{background:#140e09;border:1px solid #b48b50;border-radius:14px;padding:6px;min-height:90px;display:grid;place-items:center;margin-bottom:10px}#compose #draftImg{width:100%;max-height:25dvh;object-fit:contain;border:0;box-shadow:none;border-radius:8px;background:transparent;margin:0}#photoPlaceholder{font-size:14px}#compose .photo-actions,#compose .compose-footer{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}#compose .consent-line{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.5;margin:8px 0}#compose .consent-line input{margin:3px 0 0;flex-shrink:0;width:18px;height:18px;accent-color:#edc47d}#compose textarea{font-size:16px;margin:6px 0;resize:vertical}#compose .processing{position:fixed;inset:0;margin:auto;width:min(88vw,360px);height:max-content;z-index:10;background:#261a12;border:1px solid #edc47d;border-radius:20px;padding:28px;box-shadow:0 0 0 100vmax #100a06d9;display:grid;justify-items:center;gap:12px}#compose .processing p{margin:0;font-size:14px}#compose .processing-spinner{width:40px;height:40px;border:3px solid #edc47d30;border-top-color:#edc47d;border-radius:50%;animation:composeSpin 1s linear infinite}@keyframes composeSpin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#compose .processing-spinner{animation:none}}@media(max-width:600px){#compose{width:100%;max-width:100%;max-height:94dvh;margin:auto 0 0;border-radius:24px 24px 0 0;padding:18px 16px max(16px,env(safe-area-inset-bottom));}#compose .compose-head h2{font-size:25px}#compose .gold,#compose .secondary{font-size:14px;padding:10px 8px}#compose .mission-option{padding:12px}#compose #draftImg{max-height:23dvh}}

/* Mission cards: explicit layout, independent of generic dialog inputs. */
#compose .mission-options{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;text-align:left}
#compose label.mission-option{display:grid;grid-template-columns:42px minmax(0,1fr) 20px;align-items:center;gap:12px;min-height:76px;padding:12px;border:1px solid #826445;border-radius:14px;background:#38271c;line-height:1.35}
#compose .mission-option input[type=radio]{grid-column:3;grid-row:1;appearance:auto;width:18px;height:18px;margin:0;padding:0;justify-self:center;accent-color:#edc47d}
#compose .mission-icon{grid-column:1;grid-row:1;display:grid;place-items:center;width:42px;height:42px;min-width:0;border-radius:11px;background:#edc47d18;color:#edc47d;font-size:14px;letter-spacing:-1px}
#compose .mission-option span:last-child{grid-column:2;grid-row:1;min-width:0}
#compose .mission-option strong{display:block;color:#fff2db;font-size:14px;font-weight:600;overflow-wrap:anywhere}
#compose .mission-option small{display:block;margin-top:4px;font-size:12px;color:#cfb99b}
#compose .mission-option:has(input:checked){border-color:#edc47d;background:#4a3421}
#compose .mission-option:focus-within{outline:2px solid #edc47d;outline-offset:2px}
#compose #nextMission{width:100%;min-height:46px;margin-top:4px}
#compose #formError:empty{display:none}
@media(max-width:600px){#compose label.mission-option{grid-template-columns:36px minmax(0,1fr) 18px;gap:9px;padding:11px;min-height:70px}#compose .mission-icon{width:36px;height:36px}#compose .mission-option strong{font-size:13px}}

/* Fase 13: controles tactiles y postal adaptable. Escenario intacto. */
#compose .dialog-toolbar,#modal .dialog-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;position:sticky;top:0;z-index:8;background:#2b1b12;min-height:52px;padding:2px 0;flex-shrink:0}
#compose .dialog-toolbar{margin:-10px -6px 0;background:#302015}
#compose .close,#modal .close{position:static;float:none;flex:0 0 48px;width:48px;height:48px;min-height:48px;padding:0;display:grid;place-items:center;touch-action:manipulation;border:1px solid #d5b77c88;border-radius:50%;background:#493226;color:#fff;transform:none;line-height:1}
#compose .close svg,#modal .close svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;pointer-events:none}
#compose .close:hover,#modal .close:hover{background:#624330;transform:none}
#compose .close:focus-visible,#modal .close:focus-visible{outline:2px solid #fff;outline-offset:2px}
#compose .compose-head h2{margin:0 0 8px}
#modal{padding:0;width:min(94vw,440px);max-width:calc(100vw - 16px);max-height:94dvh;overflow:hidden;background:#2b1b12;border-radius:20px}
#modal[open]{display:flex;flex-direction:column}
#modal.wide-postal{width:min(94vw,660px)}
#modal .dialog-toolbar{justify-content:space-between;padding:5px 12px;position:relative;top:auto;color:#e8d4b5;font-size:11px;letter-spacing:.04em;text-align:left}
#modal .postal-scroll{overflow:auto;min-height:0;overscroll-behavior:contain;padding:0 10px;scrollbar-width:thin}
#modal #detail{padding:0}
#detail .festive-card{padding:15px;background-color:#a52f32;background-image:radial-gradient(circle,#fff7e5 1.7px,transparent 2.1px),radial-gradient(circle,#fff7e5 1.7px,transparent 2.1px);background-size:23px 23px;background-position:0 0,11.5px 11.5px;border-radius:12px;overflow:hidden;color:#253e31;box-shadow:none}
#detail .festive-card::before,#detail .festive-card::after{content:none}
#detail .festive-paper{position:relative;background:#fffaf0;border-radius:9px;padding:18px 18px 14px;isolation:isolate}
#detail .festive-paper::before,#detail .festive-paper::after{content:'';position:absolute;width:100px;height:80px;background:url(postal-holly.svg) center/contain no-repeat;pointer-events:none;z-index:2}
#detail .festive-paper::before{top:-17px;left:-17px}
#detail .festive-paper::after{bottom:-17px;right:-17px;transform:rotate(180deg)}
#detail .festive-heading{position:relative;text-align:center;padding:4px 18px 12px}
#detail .festive-card .postcard-eyebrow{font-size:9px;color:#35614a;letter-spacing:.15em;margin:0 0 7px}
#detail .festive-greeting{font:bold clamp(27px,7vw,42px)/1.05 Georgia,serif;color:#a52f32;margin:0;text-wrap:balance;font-style:italic}
#detail .festive-frame{background:#a52f32;padding:5px;border:1px solid #812529;border-radius:3px;display:grid;place-items:center;min-height:70px}
#detail .festive-frame img{display:block;width:auto;max-width:100%;height:auto;max-height:min(44dvh,420px);object-fit:contain;margin:0;border:0;border-radius:0;background:transparent}
#detail .festive-frame img[hidden],#detail .festive-status[hidden]{display:none!important}
#detail .festive-status{color:#fff8e8;font-size:13px;margin:10px}
#detail .festive-card.landscape .festive-frame img{max-height:min(43dvh,390px)}
#detail .festive-card .postcard-content{padding:13px 5px 8px}
#detail .festive-card .postcard-name{font:600 17px/1.25 system-ui;color:#285b43;text-shadow:none;margin:0;overflow-wrap:anywhere}
#detail .festive-card .postcard-message{color:#9a3032;font:14px/1.45 system-ui;max-width:45ch;padding:0;margin:8px auto 0}
#detail .festive-card .postcard-message::before,#detail .festive-card .postcard-message::after{content:none}
#detail .festive-brand{display:flex;justify-content:center;align-items:center;border-top:1px solid #d9cbb6;margin:5px 14px 0;padding:9px 8px 0}
#detail .festive-brand img{width:100px;height:auto;max-height:44px;object-fit:contain;margin:0;border:0;border-radius:0}
#modal .postal-footer{padding:9px 12px 12px;flex-shrink:0;background:#2b1b12}
#modal .postal-footer .secondary{margin:0;min-height:48px;width:100%;touch-action:manipulation;font-size:14px}
#modal #detail>h2{color:#fff2db;margin:20px 10px 8px}
#modal #detail>p{padding:0 12px 12px}
@media(max-width:600px){#modal{max-height:94dvh;width:calc(100vw - 16px)}#modal .postal-scroll{padding:0 6px}#detail .festive-card{padding:12px}#detail .festive-paper{padding:15px 12px 10px}#detail .festive-paper::before,#detail .festive-paper::after{width:76px;height:62px}#detail .festive-frame img{max-height:40dvh}#modal .postal-footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:no-preference){#modal[open] .festive-card{animation:postalAppear .22s ease-out}@keyframes postalAppear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}}

/* Fase 13.2: identidad institucional y postal sin carcasa. */
:root{--brand-orange:#ed711c;--brand-black:#191919}
.actions .gold,#compose .gold{background:var(--brand-orange);border-color:var(--brand-orange);color:#171717;font-weight:750}
.actions .secondary,#compose .secondary{background:var(--brand-black);border-color:var(--brand-orange);color:#fff}
.actions button:hover:not(:disabled),#compose .gold:hover:not(:disabled){filter:brightness(1.1)}
.zoom button{background:#191919ed;border-color:#ed711c;color:#fff}.bar i{background:var(--brand-orange)}
#compose,#compose .dialog-toolbar{background:#202020;border-color:#ed711c}#compose label.mission-option{background:#292929;border-color:#68605a}#compose .mission-option:has(input:checked){background:#57351f;border-color:#ed711c}#compose .mission-option input,#compose .consent-line input{accent-color:#ed711c}#compose .mission-icon{color:#ffa86b}#compose .close{background:#191919;border-color:#ed711c}
#modal{background:transparent;border:0;box-shadow:none;padding:0;border-radius:0;width:min(calc(100vw - 24px),540px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 20px);overflow:hidden;margin:auto}
#modal.wide-postal{width:min(calc(100vw - 24px),780px)}
#modal .dialog-toolbar{background:transparent;padding:0 0 8px;justify-content:flex-end;gap:8px;min-height:0;flex-shrink:0}
#modal .close,#modal #downloadPostal{background:#191919;color:#fff;border:1px solid #ed711c;border-radius:14px;min-height:48px;touch-action:manipulation;box-shadow:0 3px 12px #0005}
#modal #downloadPostal{display:flex;align-items:center;gap:9px;padding:0 16px;background:#ed711c;color:#171717;font-weight:750;font-size:14px}#modal #downloadPostal:disabled{opacity:.55;cursor:not-allowed}
#modal #downloadPostal svg{width:21px;height:21px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;fill:none;pointer-events:none}
#modal .postal-scroll{padding:0;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#ed711c transparent;overscroll-behavior:contain;border-radius:6px}
#modal #detail{padding:0;display:grid;justify-items:center;min-width:0}
#modal .postal-canvas{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 86px);object-fit:contain;margin:0;border-radius:5px;box-shadow:0 12px 35px #0005}
#modal .postal-loading,#modal #detail>h2,#modal #detail>p:not(.postal-loading){background:#fffaf1;color:#242321;margin:0;width:100%;padding:22px;overflow-wrap:anywhere}
#modal #postalNotice{background:#fffaf1;color:#242321;margin:6px 0 0;padding:8px;font-size:13px}#modal #postalNotice[hidden]{display:none}
@media(max-width:600px){#modal,#modal.wide-postal{width:calc(100vw - 16px);max-width:calc(100vw - 16px)}#modal .postal-canvas{max-height:calc(100dvh - 85px)}}

/* 13.3 — festive mission selector, two by two, including mobile. */
#compose{width:min(94vw,660px);max-height:94dvh;background:radial-gradient(ellipse at 50% 0%,#473421 0%,#242820 43%,#171d19 100%);border-color:#b98240;padding:18px 22px 22px}
#compose .dialog-toolbar{background:transparent;margin:0;min-height:48px;position:relative}
#compose .compose-head{position:relative;margin:-8px 0 16px;padding:12px 22px 5px;background:linear-gradient(90deg,transparent,#bd8b3930,transparent);border-bottom:1px solid #d8ad5b55}
#compose .compose-head::before,#compose .compose-head::after{content:'✧';position:absolute;top:24px;font-size:28px;color:#f1c77e;pointer-events:none}
#compose .compose-head::before{left:8px}#compose .compose-head::after{right:8px}
#compose .mission-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#compose label.mission-option{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:7px;min-height:168px;padding:12px 10px;background:radial-gradient(ellipse at top,#43513a,#233429 75%);border:1px solid #a48654;border-radius:16px;box-shadow:inset 0 0 0 3px #ffffff05;cursor:pointer}
#compose label.mission-option:last-child{background:radial-gradient(ellipse at top,#634421,#35291e 75%);border-color:#e0ac5e}
#compose .mission-icon{display:grid;place-items:center;width:58px;height:58px;background:transparent;margin:0}
#compose .mission-icon svg{width:56px;height:56px;pointer-events:none}
#compose .mission-option input[type=radio]{position:absolute;top:12px;right:12px;width:19px;height:19px;accent-color:#ed711c}
#compose .mission-option span:last-child{width:100%}
#compose .mission-option strong{font-size:15px;line-height:1.23;color:#fff5e5;text-wrap:balance}
#compose .mission-option small{color:#e0d5bf;font-size:12px;margin-top:5px}
#compose .mission-option small[data-quota]{color:#f8c779;font-weight:650}
#compose .mission-option:has(input:checked){background:radial-gradient(ellipse at top,#73502b,#344433);border-color:#ff9b3f;box-shadow:0 0 0 2px #ed711c,inset 0 0 18px #ed711c18}
#compose .mission-option:has(input:disabled){cursor:not-allowed}
#compose .close{position:static;background:#1b241d;border-color:#d7a461}
#compose #nextMission{min-height:48px;margin-top:0}
@media(max-width:600px){#compose{width:calc(100% - 12px);max-width:calc(100% - 12px);margin:auto;border-radius:19px;padding:12px;max-height:94dvh}#compose .mission-options{gap:8px}#compose label.mission-option{min-height:151px;padding:9px 6px;gap:5px}#compose .mission-icon,#compose .mission-icon svg{width:44px;height:44px}#compose .mission-option strong{font-size:13px}#compose .mission-option small{font-size:11px}#compose .mission-option input[type=radio]{top:8px;right:8px;width:16px;height:16px}#compose .compose-head{margin:-5px 0 10px;padding:4px 20px}#compose .compose-head h2{font-size:24px}#stepLabel{margin:4px 0 8px}}

/* 13.4 — a restrained institutional Christmas, using the existing illustrated greenery. */
.info h1 em{display:block;font-weight:400;color:#f3cd86;text-shadow:0 2px 16px #a45a2655;line-height:1.02}
@media(max-width:850px){.info h1 em{display:inline}}
#compose{width:min(94vw,650px);padding:20px 24px 24px;background:#191d1b;border:1px solid #8e7654;border-radius:22px;isolation:isolate;color:#fff8ec;scrollbar-color:#78664f transparent}
#compose::before,#compose::after{content:'';position:absolute;top:0;width:clamp(85px,24%,165px);height:105px;background-repeat:no-repeat;background-size:contain;pointer-events:none;z-index:-1;opacity:.85}
#compose::before{left:0;background-image:url(escenario-2.webp);background-position:left top}
#compose::after{right:0;background-image:url(escenario-3.webp);background-position:right top;opacity:.45}
#compose .dialog-toolbar{position:sticky;top:0;min-height:44px;margin:0;z-index:8;background:transparent;pointer-events:none}
#compose .dialog-toolbar .close{pointer-events:auto;background:#191919;border-color:#a8875b;width:44px;height:44px;min-height:44px;flex-basis:44px}
#compose .compose-head{margin:-30px 0 0;padding:4px 42px 12px;background:none;border:0}
#compose .compose-head::before,#compose .compose-head::after{content:none}
#compose .compose-head .eyebrow{font-size:10px;letter-spacing:.22em;color:#e4bd80}
#compose .compose-head h2{font:600 clamp(26px,4.3vw,38px)/1.1 Georgia,serif;margin:7px 0;color:#fff8ed;text-shadow:none}
#compose .compose-head h2 em{color:#f5bc74;font-weight:400}
#stepLabel{font-size:12px;margin:6px 0;color:#c5b9a6}
#compose .mission-intro{margin:0 auto 16px;max-width:45ch;font-size:14px;line-height:1.45;color:#ddd3c4;text-align:center}
#compose .mission-options{gap:10px;margin-bottom:16px}
#compose label.mission-option,#compose label.mission-option:last-child{min-height:168px;gap:8px;padding:15px 12px 12px;background:#242a26;border:1px solid #50584d;border-radius:13px;box-shadow:none;justify-content:flex-start}
#compose label.mission-special{border-color:#9f8056;background:#292823}
#compose .mission-icon{width:39px;height:39px;min-width:39px;background:none;color:#eac18b;margin:0}
#compose .mission-icon svg{width:32px;height:32px;stroke:currentColor}
#compose .mission-option input[type=radio]{appearance:auto;top:11px;right:11px;width:17px;height:17px;color-scheme:dark;accent-color:#ed711c}
#compose .mission-copy{display:flex;flex-direction:column;align-items:center;gap:4px}
#compose .mission-option strong{font-size:14px;font-weight:650;color:#fff7ea;line-height:1.25}
#compose .mission-option small{color:#d2cabe;font-weight:400;font-size:12px;margin:0;line-height:1.35}
#compose .mission-option small[data-quota]{color:#f0c48a;font-weight:650;font-size:11px;margin-top:3px;padding:4px 8px;border-radius:20px;background:#e6b87812;border:1px solid #e6b8782b}
#compose .mission-option .mission-approval{color:#e3ba80;font-size:11px}
#compose label.mission-option:hover:not(:has(input:disabled)){border-color:#b8996e;background:#2d332d}
#compose label.mission-option:has(input:checked){border-color:#ed711c;background:#332b22;box-shadow:0 0 0 1px #ed711c}
#compose .mission-option:has(input:disabled){cursor:not-allowed}
#compose .gold,#compose .secondary{min-height:48px;margin:0;border-radius:12px;font-size:14px}
#compose .gold:disabled{opacity:.42;cursor:not-allowed}
#compose .selected-mission-help{color:#eac18b;margin:0 0 12px;font-size:14px;line-height:1.4}
#compose .photo-preview{background:#222824;border:1px dashed #8b795d;border-radius:12px;min-height:88px}
#compose .photo-preview p{color:#d9cebb;font-size:13px}
#compose .photo-actions button{display:flex;align-items:center;justify-content:center;gap:8px}
#compose .photo-actions svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;pointer-events:none}
#compose textarea{background:#222824;border-color:#64695e;color:#fff8ed}
#compose details{font-size:13px;color:#d9cebb;text-align:left;margin:12px 0}
#compose details summary{cursor:pointer;color:#e8c79a}
#compose .consent-line{font-weight:400;color:#d9cebb}
#compose .compose-footer{margin-bottom:0}
@media(max-width:600px){#compose{width:calc(100vw - 16px);padding:14px 12px 16px;max-height:94dvh}#compose .compose-head{margin:-26px 0 0;padding-inline:35px}#compose .mission-intro{font-size:12px;margin-bottom:12px}#compose .mission-options{gap:8px;margin-bottom:12px}#compose label.mission-option,#compose label.mission-option:last-child{min-height:154px;padding:13px 7px 9px;gap:5px}#compose .mission-icon{width:34px;height:34px;min-width:34px}#compose .mission-icon svg{width:28px;height:28px}#compose .mission-option strong{font-size:13px}#compose .mission-option small{font-size:11px}#compose .mission-option small[data-quota]{font-size:10px;padding:3px 6px}#compose .mission-option input[type=radio]{top:8px;right:8px;width:16px;height:16px}}

/* 13.5 — distinct seasonal mission cards; keep institutional actions and existing modal corners. */
#compose label.mission-solo{--mission-base:#61242b;--mission-deep:#35171e;--mission-edge:#c18a80}
#compose label.mission-pair{--mission-base:#205540;--mission-deep:#122c24;--mission-edge:#84aa8b}
#compose label.mission-group{--mission-base:#234d6b;--mission-deep:#152c42;--mission-edge:#83a4be}
#compose label.mission-manager{--mission-base:#514066;--mission-deep:#292236;--mission-edge:#b69ac5}
#compose label.mission-option:is(.mission-solo,.mission-pair,.mission-group,.mission-manager){background: url(mission-winter.svg) center bottom/100% auto no-repeat,linear-gradient(155deg,var(--mission-base),var(--mission-deep));border-color:var(--mission-edge);min-height:180px;padding-bottom:19px;overflow:hidden;transition:border-color .15s,box-shadow .15s}
#compose label.mission-option:is(.mission-solo,.mission-pair,.mission-group,.mission-manager):hover:not(:has(input:disabled)){border-color:#f0cc94;box-shadow:0 0 0 1px #f0cc9466}
#compose label.mission-option:is(.mission-solo,.mission-pair,.mission-group,.mission-manager):has(input:checked){border-color:#ff8c32;box-shadow:0 0 0 2px #ed711c}
#compose .mission-icon{color:#ffe4b0;filter:drop-shadow(0 1px 4px #0006)}
#compose .mission-copy{position:relative;z-index:1;text-shadow:0 1px 3px #0009}
#compose .mission-option small{color:#fff1e0}
#compose .mission-option small[data-quota]{background:#f5e4c6;color:#34271d;border:1px solid #fff0d8;text-shadow:none;padding:4px 10px}
#compose .mission-option .mission-approval{color:#ffe1aa}
@media(max-width:600px){#compose label.mission-option:is(.mission-solo,.mission-pair,.mission-group,.mission-manager){min-height:166px;padding-bottom:15px}#compose .mission-option small[data-quota]{padding:3px 6px}}

/* 13.6 — encabezado navideño, sin alterar el fotomosaico ni controles. */
.home-festive-heading{text-align:center;position:relative;isolation:isolate}
.home-tree-mark{display:block;width:36px;height:41px;color:#e9bc76;margin:0 auto 6px;filter:drop-shadow(0 0 5px #e7aa4840)}
.info .home-year{display:flex;align-items:center;justify-content:center;gap:9px;letter-spacing:.19em;font-weight:600;white-space:nowrap;color:#f5d79e}
.home-year:before,.home-year:after{content:'';width:clamp(12px,3vw,50px);height:1px;background:linear-gradient(90deg,transparent,#d8a75e)}
.home-year:after{transform:rotate(180deg)}
.info .home-festive-heading h1{font:500 clamp(25px,3.45vw,55px)/1.08 Georgia,serif;margin:14px 0 20px;color:#fff7eb;letter-spacing:-.035em;text-shadow:0 2px 10px #0008}
.info .home-festive-heading h1 em{display:block;position:relative;width:max-content;max-width:100%;margin:0 auto;padding:0 .08em .15em;font:italic 600 clamp(43px,5.4vw,84px)/1.03 Georgia,serif;letter-spacing:-.065em;color:#ffe1a2;text-shadow:0 0 12px #f6a74570,0 0 25px #e8912b48,0 2px 3px #71380e}
.home-festive-heading h1 em:after{content:'';position:absolute;bottom:0;left:12%;right:3%;height:9px;border-bottom:2px solid #f3bc67;border-radius:0 0 60% 50%;transform:rotate(-3deg);filter:drop-shadow(0 0 5px #efa43a)}
.home-title-spark{position:absolute;right:-.24em;bottom:.24em;font:normal .27em Georgia,serif;color:#fff5cf;filter:drop-shadow(0 0 7px #ffbc4a);animation:homeSpark 3.8s ease-in-out infinite}
@keyframes homeSpark{0%,100%{opacity:.65;transform:scale(.85)}50%{opacity:1;transform:scale(1.12)}}
.info .home-ribbon{position:relative;display:block;margin:0 auto 20px;padding:12px 10px;background:linear-gradient(165deg,#a82d26,#721a1c);border-block:1px solid #e8af58;border-radius:4px 4px 16px 16px;color:#fff5e5;font:500 clamp(12px,1.15vw,16px)/1.45 system-ui;box-shadow:0 5px 12px #0005;text-shadow:0 1px 2px #54110f}
.info #count{font-weight:600;color:#fff3db;margin:12px 0 8px}.info .bar{box-shadow:0 0 0 1px #ffffff15}.info .bar i{box-shadow:0 0 9px #ff9a37}
@media(min-width:851px) and (max-height:650px){.home-tree-mark{width:26px;height:30px}.info .home-festive-heading h1{font-size:clamp(23px,3vw,42px);margin:8px 0 12px}.info .home-festive-heading h1 em{font-size:clamp(38px,4.3vw,62px)}.info .home-ribbon{padding:7px;margin-bottom:10px}}
@media(max-width:850px){.home-tree-mark{width:22px;height:25px;margin-bottom:2px}.info .home-year{font-size:10px}.info .home-festive-heading h1{font-size:clamp(23px,5.7vw,35px);margin:4px 0 7px;letter-spacing:-.025em}.info .home-festive-heading h1 em{display:inline-block;font-size:1.28em;padding-bottom:.07em;margin-left:.05em}.home-festive-heading h1 em:after{height:4px;border-width:1px}.info .home-ribbon{display:none}.info #count{margin:5px 0;font-size:12px}}
@media(prefers-reduced-motion:reduce){.home-title-spark{animation:none}}

/* Fase 14.1: celebración independiente del escenario. */
.light-flight{position:fixed;top:0;left:0;width:90px;height:90px;padding:5px;background:#fff5d9;border:2px solid #ffc36b;border-radius:8px;box-shadow:0 0 20px #ffd16d,0 0 55px #ff9228;z-index:100;pointer-events:none;will-change:transform}.light-flight img{width:100%;height:100%;object-fit:contain;border-radius:3px}.tile.my-new-light{z-index:9;outline:2px solid #ffe3a0;box-shadow:0 0 12px 3px #ffc76d!important;opacity:1;animation:light-arrival .9s ease-in-out 4}.light-celebration{position:fixed;z-index:101;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(92vw,400px);background:#1c1b19f5;border:1px solid #e4ad64;border-radius:18px;padding:15px;text-align:center;color:#fff5e4;box-shadow:0 12px 40px #0008}.light-celebration strong{font:700 21px Georgia,serif;color:#ffd28a}.light-celebration p{font-size:13px;margin:7px 0 12px}.light-celebration div{display:flex;gap:8px;justify-content:center}.light-celebration button{min-height:44px;border:1px solid #f47b19;border-radius:24px;padding:8px 18px;background:#f47b19;color:#161616;font-weight:600}.light-celebration button:last-child{background:#191919;color:white}.light-celebration button:disabled{opacity:.5}@keyframes light-arrival{50%{outline-color:#fff;filter:brightness(1.25)}}@media(prefers-reduced-motion:reduce){.tile.my-new-light{animation:none}}

/* Fase 14.1b: aviso posterior al recorrido, fuera del centro en escritorio. */
@media(min-width:851px){.light-celebration{left:auto;right:clamp(16px,3vw,48px);bottom:24px;transform:none;width:min(26vw,350px)}}
@media(max-width:850px){.light-celebration{bottom:max(8px,env(safe-area-inset-bottom));padding:10px 12px}.light-celebration p{margin:4px 0 8px}}
/* Pasaporte: aislado del escenario, las postales y la celebración. */
.actions .passport-button{display:flex;align-items:center;justify-content:center;gap:8px}.passport-button span{background:#ed711c;color:#171717;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:700}
#passportDialog{width:min(94vw,550px);max-height:92dvh;padding:0;background:#1b211e;color:#fff3df;border:1px solid #bd965c;border-radius:22px;overflow:auto}#passportDialog [hidden]{display:none!important}#passportDialog .passport-head{position:relative;padding:24px 45px 12px;background:linear-gradient(120deg,#18251f,#30281c);text-align:center}#passportDialog .passport-head span{font-size:11px;letter-spacing:.18em;color:#e8bc79}#passportDialog h2{font: bold 27px Georgia;margin:10px 0}#passportDialog p{font-size:14px;margin:8px 0;color:#e2d7c4}#passportDialog .passport-close{position:absolute;right:7px;top:7px;width:44px;height:44px;background:#171717;color:white;border:1px solid #b58a54;border-radius:50%;font-size:26px}#passportDialog .passport-body{padding:16px}#passportDialog .passport-track{height:7px;background:#ffffff22;border-radius:9px;overflow:hidden;margin:12px 0 16px}#passportProgress{height:100%;display:block;background:#ed711c;transition:width .3s}#passportDialog .passport-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#passportDialog .passport-mission{min-height:130px;border:1px solid #c5a57577;border-radius:14px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:#61242b;text-align:center}#passportDialog .pareja{background:#205540}#passportDialog .grupo{background:#234d6b}#passportDialog .gerente{background:#514066}#passportDialog .passport-seal{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;border:1px solid #e2c38a;color:#ffe4ad;font-size:18px}#passportDialog .completed .passport-seal{background:#eec787;color:#24432e;font-size:26px}#passportDialog .passport-mission strong{font-size:13px}#passportDialog .passport-mission small{font-size:11px;color:#ffdfac}#passportDialog .passport-note{font-size:11px;color:#c8bca8;margin:14px 0}#passportDialog .gold{width:100%;min-height:46px}#passportReward{margin-top:16px;background:#fff7e9;border-radius:15px;padding:12px;color:#38251b}#passportReward p{color:#513b2b}#passportQR{width:190px;height:auto;max-height:none;margin:auto;border-radius:0}#passportCode{font:12px monospace!important;overflow-wrap:anywhere;user-select:all}#passportDownload{display:inline-block;color:#8e3b11;padding:12px;font-weight:bold;text-decoration:underline}@media(max-width:850px){.actions .passport-button{grid-column:1/-1;min-height:44px}#passportDialog .passport-head{padding-top:18px}#passportDialog h2{font-size:23px}}

/* 14.4 — mismo arte e iconos de misiones, sin controles demo visibles. */
#preview[hidden],.demo[hidden]{display:none!important}
#passportDialog .passport-mission{background:url(mission-winter.svg) center bottom/100% auto no-repeat,linear-gradient(155deg,var(--mission-base),var(--mission-deep));border-color:var(--mission-edge);min-height:168px;padding:15px 10px 21px;overflow:hidden;text-shadow:0 1px 3px #0009}
#passportDialog .individual{--mission-base:#61242b;--mission-deep:#35171e;--mission-edge:#c18a80}
#passportDialog .pareja{--mission-base:#205540;--mission-deep:#122c24;--mission-edge:#84aa8b}
#passportDialog .grupo{--mission-base:#234d6b;--mission-deep:#152c42;--mission-edge:#83a4be}
#passportDialog .gerente{--mission-base:#514066;--mission-deep:#292236;--mission-edge:#b69ac5}
#passportDialog .mission-icon{display:grid;place-items:center;width:39px;height:39px;color:#ffe4b0;filter:drop-shadow(0 1px 4px #0006)}
#passportDialog .mission-icon svg{width:32px;height:32px}
#passportDialog .passport-mission small{background:#f5e4c6;color:#34271d;border-radius:20px;padding:4px 10px;text-shadow:none;font-weight:650}
#passportDialog .completed small,#compose .mission-done small[data-quota]{background:#d8edcf;color:#20552d}
#passportDialog .pending small,#compose .mission-pending small[data-quota]{background:#ffe7ad;color:#634414}
#passportDialog .gold{background:#ed711c;border-color:#ed711c;color:#191919}#passportDialog .gold:disabled{opacity:.55}
@media(max-width:850px){.actions .passport-button{grid-column:auto}.actions{grid-template-columns:repeat(2,minmax(0,1fr))}#passportDialog .passport-mission{min-height:144px;padding:10px 6px 16px}}

/* 14.5 — mismo escenario de esquinas y pasaporte compacto al completar. */
#passportDialog{scrollbar-width:thin;scrollbar-color:#8e7654 #1b211e;overscroll-behavior:contain}
#passportDialog .passport-head{isolation:isolate;overflow:hidden;background:#191d1b;padding:24px 48px 15px}
#passportDialog .passport-head::before,#passportDialog .passport-head::after{content:'';position:absolute;top:0;width:clamp(85px,24%,150px);height:105px;background-repeat:no-repeat;background-size:contain;pointer-events:none;z-index:-1;opacity:.8}
#passportDialog .passport-head::before{left:0;background-image:url(escenario-2.webp);background-position:left top}
#passportDialog .passport-head::after{right:0;background-image:url(escenario-3.webp);background-position:right top;opacity:.45}
#passportDialog .passport-close{z-index:2;touch-action:manipulation}
#passportDialog .passport-body{display:flex;flex-direction:column}
#passportDialog #passportReward{background:#fff7e9;color:#38251b}
#passportDialog #passportReward p{color:#513b2b}
#passportDialog #passportQR{width:min(240px,70vw);max-width:100%;height:auto;max-height:none;object-fit:contain;margin:8px auto;background:white}
#passportDialog #passportDownload{background:#ed711c;color:#191919;border-radius:24px;text-decoration:none;min-height:44px;padding:12px 20px}
#passportDialog.passport-complete .passport-head p{display:none}
#passportDialog.passport-complete .passport-head{padding-bottom:7px}
#passportDialog.passport-complete .passport-body{padding-top:6px}
#passportDialog.passport-complete .passport-track{margin:5px 0 10px}
#passportDialog.passport-complete #passportReward{order:1;margin:0 0 12px;padding:12px}
#passportDialog.passport-complete #passportReward h3{margin:0 0 5px;font:700 23px Georgia,serif}
#passportDialog.passport-complete .passport-grid{order:2;gap:7px}
#passportDialog.passport-complete .passport-mission{min-height:78px;padding:8px;display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;gap:4px 6px;align-content:center;background-size:100% auto,auto;text-align:left}
#passportDialog.passport-complete .mission-icon{grid-row:1/3;width:28px;height:28px}
#passportDialog.passport-complete .mission-icon svg{width:24px;height:24px}
#passportDialog.passport-complete .passport-mission strong{font-size:12px;line-height:1.2}
#passportDialog.passport-complete .passport-mission small{justify-self:start;font-size:10px;padding:3px 7px}
#passportDialog.passport-complete .passport-note{order:3;margin:9px 0 0}
#passportDialog.passport-complete #passportContinue{order:4}
@media(max-width:600px){#passportDialog .passport-head{padding:20px 43px 10px}#passportDialog .passport-head::before,#passportDialog .passport-head::after{height:80px}#passportDialog.passport-complete .passport-mission{grid-template-columns:22px minmax(0,1fr);padding:6px;min-height:76px}#passportDialog.passport-complete .mission-icon{width:22px;height:22px}#passportDialog.passport-complete .mission-icon svg{width:20px;height:20px}#passportDialog.passport-complete .passport-mission strong{font-size:11px}}

/* Fase 14.8: únicamente el segundo paso de participación */
#compose.photo-step .compose-head{padding-bottom:4px;margin-bottom:0}
#compose.photo-step #stepLabel{font-size:12px;margin:0;color:#c9bba5}
#compose #photoStep .photo-welcome{display:flex;align-items:center;justify-content:center;gap:7px;margin:4px 0;color:#f4cc90}
#compose #photoStep .photo-welcome h3{font:600 clamp(18px,4.5vw,24px)/1.2 Georgia,serif;margin:0;text-align:center;color:#fff3dd}
#compose #photoStep .photo-welcome span{font-size:24px}
#compose #photoStep .selected-mission-help{font-size:13px;margin:4px 0 10px;text-align:center}
#compose #photoStep .photo-preview{min-height:110px;padding:7px;margin-bottom:0;border:1px solid #b7956270;background:radial-gradient(ellipse at center,#323e30,#1b2420);border-radius:16px}
#compose #photoStep #draftImg{max-height:32dvh;width:100%;object-fit:contain}
#compose #photoStep .photo-actions{margin:8px 0 12px;gap:8px}
#compose #photoStep .photo-actions button{font-size:13px;min-height:44px;padding:8px;border-radius:12px}
#compose #photoStep label:not(.consent-line){font-size:13px;color:#f4e3c8}
#compose #photoStep textarea{min-height:48px;max-height:110px;padding:10px 12px;margin:5px 0 7px;border-radius:12px;font-size:16px;line-height:1.3}
#compose #photoStep .consent-line{font-size:12px;line-height:1.4;gap:9px;margin:6px 0 3px;align-items:flex-start;color:#e4dacb}
#compose #photoStep .consent-line input{width:19px;height:19px;margin:2px 0 0}
#compose #photoStep .photo-privacy{margin:5px 0 10px 28px;font-size:12px;line-height:1.5}
#compose #photoStep .photo-privacy summary{color:#eac18b;text-decoration:underline;text-underline-offset:3px;min-height:24px}
#compose #photoStep .compose-footer{grid-template-columns:minmax(0, .65fr) minmax(0,1.35fr);gap:8px;margin:8px 0 0}
#compose #photoStep .compose-footer button{min-height:48px;font-size:14px;padding:8px;border-radius:13px}
#compose.photo-step #formError:empty{display:none}
@media(max-width:480px){#compose.photo-step{padding:14px}#compose #photoStep #draftImg{max-height:29dvh}#compose #photoStep .photo-welcome h3{font-size:19px}}

/* Cámara en directo, sin selector de archivos. */
#compose #liveCamera{display:block;width:100%;max-height:38dvh;object-fit:contain;border-radius:12px;background:#101512}
#compose #photoStep .camera-actions{display:flex;gap:8px}
#compose #photoStep .camera-actions #takePhoto{flex:none}
#compose #photoStep .camera-actions #switchCamera{flex:none}
#compose #cameraStatus{font-size:12px;color:#eac18b;text-align:center;margin:0 0 8px;line-height:1.4}
#compose #cameraStatus:empty{display:none}

/* 14.10 — cámara minimalista, únicamente en el segundo paso. */
#compose.photo-step .compose-head{margin:0 44px 4px 0;padding:0 0 5px;text-align:left;min-height:26px}
#compose.photo-step .compose-head .eyebrow,#compose.photo-step .compose-head h2{display:none}
#compose.photo-step #stepLabel{font-size:11px;letter-spacing:.08em;text-transform:uppercase}
#compose.photo-step .dialog-toolbar .close{width:40px;height:40px;min-height:40px;flex-basis:40px}
#compose #photoStep .photo-welcome{margin:0 0 5px;display:block}
#compose #photoStep .photo-welcome h3{font-size:clamp(19px,4.5vw,25px);line-height:1.15;text-align:left;padding-right:40px}
#compose #photoStep .selected-mission-help{margin:6px 0 10px;text-align:left;font-size:12px;line-height:1.35;color:#d9c3a0}
#compose #photoStep .photo-preview{position:relative;display:grid;place-items:center;overflow:hidden;padding:0;min-height:106px;background:#101713;border:1px solid #a8875b70;border-radius:16px}
#compose #photoStep #liveCamera,#compose #photoStep #draftImg{display:block;width:100%;height:clamp(190px,36dvh,330px);max-height:none;object-fit:contain;border-radius:0;margin:0;background:#101713}
#compose #photoStep #photoPlaceholder{display:none!important}
#compose #photoStep .camera-actions{position:absolute;inset:auto 0 0;display:flex;align-items:center;justify-content:center;margin:0;padding:12px 14px;gap:0;background:linear-gradient(transparent,#0009);pointer-events:none}
#compose #photoStep .camera-actions button{pointer-events:auto;display:grid;place-items:center;margin:0;padding:0;min-height:48px;flex:none;border-radius:50%;width:48px;height:48px;color:white;background:#161b18bd;border:1px solid #fff8;box-shadow:0 2px 8px #0006}
#compose #photoStep .camera-actions svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#compose #photoStep [data-mode=live] #takePhoto{width:62px;height:62px;min-height:62px;border:3px solid white;background:#171b18;color:white;box-shadow:0 0 0 2px #0007}
#compose #photoStep [data-mode=live] #takePhoto svg{width:48px;height:48px}
#compose #photoStep #switchCamera{position:absolute;right:14px;bottom:19px}
#compose #photoStep [data-mode=captured] .camera-actions{justify-content:flex-end;background:none}
#compose #photoStep [data-mode=idle] .camera-actions{position:static;background:none;padding:15px;width:100%;pointer-events:auto}
#compose #photoStep [data-mode=idle] #takePhoto{width:auto;height:48px;display:flex;gap:9px;padding:0 22px;border-radius:999px;background:#ed711c;color:#181818;border:0;font-size:14px}
#compose #photoStep .wish-label{display:block;margin-top:12px;color:#f2c486;font-weight:600}
#compose #photoStep textarea{font-weight:400;min-height:45px;margin-bottom:3px}
#compose #photoStep .consent-line{font-size:11px;line-height:1.35;margin-top:7px}
#compose #photoStep .photo-privacy{font-size:11px;margin-bottom:4px}
#compose #photoStep .compose-footer{margin-top:5px}
#compose #cameraStatus:not(:empty){margin:6px 0;font-size:12px}
@media(max-width:480px){#compose.photo-step{padding:13px}#compose #photoStep .photo-welcome h3{font-size:20px}#compose #photoStep #liveCamera,#compose #photoStep #draftImg{height:clamp(175px,34dvh,300px)}}

/* 14.11 — disparador circular: neutralizar reglas de botones del formulario. */
#compose #photoStep #cameraStage[data-mode=live] .camera-actions #takePhoto,
#compose #photoStep #cameraStage[data-mode=captured] .camera-actions #takePhoto {
  box-sizing:border-box;flex:0 0 auto;width:60px;min-width:60px;max-width:60px;height:60px;min-height:60px;max-height:60px;aspect-ratio:1;border-radius:50%;padding:0;margin:0;display:grid;place-items:center;position:relative;transform:none;
}
#compose #photoStep #cameraStage[data-mode=live] .camera-actions #takePhoto{background:transparent;border:3px solid #fff;box-shadow:0 2px 9px #0006;}
#compose #photoStep #cameraStage[data-mode=live] .camera-actions #takePhoto svg{width:100%;height:100%;max-width:100%;max-height:100%;}
#compose #photoStep #cameraStage[data-mode=live] .camera-actions #switchCamera{box-sizing:border-box;flex:0 0 auto;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;max-height:44px;aspect-ratio:1;padding:0;border-radius:50%;right:14px;bottom:20px;}
#compose #photoStep #cameraStage[data-mode=live] .camera-actions{background:none;}
#compose #photoStep #cameraStage[data-mode=live] .camera-actions #takePhoto:focus-visible,#compose #photoStep #cameraStage .camera-actions #switchCamera:focus-visible{outline:2px solid #edb877;outline-offset:3px;}
