:root{
  --gold:#f0d28f;
  --gold-soft:#f5ddb0;
  --gold-strong:#ffd37a;
  --dark-bg:#050d1f;
  --panel:#0b1c36;
  --panel-soft:#08152b;
  --panel-deep:#071325;
  --panel-bright:#10294d;
  --line:#2f4d78;
  --border:rgba(240,210,143,0.28);
  --text-light:#edf3ff;
  --text-muted:#a9bddb;
  --green:#8fb85a;
  --green-soft:#b9d978;
  --ice:#9fd4e8;
  --wine:#b65a68;
  --magic:#a985ff;
  --petrol:#3ab3b1;
  --shadow:0 16px 34px rgba(0,0,0,0.36);
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  min-height:100vh;
  font-family:'Inter',sans-serif;
  color:var(--text-light);
  background:
    radial-gradient(circle at 54% 34%, rgba(240,210,143,0.11), transparent 28rem),
    radial-gradient(circle at 18% 10%, rgba(47,77,120,0.16), transparent 32rem),
    radial-gradient(circle at 82% 28%, rgba(67,134,138,0.08), transparent 28rem),
    radial-gradient(circle at 50% 80%, rgba(28,61,98,0.12), transparent 34rem),
    linear-gradient(90deg, rgba(0,0,0,0.58), transparent 20%, transparent 80%, rgba(0,0,0,0.58)),
    #050d1f url('../textura.png') center/cover fixed;
}

body::before,
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
}

body::before{
  z-index:0;
  opacity:0.16;
  mix-blend-mode:soft-light;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 35% 25%, rgba(255,235,180,0.14), transparent 18rem);
}

body::after{
  z-index:0;
  background:
    radial-gradient(circle at 52% 38%, transparent 0, transparent 26rem, rgba(0,0,0,0.32) 52rem),
    linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.46));
}

a{ color:inherit; text-decoration:none; }

.page-shell{
  width:min(1220px, calc(100% - 32px));
  margin:0 auto;
  padding:34px 0 64px;
  position:relative;
  z-index:1;
}

.breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-bottom:22px;
  font-size:13px;
  color:var(--text-muted);
}

.breadcrumbs a{ color:var(--gold-soft); }

.section-hero{
  position:relative;
  overflow:hidden;
  min-height:300px;
  padding:42px min(38%, 420px) 42px 42px;
  border:1px solid var(--border);
  border-radius:12px;
  background-image:
    radial-gradient(circle at 80% 35%, rgba(240,210,143,0.16), transparent 30%),
    radial-gradient(circle at 22% 16%, rgba(155,208,255,0.12), transparent 32%),
    linear-gradient(90deg, rgba(9,24,50,0.86) 0%, rgba(9,24,50,0.62) 48%, rgba(8,18,35,0.28) 100%),
    linear-gradient(135deg, rgba(47,77,120,0.5), rgba(240,210,143,0.08)),
    url('../assets/img/misiones/hero-misiones-sin-logo.png');
  background-position: center, center, center, center, center;
  background-size: auto, auto, auto, auto, cover;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
}

.section-hero::after{
  content:"";
  position:absolute;
  inset:16px;
  border:1px solid rgba(230,195,106,0.16);
  border-radius:8px;
  pointer-events:none;
}

.section-hero::before{
  content:"";
  position:absolute;
  right:32px;
  bottom:18px;
  width:clamp(140px, 22vw, 250px);
  aspect-ratio:1;
  background:url('../assets/img/logros.png') center/contain no-repeat;
  opacity:0.72;
  filter:drop-shadow(0 20px 35px rgba(0,0,0,0.45)) drop-shadow(0 0 28px rgba(240,210,143,0.16));
  pointer-events:none;
}

.section-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:24px 0 18px;
  color:rgba(240,210,143,0.78);
}

.section-divider::before,
.section-divider::after{
  content:"";
  height:1px;
  flex:1;
  background:linear-gradient(90deg, transparent, rgba(240,210,143,0.34), transparent);
}

.section-divider span{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(240,210,143,0.28);
  border-radius:999px;
  background:rgba(11,28,54,0.82);
  box-shadow:0 0 18px rgba(240,210,143,0.1);
  font-size:12px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
  color:var(--gold-strong);
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:0.75rem;
  font-weight:800;
}

.section-hero h1,
.section-heading h2,
.region-header h2,
.chain-title h3,
.mission-hero h3{
  font-family:'Cinzel',serif;
}

.section-hero h1{
  position:relative;
  z-index:1;
  margin:8px 0 12px;
  font-size:clamp(2.6rem, 6vw, 4.8rem);
  line-height:1;
}

.hero-copy{
  position:relative;
  z-index:1;
  width:min(680px, 100%);
  margin:0 0 26px;
  color:#d2dcf0;
  font-size:17px;
  line-height:1.7;
}

