body[data-guide-page] { overflow-wrap: anywhere; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.guide-nav a { color: var(--accent); text-underline-offset: .2em; }
.guide-section { scroll-margin-top: 20px; }
.guide-section h2 { margin: 0 0 14px; font-size: 1.13rem; color: var(--accent); }
.guide-section h3 { font-size: 1rem; margin: 0 0 6px; line-height: 1.6; }
.guide-section p { margin: 0; line-height: 1.9; }
.guide-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.guide-card { background: var(--panel, #fff); padding: 14px; border: 1px solid var(--brand-light); border-radius: 12px; }
.guide-steps { padding-left: 28px; margin: 0; }
.guide-steps li { padding: 8px 6px 14px; }
.guide-steps li::marker { color: var(--accent); font-weight: 700; }
.guide-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-controls label { display: grid; gap: 6px; min-width: 0; font-size: .9rem; }
.guide-controls input,.guide-controls select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; font: inherit; padding: 8px; border: 1px solid var(--brand-light); border-radius: 8px; background: #fff; color: var(--text-main); }
.guide-sort { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1/-1; }
.guide-sort button { min-height: 44px; padding: 6px 12px; border: 1px solid var(--brand-light); border-radius: 8px; background: #fff; color: var(--accent); cursor: pointer; font: inherit; font-size: .85rem; }
.guide-sort button.is-active { background: var(--brand-light); }
.guide-table { width: 100%; table-layout: fixed; }
.guide-table th,.guide-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; line-height: 1.75; }
.guide-table th:nth-child(n),.guide-table td:nth-child(n) { width: auto; }
#songs .guide-table th:nth-child(1) { width: 35%; }
#songs .guide-table th:nth-child(2) { width: 40%; }
#songs .guide-table th:nth-child(3) { width: 25%; }
#events .guide-table th:nth-child(1) { width: 70%; }
#events .guide-table th:nth-child(2) { width: 30%; }
#enemy-skills .guide-table th:nth-child(1) { width: 18%; }
#enemy-skills .guide-table th:nth-child(2) { width: 15%; }
#enemy-skills .guide-table th:nth-child(3) { width: 30%; }
#enemy-skills .guide-table th:nth-child(4) { width: 37%; }
#crystal-list .guide-table th:nth-child(1) { width: 25%; }
#crystal-list .guide-table th:nth-child(2) { width: 12%; }
#crystal-list .guide-table th:nth-child(3) { width: 43%; }
#crystal-list .guide-table th:nth-child(4) { width: 20%; }
.guide-list-card { padding: 14px; }
.guide-list-card dl,.guide-details dl { display: grid; gap: 4px; margin: 6px 0 0; }
.guide-list-card dt,.guide-details dt { font-size: .78rem; color: var(--text-muted); }
.guide-list-card dd,.guide-details dd { margin: 0 0 8px; line-height: 1.75; }
.guide-details { margin-top: 8px; }
.guide-details summary { cursor: pointer; color: var(--accent); padding: 8px 0; min-height: 44px; box-sizing: border-box; }
.guide-version { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--brand-light); }
.guide-version h4 { margin: 0 0 6px; font-size: .9rem; line-height: 1.6; }
@media(max-width:850px) { .guide-cards,.guide-controls { grid-template-columns: 1fr; } .guide-nav { gap: 10px; } }
