/* Home visual pass: match the original weathered gold frame language. */
.reference-home .ref-brand{filter:brightness(1.02) contrast(1.7)!important;mix-blend-mode:screen;}
.reference-home .ref-settings{filter:brightness(1.04) contrast(1.65) drop-shadow(0 0 4px #e4a94c40)!important;}
.reference-home>.wallet-hud{
 top:4.65%!important;height:4.5%!important;border:1.1cqw solid transparent!important;
 border-image:url('assets/frame.svg') 25 fill stretch!important;
 background:linear-gradient(110deg,#100b07df,#080604d9)!important;
 box-shadow:inset 0 0 8px #000!important;
}
.reference-home .home-attributes{border-image:url('assets/frame.svg') 25 fill stretch!important;background:#090705b9!important;box-shadow:inset 0 0 12px #000a!important;}
.reference-home .ref-missions-panel,.reference-home .ref-objective,.reference-home .ref-calendar.month-calendar{
 border:1.2cqw solid transparent!important;border-image:url('assets/frame.svg') 25 fill stretch!important;
 box-shadow:inset 0 0 13px #0008,0 2px 6px #0009!important;
}
.reference-home .ref-missions-panel{background:linear-gradient(110deg,#090704b8,#0c0806a8)!important;}
.reference-home .ref-objective{
 background-image:linear-gradient(90deg,#080604df 0%,#090604c8 47%,#09060456 75%,#09060420 100%),url('assets/objetivo-ruinas-pies.png')!important;
 background-size:cover!important;background-position:center!important;
}
.reference-home .ref-quest-heading,.reference-home .ref-objective-heading,.reference-home .ref-calendar-heading,
.reference-home .home-attributes>h2,.reference-home .ref-next strong{
 font:400 3.05cqw/1.15 Georgia,'Times New Roman',serif!important;letter-spacing:0!important;
}
.reference-home .home-attributes>h2{margin:0 0 1.6cqw!important;}
.reference-home .ref-next{border:1.1cqw solid transparent!important;border-image:url('assets/frame.svg') 25 fill stretch!important;box-shadow:inset 0 0 7px #0009,0 0 7px #d7872940!important;}
.reference-home .ref-rank{
 position:absolute!important;left:4%!important;top:-9%!important;width:77%!important;height:14.5%!important;
 z-index:3;display:flex!important;align-items:center;gap:1.4cqw;padding:0 1.7cqw;
 color:#f0c786;background:linear-gradient(90deg,#100b07e8,#100b079c)!important;
 border:1cqw solid transparent;border-image:url('assets/frame.svg') 25 fill stretch;
 font:2.65cqw/1.15 Georgia,serif!important;text-shadow:0 2px 5px #000;
}
.reference-home .ref-rank svg{display:block;width:6.2cqw;height:7cqw;flex:none;fill:#120c07aa;stroke:#d39a47;stroke-width:1.6;filter:drop-shadow(0 0 3px #d99a3c70);}
.reference-home .ref-rank svg path+path{fill:#e5b05e;stroke:#f0ca82;stroke-width:.8;}
.reference-home .ref-calendar.month-calendar{
 grid-template-columns:minmax(0,1fr)!important;grid-template-rows:20% 11% 1fr!important;
 background:linear-gradient(120deg,#090705b9,#100b0790)!important;
}
.reference-home .ref-calendar-heading{font:400 3.05cqw/1.15 Georgia,'Times New Roman',serif!important;}
.reference-home .ref-calendar-heading small{font:clamp(10px,2.1cqw,16px)/1 Georgia,serif!important;}
.reference-home .ref-calendar .month-caption{font:clamp(10px,2.1cqw,16px)/1.1 Georgia,serif!important;color:#e2c48e!important;}
.reference-home .ref-calendar .month-grid{gap:1% .6%!important;}
.reference-home .ref-calendar .month-weekday{font:clamp(10px,2.25cqw,16px)/1 Georgia,serif!important;color:#eddbb7!important;}
.reference-home .ref-calendar .month-date{max-width:4.6cqw!important;min-width:16px!important;min-height:16px;aspect-ratio:1;border-color:#95703d!important;background:#08060470!important;font:clamp(10px,1.9cqw,14px)/1 Georgia,serif!important;}
.reference-home .ref-calendar .month-date.lit{border-color:#e6a33e!important;background:#5a330e!important;color:#ffe09b!important;box-shadow:0 0 6px #d98e2860!important;}
.reference-home .ref-objective-heading{left:6%!important;top:5%!important;}
.reference-home .ref-objective-copy{left:6%!important;top:31%!important;width:55%!important;height:37%!important;font:clamp(11px,2.35cqw,18px)/1.35 Georgia,serif!important;text-shadow:0 1px 3px #000;}
.reference-home .ref-objective .ref-goalbar{left:6%!important;top:73%!important;width:48%!important;background:#080604c9!important;}
.reference-home .ref-objective .ref-goalcount{left:56%!important;top:70%!important;font:clamp(10px,2.15cqw,16px)/1.2 Georgia,serif!important;text-shadow:0 1px 3px #000;}
.reference-home .ref-objective .ref-goalbutton{left:6%!important;top:81%!important;width:58%!important;height:12%!important;font:clamp(10px,2.25cqw,17px)/1 Georgia,serif!important;}
.reference-home .ref-objective-art{display:none!important;}
/* Calm, shared chest lighting: keep the warm halo but soften its bloom. */
.home-chest-rewards .gift-art{filter:none!important;}
.home-chest-rewards .gift-art .chest-aura{opacity:.62!important;background:radial-gradient(ellipse at 50% 57%,#ffd98672 0%,#f1a14442 34%,#ad511f20 57%,transparent 74%)!important;}
.home-chest-rewards .gift-art .treasure-chest{filter:saturate(1.08) drop-shadow(0 0 4px #ffd47c55) drop-shadow(0 0 10px #df812e38) drop-shadow(0 6px 7px #000b)!important;}
/* Racha and one calm, rotating daily message below the two chests. */
.home-streak{display:grid;grid-template-columns:minmax(90px,26%) minmax(0,1fr);align-items:center;gap:4%;margin:0 3.4% 4%;padding:2.6% 3.5%;min-height:20cqw;border:1.2cqw solid transparent;border-image:url('assets/frame.svg') 25 fill stretch;background:linear-gradient(110deg,#100b07c9,#0b0806a8);box-shadow:inset 0 0 11px #0008;color:#efd2a0;}
.home-streak-count{display:flex;align-items:center;justify-content:center;gap:5%;text-align:center;color:#edbd68;}
.home-streak-count>span:last-child{display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:4px;}
.home-streak-count small{grid-column:1/-1;color:#efc481;font:clamp(9px,1.8cqw,14px) Georgia,serif;white-space:nowrap;}
.home-streak-count strong{font:clamp(28px,6cqw,50px)/.95 Georgia,serif;text-shadow:0 0 8px #ec8c27a0;}
.home-streak-count em{font:clamp(10px,2cqw,15px) Georgia,serif;font-style:normal;}
.home-streak-flame{font-size:clamp(24px,5cqw,42px);line-height:1;text-shadow:0 0 11px #ff9d32a0;}
.home-streak-quote{margin:0;text-align:center;color:#e6cda4;font:italic clamp(13px,2.8cqw,22px)/1.4 Georgia,serif;text-shadow:0 1px 3px #000;}
/* Restore the original icon scale and warm contrast in the mobile dock. */
nav#nav{border-image:url('assets/frame.svg') 25 fill stretch!important;background:linear-gradient(#0d0a07de,#080604e8),url('assets/panel-original.png') center 98%/110% auto!important;}
nav#nav .nav-symbol{width:7cqw!important;height:7cqw!important;flex:0 0 7cqw!important;color:#e0ae68!important;}
nav#nav .nav-symbol svg{fill:#9b6c2722!important;stroke:currentColor!important;stroke-width:1.8!important;}
nav#nav a.active .nav-symbol{color:#ffcf77!important;filter:drop-shadow(0 0 6px #ffad2e)!important;}
/* Achievement emblems stay centered, proportional and free of sprite spill. */
.achievement-gallery{align-items:stretch!important;}
.achievement-gallery .achievement{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;}
.achievement-gallery .medal,.achievement-preview .medal{display:block!important;position:relative!important;flex:none!important;width:clamp(88px,22cqw,150px)!important;height:clamp(88px,22cqw,150px)!important;aspect-ratio:1!important;margin:0 auto 12px!important;background-image:url('assets/logros.png')!important;background-size:300% 300%!important;background-repeat:no-repeat!important;mix-blend-mode:screen;}
.achievement-gallery .achievement h3,.achievement-gallery .achievement p,.achievement-gallery .achievement .tag{max-width:100%;}
.achievement-gallery .achievement .tag{margin-top:auto;}
.campaign-loot-art>.campaign-reward-ring,.reward-feature>.reward-ring{mix-blend-mode:screen!important;isolation:isolate;filter:drop-shadow(0 0 8px #d7a24d50)!important;}
/* Mission care cards keep their original image behind the status text. */
.daily-care-card .care-number,.daily-care-card .care-action{background:transparent!important;text-shadow:0 1px 4px #000,0 0 5px #000!important;}
.daily-care-card .care-action{border:0!important;box-shadow:none!important;}
@media(max-width:520px){
 .reference-home .ref-rank{font-size:clamp(10px,2.65cqw,14px)!important;}
 .reference-home .ref-objective-copy{width:57%!important;}
 .home-streak{grid-template-columns:minmax(82px,29%) minmax(0,1fr);gap:2%;min-height:24cqw;padding:3% 2.5%;}
 .home-streak-quote{font-size:clamp(12px,2.8cqw,16px);}
 nav#nav .nav-symbol{width:7.4cqw!important;height:7.4cqw!important;flex-basis:7.4cqw!important;}
}

/* Keep the full racha card above the dock and soften both chest auras. */
body:has(.home-streak) nav#nav{margin-top:2%!important;}
.home-chest-rewards .gift-art .chest-aura{opacity:.28!important;background:radial-gradient(ellipse at 50% 57%,#ffd9863b 0%,#f1a14424 34%,#ad511f12 57%,transparent 74%)!important;}
.home-chest-rewards .gift-art .chest-rays{opacity:.22!important;}
.home-chest-rewards .gift-art .treasure-chest{filter:saturate(1.04) drop-shadow(0 0 2px #ffd47c40) drop-shadow(0 0 6px #df812e28) drop-shadow(0 6px 7px #000b)!important;}


/* Premios: sustituye el atlas cuadrado por el anillo SVG transparente. */
.reward-feature .reward-ring{display:block;width:110px;height:110px;margin:0 auto 15px;background:transparent!important;border:0!important;box-shadow:none!important;}
.reward-feature .reward-ring .gear-art{display:block;width:100%;height:100%;background-image:url('assets/loot-rare-ring.svg')!important;background-position:center!important;background-size:contain!important;background-repeat:no-repeat!important;background-color:transparent!important;border:0!important;box-shadow:none!important;mix-blend-mode:normal!important;filter:drop-shadow(0 0 8px #d7a24d50)!important;}

/* En cuidado, la tarjeta entera es la acción; evita duplicar la etiqueta que viene en el arte de referencia. */
.daily-care-card .care-action{display:none!important;}
.daily-care-card .care-number{background:transparent!important;}

/* Inicio: racha en lugar del calendario duplicado y una sola frase bajo los cofres. */
.reference-home .ref-streak-panel{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3%!important;grid-template-columns:none!important;text-align:center!important;background:linear-gradient(135deg,#100b07f5,#080604f2)!important;border:1.2cqw solid transparent!important;border-image:url('assets/frame.svg') 25 fill stretch!important;box-shadow:inset 0 0 12px #000b,0 2px 6px #0009!important;padding:3%!important;}
.reference-home .ref-streak-heading{display:flex;align-items:center;justify-content:center;gap:5%;font:400 3.05cqw/1.15 Georgia,'Times New Roman',serif;color:#efc783;white-space:nowrap;}
.reference-home .ref-streak-heading>span{font-size:1.15em;color:#ef9d3a;text-shadow:0 0 6px #e7822477;}
.reference-home .ref-streak-value{display:flex;align-items:baseline;justify-content:center;gap:5%;color:#f3d69e;font:clamp(11px,2.45cqw,18px) Georgia,serif;}
.reference-home .ref-streak-value b{font:clamp(22px,4.8cqw,36px)/1 Georgia,serif;color:#f2bd64;text-shadow:0 0 7px #dc8b2d44;}
.home-streak{display:block!important;min-height:0!important;grid-template-columns:1fr!important;margin:-1.5% 3.4% 3%!important;padding:2.2% 4%!important;text-align:center!important;background:linear-gradient(110deg,#100b07b4,#0b08069c)!important;}
.home-streak-quote{margin:0!important;font:italic clamp(12px,2.7cqw,19px)/1.35 Georgia,serif!important;color:#e6cda4!important;}
.home-streak-count{display:none!important;}

/* Cofres: menos halo, tarjetas traslúcidas y juntas con la frase. */
.home-chest-rewards{padding-bottom:0!important;}
.home-gift.card{margin-top:7px!important;background:linear-gradient(115deg,#140f09b5,#080705b8),url('assets/castillo-sombrio.png') center/cover!important;border-color:#a7783d88!important;}
.home-chest-rewards .gift-art .chest-aura{inset:22%!important;opacity:.18!important;background:radial-gradient(ellipse at 50% 57%,#ffd98670 0%,#f1a1443d 38%,transparent 72%)!important;}
.home-chest-rewards .gift-art .chest-rays{inset:15%!important;opacity:.1!important;}
.home-chest-rewards .gift-art .treasure-chest{filter:saturate(1.02) drop-shadow(0 0 2px #ffd47c35) drop-shadow(0 0 5px #df812e20) drop-shadow(0 5px 6px #000b)!important;}

/* Cuidado de hoy: tarjetas nuevas y limpias, sin cifras incrustadas bajo «Sin registrar». */
.daily-care-grid{gap:9px!important;}
.daily-care-card{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto 1fr auto!important;align-items:center!important;gap:4px 8px!important;box-sizing:border-box!important;aspect-ratio:1.75!important;min-height:91px!important;overflow:hidden!important;padding:10px 12px!important;text-align:left!important;background:radial-gradient(ellipse at 88% 52%,color-mix(in srgb,var(--care-color) 20%,transparent),transparent 43%),linear-gradient(125deg,#19130dec,#090705f5)!important;border:5px solid transparent!important;border-image:url('assets/frame.svg') 25 fill stretch!important;box-shadow:inset 0 0 13px #000a,0 3px 8px #0008!important;}
.daily-care-card:after{content:'';position:absolute;right:12%;top:19%;width:19%;aspect-ratio:1;border:1px solid color-mix(in srgb,var(--care-color) 40%,transparent);border-radius:50%;opacity:.55;pointer-events:none;}
.daily-care-card .care-title{grid-area:1/1;color:var(--care-color);font:12px/1.2 Georgia,serif;}
.daily-care-card .care-icon{grid-area:1/2 / span 2 / 3;z-index:1;color:var(--care-color);font:27px/1 Georgia,serif;text-shadow:0 0 9px color-mix(in srgb,var(--care-color) 45%,transparent);}
.daily-care-card .care-number{position:static!important;grid-area:2/1!important;width:auto!important;height:auto!important;display:block!important;overflow:visible!important;padding:0!important;background:transparent!important;color:#f0e0c4!important;font:15px/1.25 Georgia,serif!important;letter-spacing:0!important;text-shadow:0 1px 3px #000!important;white-space:nowrap!important;}
.daily-care-card .care-meter{grid-area:3/1!important;position:static!important;width:100%!important;height:5px!important;border:0!important;background:#080604cc!important;}
.daily-care-card:not(.has-record) .care-meter{display:none!important;}
.daily-care-card .care-meter>span{height:100%;background:var(--care-color)!important;}
.daily-care-card .care-action{position:static!important;grid-area:3/2!important;display:block!important;width:auto!important;height:auto!important;padding:0!important;background:transparent!important;border:0!important;color:var(--care-color)!important;font:10px Georgia,serif!important;}
.daily-care-card:not(.has-record) .care-action{display:none!important;}

/* Cabecera de Ajustes: alinea las secciones con «Prepara tu camino». */
.settings-heading{justify-content:flex-start!important;text-align:left!important;}
.settings-heading>div{margin-left:26px!important;flex:1;}

/* Logros: medallones del mismo tamaño, centrados en cada tarjeta en móvil. */
.achievement-gallery{align-items:stretch!important;}
.achievement-gallery .achievement{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;}
.achievement-gallery .achievement .medal{display:block!important;flex:0 0 84px!important;width:84px!important;height:84px!important;max-width:84px!important;aspect-ratio:1!important;box-sizing:border-box!important;margin:0 auto 12px!important;border-radius:50%!important;overflow:hidden!important;background-size:300% 300%!important;background-repeat:no-repeat!important;background-color:transparent!important;}
.achievement-gallery .achievement h3,.achievement-gallery .achievement p,.achievement-gallery .achievement .tag{max-width:100%;}
.achievement-gallery .achievement .tag{margin-top:auto;}

/* Premios: restaura el anillo original del atlas y quita el fondo cuadrado del sprite. */
.reward-feature .reward-ring{display:block;width:110px;height:110px;margin:0 auto 15px;background:transparent!important;border:0!important;box-shadow:none!important;}
.reward-feature .reward-ring .gear-art{display:block;width:100%;height:100%;background-image:url('assets/equipo-atlas.png')!important;background-size:300% 300%!important;background-repeat:no-repeat!important;background-color:transparent!important;border:0!important;box-shadow:none!important;mix-blend-mode:screen!important;filter:drop-shadow(0 0 6px #e6b35a38)!important;}

/* Navegación: seis accesos, iconos cálidos y proporciones del panel original. */
nav#nav{width:96%!important;min-height:84px!important;border-width:7px!important;border-image:url('assets/frame.svg') 25 fill stretch!important;background:linear-gradient(#0d0a07d9,#080604e8),url('assets/panel-original.png') center 98%/110% auto!important;}
nav#nav a{min-width:0!important;padding:4px 1px!important;gap:4px!important;font:clamp(9px,2.45cqw,16px) Georgia,'Times New Roman',serif!important;white-space:nowrap!important;text-align:center!important;color:#d9b47b!important;}
nav#nav .nav-symbol{display:grid!important;place-items:center!important;width:clamp(25px,6.2cqw,48px)!important;height:clamp(25px,6.2cqw,48px)!important;flex:0 0 clamp(25px,6.2cqw,48px)!important;color:#d9a557!important;filter:drop-shadow(0 1px 2px #000)!important;}
nav#nav .nav-symbol svg{display:block!important;width:100%!important;height:100%!important;fill:none!important;stroke:currentColor!important;stroke-width:1.6!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
nav#nav a.active .nav-symbol{color:#ffd27b!important;filter:drop-shadow(0 0 5px #ff9e2e)!important;}
@media(max-width:520px){nav#nav{min-height:73px!important;border-width:5px!important;}nav#nav a{font-size:clamp(8px,2.3cqw,12px)!important;gap:3px!important;}.daily-care-card{min-height:83px!important;padding:8px 9px!important;}.daily-care-card .care-title{font-size:10px!important;}.daily-care-card .care-number{font-size:13px!important;}.daily-care-card .care-icon{font-size:23px!important;}.daily-care-card .care-action{font-size:9px!important;}}
/* Evita que el fondo del menú repita los iconos impresos en la imagen de referencia. */
nav#nav{background-color:#0b0806!important;background-image:linear-gradient(115deg,#100b07f0,#080604ed),url('assets/castillo-sombrio.png')!important;background-position:center!important;background-size:cover!important;}
nav#nav .nav-symbol svg{stroke-width:2!important;}
/* El anillo usa su celda original del atlas; deja que el negro transparente mezcle con el panel. */
.reward-feature .reward-ring{isolation:auto!important;mix-blend-mode:normal!important;}
.reward-feature .reward-ring .gear-art{background-position:100% 0!important;}
/* El anillo original, aislado con transparencia real para eliminar el tile negro. */
.reward-feature .reward-ring .gear-art{background-image:url('assets/anillo-sello-transparente.png')!important;background-position:center!important;background-size:contain!important;background-repeat:no-repeat!important;mix-blend-mode:normal!important;filter:drop-shadow(0 0 6px #e6b35a38)!important;}