.hero-actions,
.tag-row{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.primary-action,
.secondary-action,
.copy-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(230,195,106,0.36);
  border-radius:12px;
  padding:12px 16px;
  font-weight:800;
  cursor:pointer;
  transition:transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.primary-action{
  color:#231b0d;
  background:linear-gradient(180deg, #f5deb0, #d19d45);
}

.secondary-action,
.copy-btn{
  color:var(--gold-soft);
  background:#10294d;
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible,
.copy-btn:hover,
.copy-btn:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(240,210,143,0.58);
  box-shadow:0 10px 22px rgba(0,0,0,0.24), 0 0 18px rgba(240,210,143,0.12);
  outline:none;
}

.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin:42px 0 18px;
}

.section-heading h2{
  margin:0;
  font-size:clamp(1.7rem, 3vw, 2.25rem);
  color:var(--gold);
}

.section-heading span{
  max-width:430px;
  color:var(--text-muted);
  line-height:1.55;
  text-align:right;
}

.seo-crosslinks{
  margin-top:34px;
  padding:24px;
}

.seo-crosslinks-heading{
  margin-top:0;
}

.seo-crosslinks-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.seo-crosslink-card{
  display:block;
  padding:16px;
  border-radius:14px;
  border:1px solid rgba(240,210,143,0.18);
  background:linear-gradient(180deg, rgba(16,41,77,0.85), rgba(7,19,37,0.95));
  box-shadow:0 14px 30px rgba(0,0,0,0.22);
  transition:transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.seo-crosslink-card:hover{
  transform:translateY(-2px);
  border-color:rgba(240,210,143,0.38);
  box-shadow:0 18px 34px rgba(0,0,0,0.32);
}

.seo-crosslink-card strong{
  display:block;
  margin-bottom:8px;
  color:var(--gold-soft);
  font-family:'Cinzel',serif;
}

.seo-crosslink-card span{
  display:block;
  color:var(--text-muted);
  line-height:1.6;
}

.region-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.region-grid.all-regions{
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}

.region-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-height:220px;
  border:1px solid var(--border);
  border-color:rgba(240,210,143,0.2);
  border-radius:12px;
  background:linear-gradient(180deg,var(--panel),var(--panel-soft));
  box-shadow:0 12px 26px rgba(0,0,0,0.28);
  transition:transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.all-regions .region-card{
  min-height:248px;
  height:248px;
}

.region-card.is-featured{
  border-color:rgba(240,210,143,0.46);
  background:linear-gradient(180deg,#10294d,#0b1c36);
  box-shadow:0 0 0 1px rgba(240,210,143,0.22) inset, 0 16px 34px rgba(20,70,120,0.22);
}

.region-card:hover,
.region-card:focus-visible{
  transform:translateY(-4px);
  border-color:rgba(240,210,143,0.78);
  box-shadow:0 0 0 1px rgba(240,210,143,0.24) inset, 0 18px 34px rgba(0,0,0,0.36), 0 0 24px rgba(240,210,143,0.12);
  outline:none;
}

.region-art{
  display:block;
  height:116px;
  position:relative;
  background:
    linear-gradient(135deg, rgba(60,104,158,0.36), rgba(8,18,35,0.48)),
    var(--region-image) center/cover;
  transition:transform 0.22s ease, filter 0.22s ease;
}

.region-card:hover .region-art,
.region-card:focus-visible .region-art{
  transform:scale(1.035);
  filter:saturate(1.1) brightness(1.05);
}

.region-card.has-region-image .region-art::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(5,13,31,0.02), rgba(5,13,31,0.72));
}

.region-card.is-pending .region-art{
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 50% 35%, rgba(240,210,143,0.14), transparent 38%),
    radial-gradient(circle at 50% 50%, rgba(155,208,255,0.11), transparent 45%),
    linear-gradient(145deg, #10294d, #071325),
    url('../textura.png');
}

.region-card.is-pending .region-art::before{
  content:"";
  width:42px;
  height:42px;
  border:1px solid rgba(240,210,143,0.38);
  border-radius:10px;
  background:
    linear-gradient(rgba(9,24,50,0.58), rgba(9,24,50,0.58)),
    url('../assets/img/misiones.png') center/cover no-repeat;
  box-shadow:0 0 22px rgba(240,210,143,0.18), 0 0 34px rgba(155,208,255,0.08);
}

.all-regions .region-art{
  height:132px;
}

.region-art-frigost{ --region-image:url('../assets/img/frigost.png'); }
.region-art-astrub{ --region-image:url('../assets/img/astrub.png'); }
.region-art-pandala{ --region-image:url('../assets/img/astrub.png'); }

.region-art-misiones-principales,
.region-art-isla-frigost{ --region-image:url('../assets/img/frigost.png'); }
.region-art-isla-albuera,
.region-art-region-amakna{ --region-image:url('../assets/img/astrub.png'); }
.region-art-cania{ --region-image:url('../assets/img/cania.png'); }
.region-art-misiones-templo,
.region-art-almanax,
.region-art-justicieros,
.region-art-krosmoz,
.region-art-campamento-bwork,
.region-art-castillo-amakna,
.region-art-isla-otomai,
.region-art-archipielago-wabbit,
.region-art-isla-eldoroda,
.region-art-montana-koalaks,
.region-art-puerto-madrestam,
.region-art-bosque-malefico,
.region-art-companeros{ --region-image:url('../assets/img/astrub.png'); }

.region-body{
  position:relative;
  display:grid;
  gap:12px;
  padding:18px;
  flex:1;
}

.region-status{
  justify-self:start;
  padding:5px 8px;
  border:1px solid rgba(240,210,143,0.28);
  border-radius:999px;
  color:var(--gold-soft);
  background:rgba(240,210,143,0.08);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.08em;
}

.region-card.is-pending .region-status{
  color:#b9c9df;
  border-color:rgba(76,110,150,0.55);
  background:rgba(76,110,150,0.16);
}

.region-body strong{
  font-family:'Cinzel',serif;
  font-size:23px;
  color:var(--gold);
}

.all-regions .region-body strong{
  font-size:18px;
  line-height:1.18;
}

.region-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--text-muted);
  font-size:13px;
}

.region-meta span,
.tag-row span,
.chain-badge{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(76,110,150,0.58);
  border-radius:999px;
  padding:6px 9px;
  background:#0f2648;
}

.progress{
  display:block;
  overflow:hidden;
  height:8px;
  border-radius:999px;
  background:#071325;
}

.progress i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, #4e9dff, var(--gold));
}

.region-detail{
  scroll-margin-top:92px;
  display:grid;
  grid-template-columns:1fr 330px;
  gap:20px;
  align-items:start;
  margin-bottom:20px;
}

.region-list{
  display:grid;
  gap:18px;
}

.compact-detail{
  grid-template-columns:1fr 280px;
}

.detail-main,
.mission-content{
  display:grid;
  gap:18px;
}

.panel{
  border:1px solid rgba(240,210,143,0.22);
  border-radius:12px;
  background:linear-gradient(180deg,var(--panel),var(--panel-soft));
  box-shadow:var(--shadow);
}

.region-header{
  padding:26px;
  background:
    linear-gradient(145deg, rgba(9,26,53,0.95), rgba(7,19,37,0.92)),
    url('../textura.png');
}

.region-header h2,
.mission-hero h3{
  margin:0 0 10px;
  font-size:clamp(2rem, 4vw, 3.2rem);
}

.region-header p{
  max-width:720px;
  margin:0 0 18px;
  color:#d6e2f2;
  line-height:1.65;
}

.chain-card{
  padding:20px;
}

.chain-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding-bottom:16px;
  margin-bottom:8px;
  border-bottom:1px solid rgba(240,210,143,0.24);
}

.chain-title h3{
  margin:0;
  font-size:24px;
}

.chain-badge{
  color:var(--green-soft);
  border-color:rgba(143,184,90,0.42);
  background:rgba(143,184,90,0.16);
  font-weight:800;
}

.quest-row{
  display:grid;
  grid-template-columns:44px 1fr auto;
  gap:14px;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid #2d4664;
}

.quest-row:last-child{ border-bottom:0; }

.quest-row strong{
  display:block;
  margin-bottom:5px;
}

.quest-row small{
  color:var(--text-muted);
}

.quest-row b{
  color:var(--gold-soft);
  font-size:13px;
}

.step-num{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border:1px solid rgba(143,184,90,0.48);
  border-radius:12px;
  color:var(--green-soft);
  background:rgba(143,184,90,0.14);
  font-weight:900;
}

.summary-panel{
  position:sticky;
  top:88px;
  padding:18px;
  border-color:rgba(240,210,143,0.34);
  background:
    linear-gradient(180deg, rgba(16,41,77,0.96), rgba(8,21,43,0.98)),
    url('../textura.png');
}

.summary-actions{
  margin-top:14px;
}

.is-disabled{
  width:100%;
  cursor:default;
  opacity:0.72;
}

.summary-panel h3,
.quick-box h3,
.rewards-card h3{
  margin:0 0 15px;
  color:#fff4cd;
}

