/* Estilos para la página de Amuletos (Wuchang), hereda del tema de objetos */
:root{ --bg:#0e0b09; --ink:#f3ebdf; --muted:#c9b8a8; --ember:#d7863c; --ember-2:#f0b277; --steel:#19110d; --card:#14100c; --accent:#9c5f32; --accent-2:#c47d46; --border:#3a2a21; --title:#f4e4d2; }
.wuchang-hero.small{min-height:70vh;display:flex;align-items:center;justify-content:center;border-bottom:0}
.wuchang-hero .hero-content{padding:2.2rem 0}
.wuchang-hero.small .hero-bg{background-size:cover;background-position:center 46%;transform:scale(1.03);transform-origin:center top;will-change:transform}
/* Capa de opacidad/gradientes sobre el hero para oscurecer la imagen */
.wuchang-hero.small::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
	background:
		radial-gradient(1200px 500px at 50% 0%, rgba(0,0,0,.22), transparent 60%),
		linear-gradient(180deg, rgba(20,12,8,.62), rgba(8,6,5,.86));
}
.wuchang-hero.small .container, .wuchang-hero.small .hero-content{position:relative;z-index:2}
.wuchang-hero.small .hero-content h1{ text-shadow: 0 14px 44px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.7) }
.wuchang-hero.small .hero-content p{ text-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 1px rgba(0,0,0,.65) }
/* Difuminado/blur en el borde inferior del hero para transición suave */
.wuchang-hero.small::after{
	content:""; position:absolute; left:-2px; right:-2px; bottom:-18px; height:72px; pointer-events:none; z-index:3;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.95) 0%, rgba(0,0,0,0) 100%);
	mask-image: linear-gradient(to bottom, rgba(0,0,0,.95) 0%, rgba(0,0,0,0) 100%);
	background: linear-gradient(to bottom, rgba(20,12,8,.28), rgba(20,12,8,0));
}
.wuchang-amulets-page{background:var(--bg);color:var(--ink)}
.amulets-section{position:relative;padding-bottom:96px}
.amulets-section .breadcrumbs{display:inline-flex;align-items:center;gap:0;margin:18px 0 12px;color:var(--muted);padding:4px 6px;background:#16100c;border:1px solid #2f231c;border-radius:999px}
.amulets-section .breadcrumbs a,
.amulets-section .breadcrumbs span[aria-current="page"]{position:relative;display:inline-flex;align-items:center;padding:6px 10px;color:#ccb8a6;text-decoration:none;border:0;background:transparent;border-radius:999px;transition:background .18s ease,color .18s ease, transform .1s ease}
.amulets-section .breadcrumbs a:hover{background:rgba(255,255,255,.05);color:#efe4d7}
.amulets-section .breadcrumbs a:active{transform:translateY(1px)}
.amulets-section .breadcrumbs a:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(215,134,60,.22);color:#f3ebdf}
.amulets-section .breadcrumbs span[aria-current="page"]{background:rgba(215,134,60,.08);color:#f3ebdf;cursor:default}
.amulets-section .breadcrumbs > span[aria-hidden="true"]{display:none}
.amulets-section .breadcrumbs > a:not(:first-child)::before,
.amulets-section .breadcrumbs > span[aria-current="page"]:not(:first-child)::before{content:"";display:inline-block;width:1px;height:16px;background:#2f231c;margin:0 6px 0 2px;vertical-align:middle}
.amulets-layout{display:grid;grid-template-columns:1fr 320px;gap:20px}
.amulets-main{min-width:0}
.amulets-sidebar{position:sticky;top:86px;align-self:start;display:flex;flex-direction:column;gap:16px;margin-top:1.2rem}
.sidebar-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:12px}
.sidebar-title{margin:0 0 .5rem;color:var(--title);font:600 1.05rem/1.2 Cinzel,serif}

/* Toolbar y buscador */
.amulets-section .toolbar{display:flex;flex-direction:column;gap:.65rem;margin:1.5rem 0 1.5rem}
.search-below{margin-top:.25rem}

/* Estados */
#states .state{color:var(--muted);padding:.75rem 0}
/* Ocultar el estado de carga (como en objetos) */
#loadingState{display:none !important}

/* Grid de amuletos */
.amulets-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:.25rem}
@media (max-width: 980px){.amulets-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 640px){.amulets-grid{grid-template-columns:1fr}}

.amulet-card{background:var(--card);border:1px solid var(--border);border-radius:12px;overflow:hidden;position:relative;transition:transform .2s ease, box-shadow .2s ease}
.amulet-card:hover{transform:translateY(-2px);box-shadow:0 6px 24px rgba(0,0,0,.35);border-color:#4a3428}
.amulet-image{aspect-ratio:16/9;background:#0f0b09;display:flex;align-items:center;justify-content:center}
.amulet-image img{max-width:100%;max-height:100%;object-fit:contain}
.amulet-info{padding:.9rem 1rem}
.amulet-name{margin:0 0 .25rem;font:600 1.05rem/1.2 "Cinzel",serif;color:var(--title)}
.amulet-type{font-size:.85rem;color:#dabfa7;margin-bottom:.3rem}
.amulet-effect{color:#ffe7cf;margin-bottom:.35rem}
.amulet-description{color:#f3ebdf;font-size:.95rem;line-height:1.5;white-space:normal}
.amulet-description br{display:block;content:""}
.amulet-description.collapsed{max-height:120px;overflow:hidden;position:relative}
.amulet-description.collapsed::after{content:"";position:absolute;left:0;right:0;bottom:0;height:48px;background:linear-gradient(180deg, rgba(20,12,8,0), rgba(20,12,8,0.9))}
.read-more-btn{margin-top:6px;background:#1a130e;border:1px solid var(--border);color:#f3ebdf;border-radius:8px;padding:.4rem .6rem;cursor:pointer}
.read-more-btn:hover{background:#22160f}

/* Botón de ubicación */
.amulet-actions{position:absolute;right:10px;bottom:10px}
.loc-btn{background:#1a130e;border:1px solid var(--border);color:#e5d5c3;border-radius:999px;padding:.35rem .5rem;cursor:pointer}
.loc-btn:hover{background:#23160f}

/* Progreso */
.amulet-card.obtained::after{content:"";position:absolute;inset:0;background:rgba(22,96,54,.28);box-shadow:inset 0 0 0 2px rgba(74,168,108,.45);pointer-events:none}
.amulet-card.obtained::before{content:"✓";position:absolute;top:8px;right:10px;font-size:20px;color:#a6f3c6;text-shadow:0 0 8px rgba(68,200,128,.35), 0 1px 0 rgba(0,0,0,.4)}

/* Sidebar progreso circular */
.progress-circle{position:relative;display:grid;place-items:center}
.progress-circle svg{width:100%;height:auto;max-width:220px;display:block}
.progress-circle .circle-bg{fill:none;stroke:#2a2019;stroke-width:12}
.progress-circle .circle-fg{fill:none;stroke:linear-gradient(90deg,#2fa368,#3dcf86);stroke-width:12;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%;stroke-dasharray:339.292;stroke-dashoffset:339.292;transition:stroke-dashoffset .4s ease}
.progress-circle .circle-center{position:absolute;inset:0;display:grid;place-items:center;text-align:center}
.progress-circle .percent{font:700 1.3rem/1 Cinzel,serif;color:#e9e0d6}
.progress-circle .fraction{font:500 .95rem/1.2 Cinzel,serif;color:#d7cabd;margin-top:.25rem}

@media (max-width: 920px){.amulets-layout{grid-template-columns:1fr}.amulets-sidebar{position:relative;top:auto;margin-top:0}}
@media (max-width: 640px){.amulets-section .breadcrumbs{margin:14px 0 10px;padding:3px 5px}}

/* Toast simple (para ubicación y avisos) */
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#132015;color:#dff7e6;border:1px solid #2a5b3b;padding:.6rem .9rem;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.35);z-index:1000;opacity:0;pointer-events:none;transition:opacity .18s ease}
.toast.show{opacity:1}

/* Toast simple (para mensajes de ubicación/progreso) */
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#132015;color:#dff7e6;border:1px solid #2a5b3b;padding:.6rem .9rem;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.35);z-index:1000;opacity:0;pointer-events:none;transition:opacity .18s ease}
.toast.show{opacity:1}
