
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #0a0a0a; color: #e0e0e0; font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.7; }

.container { max-width: 100%; padding: 0; }

/* Full-width hero (edge to edge) */
.hero { text-align: center; padding: 60px 20px 40px; background: linear-gradient(135deg,#120404,#0a0a0a 60%,#180606); border-bottom: 2px solid #8b0000; }
.hero h1 { font-size: 3.4em; color: #fff; text-shadow: 0 0 30px rgba(139,0,0,0.8); letter-spacing: 6px; font-family: 'Georgia', serif; }
.hero .subtitle { color: #8b0000; font-size: 1.1em; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }
.hero .stats { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero .stat-box { background: #1a1a1a; border: 1px solid #8b0000; border-radius: 8px; padding: 12px 20px; text-align: center; min-width: 110px; }
.hero .stat-box .num { color: #8b0000; font-size: 1.7em; font-weight: bold; }
.hero .stat-box .label { color: #888; font-size: 0.75em; text-transform: uppercase; }
.hero .cover-img { margin: 20px auto; max-width: 420px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 40px rgba(139,0,0,0.4); }
.hero .cover-img img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* Full-width sticky tab bar */
.tabs { position: sticky; top: 63px; z-index: 100; background: #111; border-bottom: 1px solid #333; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 10px 0; }
.tab-btn { background: #1a1a1a; color: #999; border: 1px solid #333; padding: 10px 22px; font-size: 0.9em; cursor: pointer; border-radius: 6px; transition: all 0.3s; font-family: inherit; white-space: nowrap; }
.tab-btn:hover { background: #2a1a1a; color: #ccc; border-color: #8b0000; }
.tab-btn.active { background: #8b0000; color: #fff; border-color: #8b0000; }

/* Pages - content centered at 1400px inside full-width page */
.page { display: none; padding: 0; }
.page.active { display: block; }
.page-inner { max-width: 1400px; margin: 0 auto; padding: 30px 20px; }
.back-btn { text-align: center; padding: 10px; }
.back-btn a { color: #8b0000; text-decoration: none; font-size: 0.9em; }

/* Sections */
.section { margin: 30px 0; padding: 25px; background: #111; border-radius: 12px; border: 1px solid #222; }
.section h2 { color: #8b0000; font-size: 1.9em; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #8b0000; text-transform: uppercase; letter-spacing: 2px; }
.section h3 { color: #c0c0c0; font-size: 1.35em; margin: 22px 0 12px; padding-left: 12px; border-left: 4px solid #8b0000; }
.section h4 { color: #d4af37; font-size: 1.1em; margin: 16px 0 8px; }
.section p { margin-bottom: 10px; }
.section ul, .section ol { margin-left: 22px; margin-bottom: 10px; }
.section li { margin-bottom: 6px; }

/* Steps */
.step { display: flex; gap: 12px; margin: 12px 0; padding: 12px; background: #1a1a1a; border-radius: 8px; border-left: 3px solid #444; align-items: flex-start; flex-wrap: wrap; }
.step:hover { border-left-color: #8b0000; }
.step-num { background: #8b0000; color: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.85em; flex-shrink: 0; }
.step-text { flex: 1; min-width: 200px; }

/* Tip & Warning */
.tip { background: rgba(0,221,255,0.05); border-left: 3px solid #00ddff; padding: 12px 16px; margin: 10px 0; border-radius: 4px; }
.tip strong { color: #00ddff; }
.warning { background: rgba(255,152,0,0.07); border-left: 3px solid #ff9800; padding: 12px 16px; margin: 10px 0; border-radius: 4px; }
.warning strong { color: #ff9800; }
.danger { background: rgba(196,30,58,0.08); border-left: 3px solid #c41e3a; padding: 12px 16px; margin: 10px 0; border-radius: 4px; }
.danger strong { color: #c41e3a; }

/* Puzzle & Collectible boxes */
.puzzle-box { background: #1a1a1a; border: 1px solid #d4af37; border-radius: 8px; padding: 15px; margin: 10px 0; }
.puzzle-title { color: #d4af37; font-weight: bold; margin-bottom: 5px; }
.puzzle-answer { color: #e0e0e0; }
.collectible-box { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 12px; margin: 8px 0; }
.collectible-box:hover { border-color: #8b0000; }
.collectible-title { color: #d4af37; font-weight: bold; margin-bottom: 4px; }
.collectible-desc { color: #aaa; font-size: 0.95em; }

/* Tables */
.word-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.9em; }
.word-table th { background: #8b0000; color: #fff; padding: 8px; text-align: left; }
.word-table td { background: #1a1a1a; padding: 8px; border: 1px solid #333; vertical-align: top; }
.word-table tr:hover td { background: #222; }
.word-table td.cat { color: #d4af37; font-weight: bold; }

/* Badges — one shared palette for every guide.
   Keep these in sync; guides must not redefine badge colours locally. */
.badge{display:inline-block;padding:2px 8px;border-radius:5px;font-size:.74em;font-weight:700;
  margin-right:5px;letter-spacing:.35px;border:1px solid transparent;vertical-align:middle;text-decoration:none}

/* pickups */
.badge-item{background:rgba(212,175,55,.18);color:#e8c96a;border-color:rgba(212,175,55,.38)}
.badge-key{background:rgba(33,150,243,.18);color:#7cc4fb;border-color:rgba(33,150,243,.40)}
.badge-file{background:rgba(150,110,220,.20);color:#c2a8f2;border-color:rgba(150,110,220,.42)}
.badge-weapon{background:rgba(196,30,58,.22);color:#ff8f9c;border-color:rgba(196,30,58,.45)}
.badge-armor{background:rgba(0,180,160,.16);color:#6fe0cf;border-color:rgba(0,180,160,.40)}

/* places and actions */
.badge-save{background:rgba(130,150,170,.20);color:#c2cede;border-color:rgba(130,150,170,.42)}
.badge-code{background:rgba(255,193,7,.18);color:#ffd45e;border-color:rgba(255,193,7,.42)}
.badge-partner{background:rgba(0,188,212,.16);color:#5fd8e8;border-color:rgba(0,188,212,.42)}
.badge-back{background:rgba(255,120,40,.16);color:#ffb27a;border-color:rgba(255,120,40,.42)}

/* fights, warnings, optional content */
.badge-boss{background:rgba(190,80,220,.18);color:#d9a2ea;border-color:rgba(190,80,220,.42)}
.badge-boss2{background:rgba(190,80,220,.18);color:#d9a2ea;border-color:rgba(190,80,220,.42)}
.badge-miss{background:rgba(200,40,40,.24);color:#ff9b9b;border-color:rgba(200,60,60,.50)}
.badge-hard{background:rgba(200,40,40,.24);color:#ff9b9b;border-color:rgba(200,60,60,.50)}
.badge-sq{background:rgba(90,190,110,.16);color:#8fe28f;border-color:rgba(90,190,110,.42)}
.badge-end{background:rgba(255,120,40,.16);color:#ffb27a;border-color:rgba(255,120,40,.42)}

/* clickable badges that jump to a table row */
a.badge{cursor:pointer}
a.badge:hover{filter:brightness(1.3)}

/* Boss boxes */
.boss-box { background: #1a1010; border: 2px solid #9c27b0; border-radius: 10px; padding: 16px; margin: 14px 0; }
.boss-title { color: #ce93d8; font-size: 1.2em; font-weight: bold; margin-bottom: 8px; }
.boss-strategy { color: #e0e0e0; font-size: 0.93em; }

/* Collapsible chapter sections */
.chapter-toggle { cursor: pointer; background: #2a1a1a; color: #fff; border: 1px solid #8b0000; border-radius: 8px; padding: 14px 20px; margin: 14px 0; font-size: 1.15em; font-weight: bold; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s; }
.chapter-toggle:hover { background: #3a2020; }
.chapter-toggle .toggle-icon { font-size: 0.8em; color: #d4af37; }
.chapter-content { display: none; padding: 10px 0; }
.chapter-content.open { display: block; }
.ch-badge { background: #8b0000; color: #fff; padding: 2px 10px; border-radius: 4px; font-size: 0.8em; margin-right: 6px; }
.ch-region { color: #888; font-size: 0.78em; font-weight: normal; }

/* Chapter navigation */
.chapter-nav { background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 14px; margin: 16px 0; text-align: center; }
.ch-nav-link { color: #8b0000; text-decoration: none; font-size: 0.88em; margin: 0 3px; }
.ch-nav-link:hover { color: #d4af37; text-decoration: underline; }
.ch-nav-current { color: #d4af37; font-weight: bold; font-size: 0.88em; margin: 0 3px; }

/* Navigation */
.nav-buttons { display: flex; justify-content: space-between; margin: 24px 0; padding: 15px 0; border-top: 1px solid #222; }
.nav-btn { background: #1a1a1a; color: #8b0000; border: 1px solid #8b0000; padding: 10px 24px; font-size: 0.9em; cursor: pointer; border-radius: 6px; transition: all 0.3s; font-family: inherit; }
.nav-btn:hover { background: #8b0000; color: #fff; }
.nav-btn.disabled { opacity: 0.3; cursor: default; pointer-events: none; }

/* Checklist */
.checklist { list-style: none; margin-left: 0; }
.checklist li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid #1a1a1a; }
.checklist li:before { content: "\2610"; position: absolute; left: 0; color: #8b0000; font-size: 1.2em; }

/* Footer */
.footer { text-align: center; padding: 30px 20px; color: #444; border-top: 2px solid #1a1a1a; }
.footer a { color: #8b0000; text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.9em; letter-spacing: 3px; }
    .hero .stats { gap: 6px; }
    .hero .stat-box { min-width: 80px; padding: 6px 10px; }
    .tab-btn { padding: 8px 12px; font-size: 0.76em; }
    .page-inner { padding: 15px 10px; }
}
.ls-jump{color:var(--accent-red,#c41e3a);font-weight:600;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:2px;cursor:pointer;} .ls-jump:hover{filter:brightness(1.25);}.tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:12px 0;border-radius:8px;}.tbl-wrap .word-table{margin:0;min-width:660px;}.word-table td.ans{color:#ff6b7a;font-weight:700;}.word-table td.cat{white-space:nowrap;}@media(max-width:768px){.tbl-wrap{box-shadow:inset -12px 0 12px -12px #000;}}@media(max-width:640px){.tbl-wrap{overflow:auto;box-shadow:none;}.tbl-wrap .word-table{min-width:0;}.word-table.rt,.word-table.rt tr,.word-table.rt td{display:block;width:100%;}.word-table.rt tr.hrow{display:none;}.word-table.rt tr{border:1px solid #3a2020;border-radius:8px;margin:12px 0;overflow:hidden;background:#151515;}.word-table.rt td{border:0;border-bottom:1px solid #262626;padding:10px 12px;}.word-table.rt td:last-child{border-bottom:0;}.word-table.rt td::before{content:attr(data-label);display:block;color:#d4af37;font-size:.68em;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:4px;opacity:.85;}.word-table.rt td.cat{background:#2a1010;white-space:normal;font-size:1.06em;}.word-table.rt td.cat::before{display:none;}.word-table.rt tr:hover td{background:inherit;}.word-table.rt tr:hover td.cat{background:#2a1010;}}