.stat-list{
  display:grid;
  gap:10px;
  margin:0;
}

.stat-list div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid #35527b;
  border-radius:8px;
  background:#0c203d;
}

.stat-list dt{
  color:var(--text-muted);
}

.stat-list dt::before{
  margin-right:8px;
  color:var(--gold);
  font-family:"Font Awesome 6 Free";
  font-weight:900;
}

.stat-list div:nth-child(1) dt::before{ content:"\f091"; }
.stat-list div:nth-child(2) dt::before{ content:"\f005"; }
.stat-list div:nth-child(3) dt::before{ content:"\f3c5"; }

.stat-list dd{
  margin:0;
  font-weight:800;
}

.mission-layout{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:20px;
  align-items:start;
}

.mission-nav{
  position:sticky;
  top:88px;
  padding:16px;
}

.mission-nav a{
  display:block;
  padding:11px 12px;
  border-radius:12px;
  color:var(--text-muted);
  font-weight:800;
}

.mission-nav a.active,
.mission-nav a:hover{
  color:var(--gold-soft);
  background:#142c4f;
}

.mission-hero{
  padding:26px;
  background-image:
    linear-gradient(90deg, rgba(9,26,53,0.84), rgba(9,26,53,0.46)),
    url('../assets/img/misiones/hero-misiones-sin-logo.png');
  background-position: center, center;
  background-size: auto, cover;
  background-repeat: no-repeat, no-repeat;
}

.mission-icon{
  width:50px;
  height:50px;
  display:inline-block;
  border:1px solid rgba(240,210,143,0.34);
  border-radius:8px;
  background:url('../assets/img/misiones.png') center/cover no-repeat;
}

.frigost-hero{
  isolation:isolate;
  background:
    linear-gradient(90deg, rgba(5,13,31,0.88) 0%, rgba(8,20,38,0.64) 46%, rgba(8,18,35,0.34) 100%),
    linear-gradient(135deg, rgba(47,77,120,0.28), rgba(240,210,143,0.06));
}

.frigost-hero::before{
  content:"";
  position:absolute;
  inset:0;
  right:0;
  bottom:0;
  width:100%;
  height:100%;
  aspect-ratio:auto;
  display:block;
  background:url('../assets/img/frigost.png') center 55%/cover no-repeat;
  opacity:0.58;
  filter:none;
  transform:scale(1.05);
  transform-origin:center center;
  pointer-events:none;
  z-index:0;
}

.frigost-hero::after{
  inset:0;
}

.frigost-hero > *{
  position:relative;
  z-index:1;
}

.frigost-dashboard{
  display:grid;
  grid-template-columns:1fr 330px;
  gap:20px;
  align-items:start;
  margin-top:24px;
}

.priority-panel{
  padding:20px;
}

.priority-panel h2{
  margin:0;
  font-family:'Cinzel',serif;
  font-size:clamp(1.5rem, 3vw, 2.1rem);
  color:var(--gold);
}

.priority-list{
  list-style:none;
  display:grid;
  gap:10px;
  margin:18px 0 0;
  padding:0;
}

.priority-list li{
  display:grid;
  grid-template-columns:42px 1fr auto;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:1px solid rgba(143,184,90,0.38);
  border-radius:8px;
  background:#10294d;
  color:var(--text-light);
  font-weight:800;
  transition:transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.priority-list li:hover{
  transform:translateY(-2px);
  border-color:rgba(240,210,143,0.48);
  background:#142c4f;
  box-shadow:0 12px 24px rgba(0,0,0,0.24), 0 0 18px rgba(240,210,143,0.08);
}

.priority-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(240,210,143,0.28);
  border-radius:8px;
  overflow:hidden;
  background:#071325;
  box-shadow:0 0 16px rgba(240,210,143,0.08);
}

.priority-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.priority-copy{
  display:grid;
  gap:3px;
}

.priority-copy small{
  color:#9bd0ff;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.08em;
}

.guide-chip{
  padding:8px 10px;
  border:1px solid rgba(240,210,143,0.34);
  border-radius:999px;
  color:#231b0d;
  background:linear-gradient(180deg, #f5ddb0, #d19d45);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
  transition:transform 0.14s ease, box-shadow 0.14s ease;
}

.guide-chip:hover,
.guide-chip:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 0 16px rgba(240,210,143,0.16);
  outline:none;
}

.achievement-list{
  position:relative;
  overflow:hidden;
  padding:8px;
  border:1px solid rgba(76,110,150,0.34);
  border-radius:10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03), transparent 26%),
    linear-gradient(180deg, rgba(9,23,47,0.98), rgba(5,14,30,0.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.035), inset 0 0 34px rgba(0,0,0,0.22);
}

.achievement-list::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:0.055;
  pointer-events:none;
  mix-blend-mode:soft-light;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.45) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 30% 10%, rgba(240,210,143,0.7), transparent 18rem);
}

.achievement-list > *{
  position:relative;
}

.achievement-row{
  --ach-accent:var(--gold);
  display:grid;
  gap:0;
  padding:0;
  margin:7px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(76,110,150,0.64);
  border-radius:9px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ach-accent) 12%, transparent), transparent 26%),
    linear-gradient(180deg,#0d2444,#081a32);
  box-shadow:0 10px 22px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.035);
  transition:transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.achievement-row::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:0.055;
  pointer-events:none;
  background:repeating-linear-gradient(135deg, rgba(255,255,255,0.32) 0 1px, transparent 1px 7px);
  mix-blend-mode:soft-light;
}

.achievement-row::after{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:0 999px 999px 0;
  background:linear-gradient(180deg, transparent, var(--ach-accent), transparent);
  box-shadow:0 0 16px color-mix(in srgb, var(--ach-accent) 42%, transparent);
  opacity:0.78;
  pointer-events:none;
}

.achievement-row:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb, var(--ach-accent) 52%, rgba(76,110,150,0.74));
  box-shadow:0 16px 30px rgba(0,0,0,0.3), 0 0 20px color-mix(in srgb, var(--ach-accent) 18%, transparent), inset 0 0 26px rgba(255,255,255,0.025);
}

.achievement-row.is-open{
  border-color:color-mix(in srgb, var(--ach-accent) 62%, rgba(240,210,143,0.36));
  box-shadow:0 16px 30px rgba(0,0,0,0.3), 0 0 0 1px color-mix(in srgb, var(--ach-accent) 18%, transparent) inset;
}

.achievement-row:nth-child(even){
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ach-accent) 11%, transparent), transparent 26%),
    linear-gradient(180deg,#0f294d,#081a32);
}

.achievement-row--dofus{
  --ach-accent:#f4c66d;
}

.achievement-row--dofus.is-pending-source{
  --ach-accent:#9fd4e8;
}

.achievement-row:last-child{
  border-bottom:0;
}

.achievement-head{
  width:100%;
  border:0;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
  display:grid;
  grid-template-columns:62px 1fr auto auto 26px;
  gap:12px;
  align-items:center;
  min-height:82px;
  padding:11px 14px;
  background:transparent;
}

