/* tailsxlab.com/guide/ — player guide pages (tools/site/guide.mjs); builds on site.css (palette, header, glass, buttons). */
.g-main { padding: calc(92px + env(safe-area-inset-top)) 0 clamp(56px, 8vw, 96px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; font-size: 14px; color: var(--mute); }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--gold2); }
.crumbs span[aria-hidden] { opacity: .5; }
.g-head { max-width: 820px; margin: 0 auto clamp(26px, 4vw, 44px); text-align: center; }
.g-head h1 { font-size: clamp(28px, 4.2vw, 46px); }
.g-lead { color: var(--mute); font-size: 17px; }
.g-lead.small { max-width: 820px; margin: 0 auto 22px; text-align: center; font-size: 16px; }
.g-h2 { margin: clamp(40px, 6vw, 64px) 0 18px; font-size: clamp(24px, 3vw, 32px); text-align: center; scroll-margin-top: 90px; }
.g-note { padding: 12px 16px; color: #cfe; font-size: 15px; background: rgba(47, 196, 196, .08); border: 1px solid rgba(47, 196, 196, .28); border-radius: 12px; }
.g-note b { color: #fff; }

/* ---------------------------------------------------------------- hub */
.hub-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hub-card { display: flex; flex-direction: column; gap: 6px; height: 100%; color: var(--ink); transition: transform .2s, border-color .2s; }
.hub-card:hover { color: var(--ink); transform: translateY(-3px); border-color: rgba(240, 190, 90, .55); }
.hub-card .ico-img { width: 56px; height: 56px; margin-bottom: 6px; }
.hub-card .ico-img img { width: 56px; height: 56px; display: block; }
.hub-card b { font-size: 20px; color: var(--gold2); font-weight: 600; }
.hub-card span:last-child { color: var(--mute); font-size: 15px; }
.ch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ch-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; color: var(--ink); height: 100%; transition: transform .2s, border-color .2s; }
.ch-card:hover { color: var(--ink); transform: translateY(-3px); border-color: rgba(47, 196, 196, .5); }
.ch-card img { width: 100%; aspect-ratio: 640 / 150; margin: -4px 0 6px; }
.ch-card b { font-weight: 600; }
.ch-card small { color: var(--mute); font-size: 13.5px; }

/* ---------------------------------------------------------------- start / systems: contents + sections */
.g-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.g-toc { position: sticky; top: 90px; }
.g-toc details { padding: 14px 10px 10px; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; }
.g-toc summary { padding: 0 8px 8px; font-weight: 600; color: var(--gold2); cursor: pointer; list-style: none; }
.g-toc summary::-webkit-details-marker { display: none; }
.g-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.g-toc li { counter-increment: t; }
.g-toc a { display: block; padding: 6px 10px; color: var(--mute); font-size: 14.5px; line-height: 1.4; border-radius: 9px; }
.g-toc a::before { content: counter(t) '. '; color: var(--teal2); }
.g-toc a:hover, .g-toc a.cur { color: #fff; background: rgba(255, 255, 255, .07); }
.g-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.g-sec { scroll-margin-top: 86px; padding: clamp(18px, 3vw, 30px); }
.g-sec h2 { font-size: clamp(22px, 2.6vw, 28px); color: var(--gold2); }
.g-sec h3 { margin-top: 1.2em; font-size: 18px; color: #fff; }
.g-sec p, .g-sec li { color: #c9d2df; font-size: 15.5px; }
.g-sec p { margin: 0 0 .9em; }
.g-sec b { color: #fff; font-weight: 600; }
.g-sec-lead { font-size: 16.5px !important; color: var(--ink) !important; }
.g-list { margin: 0 0 1em; padding-left: 1.3em; }
.g-list li { margin-bottom: .35em; }
.g-list li::marker { color: var(--teal2); }
.g-table { margin: 0 0 1em; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.g-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.g-table th, .g-table td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.g-table thead th { color: var(--gold2); font-weight: 600; background: rgba(255, 255, 255, .04); white-space: nowrap; }
.g-table tbody tr:last-child td { border-bottom: 0; }
.g-table td { color: #c9d2df; }
.g-table td:first-child { color: #fff; }

/* ---------------------------------------------------------------- walkthrough index */
.wt-tools { position: sticky; top: 76px; z-index: 5; display: grid; gap: 12px; margin-bottom: 18px; padding: 14px; background: rgba(12, 17, 28, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.wt-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px; }
.wt-search:focus-within { border-color: var(--teal2); }
.wt-search .ico { color: var(--mute); }
.wt-search input { flex: 1; min-width: 0; height: 100%; color: var(--ink); font: 400 16px var(--font); background: none; border: 0; outline: 0; }
.wt-search input::placeholder { color: #7f8aa0; }
.wt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wt-chip { padding: 4px 12px; font: 600 13.5px/1.6 var(--font); color: var(--mute); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.wt-chip:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.wt-chip[aria-pressed='true'] { color: #2a1406; background: linear-gradient(180deg, #ffe7a2, var(--gold)); border-color: transparent; }
.wt-count { margin: 0; font-size: 13.5px; color: var(--mute); }
.wt-note { margin-bottom: 22px; }
.wt-group { margin-bottom: 26px; }
.wt-h { margin: 0 0 10px; font-size: 20px; }
.wt-h a { color: var(--gold2); }
.wt-h a:hover { color: #fff; }
.wt-chno { color: var(--teal2); margin-right: 4px; }
.wt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.wt-row a { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-areas: 'img txt meta'; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; color: var(--ink); background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid var(--line); border-radius: 14px; position: relative; transition: border-color .2s, background .2s; }
.wt-row a:hover { color: var(--ink); border-color: rgba(240, 190, 90, .5); background: rgba(240, 190, 90, .06); }
.wt-row img { grid-area: img; width: 88px; aspect-ratio: 132 / 87; object-fit: cover; border-radius: 9px; }
.wt-no { position: absolute; left: 4px; top: 4px; padding: 0 7px; font: 600 12.5px/1.6 var(--font); color: #2a1406; background: var(--gold); border-radius: 8px 0 8px 0; }
.wt-txt { grid-area: txt; display: grid; min-width: 0; }
.wt-txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-txt small { color: var(--mute); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wt-meta { grid-area: meta; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12.5px; color: var(--mute); white-space: nowrap; }
.wt-empty { padding: 30px; text-align: center; color: var(--mute); }

/* type chips */
.chip.t-event { color: #d7b8ff; background: rgba(170, 120, 255, .12); border-color: rgba(170, 120, 255, .4); }
.chip.t-pvp { color: #ffb4a8; background: rgba(255, 110, 90, .1); border-color: rgba(255, 110, 90, .38); }
.chip.t-raid, .chip.t-dungeon { color: var(--gold2); background: rgba(240, 190, 90, .1); border-color: rgba(240, 190, 90, .38); }

/* ---------------------------------------------------------------- chapter pages + mission cards */
.ch-head { max-width: 900px; }
.ch-banner { display: block; width: min(640px, 100%); margin: 0 auto 6px; filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .55)); }
.ch-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.ch-facts li { padding: 4px 14px; font-size: 14.5px; color: var(--mute); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; }
.ch-facts b { color: #fff; font-weight: 600; }
.ch-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ch-jump a { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; font-size: 14px; color: var(--ink); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; }
.ch-jump a:hover { border-color: var(--gold); color: #fff; }
.ch-jump b { color: var(--gold2); font-weight: 600; }
.ch-jump-wrap { margin: -8px 0 10px; }
.m-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-bottom: 18px; padding: clamp(14px, 2vw, 22px); scroll-margin-top: 84px; }
.m-card:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 190, 90, .18); }
.m-media { align-self: start; position: sticky; top: 90px; }
.m-media img { display: block; width: 100%; aspect-ratio: 360 / 236; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.m-no { position: absolute; left: 10px; bottom: 10px; padding: 1px 12px; font: 600 17px/1.6 var(--font); color: #2a1406; background: linear-gradient(180deg, #ffe7a2, var(--gold)); border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.m-body { min-width: 0; }
.m-head h2 { margin-bottom: 8px; font-size: clamp(21px, 2.4vw, 26px); }
.m-body .m-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.m-meta li { display: inline-flex; align-items: center; padding: 2px 11px; font-size: 13.5px; line-height: 1.6; color: #dfe6ef; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px; }
.m-meta li.chip { font-weight: 600; font-size: 12.5px; }
.m-meta .m-map::before { content: '⌖'; margin-right: 5px; color: var(--teal2); }
.m-story { color: var(--mute); font-size: 15px; padding-left: 12px; border-left: 2px solid var(--line); }
.m-obj { padding: 10px 14px; color: #e6f7f7; background: rgba(47, 196, 196, .08); border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; font-size: 15.5px; }
.m-obj > b { display: inline-block; margin-right: 6px; color: var(--teal2); font-weight: 600; }
.m-body h3 { margin: 1.1em 0 .45em; font-size: 16.5px; color: var(--gold2); }
.m-body ol, .m-body ul { margin: 0 0 .6em; padding-left: 1.3em; color: #d3dbe6; font-size: 15.5px; }
.m-body li { margin-bottom: .4em; }
.m-body li b, .m-body p b { color: #fff; font-weight: 600; }
.m-steps { counter-reset: st; list-style: none; padding-left: 0 !important; }
.m-steps li { counter-increment: st; position: relative; padding-left: 36px; }
.m-steps li::before { content: counter(st); position: absolute; left: 0; top: .15em; display: grid; place-items: center; width: 24px; height: 24px; font: 600 13px/1 var(--font); color: #2a1406; background: linear-gradient(180deg, #ffe7a2, var(--gold)); border-radius: 50%; }
.m-tips li::marker { color: var(--teal2); }
.m-warn { margin: 1em 0 .6em; padding: 4px 14px 6px; background: rgba(255, 90, 70, .07); border: 1px solid rgba(255, 110, 90, .3); border-radius: 12px; }
.m-warn h3 { color: #ffb4a8 !important; }
.m-grade { margin: .8em 0; font-size: 15px; color: #d3dbe6; }
.m-grade > b:first-child { display: inline-block; margin-right: 6px; padding: 0 10px; color: #2a1406; background: var(--gold); border-radius: 999px; font-size: 13px; }
.m-soft { opacity: .85; }
.m-soft h3 { color: var(--mute) !important; font-weight: 400; }
.m-loot ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 !important; list-style: none; }
.m-loot li { margin: 0; padding: 2px 10px; font-size: 13px; color: #ffe9b8; background: rgba(240, 190, 90, .08); border: 1px solid rgba(240, 190, 90, .28); border-radius: 999px; }
.g-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 26px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hub-cards { grid-template-columns: repeat(2, 1fr); }
  .ch-grid { grid-template-columns: repeat(2, 1fr); }
  .wt-list { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .g-toc { position: static; }
  .m-card { grid-template-columns: minmax(0, 1fr); }
  .m-media { position: relative; top: auto; max-width: 420px; }
}
@media (max-width: 600px) {
  .g-main { padding-top: calc(76px + env(safe-area-inset-top)); }
  .hub-cards, .ch-grid { grid-template-columns: 1fr; }
  .wt-tools { position: static; padding: 10px; gap: 8px; }
  .wt-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px; }
  .wt-chips::-webkit-scrollbar { display: none; }
  .wt-chip { flex: none; }
  .wt-row a { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: 'img txt' 'img meta'; row-gap: 4px; }
  .wt-row img { width: 72px; }
  .wt-meta { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
  .m-media { max-width: none; }
  .g-pager { flex-wrap: wrap; justify-content: center; }
  .g-pager .btn { flex: 1 1 40%; }
  .g-table { overflow: visible; border: 0; }
  .g-table thead { display: none; }
  .g-table table, .g-table tbody, .g-table tr, .g-table td { display: block; }
  .g-table tr { margin-bottom: 8px; padding: 8px 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; }
  .g-table td { padding: 3px 0; border: 0; font-size: 14.5px; }
  .g-table td:first-child { font-weight: 600; color: var(--gold2); }
  .g-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12px; color: var(--teal2); }
  .g-pager .btn-text { order: 3; flex-basis: 100%; }
}
