/* Tema visual compartido de Arcanis: guías y página principal. */
:root {
    --black: #090912;
    --card: #141323;
    --muted: #b0adbf;
    --purple-light: #bd96ff;
    --border: rgba(174, 133, 255, .18);
    --border-hover: rgba(186, 143, 255, .58);
}
html { scroll-padding-top: 170px; }
body {
    background: radial-gradient(ellipse at 12% 0, rgba(96, 46, 165, .16), transparent 45%),
        radial-gradient(ellipse at 95% 70%, rgba(150, 46, 140, .06), transparent 45%), var(--black);
    line-height: 1.65;
}
::selection { background: #7632ac; color: #fff; }
#particles-canvas { opacity: .42; }
header {
    height: 76px;
    padding-inline: max(24px, calc((100% - 1120px) / 2));
    background: rgba(9, 9, 18, .94);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
}
.nav-logo-img { width: 40px; height: 40px; border-radius: 10px; }
.nav-logo { letter-spacing: 2px; }
.nav-back, .back-btn {
    color: #d3c9e5; border-radius: 10px; letter-spacing: .8px;
    font-family: 'Inter', sans-serif; font-size: .8rem; text-transform: none;
    background: rgba(140, 95, 220, .08); min-height: 42px;
}
.nav-back:hover, .back-btn:hover { background: rgba(140, 95, 220, .16); }
.guide-progress { position: fixed; top: 0; left: 0; height: 3px; z-index: 101; width: 100%; pointer-events: none; }
.guide-progress span { display: block; height: 100%; background: linear-gradient(90deg, #9254ee, #eb91dc); transform: scaleX(var(--reading-progress, 0)); transform-origin: left; }
.guide-hero {
    max-width: 1120px; margin: 28px auto 0; padding: 64px 56px;
    text-align: left; overflow: hidden; border: 1px solid var(--border); border-radius: 22px;
    background: linear-gradient(90deg, rgba(19, 13, 36, .97) 5%, rgba(22, 14, 39, .91) 50%, rgba(18, 13, 30, .76)),
        url('castillo.jpg') center 40% / cover;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}
.guide-hero::before { background: radial-gradient(ellipse at 85% 20%, rgba(181, 91, 255, .22), transparent 65%); pointer-events: none; }
.guide-hero::after { content: '✦'; position: absolute; right: 46px; top: 24px; font-size: 140px; color: rgba(208, 160, 255, .1); line-height: 1; pointer-events: none; }
.guide-hero-content { max-width: 860px; }
.guide-eyebrow { display: inline-flex; padding: 6px 12px; border: 1px solid rgba(174, 133, 255, .26); border-radius: 6px; background: rgba(150, 89, 237, .09); font-size: .65rem; letter-spacing: 2px; margin-bottom: 20px; }
.guide-hero h1 { font-size: clamp(1.8rem, 4vw, 3.05rem); line-height: 1.22; letter-spacing: .5px; margin-bottom: 20px; text-shadow: none; }
.guide-hero p:not(.guide-eyebrow) { margin: 0; max-width: 670px; font-size: .98rem; color: #c6bfd3; line-height: 1.85; }
.guide-body { max-width: 1120px; padding: 34px 0 64px; }
.back-btn { margin-bottom: 24px; }
.guide-body strong { color: #f2eaff; }
.guide-body [id] { scroll-margin-top: 20px; }
.cat-nav, .rank-nav, .guide-chapters {
    position: sticky; top: 88px; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap;
    justify-content: flex-start; padding: 12px; margin: 0 0 28px;
    border: 1px solid var(--border); border-radius: 12px; background: rgba(17, 14, 29, .96);
    backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.cat-btn, .rank-nav-btn, .guide-chapters a, .ptab {
    font-family: 'Inter', sans-serif; font-size: .79rem; letter-spacing: .15px; text-transform: none;
    color: #c5bdd5; text-decoration: none; padding: 9px 15px; border-radius: 8px;
    border: 1px solid transparent; min-height: 42px; display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255, 255, 255, .025); transition: background .18s, border-color .18s, color .18s;
}
.cat-btn:hover, .rank-nav-btn:hover, .guide-chapters a:hover, .ptab:hover { color: #fff; background: rgba(142, 84, 231, .13); border-color: var(--border); }
.cat-btn.active, .guide-chapters a[aria-current="location"], .rank-nav-btn[aria-current="location"], .ptab.active { color: #f7edff; background: rgba(132, 78, 220, .26); border-color: rgba(186, 143, 255, .42); }
.cmd-section, .eco-section, .clan-section, .marry-section, .vote-section {
    padding: 26px; border: 1px solid var(--border); border-radius: 16px;
    background: linear-gradient(145deg, rgba(24, 19, 39, .92), rgba(14, 13, 24, .96));
    margin-bottom: 24px; box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
}
.section-header { align-items: flex-start; gap: 16px; padding-bottom: 20px; margin-bottom: 22px; }
.section-icon { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(156, 98, 237, .1); border: 1px solid var(--border); font-size: 1.35rem; }
.section-header .section-title { font-size: 1.02rem; line-height: 1.45; padding: 3px 0 0; margin: 0; border: 0; }
.section-desc { line-height: 1.65; margin-top: 5px; }
.guide-body > .section-title { font-size: 1.1rem; margin: 36px 0 18px; padding-bottom: 16px; }
.cmd-list { gap: 10px; }
.cmd-item { grid-template-columns: minmax(190px, 34%) minmax(0, 1fr); padding: 16px 18px; gap: 16px; border-radius: 11px; background: rgba(12, 11, 23, .7); align-items: center; }
.cmd-code, .code { display: inline-flex; justify-self: start; align-items: center; gap: 12px; max-width: 100%; padding: 7px 10px; white-space: normal; overflow-wrap: anywhere; background: rgba(156, 94, 225, .09); border-color: rgba(173, 111, 250, .2); color: #e5b8ff; font-size: .84rem; line-height: 1.65; }
.cmd-desc { font-size: .85rem; line-height: 1.75; }
.cmd-badge { display: inline-block; margin: 5px 0 0 5px; white-space: normal; font-family: 'Inter', sans-serif; font-size: .7rem; letter-spacing: 0; text-transform: none; color: #e8b1f3; }
.copy-command { flex-shrink: 0; width: 30px; height: 30px; border: 1px solid rgba(190, 140, 255, .16); border-radius: 6px; color: #c4a5e7; background: rgba(255, 255, 255, .03); cursor: pointer; font-size: 1rem; }
.copy-command:hover { background: rgba(185, 122, 255, .13); color: #fff; }
.copy-command.is-copied { color: #78e2b1; border-color: rgba(120, 226, 177, .4); }
.guide-copy-status { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; max-width: calc(100% - 32px); padding: 12px 20px; border: 1px solid var(--border-hover); border-radius: 12px; background: #211633; color: #f6edff; font-size: .85rem; box-shadow: 0 12px 40px #0008; }
.guide-copy-status:empty { display: none; }
.steps { gap: 12px; }
.steps::before { display: none; }
.step { padding: 24px; border: 1px solid var(--border); border-radius: 14px; gap: 22px; background: linear-gradient(115deg, rgba(27, 21, 43, .92), rgba(16, 14, 27, .93)); }
.step:last-child { border: 1px solid var(--border); }
.step-num { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(145deg, rgba(145, 80, 219, .25), rgba(97, 55, 157, .09)); border-color: rgba(189, 150, 255, .32); color: #dabaff; font-size: .85rem; }
.step-body { min-width: 0; padding-top: 5px; }
.step-title { font-size: 1rem; line-height: 1.55; }
.step-body p { font-size: .88rem; line-height: 1.85; }
.platform-tabs { padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: rgba(22, 18, 34, .85); width: fit-content; margin-bottom: 22px; }
.info-box, .tip-box, .warning-box, .gold-box, .coins-box { border-radius: 12px; border-color: rgba(181, 131, 246, .25); }
.tip-box, .warning-box { background: rgba(140, 87, 218, .065); padding: 20px; }
.info-box { padding: 18px; gap: 12px; }
.info-label { color: #c6b8da; }
.tip-box p, .warning-box { font-size: .86rem; line-height: 1.8; }
.discord-support { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 20px; border: 1px solid rgba(130, 127, 245, .38); border-radius: 13px; background: linear-gradient(110deg, rgba(88, 101, 242, .13), rgba(123, 61, 198, .08)); text-decoration: none; color: #f1efff; transition: border-color .2s, background .2s, transform .2s; }
.discord-support:hover { border-color: #a198ff; background: rgba(100, 89, 224, .18); transform: translateY(-2px); }
.discord-support-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(160, 157, 255, .28); border-radius: 12px; background: rgba(114, 109, 238, .12); font-size: 1.5rem; flex-shrink: 0; }
.discord-support-copy { display: grid; gap: 3px; }
.discord-support-label { font-size: .66rem; letter-spacing: 1.5px; text-transform: uppercase; color: #b7b0ff; }
.discord-support-copy strong { font-size: .95rem; }
.discord-support-copy > span:last-child { font-size: .79rem; color: #b9b1d0; }
.discord-support-arrow { margin-left: auto; font-size: 1.5rem; color: #cfc7ff; }
.info-cards, .roles-grid, .perk-grid, .mission-types, .reward-grid, .perks-grid { gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.info-card, .role-card, .perk-card, .reward-card, .reward-item, .mission-type { border-radius: 14px; background: linear-gradient(135deg, rgba(30, 22, 45, .87), rgba(16, 14, 28, .97)); border-color: var(--border); box-shadow: 0 8px 28px #00000012; }
.info-card, .role-card, .perk-card, .reward-card, .reward-item { padding: 24px 20px; }
.info-card-desc, .role-desc, .perk-card-desc, .reward-desc { font-size: .83rem; line-height: 1.8; }
.example-item { padding: 18px 20px; border-radius: 12px; background: rgba(20, 16, 33, .95); border-color: var(--border); }
.example-text { font-size: .85rem; line-height: 1.8; }
.example-reward { border-radius: 6px; }
.rank-section { border-radius: 16px; margin-bottom: 26px; background-color: rgba(19, 15, 31, .94); box-shadow: 0 16px 42px #00000016; }
.rank-section-header { padding: 28px; gap: 18px; }
.rank-big-name { font-size: clamp(1.15rem, 3vw, 1.6rem); line-height: 1.7; letter-spacing: 1px; }
.rank-big-sub { letter-spacing: 1.5px; }
.rank-badge-prev { display: inline-block; margin-left: 8px; font-family: 'Inter', sans-serif; letter-spacing: 0; text-transform: none; font-size: .73rem; padding: 3px 10px; }
.rank-section-body { padding: 26px 28px; }
.perk-item { border-radius: 11px; padding: 18px; background: rgba(11, 10, 19, .55); min-width: 0; }
.perk-title { font-size: .78rem; line-height: 1.55; }
.perk-desc { font-size: .82rem; line-height: 1.75; }
.perk-emoji { display: inline-flex; padding: 4px; width: 30px; flex-shrink: 0; justify-content: center; }
.coins-box { line-height: 1.8; }
.coins-text { font-size: .73rem; }
.buy-section { background: radial-gradient(ellipse at 50% 0, rgba(132, 67, 197, .15), transparent 70%), #151021; padding: 38px 28px; border-radius: 16px; }
.btn-primary { border-radius: 9px; background: linear-gradient(120deg, #8d43df, #a342c7); box-shadow: 0 6px 25px rgba(132, 67, 197, .18); }
.vote-sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-card { display: flex; align-items: flex-start; gap: 18px; border: 1px solid var(--border); border-radius: 14px; padding: 24px; background: linear-gradient(135deg, rgba(33, 22, 50, .88), rgba(13, 12, 24, .93)); text-decoration: none; color: var(--white); transition: transform .2s, border-color .2s; }
.guide-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.guide-card-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 11px; background: rgba(160, 99, 226, .12); border: 1px solid var(--border); font-size: 1.35rem; }
.guide-card-body { min-width: 0; }
.guide-card h3 { font-family: 'Cinzel', serif; font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.guide-card p { font-size: .83rem; line-height: 1.8; color: var(--muted); margin: 9px 0 18px; }
.guide-card-link { font-size: .78rem; font-weight: 600; color: #ceacff; }
.guide-related { margin-top: 44px; padding: 26px; border-top: 1px solid var(--border); }
.guide-related h2 { font-family: 'Cinzel', serif; font-size: .88rem; margin-bottom: 15px; color: #dac6f3; }
.guide-related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-related a { padding: 8px 12px; color: #bbb0ce; font-size: .79rem; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; }
.guide-related a:hover { color: #fff; background: rgba(140, 87, 218, .1); }
a:focus-visible, button:focus-visible { outline: 2px solid #cba1ff; outline-offset: 4px; }
@media (max-width: 1200px) {
    .guide-hero { margin-inline: 24px; }
    .guide-body { padding-inline: 24px; }
}
@media (max-width: 680px) {
    html { scroll-padding-top: 150px; }
    header { height: 68px; padding-inline: 16px; gap: 12px; }
    .nav-left { gap: 8px; }
    .nav-logo { font-size: .88rem; letter-spacing: 1px; }
    .nav-logo-img { width: 32px; height: 32px; }
    .nav-back { padding: 8px 10px; font-size: .72rem; letter-spacing: 0; }
    .guide-hero { margin: 18px 14px 0; padding: 34px 24px; border-radius: 16px; }
    .guide-hero::after { font-size: 80px; right: 12px; }
    .guide-hero h1 { font-size: 1.7rem; line-height: 1.4; }
    .guide-hero p:not(.guide-eyebrow) { font-size: .87rem; }
    .guide-body { padding: 24px 14px 40px; }
    .cat-nav, .rank-nav, .guide-chapters { top: 78px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #645176 transparent; padding: 9px; }
    .cat-btn, .rank-nav-btn, .guide-chapters a { flex-shrink: 0; white-space: nowrap; font-size: .75rem; padding: 8px 11px; }
    .cmd-section, .eco-section, .clan-section, .marry-section, .vote-section { padding: 20px 16px; }
    .section-title { font-size: .98rem; }
    .section-header { gap: 12px; }
    .section-icon { width: 38px; height: 38px; }
    .cmd-item { grid-template-columns: 1fr; padding: 15px; gap: 12px; }
    .cmd-code, .code { font-size: .8rem; }
    .step { padding: 20px 16px; gap: 14px; }
    .step-num { width: 36px; height: 36px; border-radius: 9px; font-size: .75rem; }
    .step-body { padding-top: 2px; }
    .step-title { font-size: .9rem; }
    .step-body p { font-size: .84rem; }
    .platform-tabs { width: 100%; }
    .ptab { flex: 1; justify-content: center; font-size: .74rem; padding: 8px 10px; }
    .info-box { padding: 14px 12px; }
    .discord-support { gap: 12px; padding: 16px 12px; }
    .discord-support-icon { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 9px; }
    .discord-support-copy strong { font-size: .84rem; }
    .discord-support-copy > span:last-child { font-size: .74rem; }
    .discord-support-arrow { font-size: 1.1rem; }
    .vote-sites { grid-template-columns: 1fr; }
    .guide-card { padding: 20px 16px; gap: 14px; }
    .rank-section-header, .rank-section-body { padding: 20px 16px; }
    .rank-big-icon { font-size: 1.8rem; }
    .rank-badge-prev { margin-left: 0; }
    .perks-grid { grid-template-columns: 1fr; }
    .example-item { flex-wrap: wrap; padding: 16px; gap: 10px; }
    .example-text { flex: 1; min-width: 0; }
    .example-reward { margin-left: 34px; }
    .coins-box { display: flex; font-size: .7rem; padding: 12px; }
    .guide-related { padding: 24px 4px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #particles-canvas { display: none; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