.achievement-head--exploracion{ --ach-accent:var(--ice); }
.achievement-head--dungeon{ --ach-accent:var(--wine); }
.achievement-head--oficio{ --ach-accent:var(--green-soft); }
.achievement-head--principal{ --ach-accent:var(--gold-strong); }
.achievement-head--magica{ --ach-accent:var(--magic); }
.achievement-head--misiones{ --ach-accent:var(--petrol); }
.achievement-row--exploracion{ --ach-accent:var(--ice); }
.achievement-row--dungeon{ --ach-accent:var(--wine); }
.achievement-row--oficio{ --ach-accent:var(--green-soft); }
.achievement-row--principal{ --ach-accent:var(--gold-strong); }
.achievement-row--magica{ --ach-accent:var(--magic); }
.achievement-row--misiones{ --ach-accent:var(--petrol); }

.achievement-head:hover,
.achievement-head:focus-visible{
  background:
    radial-gradient(circle at 18% 50%, color-mix(in srgb, var(--ach-accent) 16%, transparent), transparent 26%),
    rgba(255,255,255,0.018);
  outline:none;
}

.achievement-head:disabled{
  cursor:default;
}

.achievement-head:disabled .expand-indicator{
  opacity:0.28;
}

.achievement-icon{
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb, var(--ach-accent) 42%, rgba(240,210,143,0.22));
  border-radius:7px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 42%),
    linear-gradient(135deg, #244066, #10294d);
  color:var(--gold);
  font-size:24px;
  overflow:hidden;
  box-shadow:0 0 18px color-mix(in srgb, var(--ach-accent) 11%, transparent), inset 0 1px 0 rgba(255,255,255,0.13), inset 0 -10px 20px rgba(0,0,0,0.18);
  transition:filter 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.achievement-row:hover .achievement-icon,
.achievement-row.is-open .achievement-icon{
  filter:brightness(1.08) saturate(1.08);
  box-shadow:0 0 24px color-mix(in srgb, var(--ach-accent) 24%, transparent), inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -10px 20px rgba(0,0,0,0.2);
  transform:scale(1.025) rotate(-2deg);
}

.achievement-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.achievement-copy{
  display:grid;
  gap:4px;
  min-width:0;
}

.achievement-copy strong{
  color:var(--text-light);
  font-size:16px;
  line-height:1.15;
  text-shadow:0 1px 0 rgba(0,0,0,0.44);
}

.achievement-copy small{
  color:var(--text-muted);
  line-height:1.45;
  font-size:13.5px;
}

.points-pill{
  min-width:48px;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  flex-direction:column;
  padding:5px 9px 6px;
  border:1px solid rgba(255,221,139,0.62);
  border-radius:12px;
  text-align:center;
  color:#fff7df;
  background:
    radial-gradient(circle at 50% 8%, rgba(255,244,183,0.42), transparent 42%),
    linear-gradient(180deg,#5b4725,#223957 48%, #122743);
  font-weight:900;
  box-shadow:0 0 22px rgba(240,210,143,0.18), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -10px 16px rgba(0,0,0,0.26);
  text-shadow:0 1px 0 rgba(0,0,0,0.45);
}

.points-pill i{
  color:#f8dda0;
  font-size:11px;
  filter:drop-shadow(0 0 5px rgba(240,210,143,0.58));
}

.points-value{
  font-size:16px;
  line-height:1;
}

.open-label{
  padding:8px 10px;
  border:1px solid rgba(155,208,255,0.28);
  border-radius:999px;
  color:#9bd0ff;
  background:rgba(12,43,67,0.68);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
  transition:border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.achievement-row.is-open .open-label{
  color:var(--gold-soft);
  border-color:rgba(240,210,143,0.34);
}

.expand-indicator{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  color:var(--gold);
  transition:transform 0.16s ease;
}

.achievement-row.is-open .expand-indicator{
  transform:rotate(180deg);
}

.achievement-detail{
  display:grid;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(5,16,34,0.94), rgba(3,10,22,0.96)),
    rgba(3,10,22,0.32);
}

.achievement-detail[hidden]{
  display:none;
}

.achievement-row.is-open .achievement-detail{
  animation:detailReveal 0.18s ease-out both;
}

@keyframes detailReveal{
  from{
    opacity:0;
    transform:translateY(-4px);
    filter:blur(2px);
  }
  to{
    opacity:1;
    transform:translateY(0);
    filter:blur(0);
  }
}

.detail-section{
  position:relative;
}

.detail-section-title{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 18px 4px 76px;
  color:var(--gold-soft);
  font-size:12px;
  font-weight:900;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.detail-section-title i{
  color:color-mix(in srgb, var(--ach-accent) 62%, var(--gold));
  filter:drop-shadow(0 0 6px color-mix(in srgb, var(--ach-accent) 36%, transparent));
}

.achievement-missions{
  display:grid;
  gap:6px;
  padding:8px 18px 14px 76px;
}

.mission-check{
  display:grid;
  grid-template-columns:26px minmax(0, 1fr) auto;
  align-items:center;
  gap:10px;
  min-height:36px;
  padding:6px 9px;
  border:1px solid rgba(76,110,150,0.26);
  border-radius:8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035), transparent),
    rgba(8,22,43,0.48);
  color:#edf3ff;
  line-height:1.25;
  transition:transform 0.13s ease, border-color 0.13s ease, background 0.13s ease, box-shadow 0.13s ease;
}

.mission-check:hover{
  transform:translateX(2px);
  border-color:color-mix(in srgb, var(--ach-accent) 38%, rgba(76,110,150,0.32));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ach-accent) 10%, transparent), transparent 68%),
    rgba(10,28,55,0.68);
  box-shadow:inset 0 0 18px rgba(255,255,255,0.02);
}

.mission-check.is-done{
  color:#9ca6b2;
  text-decoration:line-through;
  text-decoration-color:rgba(156,166,178,0.5);
}

.mission-check a,
.mission-link{
  color:#f5ddb0;
  text-decoration:none;
  transition:color 0.12s;
}
.mission-link:hover{
  color:var(--gold-strong);
  text-decoration:underline;
  text-underline-offset:3px;
}

.mission-check-main{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}

.mission-alt-links{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:6px;
}

.mission-link--alt{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:3px 10px;
  border:1px solid rgba(245,221,176,0.28);
  border-radius:999px;
  background:rgba(245,221,176,0.08);
  color:#ffe8b9;
  font-size:12px;
  font-weight:900;
}

.mission-link--alt:hover{
  background:rgba(245,221,176,0.16);
  text-decoration:none;
}

.fake-check{
  width:24px;
  height:24px;
  display:inline-grid;
  place-items:center;
  border:1px solid color-mix(in srgb, var(--ach-accent) 30%, #647182);
  border-radius:6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent),
    linear-gradient(180deg,#4a5562,#202a34);
  color:#f4dc9b;
  font-size:11px;
  font-weight:900;
  box-shadow:0 0 10px color-mix(in srgb, var(--ach-accent) 10%, transparent), inset 0 1px 0 rgba(255,255,255,0.2);
}

.mission-guide-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:72px;
  padding:3px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
  letter-spacing:0.05em;
  text-transform:uppercase;
  white-space:nowrap;
}

