/* SOD's production shell and surface hierarchy, adapted to Brotato. */
:root {
  color-scheme:dark;
  --bg:#121214; --surface:#1a1a1d; --raised:#242428; --surface-low:#161618;
  --text:#eeeef0; --body:var(--text); --muted:#aaaab3; --line:#37373d; --subtle-line:#2d2d32;
  --accent:#db8179; --accent-text:#f2aaa3; --accent-fill:#db8179; --accent-hover:#e9938c; --on-accent:#241817;
  --radius:14px; --control-radius:8px; --space-section:32px; --motion:150ms ease;
  font:15px/1.6 system-ui,-apple-system,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  font-synthesis:none; text-rendering:optimizeLegibility;
}
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; background:var(--bg); color:var(--text); overflow-wrap:anywhere; }
html { scroll-padding-top:16px; }
a { color:inherit; text-decoration:none; text-underline-offset:.2em; }
a:hover { color:var(--text); }
button,input,select,textarea { font:inherit; color:inherit; max-width:100%; }
button,summary { cursor:pointer; }
button { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:42px; padding:8px 14px; border:1px solid var(--line); border-radius:var(--control-radius); background:var(--raised); line-height:1.4; transition:background var(--motion),border-color var(--motion),color var(--motion); }
button:hover { background:#2c2c31; border-color:#62626b; }
button:active { background:var(--surface); }
button:disabled { opacity:.45; cursor:default; }
button.primary { background:var(--accent-fill); border-color:var(--accent-fill); color:var(--on-accent); font-weight:650; }
button.primary:hover { background:var(--accent-hover); }
input,select,textarea { min-height:44px; background:var(--surface-low); border:1px solid var(--line); border-radius:var(--control-radius); padding:10px 12px; }
input::placeholder { color:var(--muted); }
input[type=checkbox] { min-height:auto; accent-color:var(--accent); width:17px; height:17px; flex:none; }
input[type=number] { min-width:0; width:100%; }
:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
::selection { background:var(--accent-fill); color:var(--on-accent); }
p { margin:0 0 1rem; }
h1,h2,h3,h4 { line-height:1.3; overflow-wrap:anywhere; }
h1 { font-size:clamp(1.85rem,2.8vw,2.1rem); letter-spacing:-.035em; margin:0; font-weight:600; }
h2 { font-size:1.15rem; font-weight:600; margin:0 0 1rem; }
h3 { font-size:1rem; font-weight:600; margin:0 0 .65rem; }
small,.muted { color:var(--muted); }
.wrap { width:100%; max-width:1360px; padding-inline:40px; margin-inline:auto; }
main.wrap { min-height:60vh; padding-block:48px 64px; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.skip-link { position:fixed; inset-block-start:0; transform:translateY(-120%); inset-inline-start:16px; z-index:100; background:var(--accent-fill); color:var(--on-accent); padding:12px; }
.skip-link:focus { transform:none; }
.site-header { border-block-end:1px solid var(--line); background:#121214eb; }
.header-inner { max-width:1440px; min-height:86px; margin-inline:auto; padding-inline:40px; display:flex; flex-wrap:wrap; align-items:center; gap:16px 32px; }
.brand { display:flex; align-items:center; gap:10px; flex:0 1 auto; max-width:100%; font-size:.78rem; font-weight:650; letter-spacing:.08em; line-height:1.25; }
.brand-icon { width:36px; height:36px; flex:none; }
.brand-wordmark { display:flex; flex-direction:column; }
.site-footer .brand-icon { width:32px; height:32px; }
.brand-wordmark > span:last-child { color:var(--accent-text); font-size:1rem; letter-spacing:.3em; margin-top:3px; }
.site-navigation { display:flex; flex-wrap:wrap; align-self:stretch; align-items:center; gap:24px; flex:1; min-width:0; }
.site-navigation>a,.site-navigation summary { display:flex; align-items:center; min-height:44px; height:100%; padding-block:10px; border-block-end:2px solid transparent; font-size:.9rem; color:var(--muted); white-space:nowrap; }
.site-navigation a:hover,.site-navigation summary:hover { color:var(--text); }
.site-navigation [aria-current=page] { color:var(--accent-text); border-color:var(--accent); }
.languages,.more-menu { position:relative; flex:none; }
.languages { margin-inline-start:auto; max-width:100%; font-size:.85rem; }
.languages>summary { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px; border-radius:6px; color:var(--muted); list-style:none; }
.languages>summary::-webkit-details-marker,.more-menu>summary::-webkit-details-marker { display:none; }
.languages[open]>summary { color:var(--text); }
.languages svg { flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.languages[open]>summary>.language-arrow { transform:rotate(180deg); }
.languages nav,.more-menu>div { position:absolute; inset-inline-end:0; inset-block-start:calc(100% + 8px); z-index:40; background:var(--raised); padding:8px; border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 36px #0006; min-width:190px; }
.languages nav { width:min(14rem,calc(100vw - 32px)); min-width:0; max-height:min(480px,70dvh); overflow:auto; overscroll-behavior:contain; border-radius:8px; }
.language-group { margin:0; }
.language-group>p { margin:0; padding:8px 12px; color:var(--muted); font-size:.8rem; }
.language-group+.language-group { border-block-start:1px solid var(--line); margin-block-start:8px; padding-block-start:8px; }
.language-group[hidden]+.language-group { border:0; margin:0; padding:0; }
.languages a { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 12px; min-height:44px; border-radius:5px; color:var(--muted); }
.languages bdi { min-width:0; overflow-wrap:anywhere; }
.languages a:hover,.more-menu>div a:hover { background:#303036; color:var(--text); }
.languages a[aria-current=page] { background:#db817914; color:var(--accent-text); }
.more-menu { align-self:stretch; }
.more-menu>div a { display:block; padding:10px 12px; font-size:.9rem; border-radius:5px; }
.page-heading { margin-bottom:28px; }
.breadcrumbs { font-size:.85rem; color:var(--muted); margin-bottom:24px; }
.breadcrumbs ol { display:flex; flex-wrap:wrap; align-items:baseline; gap:0 8px; margin:0; padding:0; list-style:none; }
.breadcrumbs li { min-inline-size:0; overflow-wrap:anywhere; }
.breadcrumbs li+li::before { content:"/"; margin-inline-end:8px; }
.breadcrumbs a { display:inline-block; min-height:36px; padding-block:6px; }
.breadcrumbs a:hover { text-decoration:underline; }
.selector { max-width:640px; margin:8vh auto; text-align:center; }
.language-choices { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:28px; }
.language-choices a { padding:12px 18px; background:var(--surface); border:1px solid var(--line); border-radius:8px; }
.site-footer { padding-block:32px 40px; border-top:1px solid var(--line); color:var(--muted); font-size:.8rem; display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; }
.site-footer .brand { color:var(--text); font-size:.72rem; }
.site-footer .brand-wordmark > span:last-child { font-size:.85rem; }
.site-footer p { margin:0; }
.site-footer p+p { flex-basis:100%; font-size:.78rem; }
.footer-tools { display:flex; flex-basis:100%; align-items:center; gap:24px; margin-top:8px; }
.footer-tools button { border:0; background:none; padding:0; min-height:36px; font-size:inherit; color:var(--muted); text-decoration:underline; }

/* One identity grid: the tags belong to the name column. */
.entry-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr)); gap:14px; list-style:none; padding:0; margin:0; align-items:start; }
.entry-list>li { min-width:0; }
.entry-card { position:relative; display:grid; grid-template-columns:48px minmax(0,1fr); column-gap:14px; align-content:start; background:var(--surface); border:1px solid var(--subtle-line); border-radius:12px; padding:16px; min-width:0; transition:border-color var(--motion),background var(--motion); }
.entry-card:hover { border-color:#4b4b53; background:#1d1d21; }
.entry-card>.entry-icon { grid-column:1; grid-row:1/3; align-self:start; }
.entry-card-identity { grid-column:2; grid-row:1; display:flex; align-items:center; gap:6px; min-width:0; min-height:28px; }
.entry-card-name { font-size:1rem; font-weight:600; line-height:1.4; }
.entry-card-condition { grid-column:2; margin:6px 0 0; color:var(--muted); font-size:.85rem; line-height:1.6; word-break:keep-all; }
.entry-card-identity:hover .entry-card-name { text-decoration:underline; }
.entry-card-identity[href]::before { content:''; position:absolute; inset:0; border-radius:12px; }
.entry-icon { object-fit:contain; flex:none; width:32px; height:32px; max-width:100%; vertical-align:middle; }
.entry-icon-card { width:48px; height:48px; }
.entry-icon-hero { width:72px; height:72px; }
.entry-card>.entry-tags { position:relative; z-index:1; grid-column:2; grid-row:2; margin-top:4px; }
.entry-heading-identity { position:relative; display:flex; align-items:center; gap:18px; margin-bottom:24px; min-width:0; }
.entry-heading-copy { min-width:0; flex:1; }
.entry-heading-copy h1,.entry-heading-copy h2 { margin:0; }
.entry-heading-copy h1 { font-size:clamp(1.65rem,2.6vw,2.2rem); }
.entry-heading-copy .entry-tags { margin-top:8px; }
.character-section .entry-heading-copy .entry-link::before { content:''; position:absolute; inset:0; }
.entry-heading-copy>.entry-tags { position:relative; z-index:1; }
.entry-tags { display:flex; flex-wrap:wrap; gap:4px; margin:0; min-width:0; }
.tag { display:inline-flex; align-items:center; font-size:.75rem; line-height:1.45; color:var(--muted); border:1px solid var(--line); border-radius:4px; padding:2px 6px; max-width:100%; transition:background var(--motion),color var(--motion); }
.tag:hover { background:var(--raised); color:var(--text); }
.tag[data-tag-link] { text-decoration:underline dotted; text-underline-offset:3px; }
.tag[data-family],.filter-chip[data-family] { color:var(--tag-color); background:color-mix(in srgb,var(--tag-color) 14%,var(--surface)); border-color:color-mix(in srgb,var(--tag-color) 30%,var(--surface)); }
.tag[data-family]:hover,.filter-chip[data-family]:hover { color:var(--tag-color); background:color-mix(in srgb,var(--tag-color) 14%,var(--surface)); border-color:var(--tag-color); }
.filter-groups label[data-family]>span:not(.facet-count) { color:var(--tag-color); }
.tag-visual { display:inline-flex; align-items:center; justify-content:center; gap:3px; flex:none; border-radius:10px; padding:8px; background:color-mix(in srgb,var(--tag-color) 14%,var(--surface)); }
.tag-visual .entry-icon { width:28px; height:36px; }
.entry-card[data-family] { grid-template-columns:106px minmax(0,1fr); }
.entry-card>.tag-visual { grid-column:1; grid-row:1/3; align-self:start; }
.entry-card[data-family] .entry-card-name { color:var(--tag-color); }
.entry-heading-identity[data-family] { flex-wrap:wrap; }
.entry-heading-identity[data-family]>.entry-heading-copy { flex-basis:min(100%,12rem); }
.entry-heading-identity[data-family] .entry-heading-copy>h1,.entry-heading-identity[data-family]>h2,.entry-heading-identity[data-family] .entry-heading-copy>h2 { position:relative; padding-inline-start:16px; }
.entry-heading-identity[data-family] .entry-heading-copy>h1::before,.entry-heading-identity[data-family]>h2::before,.entry-heading-identity[data-family] .entry-heading-copy>h2::before { content:''; position:absolute; inset-inline-start:0; top:.25em; width:6px; height:.8em; border-radius:2px; background:var(--tag-color); }
.info-title-link[data-family] { flex-wrap:wrap; }
.info-title-link[data-family]>span:not(.tag-visual) { flex:1 1 min(100%,10rem); }
.info-title-link[data-family] .tag-visual { gap:2px; padding:6px; }
.info-title-link[data-family] .tag-visual .entry-icon { width:24px; height:32px; }
.entry-effects { padding:0; margin:0; list-style:none; font-size:.92rem; line-height:1.75; white-space:pre-line; }
.entry-effects li+li { margin-top:4px; }
.effect-sign-0 { color:#8fce83; } .effect-sign-1 { color:#ff8a83; } .effect-sign-3 { color:#d3b3f8; } .effect-sign-4 { color:#7db8f3; } .effect-sign-5 { color:#eab571; }
.entry-condition { font-size:.92rem; margin:0; }
.entry-detail { max-width:56rem; padding:28px; background:var(--surface); border:1px solid var(--subtle-line); border-radius:var(--radius); }
.entry-detail>section { margin-top:32px; }
.entry-detail>section>h2 { font-size:1rem; margin-bottom:12px; color:var(--muted); }
.entry-detail .entry-effects { font-size:1rem; }
.related-list { list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:8px 20px; margin:0; }
.related-list li { max-width:100%; }
.related-list li p { margin:4px 0 0; color:var(--muted); font-size:.9rem; }
.entry-detail>.unlock-section>h2 { font-size:.85rem; }
.unlock-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.unlock-card { position:relative; background:#202024; border:1px solid var(--line); border-radius:10px; padding:16px; }
.unlock-card:hover { border-color:#62626b; }
.unlock-card .entry-link { padding:0; min-height:32px; font-weight:600; font-size:.9rem; }
.unlock-card .entry-link::before { content:''; position:absolute; inset:0; border-radius:10px; }
.unlock-card .entry-condition { margin:6px 0 0; padding-inline-start:40px; color:var(--muted); font-size:.9rem; }
.entry-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; max-width:100%; min-width:0; padding:4px 0; }
.entry-link:hover bdi { text-decoration:underline; }
.entry-link bdi { min-width:0; }
.weapon-values { margin:16px 0 0; display:grid; gap:5px; font-size:.9rem; line-height:1.6; container-type:inline-size; }
.weapon-values>div { display:grid; grid-template-columns:minmax(0,8rem) minmax(0,1fr); gap:12px; align-items:baseline; }
.weapon-values dt { color:var(--muted); min-width:0; }
.weapon-values dd { margin:0; min-width:0; text-align:start; word-break:keep-all; }
.tier-value { font-variant-numeric:tabular-nums; } .tier-1 { color:#eeeef0; } .tier-2 { color:#74c5f5; } .tier-3 { color:#ca9bf3; } .tier-4 { color:#fa9d91; } .tier-separator { color:var(--muted); }
.weapon-values [data-stat=cooldown] .tier-value { white-space:nowrap; }
.effect-tier-scope { font-size:.85em; color:var(--muted); }
.tag-group { margin-top:32px; }
.tag-summary { max-width:48rem; margin-bottom:32px; }
.tag-introduction { margin:0 0 18px; font-size:.95rem; line-height:1.7; word-break:keep-all; }
.set-bonuses { margin:18px 0 0; }
.set-bonuses>h2 { font-size:.85rem; color:var(--muted); margin:0 0 10px; }
.dlc-release { color:var(--muted); font-size:.85rem; margin:0 0 14px; }
.dlc-release time { color:var(--text); margin-inline-start:8px; }
.dlc-content-counts { display:flex; flex-wrap:wrap; gap:8px 24px; margin:0 0 16px; font-size:.85rem; }
.dlc-content-counts>div { display:flex; gap:8px; }
.dlc-content-counts dt,.tag-source { color:var(--muted); }
.dlc-content-counts dd { margin:0; font-weight:600; }
.tag-source { font-size:.85rem; text-decoration:underline; }
.tag-announcement { max-width:42rem; }
.search-evidence { grid-column:2; font-size:.75rem; color:var(--muted); margin-top:8px; }
.search-evidence>span { display:block; }
mark { background:#53413f; color:var(--text); border-radius:2px; }

.codex-search { margin-bottom:18px; container-type:inline-size; }
.search-toolbar { display:flex; align-items:stretch; gap:10px; }
.search-toolbar input { flex:1; min-width:0; width:100%; }
.search-toolbar [data-filter-open] { flex:none; }
.search-toolbar [aria-expanded=true] { border-color:var(--accent); color:var(--accent-text); }
.browse-layout { display:flex; align-items:flex-start; gap:24px; }
.browse-layout>.entry-list { flex:1; min-width:0; }
.codex-filters { flex:0 0 208px; padding:0 16px 16px 0; border-inline-end:1px solid var(--subtle-line); }
.filter-groups { display:grid; gap:24px; }
.filter-groups fieldset { border:0; padding:0; margin:0; min-width:0; }
.filter-groups legend { font-size:.8rem; color:var(--muted); font-weight:600; margin-bottom:8px; }
.filter-groups label { display:flex; align-items:center; gap:8px; min-height:38px; font-size:.85rem; cursor:pointer; }
.facet-count { color:var(--muted); margin-inline-start:auto; font-size:.75rem; }
.filter-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.filter-chip { border-radius:5px; min-height:32px; padding:4px 8px; font-size:.8rem; background:var(--surface); }
[data-search-empty] { color:var(--muted); margin-block:16px; font-size:.9rem; }

dialog { color:var(--text); border:1px solid var(--line); background:var(--surface); border-radius:var(--radius); padding:0; max-height:calc(100dvh - 48px); max-width:calc(100vw - 32px); box-shadow:0 24px 80px #0008; overflow:hidden; }
dialog[open] { display:flex; flex-direction:column; }
dialog::backdrop { background:#0009; backdrop-filter:blur(4px); }
.dialog-body { padding:24px; overflow:auto; overscroll-behavior:contain; min-height:0; flex:1; }
.dialog-body>h2 { margin:0 0 20px; }
.dialog-footer { padding:12px 24px; border-top:1px solid var(--subtle-line); flex-shrink:0; }
.dialog-footer>button { width:100%; }
.small-dialog { width:460px; }
.info-dialog { width:560px; }
.sheet-handle { display:none; }
.entry-preview { position:fixed; z-index:60; width:400px; max-height:calc(100dvh - 24px); overflow:hidden; padding:18px; border:1px solid #4b4b53; border-radius:12px; background:var(--surface); box-shadow:0 12px 36px #0008; pointer-events:none; font-size:.9rem; }
.entry-preview * { pointer-events:none; }
.entry-preview .entry-heading-identity { margin-bottom:14px; gap:12px; }
.entry-preview .entry-icon-hero { width:44px; height:44px; }
.entry-preview .tag-visual .entry-icon { width:24px; height:30px; }
.entry-preview .tag-summary,.info-dialog .tag-summary { margin-bottom:0; }
.entry-preview .tag-introduction { font-size:.87rem; margin-bottom:14px; }
.entry-preview h2 { font-size:1.1rem; }
.entry-preview .entry-effects { font-size:.87rem; }
.entry-preview .set-bonuses { margin:0; }
.entry-preview .weapon-values { font-size:.82rem; }
.entry-preview [data-preview-loading],.entry-preview [data-preview-error] { margin:0; color:var(--muted); font-size:.85rem; }
.filter-dialog { width:650px; }
.filter-dialog .filter-groups { grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)); }
.info-title-link { display:flex; align-items:center; gap:12px; font-size:1.25rem; line-height:1.35; }
.info-title-link>span { min-width:0; overflow-wrap:anywhere; }
.info-title-link .entry-icon { width:48px; height:48px; }
.info-title-arrow { display:inline-block; margin-inline-start:.35em; color:var(--muted); font-size:.8em; }
.info-title-arrow::before { content:'↗'; }
.info-dialog .dialog-body>h2:has(.info-title-link) { margin-bottom:12px; }
.info-dialog .dialog-body>.entry-tags { padding-inline-start:60px; margin-block:-8px 20px; }
.info-dialog[data-sheet-closing] { pointer-events:none; transition:none; }
@container(max-width:18rem) {
  .weapon-values>div { grid-template-columns:minmax(0,1fr); gap:2px; }
  .search-toolbar { flex-wrap:wrap; }
  .search-toolbar input { flex-basis:100%; }
}
@media(max-width:1100px) {
  .header-inner { flex-wrap:wrap; gap:0 24px; padding-block:12px 0; }
  .site-navigation { flex-basis:100%; flex-wrap:nowrap; order:3; gap:24px; overflow-x:auto; scrollbar-width:none; }
  .site-navigation>a,.site-navigation summary { min-height:48px; }
  .more-menu { position:static; } .more-menu>div { inset-inline-end:16px; inset-block-start:auto; }
  .filter-dialog { inset:0; margin:0; width:100%; max-width:none; height:100dvh; max-height:none; border:0; border-radius:0; }
}
@media(max-width:760px) {
  .wrap,.header-inner { padding-inline:20px; }
  main.wrap { padding-block:32px 48px; }
  .header-inner { min-height:0; } .site-navigation { gap:20px; }
  .site-navigation>a,.site-navigation summary { font-size:.85rem; }
  .page-heading { margin-bottom:22px; }
  .entry-detail { padding:20px; }
  .entry-heading-identity { gap:14px; } .entry-icon-hero { width:60px; height:60px; }
  .site-footer { gap:12px 20px; }
}
@media(max-width:600px) {
  .wrap,.header-inner { padding-inline:16px; }
  .brand { font-size:.72rem; } .brand-wordmark > span:last-child { font-size:.9rem; }
  .site-navigation { gap:10px; }
  h1 { font-size:1.85rem; }
  .entry-list { grid-template-columns:minmax(0,1fr); gap:10px; }
  .entry-card { padding:14px; column-gap:12px; }
  .entry-detail { padding:18px; }
  .entry-heading-copy h1 { font-size:1.65rem; }
  .entry-detail .entry-effects { font-size:.95rem; }
  .entry-detail>section { margin-top:28px; }
  .info-dialog { width:100%; max-width:100%; max-height:90dvh; margin:auto 0 0; border-radius:18px 18px 0 0; border-inline:0; border-bottom:0; transform:translateY(var(--sheet-drag,0)); transition:transform .18s ease; }
  .info-dialog[data-dragging] { transition:none; }
  .sheet-handle { display:flex; align-items:center; justify-content:center; flex-shrink:0; height:32px; touch-action:none; }
  .sheet-handle:after { content:""; width:36px; height:4px; background:#696970; border-radius:4px; }
  .dialog-body { padding:18px; }
  .info-dialog .dialog-body { padding-top:6px; padding-inline:max(18px,env(safe-area-inset-left)) max(18px,env(safe-area-inset-right)); }
  .dialog-footer { padding:12px max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
  .info-dialog .dialog-footer button { min-height:48px; }
  .footer-tools { flex-wrap:wrap; gap:12px 24px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

/* Recommendation articles and print. */
.strategy-index { max-inline-size:1120px; }
.strategy-search { margin-block:24px; max-inline-size:42rem; }
.strategy-search input { width:100%; min-width:0; min-height:44px; background:var(--surface); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:10px 12px; font:inherit; }
.strategy-index-list { list-style:none; padding:0; margin:24px 0 32px; }
.strategy-index-list>li { min-width:0; padding:24px 0; border-block-start:1px solid var(--subtle-line); scroll-margin-block-start:24px; }
.strategy-index-list h2 { font-size:1.333rem; line-height:1.4; margin:6px 0 10px; max-inline-size:48rem; word-break:keep-all; }
.strategy-index-list h2 a { color:var(--text); }
.strategy-index-list p { font-size:1rem; color:var(--body); max-inline-size:48rem; margin-block:0; }
.strategy-kind,.strategy-priority { display:inline-block; color:var(--muted); border:1px solid var(--line); border-radius:4px; padding:.1rem .45rem; font-size:.78rem; font-weight:500; }
.strategy-priority[data-priority=core] { color:var(--accent); border-color:var(--accent); }
.strategy-site-recommended { display:inline-block; vertical-align:middle; border:1px solid var(--accent); border-radius:4px; padding:.1rem .45rem; color:var(--accent-text); font-size:.78rem; font-weight:600; line-height:1.6; }
.strategy-equipment-heading { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem .6rem; font-size:1.2rem; line-height:1.5; font-weight:600; }
.strategy-equipment>li>p { margin-block:.7rem 0; }
.strategy-entry,.strategy-entry-identity { display:inline; }
.strategy-entry .entry-icon-inline,.strategy-entry-identity .entry-icon-inline { display:inline-block; inline-size:1em; block-size:1em; max-inline-size:1.5rem; max-block-size:1.5rem; vertical-align:-.15em; margin-inline-end:.2em; object-fit:contain; }
.strategy-family-icons { display:inline-flex; vertical-align:middle; }
.strategy-card-characters .entry-icon { inline-size:20px; block-size:20px; }
.strategy-card-characters { display:flex; flex-wrap:wrap; list-style:none; gap:0 16px; padding:0; margin:10px 0 0; font-size:.85rem; }
.strategy-card-characters a { display:inline-flex; align-items:center; min-height:44px; }
.strategy-characters { margin-block:16px 8px; }
.strategy-characters .entry-icon { width:28px; height:28px; }
.strategy-characters small { display:block; color:var(--muted); font-size:.8rem; }
.strategy-entry { text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:3px; }
.guide-heading h1 .strategy-entry { color:inherit; text-decoration:none; }
.strategy-entry:hover { text-decoration-color:var(--accent); }
.strategy-overview strong { font-weight:600; }
.strategy-equipment { list-style:none; padding:0; }
.strategy-equipment>li { border-block-start:1px solid var(--subtle-line); padding:16px 0; margin:0; }
.strategy-equipment>li:first-child { padding-block-start:0; border:0; }
.strategy-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:6px; margin-block:0 32px; }
.strategy-pagination a,.strategy-pagination span { display:inline-flex; align-items:center; justify-content:center; min-inline-size:38px; min-block-size:44px; padding:6px 10px; border:1px solid var(--line); border-radius:var(--control-radius); line-height:1.4; }
.strategy-pagination a:hover { background:var(--raised); }
.strategy-pagination [aria-current=page] { border-color:var(--accent); background:#db817914; color:var(--accent-text); font-weight:600; }
.strategy-pagination [aria-disabled=true] { color:var(--muted); opacity:.5; }
.strategy-pagination .pagination-gap { min-inline-size:20px; padding-inline:0; border-color:transparent; color:var(--muted); }
.strategy-character-list>li { margin-block:12px; }
.strategy-result { font-variant-numeric:tabular-nums; }
@media(max-width:600px) { .strategy-index-list>li { padding-block:20px; } }
@media print { .strategy-search,.strategy-pagination { display:none; } .strategy-index-list { display:block; } .strategy-index-list>li { break-inside:avoid; margin-block:16px; } }
.guide-parent { max-inline-size:48rem; margin-block:0 12px; font-size:.9rem; }
.guide-parent a { display:inline-flex; align-items:center; gap:8px; min-block-size:44px; color:var(--muted); }
[dir=rtl] .guide-parent span { transform:scaleX(-1); }
.guide-heading { max-width:48rem; padding-block:0; margin-block-end:16px; }
.guide-heading h1 { font-size:2.4rem; line-height:1.25; margin:0; word-break:keep-all; overflow-wrap:anywhere; text-wrap:pretty; }
.guide-hub-heading { max-width:1120px; }
.guide-hub-heading h1 { font-size:2.133rem; }
.guide-kind { color:var(--muted); font-size:.8rem; margin:0 0 8px; }
.guide-article { max-width:48rem; font-size:1.067rem; line-height:1.7; word-break:keep-all; }
.guide-overview p, .guide-sources p, .guide-index-list p { color: var(--body); }
.guide-summary { max-width:100%; font-size:inherit; line-height:inherit; margin-block:0 12px; }
.guide-character a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-section { margin-block-start:36px; padding:0; scroll-margin-block-start:24px; }
.guide-section h2 { font-size:1.467rem; line-height:1.4; margin-block:0 16px; }
.guide-section h3 { line-height: 1.4; margin-block: 1.5rem .75rem; }
.guide-section li { margin-block-end: .75rem; }
.guide-units { padding: 1rem 1.2rem; border-inline-start: 3px solid var(--accent); background: var(--surface); font-size: .9rem; }
.guide-equipment-list, .guide-index-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.guide-equipment-list > li { padding:16px 0; border-block-start:1px solid var(--subtle-line); margin:0; }
.guide-equipment-list > li:first-child { border:0; padding-block-start:0; }
.guide-equipment-identity { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.guide-equipment-identity a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; max-width: 100%; min-width: 0; min-height: 44px; font-size: 1.2rem; line-height: 1.5; font-weight: 650; }
.guide-tier, .guide-quantity { color: var(--muted); font-size: .85rem; }
.guide-quantity data { display: inline-block; margin-inline-start: .35rem; font-size: 1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.guide-equipment-list .guide-equipment-reason { margin-block: .75rem 0; font-size: .95rem; }
.guide-disclosure { border: 1px solid var(--line); padding: .5rem 1rem; }
.guide-disclosure summary { min-height: 44px; padding-block: .5rem; font-weight: 650; }
.guide-disclosure p { margin-block: .75rem; }
.guide-growth-table { width: 100%; border-collapse: collapse; margin-block: .75rem 1.5rem; font-size: .9rem; table-layout: fixed; }
.guide-growth-table caption { text-align: start; color: var(--muted); padding-block: .5rem; }
.guide-growth-table th, .guide-growth-table td { text-align: start; padding: .6rem .5rem; border-block-end: 1px solid var(--line); overflow-wrap: anywhere; }
.guide-growth-table th:first-child { width: 48%; }
.guide-growth-table td:nth-child(2), .guide-growth-table th:nth-child(2) { width: 19%; font-variant-numeric: tabular-nums; }
.guide-alternative { margin-block: 1rem 1.5rem; }
.guide-alternative .checked-note { margin-block: .5rem; }
.guide-support { border-inline-start: 3px solid var(--accent); background: var(--surface); padding: 1rem 1.2rem; margin-block: 2rem; }
.guide-support p { margin: 0; }
.guide-source-group { margin-block: 2rem; }
.guide-source-group li { padding-block: .25rem; }
.guide-source-group a { display: inline-block; min-height: 44px; padding-block: .5rem; }
.guide-source-group .checked-note { margin: 0; }
.guide-index-list { max-width: 58rem; }
.guide-index-list > li { border-block-start: 1px solid var(--line); padding-block: 2rem .5rem; }
.guide-index-list h2 { line-height: 1.4; }
.guide-character-list { padding-inline-start: 1.25rem; }
.guide-character-list a { display: inline-block; min-height: 44px; padding-block: .5rem; }
.guide-character-list p { max-width: 70ch; color: var(--body); }
.guide-compose { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-block:16px 24px; }
.guide-compose label { font-size:.85rem; color:var(--muted); }
.guide-compose select { min-inline-size:12rem; max-inline-size:100%; min-block-size:44px; font:inherit; color:var(--text); background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:8px 12px; }
.guide-compose .primary-link { min-block-size:44px; display:inline-flex; align-items:center; justify-content:center; margin:0; font-size:.9rem; padding:10px 14px; border:1px solid var(--accent-fill); border-radius:8px; background:var(--accent-fill); color:var(--on-accent); font-weight:600; }
.guide-compose .primary-link:hover { background:var(--accent-hover); }
.guide-contents { border-block:1px solid var(--subtle-line); padding-block:12px; margin-block:24px 32px; }
.guide-contents ul { display:flex; flex-wrap:wrap; gap:0 20px; list-style:none; padding:0; margin:0; font-size:.85rem; }
.guide-contents a { display:inline-flex; align-items:center; min-block-size:44px; color:var(--muted); }
@media(max-width:600px) {
  .guide-parent { margin-block:0 12px; }
  .guide-heading h1 { font-size:1.867rem; line-height:1.3; }
  .guide-compose:has(select) { display:grid; grid-template-columns:minmax(0,1fr); }
  .guide-compose select { width:100%; min-inline-size:0; }
  .guide-compose:has(select) .primary-link { width:100%; }
  .guide-contents ul { gap:0 16px; }
}
@media print { .guide-compose,.guide-contents,.guide-parent { display:none; } }
@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --text: #111; --body: #111; --muted: #333; --line: #777; --accent: #555; --accent-text: #111; }
  body { border: 0; font-size: 10pt; }
  *:focus { outline: none !important; }
  .wrap { width: 100%; }
  .site-header, .site-navigation, .skip-link, .site-footer, .languages { display: none; }
  .guide-heading, .guide-section { padding-block: 1rem .25rem; }
  .guide-heading h1 { font-size: 23pt; }
  .guide-section h2 { font-size: 16pt; break-after: avoid; }
  .guide-equipment-list > li, .guide-growth-table tr { break-inside: avoid; }
  .guide-disclosure::details-content { content-visibility: visible; display: block; }
  .guide-disclosure > summary { display: block; }
  .guide-disclosure > :not(summary) { display: block !important; }
}


.analytics-dialog { max-inline-size: min(36rem, calc(100vw - 16px)); max-block-size: calc(100dvh - 16px); overflow: auto; }
.analytics-dialog[open] { display: block; }
.analytics-dialog .dialog-body { overflow: visible; padding: min(1.5rem, 24px); }
.analytics-dialog [data-analytics-status] { padding: .75rem; background: var(--surface); border-inline-start: 3px solid var(--accent); }
.analytics-dialog [data-analytics-error] { color: var(--accent-text); }
.analytics-dialog .dialog-footer { display: flex; flex-wrap: wrap; gap: min(.5rem, 8px); padding: min(1rem, 16px); }
.analytics-dialog .dialog-footer > button { width: auto; }
.analytics-dialog [data-dialog-close] { flex-basis: 100%; }
.analytics-dialog [data-analytics-allow], .analytics-dialog [data-analytics-deny] { flex: 1 1 8rem; }
.entry-detail.entity-detail{max-width:72rem}.entity-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 20rem;align-items:start;gap:2rem}
.entity-detail-layout>div{min-inline-size:0}.entity-information{margin-block:0 1.5rem}.entity-description{white-space:pre-line;line-height:1.8;margin-block:0 1.5rem;max-inline-size:56rem}
.entity-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem 1.5rem;margin:1.5rem 0 .75rem}
.entity-stat{position:relative;min-inline-size:0;padding-block-end:.75rem}.entity-stat dt{display:flex;align-items:center;gap:.45rem;font-size:.8rem;color:var(--muted);overflow-wrap:anywhere}.entity-stat dt svg{flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.entity-stat dd{margin:.35rem 0 0}.entity-stat-value{display:flex;flex-wrap:wrap;align-items:baseline;gap:.3rem;font-weight:600;font-variant-numeric:tabular-nums}.entity-stat-growth{font-size:.8rem;font-weight:400;color:var(--muted)}
.entity-stat-bar{position:absolute;inset-inline:0;inset-block-end:0;block-size:5px;border-radius:3px;background:var(--line);overflow:hidden}.entity-stat-bar>span{display:block;block-size:100%;background:var(--text-secondary,#aaaab3)}
[data-entity-stat=health] .entity-stat-bar>span{background:#65bd87}[data-entity-stat=damage] .entity-stat-bar>span{background:#db8179}[data-entity-stat=armor] .entity-stat-bar>span{background:#c6ad69}.entity-stat-note{font-size:.75rem;color:var(--muted);margin:0}
.entry-panel .entity-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.entry-panel .entity-description{margin-block:1rem}.entry-panel .entity-stat-note{margin-block-end:.5rem}
.entity-animation{inline-size:100%;max-inline-size:20rem;justify-self:center;border-block:1px solid var(--line);padding-block:.75rem}.entity-animation-stage{display:grid;place-items:center;inline-size:100%;aspect-ratio:4/3}.entity-animation-stage canvas{display:block;inline-size:100%;block-size:auto}.entity-animation-fallback{object-fit:contain;max-inline-size:8rem;max-block-size:8rem;inline-size:auto;block-size:auto}.entity-animation-stage [hidden],.entity-animation [hidden]{display:none}
.entity-animation-controls{display:grid;justify-items:center;gap:.65rem}.entity-animation-modes{display:flex;justify-content:center;flex-wrap:wrap;gap:.4rem}.entity-animation button{min-block-size:44px;padding:.4rem .7rem;font-size:.85rem}.entity-animation button[aria-pressed=true]{border-color:var(--accent,#db8179);background:var(--raised,#242428)}.entity-animation-error{text-align:center;color:var(--muted);font-size:.8rem}.entity-animation-error p{margin:.5rem 0}
@media(max-width:1000px){.entity-detail-layout{grid-template-columns:minmax(0,1fr)}.entity-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.entity-animation{justify-self:start}}
@media(max-width:600px){.entity-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.entity-detail-layout{gap:1rem}.entity-animation{justify-self:center}}

/* Arabic glyphs keep normal cursive joining; numeric expressions retain their operand order. */
:lang(ar) { letter-spacing:normal; }
:lang(ar) .weapon-values dd, :lang(ar) .entity-stat-value, :lang(ar) .builder-stat-value,
:lang(ar) [data-practice-metric-hp] { unicode-bidi:plaintext; }
:lang(ar) .effect-sign-0, :lang(ar) .effect-sign-1, :lang(ar) .effect-sign-2,
:lang(ar) .effect-sign-5 { unicode-bidi:isolate; }
:lang(ar) .brand { direction:ltr; unicode-bidi:isolate; }

[data-family="blade"] { --tag-color:#8FA9C2; }
[data-family="blunt"] { --tag-color:#ADA29C; }
[data-family="elemental"] { --tag-color:#C99A73; }
[data-family="ethereal"] { --tag-color:#B397CC; }
[data-family="explosive"] { --tag-color:#CF8D89; }
[data-family="gun"] { --tag-color:#879AB5; }
[data-family="heavy"] { --tag-color:#B4A07B; }
[data-family="legendary"] { --tag-color:#C9B477; }
[data-family="medical"] { --tag-color:#8DB79A; }
[data-family="medieval"] { --tag-color:#AC8E78; }
[data-family="musical"] { --tag-color:#C296B4; }
[data-family="naval"] { --tag-color:#7DAFA5; }
[data-family="precise"] { --tag-color:#8BB7BE; }
[data-family="primitive"] { --tag-color:#A4AD7D; }
[data-family="support"] { --tag-color:#A8A1C7; }
[data-family="tool"] { --tag-color:#B7A187; }
[data-family="unarmed"] { --tag-color:#C2A08F; }
.entity-bar-health-0-0333{inline-size:0.0333%}
.entity-bar-damage-50{inline-size:50%}
.entity-bar-speed-82-3529{inline-size:82.3529%}
.entity-bar-knockbackResistance-50{inline-size:50%}
.entity-bar-materials-80{inline-size:80%}
.entity-bar-health-0-0533{inline-size:0.0533%}
.entity-bar-speed-23-5294{inline-size:23.5294%}
.entity-bar-knockbackResistance-60{inline-size:60%}
.entity-bar-materials-20{inline-size:20%}
.entity-bar-health-0-0667{inline-size:0.0667%}
.entity-bar-speed-47-0588{inline-size:47.0588%}
.entity-bar-knockbackResistance-20{inline-size:20%}
.entity-bar-materials-30{inline-size:30%}
.entity-bar-health-0-02{inline-size:0.02%}
.entity-bar-speed-58-8235{inline-size:58.8235%}
.entity-bar-knockbackResistance-0{inline-size:0%}
.entity-bar-materials-10{inline-size:10%}
.entity-bar-health-0-0067{inline-size:0.0067%}
.entity-bar-speed-70-5882{inline-size:70.5882%}
.entity-bar-knockbackResistance-100{inline-size:100%}
.entity-bar-materials-100{inline-size:100%}
.entity-bar-health-0-04{inline-size:0.04%}
.entity-bar-speed-41-1765{inline-size:41.1765%}
.entity-bar-knockbackResistance-70{inline-size:70%}
.entity-bar-speed-28-2353{inline-size:28.2353%}
.entity-bar-materials-50{inline-size:50%}
.entity-bar-health-0-1333{inline-size:0.1333%}
.entity-bar-speed-64-7059{inline-size:64.7059%}
.entity-bar-damage-100{inline-size:100%}
.entity-bar-knockbackResistance-90{inline-size:90%}
.entity-bar-speed-35-2941{inline-size:35.2941%}
.entity-bar-knockbackResistance-95{inline-size:95%}
.entity-bar-health-0-0267{inline-size:0.0267%}
.entity-bar-speed-94-1176{inline-size:94.1176%}
.entity-bar-knockbackResistance-80{inline-size:80%}
.entity-bar-speed-89-4118{inline-size:89.4118%}
.entity-bar-health-0-0133{inline-size:0.0133%}
.entity-bar-speed-30-5882{inline-size:30.5882%}
.entity-bar-knockbackResistance-75{inline-size:75%}
.entity-bar-health-0-2{inline-size:0.2%}
.entity-bar-health-0-4667{inline-size:0.4667%}
.entity-bar-health-100{inline-size:100%}
.entity-bar-health-0-1{inline-size:0.1%}
.entity-bar-health-0-6667{inline-size:0.6667%}
.entity-bar-health-0-08{inline-size:0.08%}
.entity-bar-armor-33-3333{inline-size:33.3333%}
.entity-bar-speed-100{inline-size:100%}
.entity-bar-health-0-1067{inline-size:0.1067%}
.entity-bar-speed-16-4706{inline-size:16.4706%}
.entity-bar-speed-0{inline-size:0%}
.entity-bar-armor-100{inline-size:100%}
.entity-bar-speed-52-9412{inline-size:52.9412%}
.entity-bar-knockbackResistance-25{inline-size:25%}
.entity-bar-health-1{inline-size:1%}
.entity-bar-health-0-5333{inline-size:0.5333%}
.entity-bar-health-0-4{inline-size:0.4%}
.entity-bar-health-0-3333{inline-size:0.3333%}
.entity-bar-materials-40{inline-size:40%}
.entity-bar-speed-18-8235{inline-size:18.8235%}
.entity-bar-health-0-2667{inline-size:0.2667%}
