/* September 2026: illustrated wiki and accessible navigation. */
html { scroll-padding-top: 92px; }
body { font-size: 16px; }
.main { min-width: 0; padding: 44px 44px 72px; }
.main p, .main li { overflow-wrap: anywhere; }
.skip-wiki { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 12px 18px; background: var(--surface); color: var(--accent); }
.skip-wiki:focus { top: 10px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.brand small { font: 700 10px/1 Manrope, sans-serif; letter-spacing: .16em; color: var(--muted); border-left: 1px solid var(--border); padding-left: 10px; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.top-actions .wiki-download { display: inline-flex; align-items: center; gap: 7px; }
.ui-icon { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; color: var(--green); }
.top-actions .ui-icon { width: 18px; height: 18px; flex-basis: 18px; }
.illustrated-head { display: grid; grid-template-columns: minmax(0,1fr) 128px; align-items: center; gap: 28px; }
.illustrated-head h1 { max-width: 700px; font-size: clamp(30px,3vw,42px); }
.illustrated-head p { font-size: 17px; margin-bottom: 0; }
.guide-art { width: 128px; height: 128px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(75,31,109,.16)); }
.main > .wiki-world-hero, .dark .main > .wiki-world-hero { position: relative; overflow: hidden; min-height: 360px; padding: 38px; background: linear-gradient(90deg,rgba(17,10,30,.95),rgba(17,10,30,.82) 55%,rgba(17,10,30,.22)),url('ashenro-reborn-world-bg.webp') center/cover; }
.main > .wiki-world-hero h1, .dark .main > .wiki-world-hero h1 { color: #fff; -webkit-text-fill-color: #fff; background: none; max-width: 650px; font-size: clamp(32px,3.5vw,48px); }
.wiki-world-hero p { color: #e5ddec; max-width: 580px; }
.wiki-world-hero .eyebrow { color: #7fe8ba; }
.wiki-world-hero .btn:not(.primary) { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.fresh-note { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 17px 20px; background: var(--green2); border: 1px solid var(--border); border-radius: 12px; font-size: 14px; }
.fresh-note span { flex: 1; min-width: 0; }
.fresh-note b { display: block; color: var(--green); }
.fresh-note a { font-weight: 700; color: var(--green); }
.stat-row { margin-bottom: 42px; }
.card-art { display: block; width: 84px; height: 84px; object-fit: contain; margin: -4px 0 8px; }
.card > .ui-icon { width: 34px; height: 34px; margin: 3px 0 12px; }
.card { align-content: start; }
.card small { color: var(--muted); }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.jump-links a { display: block; padding: 7px 11px; font-size: 13px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--accent); }
.jump-links a:hover { border-color: var(--green); }
.guide-section { padding-bottom: 32px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.guide-section h2 { display: flex; align-items: flex-start; gap: 12px; line-height: 1.3; }
.guide-section h2 .ui-icon { margin-top: 4px; }
.guide-section h3 { font: 700 19px/1.4 Manrope, sans-serif; margin-top: 28px; }
.guide-section p, .guide-section li { font-size: 16px; line-height: 1.75; color: var(--text); }
.guide-section li { margin-bottom: 8px; }
.guide-section a, .callout a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.guide-section strong { color: var(--text); }
.table-scroll { overflow-x: auto; max-width: 100%; margin: 22px 0; border: 1px solid var(--border); border-radius: 12px; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 570px; font-size: 14px; background: var(--surface); }
.table-scroll td, .table-scroll th { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.table-scroll th { font-weight: 700; background: var(--accent2); }
.table-scroll tr:last-child td { border-bottom: 0; }
.download-hero { display: flex; align-items: center; gap: 22px; padding: 28px; border-radius: 16px; background: linear-gradient(110deg,#562b9f,#157454); color: #fff; box-shadow: var(--shadow); margin-bottom: 38px; }
.download-hero .ui-icon { color: #adffda; width: 40px; height: 40px; flex-basis: 40px; }
.download-hero span { flex: 1; }
.download-hero strong { display: block; font: 800 22px/1.3 Manrope,sans-serif; }
.download-hero small { color: #dcebe5; display: block; margin-top: 7px; font-size: 14px; }
.download-hero b { font-size: 26px; }
.access-tag { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin-bottom: 5px; }
.command-table { grid-template-columns: 1fr; margin-bottom: 44px; }
.command-table > div { grid-template-columns: 220px minmax(0,1fr); }
.command-table code { overflow-wrap: anywhere; }
.world-figure { margin: 0 0 38px; border-radius: 15px; overflow: hidden; background: #130d20; }
.world-figure img { display: block; width: 100%; height: 260px; object-fit: cover; }
.world-figure figcaption { padding: 10px 18px; color: #d3c7e2; font-size: 12px; }
.community-panel { display: flex; gap: 28px; align-items: center; background: linear-gradient(115deg,var(--accent2),var(--green2)); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.community-panel p { color: var(--muted); }
.community-panel h2 { font-size: 25px; }
.actions { flex-wrap: wrap; }
footer { gap: 22px; flex-wrap: wrap; }
footer > div:last-child { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { margin: 0; }
.nav-policy { border: 1px solid var(--border); margin-top: 14px; }
@media (min-width:851px) and (max-width:1100px) { .main { padding: 32px 24px; } .cards.four { grid-template-columns: repeat(2,minmax(0,1fr)); } .stat-row { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:850px) { .top-actions .wiki-download { display: inline-flex; } .top-actions { gap: 14px; } .topbar { padding: 0 18px; } .main { padding: 30px 22px 60px; } .main > .wiki-world-hero { padding: 28px; } .fresh-note { flex-wrap: wrap; } .fresh-note a { margin-left: 38px; } }
@media (max-width:520px) { .brand { font-size: 17px; gap: 7px; } .brand small { display: none; } .top-actions { gap: 10px; } .top-actions .wiki-download { font-size: 13px; } .mobile-menu { margin-right: 10px; } .main { padding: 25px 16px 50px; } .illustrated-head { grid-template-columns: minmax(0,1fr) 70px; gap: 12px; } .illustrated-head .guide-art { width: 70px; height: 70px; } .illustrated-head h1 { font-size: 29px; } .illustrated-head .eyebrow { font-size: 9px; } .guide-section h2 { font-size: 23px; } .stat-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .stat-row b { font-size: 24px; } .stat-row div { padding: 14px; } .stat-row span { font-size: 12px; } .fresh-note { padding: 14px; } .download-hero { padding: 20px; gap: 14px; } .download-hero strong { font-size: 18px; } .download-hero .ui-icon { width: 28px; height: 28px; flex-basis: 28px; } .command-table > div { grid-template-columns: 1fr; } .community-panel { flex-direction: column; text-align: center; padding: 23px; gap: 12px; } .community-panel .actions { justify-content: center; } .world-figure img { height: 200px; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none!important; animation: none!important; } }

/* Balanced page flow and the level-by-level field guide. */
.main { align-self: start; margin: 0 auto; }
.main > .section { width: 100%; }
.cards > .card { min-width: 0; }
.level-intro { margin-bottom: 28px; padding: 30px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(110deg,var(--accent2),var(--green2)); }
.level-intro h1 { margin-top: 8px; }
.level-intro .guide-art { width: 128px; height: 128px; }
.level-route { display: grid; gap: 22px; }
.level-stop { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 26px; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; scroll-margin-top: 90px; }
.level-marker { display: flex; align-items: center; flex-direction: column; gap: 8px; text-align: center; padding: 18px 8px; align-self: start; background: var(--accent2); border-radius: 12px; color: var(--accent); }
.level-marker .ui-icon { width: 30px; height: 30px; margin-bottom: 4px; color: var(--accent); }
.level-marker span { font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.level-marker strong { font: 800 22px/1.2 Manrope,sans-serif; white-space: nowrap; }
.level-stop h2 { font: 800 23px/1.3 Manrope,sans-serif; margin: 0 0 12px; }
.level-stop p { margin: 0 0 12px; line-height: 1.75; color: var(--text); }
.level-stop p:last-child { margin-bottom: 0; }
.level-stop a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.level-stop code { font-size: .9em; white-space: normal; }
.route-note { margin: 28px 0; padding: 20px 24px; border-left: 3px solid var(--green); background: var(--green2); border-radius: 0 12px 12px 0; }
.route-note p { margin: 0; line-height: 1.7; }
.level-promo { display: flex; align-items: center; gap: 24px; padding: 26px; border-radius: 16px; border: 1px solid var(--border); background: var(--accent2); }
.level-promo img { flex: 0 0 100px; width: 100px; height: 100px; object-fit: contain; }
.level-promo h2 { margin: 5px 0 10px; }
.level-promo p { margin: 0 0 14px; }
@media(max-width:600px) {
 .level-intro { padding: 22px; }
 .level-intro .guide-art { width: 70px; height: 70px; }
 .level-stop { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
 .level-marker { flex-direction: row; padding: 10px 14px; gap: 10px; justify-self: start; }
 .level-marker .ui-icon { width: 24px; height: 24px; margin: 0; }
 .level-marker strong { font-size: 20px; }
 .level-promo { flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px; }
}

.guide-section .level-callout { display: block; }