.mission-guide-badge--ready{
  color:#f7df9f;
  background:rgba(240,210,143,0.12);
  border:1px solid rgba(240,210,143,0.34);
}

.mission-guide-badge--pending{
  color:#ffc6a1;
  background:rgba(223,132,75,0.11);
  border:1px solid rgba(223,132,75,0.32);
}

.mission-guide-badge--objective{
  color:#a9bddb;
  background:rgba(155,208,255,0.08);
  border:1px solid rgba(155,208,255,0.22);
}

.achievement-rewards{
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  align-items:end;
  padding:4px 18px 16px 0;
  border-top:1px solid color-mix(in srgb, var(--ach-accent) 15%, rgba(240,210,143,0.14));
}

.reward-title{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:7px;
  color:#edf3ff;
}

.reward-warning{
  color:#f4f0e7;
}

.reward-slots{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.reward-slot{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid #111;
  border-radius:6px;
  background:
    radial-gradient(circle at 35% 30%, rgba(245,221,176,0.25), transparent 30%),
    linear-gradient(145deg,#162135,#05080d);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 2px rgba(0,0,0,0.55);
}

.reward-token{
  color:#e8eef7;
  font-family:'Cinzel',serif;
  font-size:24px;
  font-weight:900;
  background:linear-gradient(145deg,#53606d,#1d2834);
}

.reward-values{
  display:grid;
  gap:6px;
  min-width:140px;
  color:#fff2dc;
  text-align:right;
  font-weight:700;
}

.reward-values b{
  color:#4e9dff;
  font-style:italic;
}

.reward-values i{
  color:#f2c66d;
}

.quick-box,
.rewards-card{
  padding:20px;
}

.check-grid,
.reward-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.check-grid div,
.reward-grid span{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px;
  border:1px solid #35527b;
  border-radius:8px;
  background:#0c203d;
  color:var(--text-muted);
}

.check-grid b{
  color:var(--green-soft);
}

.reward-grid i{
  color:var(--gold);
  margin-top:2px;
}

.step-card{
  display:grid;
  grid-template-columns:250px 1fr;
  gap:18px;
  padding:16px;
}

.step-shot{
  min-height:160px;
  border:1px solid #486689;
  border-radius:8px;
  background:
    linear-gradient(135deg, rgba(159,212,232,0.22), rgba(0,0,0,0.22)),
    var(--shot-image) center/cover;
}

.step-shot-burgo{ --shot-image:url('../assets/img/head.png'); }
.step-shot-dialogo{ --shot-image:url('../textura.png'); }

.step-card h3{
  margin:0 0 8px;
  color:var(--gold);
}

.step-card p{
  margin:0 0 14px;
  color:var(--text-muted);
  line-height:1.65;
}

footer{
  margin-top:42px;
  padding:30px 20px;
  text-align:center;
  border-top:2px solid var(--gold);
  background:linear-gradient(to top, #050a10, #0b1320);
}

footer p{
  margin:6px 0;
  font-size:13px;
  color:#8e97a5;
}

footer a{
  color:var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   ENCICLOPEDIA DE LOGROS — layout dos paneles
   ═══════════════════════════════════════════════════════════════ */

.logros-layout{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:20px;
  align-items:start;
  margin-top:28px;
}

/* ── Sidebar ── */
.cat-sidebar{
  position:sticky;
  top:82px;
  max-height:calc(100vh - 110px);
  overflow-y:auto;
  padding:0;
  scrollbar-width:thin;
  scrollbar-color:rgba(240,210,143,0.24) transparent;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.035), transparent 34%),
    linear-gradient(180deg, rgba(11,28,54,0.96), rgba(5,14,30,0.98));
  box-shadow:0 18px 34px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.04);
}

.cat-search-wrap{
  position:sticky;
  top:0;
  z-index:2;
  padding:14px 14px 10px;
  background:var(--panel);
  border-bottom:1px solid rgba(240,210,143,0.14);
}

.cat-search-wrap input{
  width:100%;
  padding:9px 34px 9px 12px;
  border:1px solid rgba(240,210,143,0.28);
  border-radius:8px;
  background:#071325;
  color:var(--text-light);
  font-family:inherit;
  font-size:13px;
}

.cat-search-wrap input:focus{
  outline:none;
  border-color:rgba(240,210,143,0.55);
}

.cat-search-icon{
  position:absolute;
  right:24px;
  top:50%;
  transform:translateY(-50%);
  color:var(--text-muted);
  font-size:13px;
  pointer-events:none;
}

.cat-search-wrap{ position:relative; }

.cat-nav{
  padding:8px 0 14px;
}

.cat-group{
  --cat-accent:var(--gold);
  border-bottom:1px solid rgba(47,77,120,0.38);
}

.cat-group--exploracion{ --cat-accent:var(--ice); }
.cat-group--mazmorras{ --cat-accent:var(--wine); }
.cat-group--misiones{ --cat-accent:var(--gold-strong); }
.cat-group--oficio{ --cat-accent:var(--green-soft); }
.cat-group--dofus{ --cat-accent:#f4c66d; }

.cat-group:last-child{ border-bottom:0; }

.cat-top{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px 12px;
  border:0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--cat-accent) 10%, transparent), transparent 70%);
  color:var(--gold);
  font-family:inherit;
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.07em;
  cursor:pointer;
  transition:background 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
}

.cat-top:hover{
  transform:translateX(2px);
  color:#fff3cf;
  background:
    radial-gradient(circle at 18% 50%, color-mix(in srgb, var(--cat-accent) 24%, transparent), transparent 44%),
    linear-gradient(90deg, color-mix(in srgb, var(--cat-accent) 14%, transparent), transparent 72%);
  box-shadow:inset 3px 0 0 color-mix(in srgb, var(--cat-accent) 70%, transparent), inset 0 0 22px rgba(255,255,255,0.025);
}

.cat-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  flex:0 0 30px;
  border:1px solid color-mix(in srgb, var(--cat-accent) 34%, rgba(76,110,150,0.44));
  border-radius:8px;
  color:color-mix(in srgb, var(--cat-accent) 78%, #ffffff);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 48%),
    rgba(5,16,32,0.58);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.1), 0 0 12px color-mix(in srgb, var(--cat-accent) 11%, transparent);
  transition:transform 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
}

.cat-top:hover .cat-icon,
.cat-top.is-active .cat-icon{
  transform:rotate(-3deg) scale(1.04);
  color:#fff8df;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.16), 0 0 18px color-mix(in srgb, var(--cat-accent) 24%, transparent);
}

.cat-top-main,
.cat-sub-main{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  margin-right:8px;
}

.cat-top-main{
  flex:1;
}

