/* Legend Craft adventure modules — scoped to new pages, GPU-light and mobile-first */
:root{--lc-blue:#1877ee;--lc-cyan:#40dfff}
.lc-adventure-page{padding-bottom:45px}
.lc-adventure-page .container{max-width:1200px}
.lc-page-hero{position:relative;isolation:isolate;overflow:hidden;margin-top:30px;margin-bottom:28px;padding:40px clamp(18px,4vw,45px);border-radius:26px;border:1px solid var(--line);background:linear-gradient(125deg,rgba(243,250,255,.88),rgba(179,226,255,.45));box-shadow:var(--shadow)}
body.dark .lc-page-hero{background:linear-gradient(125deg,rgba(6,20,43,.92),rgba(12,58,106,.75))}
.lc-page-hero h1{font-size:clamp(2.2rem,4.5vw,4.5rem);line-height:1.3;letter-spacing:-.02em;margin:10px 0}
.lc-page-hero>p:not(.eyebrow){color:var(--muted);font-size:1.08rem;line-height:1.8;max-width:68ch;margin:10px 0}
.lc-hero-orb{position:absolute;z-index:-1;top:-50px;left:3%;font-size:17rem;color:var(--lc-cyan);opacity:.16;line-height:1}
.lc-breadcrumb{font-weight:800;color:var(--muted);margin-top:24px;font-size:.87rem}
.lc-breadcrumb a:hover{color:var(--primary)}
.lc-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.lc-module-card{display:flex;flex-direction:column;align-items:flex-start;padding:24px 22px;min-height:225px;border:1px solid var(--line);transition:transform .17s ease,border-color .17s ease;background:var(--surface);border-radius:24px}
.lc-module-card:hover{transform:translateY(-3px);border-color:var(--line-strong)}
.lc-module-card h2{font-size:1.35rem;margin:8px 0 6px}
.lc-module-card p{color:var(--muted);line-height:1.75;margin:0}
.lc-module-icon{height:62px;width:62px;border-radius:20px;background:linear-gradient(135deg,rgba(16,110,234,.15),rgba(64,223,255,.28));display:grid;place-items:center;font-size:2rem}
.lc-module-arrow{display:block;color:var(--primary);font-weight:900;margin-top:auto;padding-top:20px}
.lc-inline-panel{margin-top:22px}
.lc-inline-panel h2{margin:0 0 12px;font-size:1.35rem}
.lc-inline-panel p{color:var(--muted);line-height:1.8;margin:0 0 15px}
.lc-quick-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:22px 0}
.lc-quick-links a{padding:11px 15px;border-radius:15px;background:var(--surface);border:1px solid var(--line);font-weight:900}
.lc-hub-preview{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:28px auto 36px;padding:28px 30px;border-radius:24px;background:linear-gradient(100deg,rgba(75,159,255,.15),rgba(115,234,255,.16));border:1px solid var(--line);box-shadow:var(--shadow)}
.lc-hub-preview h2{font-size:clamp(1.55rem,2.4vw,2.3rem);margin:5px 0}
.lc-hub-preview p{color:var(--muted);line-height:1.85;max-width:65ch;margin:0}
.lc-hub-preview-links{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end;min-width:210px}
.lc-page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.lc-panel{min-width:0;padding:25px;background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}
.lc-grid-wide{grid-column:1/-1}
.lc-section-title{margin:0 0 20px}
.lc-section-title h2{font-size:clamp(1.26rem,2.3vw,1.65rem);margin:0 0 8px}
.lc-section-title p{color:var(--muted);margin:0;line-height:1.8;font-size:.95rem}
.lc-datalist{display:grid;gap:10px;margin:14px 0}
.lc-empty{padding:20px;border:1px dashed var(--line-strong);border-radius:15px;color:var(--muted);background:rgba(29,150,255,.05);line-height:1.8;text-align:center;font-weight:750}
.lc-data-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--surface-strong)}
.lc-data-row strong{display:block;font-size:1rem}
.lc-data-row small{display:block;margin-top:4px;color:var(--muted);line-height:1.6}
.lc-pill{font-size:.78rem;font-weight:900;padding:7px 11px;border-radius:999px;color:var(--primary);border:1px solid var(--line);background:var(--card)}
.lc-note{font-size:.86rem;line-height:1.8;color:var(--muted)}.lc-note a{color:var(--primary);text-decoration:underline}
.lc-note code,.lc-compare code{font-family:Consolas,monospace;direction:ltr;unicode-bidi:isolate;font-size:.86rem}
.lc-btns{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}
.lc-duel-scores{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lc-duel-scores>div{display:flex;justify-content:space-between;align-items:center;padding:18px;border-radius:16px;border:1px solid var(--line);background:var(--surface-strong)}
.lc-duel-scores strong{font-size:1.25rem}
.lc-duel-bars{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 20px}
.lc-duel-bars>div{height:14px;border-radius:999px;background:rgba(46,79,119,.18);overflow:hidden}
.lc-duel-bars span{display:block;width:100%;height:100%;background:linear-gradient(90deg,#169ef5,#6aeafa);transition:width .2s}
.lc-duel-bars>div+div span{background:linear-gradient(90deg,#f97373,#fbac71)}
.lc-log{color:var(--text);font-weight:800;line-height:1.8;padding:14px 16px;border-radius:14px;background:rgba(32,146,255,.08);border:1px solid var(--line);margin-top:14px}
.lc-bracket{display:flex;gap:10px;overflow:auto;margin:0 0 18px;min-height:170px;padding:10px 0}
.lc-bracket-round{min-width:130px;flex:1;display:grid;gap:10px;align-content:center}
.lc-bracket-slot{background:var(--surface-strong);border:1px solid var(--line);border-radius:12px;line-height:1.7;padding:12px;color:var(--muted);font-size:.86rem}
.lc-spotlight{display:grid;grid-template-columns:minmax(0,1.1fr) 1fr;gap:24px;align-items:center}
.lc-spotlight img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:16px;border:1px solid var(--line)}
.lc-spotlight h3{font-size:1.55rem}.lc-spotlight p{color:var(--muted);line-height:1.8}
.lc-splitter{height:1px;background:var(--line);margin:23px 0}
.lc-small-form{display:grid;gap:13px}
.lc-small-form label,.lc-grid-form label{display:grid;gap:8px;font-size:.93rem;font-weight:850}
#bounty-image-field[hidden]{display:none}
.lc-small-form input,.lc-small-form select,.lc-small-form textarea,.lc-grid-form input,.lc-grid-form select,.lc-panel>input[type=search],.lc-field-inline select,.lc-setting-row select{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-strong);color:var(--text);font:inherit;min-width:0}
.lc-small-form input:focus,.lc-small-form textarea:focus,.lc-small-form select:focus,.lc-grid-form input:focus{outline:2px solid var(--line-strong);outline-offset:2px}
.lc-compass{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.lc-compass a{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;font-size:1.5rem;border-radius:15px;background:var(--surface-strong);padding:14px;border:1px solid var(--line);transition:transform .16s}
.lc-compass a:hover{transform:translateY(-2px)}
.lc-compass b{font-size:.87rem;text-align:center}
.lc-atlas-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.lc-atlas-entry{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface-strong);cursor:pointer;padding:0;color:var(--text);text-align:inherit;font:inherit}
.lc-atlas-entry img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.lc-atlas-entry span{display:block;padding:12px;font-weight:900}
.lc-lightbox{position:fixed;inset:10% 6%;max-height:80vh;width:min(100%,960px);border-radius:18px;border:1px solid var(--line);background:var(--surface-strong);color:var(--text);padding:16px;box-shadow:0 20px 70px #0009}
.lc-lightbox::backdrop{background:#051326c8}.lc-lightbox img{max-width:100%;max-height:62vh;object-fit:contain;margin:auto}
.lc-lightbox button{float:left;cursor:pointer;font-size:25px;background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:9px}
.lc-timeline{display:grid;gap:12px}.lc-timeline-item{border-right:4px solid var(--primary);padding:12px 18px;border-radius:9px;background:var(--surface-strong)}.lc-timeline-item p{color:var(--muted)}
.lc-calendar-head{display:flex;justify-content:center;align-items:center;gap:22px;margin-bottom:16px}
.lc-icon-button{border:1px solid var(--line);background:var(--surface-strong);color:var(--text);border-radius:10px;padding:10px 15px;cursor:pointer}
.lc-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;direction:rtl}
.lc-calendar>div{min-height:43px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--surface-strong);border:1px solid var(--line);font-size:.85rem}
.lc-calendar>div.lc-dow{min-height:35px;border-color:transparent;background:transparent;font-weight:850;color:var(--muted)}
.lc-calendar>div.lc-has-event{background:linear-gradient(135deg,rgba(15,94,215,.4),rgba(61,229,255,.2));border:2px solid var(--primary);font-weight:900}
.lc-search-results{display:grid;gap:8px;margin-top:14px;max-height:490px;overflow:auto}.lc-search-item{display:flex;flex-direction:column;gap:4px;padding:13px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-strong)}.lc-search-item b{color:var(--primary)}.lc-search-item span{color:var(--muted);font-size:.86rem}
.lc-invite-card{min-height:230px;padding:26px;border-radius:18px;background:linear-gradient(135deg,#061b39,#144987 65%,#0c9aca);color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:12px;overflow:hidden}
.lc-invite-card>div{letter-spacing:.14em;font-weight:900;font-size:1.25rem}
.lc-invite-card strong{font-size:1.7rem}.lc-invite-card .lc-invite-ip{font-family:Consolas,monospace;direction:ltr;font-size:clamp(.9rem,2vw,1.25rem);font-weight:900;border:1px solid #65dafa88;border-radius:12px;padding:12px;background:#071c3c55}
.lc-invite-card small{opacity:.85}.lc-title-preview{margin:14px 0;padding:17px;text-align:center;font-size:1.3rem;font-weight:900;color:var(--primary);border:1px solid var(--line);border-radius:14px;background:var(--surface-strong)}
.lc-setting-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:17px 0;border-bottom:1px solid var(--line)}
.lc-setting-row:last-child{border-bottom:0}.lc-setting-row h3{margin:0 0 5px}.lc-setting-row p{color:var(--muted);line-height:1.7;margin:0}
.lc-setting-row select{width:auto;min-width:180px}.lc-switch{display:flex;align-items:center;gap:10px;font-weight:900;white-space:nowrap}
.lc-chest{font-size:5rem;display:flex;justify-content:center;padding:20px;line-height:1.1}.lc-wheel{min-height:140px;border:2px dashed var(--line-strong);background:radial-gradient(circle,rgba(36,169,255,.15),transparent 65%);border-radius:20px;margin:15px 0;display:grid;place-items:center;text-align:center;padding:22px;font-weight:900;color:var(--text);font-size:1.2rem}
.lc-field-inline{display:flex;align-items:center;gap:10px;margin:12px 0;font-weight:850}.lc-field-inline select{flex:1;max-width:350px}
.lc-memory-stats{display:flex;justify-content:space-between;gap:10px;color:var(--primary);font-weight:900;margin-bottom:12px}
.lc-memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.lc-memory-card{width:100%;aspect-ratio:1/1;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,var(--surface-strong),rgba(19,130,236,.18));color:var(--text);font-size:2.3rem;cursor:pointer}
.lc-memory-card[disabled]{opacity:.7;cursor:default}
.lc-achievements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.lc-achievement{padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--surface-strong);color:var(--muted)}.lc-achievement.unlocked{border-color:var(--primary);background:rgba(35,156,255,.09);color:var(--text)}
.lc-grid-form{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:15px 0}.lc-compare{overflow-x:auto}.lc-compare table{width:100%;border-collapse:collapse;text-align:right}.lc-compare td,.lc-compare th{padding:11px;border-bottom:1px solid var(--line)}.lc-compare th{background:var(--card);color:var(--text)}
.lc-crafting-grid{display:grid;grid-template-columns:repeat(3,72px);gap:5px;margin:18px auto;justify-content:center}
.lc-crafting-cell{height:72px;border:2px solid #4b729b;background:linear-gradient(140deg,#283a56,#12223c);border-radius:8px;display:grid;place-items:center;color:#fff;font-size:1.9rem}.lc-crafting-cell span{font-size:.68rem;text-align:center;display:block}
.lc-ordered{display:grid;gap:12px;padding-right:23px;color:var(--text);line-height:1.85}.lc-ordered li{padding-right:6px}.lc-ordered a{color:var(--primary);text-decoration:underline}
.lc-tabs{display:flex;flex-wrap:wrap;gap:10px}.lc-copy{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}.lc-copy code{display:inline-flex;align-items:center;direction:ltr;border-radius:13px;background:var(--surface-strong);border:1px solid var(--line);padding:13px 18px;font-weight:900;color:var(--primary)}
/* performance preferences */
body.lc-perf-light .energy-particle{display:none!important}
body.lc-perf-light .lc-module-card:hover{transform:none}
body.lc-perf-light .bg-glow{display:none}
body.lc-text-large{font-size:112%}
@media(max-width:1120px){.lc-hub-preview{flex-direction:column;align-items:stretch}.lc-hub-preview-links{justify-content:flex-start}.lc-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.lc-page-hero{padding:28px 19px;margin-top:14px}.lc-page-grid,.lc-module-grid,.lc-spotlight,.lc-grid-form{grid-template-columns:1fr}.lc-panel{padding:19px 16px}.lc-atlas-grid{grid-template-columns:1fr 1fr}.lc-spotlight img{aspect-ratio:16/10}.lc-setting-row{align-items:stretch;flex-direction:column;gap:10px}.lc-setting-row select{width:100%}.lc-hub-preview{margin:18px auto 25px;padding:20px}.lc-hero-orb{opacity:.06}.lc-duel-scores strong{font-size:1rem}}
@media(max-width:450px){.lc-compass{grid-template-columns:repeat(2,1fr)}.lc-atlas-grid{grid-template-columns:1fr}.lc-memory-grid{gap:6px}.lc-memory-card{border-radius:10px;font-size:1.8rem}.lc-duel-scores{grid-template-columns:1fr}.lc-duel-bars{grid-template-columns:1fr}.lc-achievements{grid-template-columns:1fr}.lc-invite-card{padding:16px}.lc-page-hero h1{font-size:2rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

.lc-clan-logo-preview{display:grid;justify-items:center;gap:8px;margin:18px 0;padding:24px;background:linear-gradient(135deg,#071a33,#153e72);border:1px solid #38b8ff6e;border-radius:18px;color:#fff;text-align:center}
#clan-logo-shield{display:grid;place-items:center;width:120px;height:134px;clip-path:polygon(50% 0%,95% 16%,95% 70%,50% 100%,5% 70%,5% 16%);background:linear-gradient(145deg,var(--clan-color,#128cf1),#07172f);border-radius:16px;font-size:2.8rem}
.lc-clan-logo-preview h3{margin:4px 0;font-size:1.6rem;letter-spacing:.1em}
@media(max-width:760px){
  .site-header .navbar{gap:7px;padding:9px 12px}
  .site-header .brand img{width:38px;height:38px}
  .site-header .brand{font-size:.95rem}
  .site-header .navlinks{order:3;display:flex;width:100%;overflow-x:auto;overscroll-behavior-inline:contain;flex-wrap:nowrap;white-space:nowrap;justify-content:flex-start;padding:4px 0 2px;scrollbar-width:thin}
  .site-header .navlinks a{flex:0 0 auto;padding:8px 13px}
  .site-header .nav-actions{gap:2px}
  .site-header .nav-actions .theme-toggle{font-size:.78rem;padding:8px 6px}
  .site-header .nav-actions .disc-btn{font-size:.78rem;padding:8px 11px}
}

/* New armory dropdown & hub link */

/* Light armory directory on the home page and a separate photo encyclopedia. */
.armory-quick-directory{max-width:1050px;margin:0 auto;overflow:hidden;border:1px solid var(--line)}
.armory-quick-directory>summary{list-style:none;padding:20px 24px;display:flex;align-items:center;gap:16px;cursor:pointer;background:linear-gradient(115deg,rgba(55,173,253,.12),rgba(255,255,255,.05));}
.armory-quick-directory>summary::-webkit-details-marker{display:none}
.armory-menu-symbol{font-size:1.8rem;display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,rgba(9,74,158,.14),rgba(38,178,247,.14));flex-shrink:0}
.armory-summary-text{display:grid;gap:5px;flex:1}.armory-summary-text strong{font-size:1.15rem}.armory-summary-text small{color:var(--muted);font-size:.85rem}
.armory-summary-arrow{font-size:1.6rem;color:var(--primary);transition:transform .2s}
.armory-quick-directory[open] .armory-summary-arrow{transform:rotate(180deg)}
.armory-quick-list{padding:8px 20px 20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.armory-quick-item{display:flex;gap:12px;align-items:center;min-width:0;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-strong);transition:border-color .15s,transform .15s}
.armory-quick-item:hover,.armory-quick-item:focus-visible{border-color:var(--primary);transform:translateY(-1px)}
.armory-quick-item>span:nth-child(2){display:grid;gap:2px;min-width:0;flex:1}
.armory-quick-item b{font-size:.86rem;white-space:normal;overflow-wrap:anywhere}
.armory-quick-item small{font-size:.75rem;color:var(--muted)}
.armory-quick-icon{font-size:1.25rem}.armory-item-arrow{color:var(--primary)}
.armory-menu-footer{text-align:center;padding:0 18px 22px}
.lc-module-weapons{border-color:var(--line-strong)!important}
.lc-module-weapons .lc-module-icon{background:rgba(31,158,245,.13)}

.lc-rank-comparison {margin-bottom: 24px}
.lc-rank-comparison .lc-section-title h3 {margin: 0;font-size: 1.35rem}
.lc-rank-comparison tbody th {background: transparent;font-weight: 400}