.cat-top-right{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

.cat-chevron{
  font-size:10px;
  color:var(--text-muted);
  transition:transform 0.18s ease;
}

.cat-top[aria-expanded="false"] .cat-chevron{
  transform:rotate(-90deg);
}

.cat-chevron--static{
  transform:none !important;
}

.cat-count{
  font-size:11px;
  font-weight:700;
  color:var(--text-muted);
  background:#0c1e36;
  border:1px solid #2c4468;
  border-radius:999px;
  padding:2px 7px;
  line-height:1.4;
}

.cat-progress{
  --cat-progress:0;
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  flex:0 0 31px;
  border-radius:50%;
  color:#d8e4f7;
  background:
    radial-gradient(circle, #0b1c36 0 51%, transparent 53%),
    conic-gradient(color-mix(in srgb, var(--cat-accent) 82%, #ffffff) calc(var(--cat-progress) * 1%), rgba(76,110,150,0.32) 0);
  box-shadow:0 0 12px color-mix(in srgb, var(--cat-accent) 11%, transparent), inset 0 0 0 1px rgba(255,255,255,0.08);
}

.cat-progress span{
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  border-radius:50%;
  background:#0b1c36;
  border:1px solid rgba(76,110,150,0.5);
  font-size:10px;
  font-weight:900;
  line-height:1;
}

.cat-subs{
  padding:2px 0 6px;
}

.cat-sub{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:7px 14px 7px 18px;
  color:var(--text-muted);
  font-size:13px;
  font-weight:600;
  transition:background 0.12s ease, color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
  cursor:pointer;
  border-radius:0;
  border-left:3px solid transparent;
}

.cat-sub:hover,
.cat-sub.is-active{
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--cat-accent) 14%, transparent), transparent 74%),
    rgba(77,118,174,0.12);
  color:var(--gold-soft);
  transform:translateX(2px);
  border-left-color:color-mix(in srgb, var(--cat-accent) 58%, transparent);
  box-shadow:inset 0 0 18px rgba(255,255,255,0.02);
}

.cat-sub.is-active{
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--cat-accent) 20%, transparent), transparent 78%),
    rgba(240,210,143,0.08);
  color:var(--gold);
  font-weight:700;
}

.cat-sub-name,
.cat-top-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cat-sub-name{ flex:1; }

.cat-top.is-active{
  color:#fff;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--cat-accent) 16%, transparent), transparent 70%),
    rgba(240,210,143,0.08);
  box-shadow:inset 3px 0 0 color-mix(in srgb, var(--cat-accent) 62%, transparent);
}

/* ── Panel principal ── */
.logros-main{ min-width:0; }

.logros-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  flex-wrap:wrap;
}

.logros-heading{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.logros-heading h2{
  margin:0;
  font-family:'Cinzel',serif;
  font-size:clamp(1.3rem,2.5vw,1.8rem);
  color:var(--gold);
}

.cat-stats-badge{
  padding:5px 10px;
  border:1px solid rgba(76,110,150,0.58);
  border-radius:999px;
  color:var(--text-muted);
  background:#0c1e36;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.logros-sort select{
  padding:8px 12px;
  border:1px solid rgba(240,210,143,0.28);
  border-radius:8px;
  background:#0b1c36;
  color:var(--text-light);
  font-family:inherit;
  font-size:13px;
  cursor:pointer;
}

.logros-empty{
  padding:48px 24px;
  text-align:center;
  color:var(--text-muted);
  font-size:15px;
}

/* ── Logro: ajustes sobre las reglas base ── */
.achievement-head{
  grid-template-columns:62px 1fr auto auto 26px;
}

.ach-title-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.ach-subcat{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  font-weight:700;
  color:#7a9fc2;
  text-transform:uppercase;
  letter-spacing:0.07em;
  margin-top:2px;
}

/* ── Estado de guía del logro ── */
.logro-status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10.5px;
  font-weight:800;
  padding:2px 9px 2px 7px;
  border-radius:20px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  margin-top:0;
  width:fit-content;
  pointer-events:none;
  user-select:none;
}

.logro-status--completa{
  color:#f0d28f;
  background:rgba(240,210,143,0.13);
  border:1px solid rgba(240,210,143,0.40);
  box-shadow:0 0 10px rgba(240,210,143,0.18),
             inset 0 0 8px rgba(240,210,143,0.05);
}
.logro-status--completa i{
  color:#f5e29a;
  filter:drop-shadow(0 0 5px rgba(240,210,143,0.7));
}

.logro-status--en-construccion{
  color:#ffc8a8;
  background:rgba(223,132,75,0.11);
  border:1px solid rgba(223,132,75,0.34);
  box-shadow:0 0 10px rgba(223,132,75,0.10),
             inset 0 0 8px rgba(223,132,75,0.04);
}
.logro-status--en-construccion i{
  opacity:0.85;
}


.ach-level{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:28px;
  padding:5px 9px;
  border:1px solid color-mix(in srgb, var(--ach-accent) 30%, rgba(155,208,255,0.24));
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  color:#dfeaff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent),
    rgba(10,28,55,0.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08), 0 0 12px color-mix(in srgb, var(--ach-accent) 8%, transparent);
  white-space:nowrap;
}

.ach-level span{
  color:#99b9e8;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:0.05em;
}

.ach-icon-fallback{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:var(--gold);
  font-size:22px;
  background:linear-gradient(135deg,#244066,#10294d);
}

.achievement-head--dofus .achievement-icon{
  background:
    radial-gradient(circle at 38% 20%, rgba(255,255,255,0.18), transparent 34%),
    linear-gradient(145deg,#213654,#071325);
  border-color:rgba(244,198,109,0.42);
}

.dofus-icon img{
  width:92%;
  height:92%;
  object-fit:contain;
  filter:drop-shadow(0 8px 8px rgba(0,0,0,0.38));
}

.dofus-method-pill{
  min-width:94px;
  gap:6px;
}

.dofus-method-pill .points-value{
  font-size:11px;
  line-height:1;
}

.dofus-detail .detail-section{
  padding-bottom:16px;
}

.dofus-bonus-section{
  border-bottom:1px solid rgba(244,198,109,0.18);
}

.dofus-bonus-grid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.dofus-bonus-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:7px 11px;
  border:1px solid rgba(244,198,109,0.34);
  border-radius:8px;
  color:#fff3cf;
  background:
    linear-gradient(180deg, rgba(244,198,109,0.14), rgba(244,198,109,0.04)),
    rgba(9,24,48,0.72);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.035);
  font-size:12px;
  font-weight:900;
}

.dofus-bonus-chip i{
  width:15px;
  color:#f4c66d;
  text-align:center;
  filter:drop-shadow(0 0 5px rgba(244,198,109,0.35));
}

.dofus-spell-note{
  display:grid;
  grid-template-columns:32px minmax(0, 1fr);
  gap:10px;
  align-items:start;
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(159,212,232,0.24);
  border-radius:8px;
  color:#d7e8ff;
  background:
    linear-gradient(135deg, rgba(25,68,116,0.35), rgba(9,22,44,0.72)),
    rgba(5,16,34,0.78);
}

.dofus-spell-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#9fd4e8;
  background:rgba(159,212,232,0.12);
  box-shadow:inset 0 0 0 1px rgba(159,212,232,0.22);
}

.dofus-spell-note strong{
  display:block;
  margin-bottom:3px;
  color:#fff3cf;
  font-size:13px;
  font-weight:900;
}

.dofus-spell-note small{
  color:var(--text-muted);
  line-height:1.45;
}

.dofus-bonus-note{
  display:grid;
  grid-template-columns:32px minmax(0, 1fr);
  gap:10px;
  align-items:start;
  margin-top:10px;
  padding:10px 12px;
  border:1px solid rgba(159,212,232,0.24);
  border-radius:8px;
  color:#d7e8ff;
  background:
    linear-gradient(135deg, rgba(25,68,116,0.28), rgba(9,22,44,0.7)),
    rgba(5,16,34,0.78);
}

.dofus-bonus-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#f4c66d;
  background:rgba(244,198,109,0.12);
  box-shadow:inset 0 0 0 1px rgba(244,198,109,0.22);
}

.dofus-bonus-note p{
  margin:0;
  color:var(--text-muted);
  line-height:1.45;
}

.dofus-steps{
  gap:8px;
}

.dofus-step{
  align-items:start;
}

.dofus-step .mission-check-main{
  display:grid;
  gap:4px;
}

.dofus-step .mission-check-main strong{
  color:#fff3cf;
  font-size:13px;
}

.dofus-step .mission-check-main small{
  color:var(--text-muted);
  line-height:1.45;
}

.dofus-step--drop .fake-check{ color:#f2c66d; }
.dofus-step--logro .fake-check{ color:#f0d28f; }
.dofus-step--mision .fake-check{ color:#9fd4e8; }
.dofus-step--alma .fake-check{ color:#d6b3ff; }
.dofus-step--pendiente .fake-check{ color:#ffc8a8; }

.dofus-step-details{
  margin-top:6px;
  border:1px solid rgba(76,110,150,0.42);
  border-radius:8px;
  background:rgba(3,12,28,0.34);
  overflow:hidden;
}

.dofus-step-details summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:30px;
  padding:6px 10px;
  color:#d9ecff;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}

.dofus-step-details summary::-webkit-details-marker{
  display:none;
}

.dofus-step-details summary::before{
  content:"\f054";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  color:#f4c66d;
  font-size:10px;
  transition:transform .15s ease;
}

.dofus-step-details[open] summary::before{
  transform:rotate(90deg);
}

.dofus-step-details summary span{
  margin-left:auto;
  min-width:24px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:999px;
  color:#fff3cf;
  background:rgba(244,198,109,0.12);
  box-shadow:inset 0 0 0 1px rgba(244,198,109,0.28);
}

.dofus-step-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:8px 10px 10px;
  border-top:1px solid rgba(76,110,150,0.32);
}

.dofus-step-tags span{
  padding:4px 7px;
  border:1px solid rgba(159,212,232,0.24);
  border-radius:999px;
  color:#d7e8ff;
  background:rgba(14,39,73,0.74);
  font-size:11px;
  font-weight:800;
}

.dofus-step-tag-link{
  display:inline-flex;
  align-items:center;
  padding:4px 7px;
  border:1px solid rgba(244,198,109,0.28);
  border-radius:999px;
  color:#fff0c4;
  background:rgba(60,44,10,0.28);
  font-size:11px;
  font-weight:800;
  text-decoration:none;
  transition:border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}

.dofus-step-tag-link:hover{
  color:#ffffff;
  border-color:rgba(244,198,109,0.52);
  background:rgba(80,58,10,0.4);
  transform:translateY(-1px);
}

.dofus-mark-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:30px;
  padding:5px 10px 5px 7px;
  border:1px solid rgba(244,198,109,.38);
  border-radius:999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), transparent),
    rgba(10,28,55,0.5);
  color:#e8d7a9;
  font-size:.78rem;
  font-weight:800;
  font-family:inherit;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08);
  transition:background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}

.dofus-mark-btn i{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#f4c66d;
  background:rgba(244,198,109,0.11);
  box-shadow:inset 0 0 0 1px rgba(244,198,109,0.28);
}

.dofus-mark-btn:hover{
  transform:translateY(-1px);
  background:rgba(244,198,109,.13);
  border-color:#f4c66d;
  color:#fff3cf;
  box-shadow:0 0 14px rgba(244,198,109,0.12), inset 0 1px 0 rgba(255,255,255,0.1);
}

.dofus-mark-btn.is-done{
  background:rgba(143,184,90,.18);
  border-color:var(--green, #8fb85a);
  color:var(--green-soft, #b9d978);
}

.dofus-mark-btn.is-done i{
  color:var(--green-soft, #b9d978);
  background:rgba(143,184,90,0.14);
  box-shadow:inset 0 0 0 1px rgba(143,184,90,0.32);
}

/* ── Recompensas inline ── */
.achievement-rewards{
  padding:4px 18px 16px 0;
  border-top:1px solid color-mix(in srgb, var(--ach-accent) 15%, rgba(240,210,143,0.1));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ach-accent) 6%, transparent), transparent 28%),
    rgba(3,10,22,0.18);
}

.reward-title{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:8px;
  color:var(--gold-soft);
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.06em;
}

.reward-slots{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}

.reward-slot{
  position:relative;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb, var(--ach-accent) 24%, rgba(240,210,143,0.22));
  border-radius:7px;
  background:
    radial-gradient(circle at 32% 18%, rgba(255,255,255,0.16), transparent 30%),
    linear-gradient(145deg,#192943,#05080d);
  overflow:hidden;
  box-shadow:0 0 12px color-mix(in srgb, var(--ach-accent) 8%, transparent), inset 0 1px 0 rgba(255,255,255,0.1), inset 0 -9px 14px rgba(0,0,0,0.28);
  cursor:default;
}

.reward-slot::before{
  content:"";
  position:absolute;
  inset:2px 2px auto;
  height:34%;
  border-radius:5px 5px 999px 999px;
  background:linear-gradient(180deg, rgba(255,255,255,0.18), transparent);
  pointer-events:none;
  z-index:1;
}

.reward-slot img{
  width:92%;
  height:92%;
  object-fit:contain;
  filter:drop-shadow(0 5px 5px rgba(0,0,0,0.36));
}

.reward-qty{
  position:absolute;
  bottom:1px;
  right:3px;
  font-size:9px;
  font-weight:900;
  color:#ffe;
  text-shadow:0 0 3px #000;
  line-height:1;
}

.rew-badges{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  align-items:center;
}

.rew-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:30px;
  padding:5px 10px;
  border-radius:8px;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.06em;
  border:1px solid;
  box-shadow:0 0 12px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -8px 14px rgba(0,0,0,0.13);
}

.rew-badge i{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
}

.rew-badge.xp{
  color:#9bd0ff;
  border-color:rgba(155,208,255,0.34);
  background:
    linear-gradient(180deg, rgba(155,208,255,0.16), rgba(155,208,255,0.06)),
    rgba(8,22,43,0.7);
}

.rew-badge.kamas{
  color:#f2c66d;
  border-color:rgba(242,198,109,0.38);
  background:
    linear-gradient(180deg, rgba(242,198,109,0.18), rgba(242,198,109,0.06)),
    rgba(8,22,43,0.7);
}

.rew-badge.emote{
  color:#c89fff;
  border-color:rgba(200,159,255,0.3);
  background:rgba(200,159,255,0.1);
}

.rew-badge.titulo{
  color:#7dd4a8;
  border-color:rgba(125,212,168,0.3);
  background:rgba(125,212,168,0.1);
}

.rew-badge.ornamento{
  color:#ffa07a;
  border-color:rgba(255,160,122,0.3);
  background:rgba(255,160,122,0.1);
}

/* ── Paginación ── */
.logros-pagination{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px;
  margin-top:22px;
  padding-bottom:8px;
}

.page-btn{
  min-width:36px;
  height:36px;
  padding:0 10px;
  border:1px solid rgba(76,110,150,0.55);
  border-radius:8px;
  background:#0c1e36;
  color:var(--text-muted);
  font-family:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:background 0.14s, border-color 0.14s, color 0.14s;
}

.page-btn:hover{
  background:#142c4f;
  border-color:rgba(240,210,143,0.38);
  color:var(--gold-soft);
}

.page-btn.is-current{
  background:linear-gradient(180deg,#1f4a80,#0f2648);
  border-color:rgba(240,210,143,0.55);
  color:var(--gold);
}

.page-ellipsis{
  display:inline-flex;
  align-items:center;
  color:var(--text-muted);
  padding:0 4px;
}

@media (max-width: 980px){
  .logros-layout{
    grid-template-columns:1fr;
  }

  .seo-crosslinks-grid{
    grid-template-columns:1fr 1fr;
  }

  .cat-sidebar{
    position:static;
    max-height:none;
  }

  .cat-subs{
    display:flex;
    flex-wrap:wrap;
    gap:4px;
    padding:6px 10px 10px;
  }

  .cat-sub{
    padding:6px 12px;
    border:1px solid rgba(76,110,150,0.44);
    border-radius:999px;
    font-size:12px;
  }

  .achievement-rewards{
    padding-left:16px;
  }
}

/* ══════════════════════════════════════════════════════ */

@media (max-width: 980px){
  .region-grid,
  .region-grid.all-regions,
  .region-detail,
  .compact-detail,
  .mission-layout,
  .frigost-dashboard{
    grid-template-columns:1fr;
  }

  .summary-panel,
  .mission-nav{
    position:static;
  }

  .section-heading{
    align-items:start;
    flex-direction:column;
  }

  .section-heading span{
    text-align:left;
  }
}

@media (max-width: 700px){
  .page-shell{
    width:min(100% - 20px, 1220px);
    padding-top:22px;
    padding-bottom:44px;
  }

  .section-hero,
  .region-header,
  .mission-hero{
    padding:24px;
    border-radius:12px;
  }

  .section-hero{
    min-height:auto;
  }

  .section-hero::before{
    width:88px;
    right:14px;
    bottom:14px;
    opacity:0.22;
  }

  .section-divider{
    margin:18px 0 12px;
  }

  .hero-actions a{
    width:100%;
    min-height:46px;
  }

  .seo-crosslinks{
    padding:18px;
  }

  .seo-crosslinks-grid{
    grid-template-columns:1fr;
  }

  .check-grid,
  .reward-grid,
  .step-card,
  .achievement-row{
    grid-template-columns:1fr;
  }

  .achievement-head{
    grid-template-columns:52px minmax(0, 1fr) auto;
    min-height:84px;
    padding:12px;
  }

  .achievement-icon{
    grid-row:1 / 3;
  }

  .achievement-copy{
    grid-column:2 / 4;
  }

  .achievement-icon{
    width:52px;
    height:52px;
  }

  .achievement-head .ach-indicator{
    grid-column:3;
    grid-row:1;
    justify-self:end;
  }

  .ach-level{
    grid-column:2;
    grid-row:2;
    justify-self:start;
  }

  .points-pill{
    grid-column:3;
    grid-row:2;
    justify-self:end;
  }

  .achievement-head .open-label{
    grid-column:2 / 4;
    justify-self:start;
  }

  .achievement-missions,
  .achievement-rewards{
    padding-left:16px;
  }

  .detail-section-title{
    padding-left:16px;
  }

  .ach-progress-wrap{
    padding-left:16px;
  }

  .mission-check{
    grid-template-columns:24px minmax(0, 1fr);
  }

  .mission-guide-badge{
    grid-column:2;
    justify-self:start;
  }

  .achievement-rewards,
  .priority-list li{
    grid-template-columns:1fr;
  }

  .guide-chip{
    justify-self:start;
  }

  .quest-row{
    grid-template-columns:38px 1fr;
  }

  .quest-row b{
    grid-column:2;
  }
}

/* ── Integración ProgressTracker: logros ── */

/* Fila completada */
.achievement-row.is-completed > .achievement-head {
  background: linear-gradient(90deg, rgba(143,184,90,.12), rgba(143,184,90,.04));
  border-left: 3px solid var(--green, #8fb85a);
}

/* Badge de "completado" en el indicador derecho */
.ach-done-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--green, #8fb85a);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Contenedor del botón de marcar */
.ach-progress-wrap {
  padding:10px 18px 8px 76px;
  border-bottom:1px solid rgba(255,255,255,.055);
}

/* Botón de marcar como completado */
.ach-mark-btn {
  display: inline-flex;
  align-items: center;
  gap:8px;
  min-height:30px;
  padding:5px 10px 5px 7px;
  border:1px solid rgba(143,184,90,.34);
  border-radius:999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), transparent),
    rgba(10,28,55,0.5);
  color:#c5d2e8;
  font-size:.78rem;
  font-weight:800;
  font-family: inherit;
  cursor: pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08);
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}

.ach-mark-btn i{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#8fb85a;
  background:rgba(143,184,90,0.11);
  box-shadow:inset 0 0 0 1px rgba(143,184,90,0.28);
}

.ach-mark-btn:hover {
  transform:translateY(-1px);
  background:rgba(143,184,90,.13);
  border-color: var(--green, #8fb85a);
  color: var(--green-soft, #b9d978);
  box-shadow:0 0 14px rgba(143,184,90,0.12), inset 0 1px 0 rgba(255,255,255,0.1);
}

.ach-mark-btn.is-done {
  background: rgba(143,184,90,.18);
  border-color: var(--green, #8fb85a);
  color: var(--green-soft, #b9d978);
  font-weight: 900;
}

.ach-mark-btn.is-done:hover {
  background: rgba(200,60,60,.15);
  border-color: #c84040;
  color: #f08080;
}
