/* Shared interface only. Exported item and ability cards retain their game styling. */
:root {
  --ui-bg:#0b0b0b; --ui-panel:#191919; --ui-border:#343434;
  --ui-text:#f0eee8; --ui-text-dim:#b7b7b2;
  --ui-orange:#e9a637; --ui-link:var(--ui-orange); --ui-inset:#101010;
  --ui-item-border:rgba(233,166,55,.55); --ui-item-tint:rgba(233,166,55,.06);
  --ui-orange-tint:rgba(233,166,55,.08);
  --bg:var(--ui-bg); --surface:var(--ui-panel); --surface-alt:#242424;
  --border:var(--ui-border); --text-primary:var(--ui-text); --text-secondary:var(--ui-text-dim);
  --accent:var(--ui-orange); --cyan:var(--ui-link); --gold:var(--ui-orange);
  --positive:var(--ui-orange); --warning:var(--ui-orange); --negative:#dfa295;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:100px; }
body { margin:0; background:var(--ui-bg); color:var(--ui-text); font-family:Inter,system-ui,sans-serif; min-height:100vh; }
a { color:var(--cyan); text-underline-offset:4px; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:2px solid var(--gold)!important; outline-offset:4px; }
.skip-link { position:absolute; top:-80px; left:20px; z-index:10000; padding:12px 20px; background:var(--gold); color:var(--ui-bg); border-radius:6px; }
.skip-link:focus { top:12px; }
.site-navbar { background:rgba(11,11,11,.97); border-bottom:1px solid var(--border); width:100%; position:sticky; top:0; z-index:1000; }
.nav-content { max-width:1300px; height:76px; padding:0 28px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.nav-logo { display:flex; align-items:center; gap:12px; color:var(--ui-text); font-size:17px; font-weight:800; text-decoration:none; letter-spacing:-.4px; white-space:nowrap; }
.brand-logo { display:block; width:44px; height:44px; object-fit:contain; flex-shrink:0; }
.nav-links { display:flex; align-items:center; list-style:none; padding:0; margin:0; gap:7px; flex:1; min-width:0; }
.nav-links a { color:var(--ui-text-dim); text-decoration:none; font-size:13px; font-weight:600; display:block; padding:10px 14px; border-radius:6px; }
.nav-links a:hover,.nav-links a[aria-current=page] { background:var(--surface-alt); color:#fff; }
.nav-hamburger { display:none; border:1px solid var(--border); border-radius:6px; background:var(--ui-panel); color:white; padding:12px; cursor:pointer; }
body>header,.page-header { text-align:left; width:100%; max-width:1300px; padding:50px 28px 30px; margin:0 auto; position:relative; }
header h1,.page-header h1 { font-size:clamp(30px,4.5vw,50px); letter-spacing:-1.8px; text-transform:none; font-weight:800; line-height:1.1; color:var(--ui-text); margin:12px 0 16px; max-width:940px; }
header p.subtitle,.page-header .subtitle { font-size:16px; color:var(--ui-text-dim); line-height:1.7; max-width:730px; margin:0; }
.eyebrow { color:var(--gold); font-size:11px; font-weight:800; letter-spacing:2px; text-transform:uppercase; display:flex; align-items:center; gap:10px; }
.eyebrow:before { content:''; width:22px; height:1px; background:currentColor; }
.header-actions,.tool-rail { display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }
.action-link { display:inline-flex; align-items:center; justify-content:center; gap:12px; border:1px solid var(--border); border-radius:6px; padding:12px 18px; font-size:13px; font-weight:700; color:var(--ui-text); text-decoration:none; background:var(--ui-panel); min-height:44px; }
.action-link.primary { background:var(--gold); color:#000000; border-color:var(--gold); }
.action-link:hover { filter:brightness(1.12); }
.tool-rail { width:calc(100% - 56px); max-width:1244px; margin:0 auto 24px; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.tool-card { border:1px solid var(--border); border-radius:8px; background:var(--ui-inset); padding:18px 20px; text-decoration:none; color:var(--ui-text); position:relative; }
.tool-card:hover { border-color:var(--cyan); background:var(--surface-alt); }
.tool-card .tool-label { font-size:10px; color:var(--gold); font-weight:800; text-transform:uppercase; letter-spacing:1.4px; }
.tool-card strong { display:block; font-size:16px; margin:9px 0 6px; }
.tool-card p { font-size:12px; line-height:1.6; color:var(--ui-text-dim); margin:0; }
.main-container { width:100%; max-width:1300px; gap:36px; padding:0 28px 36px; align-items:flex-start; margin:0 auto; }
.editor-container { border:1px solid var(--border); border-radius:10px; background:var(--ui-panel); box-shadow:none; }
.editor-content { padding:24px; }
.editor-container label { color:var(--ui-text-dim); }
.editor-container input,.editor-container textarea,.editor-container select { background:var(--ui-inset); border-color:var(--border); border-radius:6px; }
.editor-container .export-btn { background:var(--gold); color:#000000; border:0; border-radius:0 0 8px 8px; min-height:50px; }
.preview-wrapper { min-width:0; top:100px; }
.preview-hint { color:var(--cyan); padding:14px; font-size:12px; }
.mobile-nav { top:76px; z-index:900; background:var(--ui-bg); }
.content-container { max-width:1100px; padding:30px 28px 60px; color:var(--ui-text-dim); margin:0 auto; }
.content-container h2 { font-size:28px; letter-spacing:-.8px; border:0; margin-top:36px; }
.content-container p { line-height:1.8; }
.site-footer { border-top:1px solid var(--border); width:100%; padding:34px 28px; color:var(--ui-text-dim); background:#080808; }
.footer-inner { max-width:1244px; margin:auto; display:flex; justify-content:space-between; gap:28px; flex-wrap:wrap; }
.footer-links { display:flex; flex-wrap:wrap; gap:18px; font-size:13px; }
.footer-links a { text-decoration:none; color:var(--ui-text-dim); }
.footer-links a:hover { color:var(--cyan); }
.site-footer .disclaimer { font-size:12px; color:var(--ui-text-dim); max-width:600px; text-align:left; margin:14px 0 0; line-height:1.6; }
.breadcrumb { display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:12px; margin-bottom:23px; color:var(--ui-text-dim); }
.breadcrumb a { color:var(--ui-text-dim); text-decoration:none; }
.guide-wrap,.hub-wrap { max-width:1300px; width:100%; margin:auto; padding:0 28px 50px; }
.guide-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:28px; align-items:start; }
.guide-section { background:var(--ui-panel); border:1px solid var(--border); border-radius:9px; padding:26px; margin:0 0 18px; scroll-margin-top:100px; }
.guide-section h2 { font-size:18px; letter-spacing:-.35px; margin:0 0 14px; color:var(--ui-text); }
.guide-section:first-child h2 { color:var(--accent); }
.guide-section h3 { font-size:15px; margin:0 0 7px; }
.section-kicker { font-size:10px; text-transform:uppercase; letter-spacing:1.5px; color:var(--gold); font-weight:800; margin-bottom:10px; }
.guide-section p,.guide-section li { font-size:14px; line-height:1.75; color:var(--ui-text-dim); }
.guide-section ul { padding-left:20px; margin:0; }
.guide-section li+li { margin-top:10px; }
.guide-note { font-size:12px!important; color:var(--ui-text-dim); line-height:1.7; margin:14px 0 0; }
.counter-pills { display:flex; gap:9px; flex-wrap:wrap; margin-top:18px; }
.counter-pill { text-decoration:none; color:var(--cyan); font-size:13px; font-weight:700; padding:12px 15px; background:var(--ui-item-tint); border:1px solid var(--ui-item-border); border-radius:5px; }
.counter-pill.secondary { color:var(--ui-text-dim); border-color:var(--border); background:var(--ui-inset); }
.counter-pill:hover { border-color:var(--gold); }
.problem { border:1px solid var(--border); border-radius:7px; margin-top:10px; background:var(--ui-inset); }
.problem summary { padding:16px 18px; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:16px; list-style:none; font-size:14px; line-height:1.5; font-weight:600; }
.problem summary::-webkit-details-marker { display:none; }
.problem summary:after { content:'+'; color:var(--ui-text-dim); }
.problem[open] summary:after { content:'−'; }
.problem .answer { color:var(--cyan); font-size:12px; white-space:nowrap; margin-left:auto; }
.problem .reason { border-top:1px solid var(--border); padding:15px 18px; }
.problem .reason p { margin:0 0 8px; }
.problem .reason p:last-child { margin:0; }
.guide-sidebar { position:sticky; top:100px; }
.guide-sidebar .guide-section { padding:22px; }
.on-page { display:flex; flex-direction:column; gap:4px; }
.on-page a { font-size:13px; padding:9px 0; color:var(--ui-text-dim); text-decoration:none; }
.on-page a:hover { color:var(--cyan); }
.item-details { border-top:1px solid var(--border); padding:18px 0; }
.item-details:first-of-type { border-top:0; }
.item-details p { margin:0 0 10px; color:var(--cyan); }
.item-details h3 { color:var(--ui-text); }
.hero-directory { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.hero-link { border:1px solid var(--border); border-radius:7px; padding:20px; background:var(--ui-panel); text-decoration:none; color:var(--ui-text); transition:background .15s,border-color .15s; }
.hero-link:hover { background:var(--surface-alt); border-color:var(--accent); }
.hero-link .hero-letter { display:flex; align-items:center; justify-content:center; width:36px; height:36px; background:var(--ui-orange-tint); color:var(--accent); font-weight:800; border-radius:5px; margin-bottom:20px; }
.hero-link strong { display:block; font-size:16px; }
.hero-link small { display:block; color:var(--ui-text-dim); font-size:11px; line-height:1.6; margin-top:7px; }
.directory-toolbar { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; flex-wrap:wrap; }
.directory-search { background:var(--ui-inset); border:1px solid var(--border); color:white; border-radius:7px; min-height:48px; padding:12px 16px; width:min(100%,360px); }
.directory-toolbar p { font-size:12px; color:var(--ui-text-dim); }
.related-guides { display:flex; flex-wrap:wrap; gap:10px; }
.related-guides a { border:1px solid var(--border); border-radius:5px; color:var(--cyan); font-size:13px; padding:10px 14px; text-decoration:none; }
.faq-item { background:var(--ui-panel); }
.faq-question { font-size:15px; }
.search-container { max-width:1300px; justify-content:flex-start; padding:0 28px; }
.hero-grid { width:100%; max-width:1300px; justify-content:flex-start; padding:10px 28px; }
.hero-chip { border-radius:5px; color:var(--ui-text); font:inherit; font-size:13px; }
.results-header-title { max-width:1300px; padding:0 28px; }
.app-container { max-width:1300px; gap:24px; padding:10px 28px 30px; align-items:stretch; }
.strategy-col,.breakdown-col { min-width:0; width:100%; }
.panel { box-shadow:none; border-radius:9px; padding:25px; }
.panel-title { font-size:13px; letter-spacing:.5px; text-transform:none; color:var(--accent); margin-top:0; }
.app-container .panel-title { font-size:clamp(20px,2vw,24px); line-height:1.3; letter-spacing:0; padding-bottom:12px; }
.section-hint { font-size:12px; color:var(--ui-text-dim); line-height:1.7; }
.situation-btn { font-family:inherit; color:var(--ui-text); text-align:left; width:100%; }
.threat-profile-grid { grid-template-columns:1fr; }
.threat-card { min-height:0; }
.threat-name { text-transform:none; }
.directory-preview { width:100%; max-width:1300px; padding:20px 28px 50px; margin:0 auto; }
.directory-preview h2 { font-size:25px; letter-spacing:-.6px; }
.directory-preview .hero-directory { grid-template-columns:repeat(4,1fr); }
@media(min-width:1200px) { .app-container { gap:24px; } .breakdown-col { flex:0 0 290px; } }
@media(max-width:1050px) { .main-container { padding:0 20px 30px; } .nav-hamburger { display:block; } .nav-links { display:none; position:absolute; top:76px; left:0; width:100%; background:var(--ui-panel); padding:10px 20px; flex-direction:column; align-items:stretch; } .nav-links.active { display:flex; } .nav-links a { padding:14px 10px; } .guide-layout { grid-template-columns:minmax(0,1fr); } .guide-sidebar { position:static; grid-row:1; } .on-page { flex-direction:row; flex-wrap:wrap; gap:0 18px; } .guide-sidebar .guide-section { padding:16px 22px; } .guide-sidebar .guide-note { display:none; } .hero-directory { grid-template-columns:repeat(3,1fr); } }
@media(max-width:600px) { .nav-content { height:68px; padding:0 20px; } .nav-logo { font-size:15px; } .nav-links { top:68px; } .mobile-nav { top:68px; } body>header,.page-header { padding:32px 20px 26px; } header h1,.page-header h1 { letter-spacing:-1px; } header p.subtitle,.page-header .subtitle { font-size:14px; } .tool-rail { width:calc(100% - 40px); grid-template-columns:1fr; } .tool-card { padding:16px 18px; } .tool-card strong { margin:5px 0; } .tool-card p { font-size:12px; } .content-container,.guide-wrap,.hub-wrap,.directory-preview { padding-left:20px; padding-right:20px; } .guide-section { padding:21px 18px; } .hero-directory,.directory-preview .hero-directory { grid-template-columns:repeat(2,minmax(0,1fr)); } .hero-link { padding:16px; } .hero-link .hero-letter { margin-bottom:15px; } .problem summary { flex-wrap:wrap; gap:8px; padding:15px; } .problem .answer { margin-left:0; white-space:normal; width:90%; } .problem summary:after { margin-left:auto; } .app-container { padding:10px 20px; } .results-header-title,.hero-grid,.search-container { padding-left:20px; padding-right:20px; } .group-meta { flex-wrap:wrap; gap:12px; } .site-footer { padding:28px 20px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*:before,*:after { animation:none!important; transition:none!important; } }
/* Keep the immediate answer above the fold on phones. */
@media(max-width:1050px) { .guide-sidebar { display:none; } }

/* The established counter helper keeps its compact, familiar selection flow. */
.counter-tool-page>header { padding-top:30px; padding-bottom:20px; }
.counter-tool-page>header>.eyebrow { display:none; }
.counter-tool-page>header h1 { font-size:clamp(28px,4vw,42px); margin-top:8px; }
.counter-tool-page>header .subtitle { max-width:850px; }
.counter-tool-page .search-container { max-width:800px; padding:0 20px; margin:12px auto; }
.counter-tool-page .hero-grid { margin:0 auto 14px; }
.counter-tool-page .hero-chip { font-weight:600; }
.counter-tool-page .hero-chip.selected,.counter-tool-page .mobile-chip { background:var(--accent); color:#000000; }
.counter-tool-page .results-header-title { margin-top:16px; }
.counter-tool-page .results-header-title.team-heading { text-align:center; }
.counter-tool-page .team-results-view { max-width:1300px; margin:0 auto; padding:10px 28px 30px; }
.counter-tool-page #teamResultsContainer { display:grid; gap:16px; }
@media(max-width:600px) {
  .counter-tool-page>header { padding-top:24px; padding-bottom:14px; }
  .counter-tool-page .search-container { margin:8px auto; }
  .counter-tool-page .item-pill { font-size:13px; padding:10px 12px; max-width:100%; }
  .counter-tool-page .mobile-chip { border:1px solid var(--accent); }
}

/* Black and dark grey interface with orange accents; game-card colours remain part of the export design. */
#item-card,.ability-card { --cyan:#82fffd; }
.editor-container input:focus,.editor-container textarea:focus,.editor-container select:focus { border-color:var(--ui-orange); }
.faq-question::after { color:var(--ui-orange); }
.counter-tool-page .hero-chip.multi-selected { background:var(--ui-item-tint); border-color:var(--ui-item-border); color:var(--ui-link); }
.counter-tool-page .group-hero-count { color:#000000; }
.counter-tool-page .group-hero-count[data-coverage=low] { background:#dfa295; }
.counter-tool-page .group-hero-count[data-coverage=medium] { background:var(--ui-orange); }
.counter-tool-page .group-hero-count[data-coverage=high] { background:#a4c8a0; }
.counter-tool-page .affected-list { display:flex; align-items:center; gap:12px; }
.affected-heroes { display:flex; flex:1; flex-wrap:wrap; gap:8px; min-width:0; }
.affected-hero { display:inline-flex; align-items:center; gap:7px; max-width:100%; padding:4px 8px 4px 4px; border:1px solid var(--ui-border); border-radius:5px; background:var(--ui-panel); color:var(--ui-text); font-size:12px; line-height:1.4; }
.affected-hero>span { min-width:0; overflow-wrap:anywhere; }
.affected-hero-portrait { display:block; width:24px; height:32px; object-fit:cover; border-radius:3px; flex:0 0 24px; }
@media(max-width:600px) {
  .counter-tool-page .affected-list { flex-direction:column; align-items:flex-start; gap:8px; }
  .affected-heroes { width:100%; }
}

/* Both former amber and sage highlights now use the supplied orange. */
.counter-tool-page .item-pill.primary-counter,.counter-tool-page .team-item-pill,
.counter-tool-page .situation-answer,.counter-pill:not(.secondary),.problem .answer { color:var(--ui-orange); }
.counter-tool-page .hero-chip.multi-selected { color:var(--ui-orange); }
.counter-tool-page .lane-advice-box { background:var(--surface-alt); }


@media(max-width:600px) { .brand-logo { width:40px; height:40px; } }

/* Center the counter helper's introduction and selection area consistently. */
.counter-tool-page>header { text-align:center; }
.counter-tool-page>header h1 { margin-left:auto; margin-right:auto; }
.counter-tool-page>header .subtitle { margin-left:auto; margin-right:auto; }
.counter-tool-page .hero-grid { justify-content:center; }
.counter-tool-page .hero-chip {
  flex:0 0 124px; min-height:38px; padding:8px; font-size:12.5px;
  display:inline-flex; align-items:center; justify-content:center; text-align:center;
}
.counter-tool-page .directory-preview { text-align:center; padding-top:28px; padding-bottom:28px; }

/* Local portraits preserve the compact selector and existing matchup flow. */
.counter-tool-page .hero-chip { gap:7px; min-height:48px; padding:5px 8px; justify-content:flex-start; }
.hero-chip-portrait { width:28px; height:38px; object-fit:cover; border-radius:3px; flex:0 0 28px; }
.hero-chip-name { flex:1; min-width:0; line-height:1.25; text-align:left; }
.hero-portrait-fallback { display:inline-flex; align-items:center; justify-content:center; background:var(--surface-alt); color:var(--ui-orange); font-weight:800; }
.hero-matchup-heading { display:flex; align-items:center; gap:12px; }
.selected-hero-portrait { width:36px; height:49px; object-fit:cover; border-radius:4px; flex-shrink:0; }
.mobile-hero-portrait { width:20px; height:27px; object-fit:cover; border-radius:3px; }
.counter-tool-page .mobile-chip { gap:7px; }
.hero-card-portrait { display:block; width:48px; height:65px; object-fit:cover; border-radius:4px; margin-bottom:14px; }
.guide-hero-intro { display:flex; align-items:center; gap:22px; }
.guide-hero-intro>div { flex:1; min-width:0; }
.guide-hero-portrait { display:block; width:80px; height:109px; object-fit:cover; border-radius:6px; flex-shrink:0; }
@media(max-width:600px) {
  .guide-hero-intro { align-items:flex-start; gap:14px; }
  .guide-hero-portrait { width:56px; height:76px; margin-top:12px; }
  .hero-card-portrait { margin-bottom:12px; }
}

@media(max-width:600px) {
  .counter-tool-page .results-header-title { font-size:24px; }
  .counter-tool-page .team-results-view { padding-left:20px; padding-right:20px; }
  .hero-matchup-heading { gap:10px; }
.selected-hero-portrait { width:28px; height:38px; }
}

/* Homepage: four direct paths into the community tools. */
.home-page main { width:100%; }
.home-hero { max-width:1100px; margin:0 auto; padding:52px 28px 32px; text-align:center; }
.home-hero .eyebrow { justify-content:center; }
.home-hero h1 { max-width:none; font-size:clamp(34px,4.5vw,54px); margin:18px 0 12px; }
.home-hero .home-lead { color:var(--ui-text); font-size:22px; font-weight:600; letter-spacing:-.5px; margin:0 0 12px; }
.home-hero p.subtitle { max-width:650px; margin:0 auto; font-size:15px; line-height:1.7; }
.home-tools,.home-about-wrap { max-width:1100px; margin:0 auto; padding:0 28px; }
.home-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 16px; }
.home-section-heading h2 { font-size:18px; letter-spacing:-.4px; margin:0; }
.home-section-heading>span { color:var(--ui-text-dim); font-size:12px; }
.home-tools-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.home-tool { display:flex; flex-direction:column; padding:24px; border:1px solid var(--ui-border); border-radius:10px; background:var(--ui-panel); color:var(--ui-text); text-decoration:none; transition:border-color .15s,background .15s; }
.home-tool.featured { border-color:var(--ui-item-border); background:linear-gradient(120deg,var(--ui-orange-tint),transparent 75%),var(--ui-panel); }
.home-tool:hover { border-color:var(--ui-orange); background-color:var(--surface-alt); }
.home-tool-top { display:flex; align-items:center; gap:12px; margin-bottom:15px; }
.home-tool-icon { display:flex; align-items:center; justify-content:center; width:38px; height:38px; border:1px solid var(--ui-border); background:var(--ui-inset); border-radius:8px; color:var(--ui-orange); flex-shrink:0; }
.home-tool-icon svg { width:23px; height:23px; }
.home-tool-tag { color:var(--ui-text-dim); font-size:11px; font-weight:600; }
.home-tool-arrow { color:var(--ui-text-dim); font-size:21px; margin-left:auto; }
.home-tool h3 { font-size:23px; letter-spacing:-.7px; line-height:1.2; margin:0 0 10px; }
.home-tool p { color:var(--ui-text-dim); font-size:14px; line-height:1.7; margin:0 0 20px; max-width:440px; }
.home-tool-cta { display:flex; align-items:center; gap:12px; color:var(--ui-orange); font-size:13px; font-weight:700; margin-top:auto; }
.home-about-wrap { padding-top:28px; padding-bottom:38px; }
.home-about { border-top:1px solid var(--ui-border); }
.home-about>summary { display:flex; justify-content:space-between; align-items:center; gap:16px; cursor:pointer; list-style:none; padding:22px 0 0; font-size:13px; color:var(--ui-text-dim); }
.home-about>summary::-webkit-details-marker { display:none; }
.home-about>summary>span:last-child { color:var(--ui-orange); font-size:20px; }
.home-about[open]>summary>span:last-child { transform:rotate(45deg); }
.home-about .content-container { padding:0 0 20px; }
.home-about h2,.home-about h3 { color:var(--ui-text); }
.home-about .reason { font-size:14px; }
.home-page .site-footer .footer-inner { max-width:1044px; }

/* Decorative item icons always keep their visible text label. */
.item-label { display:inline-flex; align-items:center; gap:8px; max-width:100%; min-width:0; vertical-align:middle; }
.item-label>span { min-width:0; overflow-wrap:anywhere; }
.item-icon { display:block; width:24px; height:24px; object-fit:contain; border-radius:4px; flex:0 0 24px; }
.counter-pill { display:inline-flex; align-items:center; }
.situation-answer .item-icon,.problem .answer .item-icon { width:20px; height:20px; flex-basis:20px; }
.situation-answer .item-label,.problem .answer .item-label { gap:6px; }
.detail-name .item-icon,.item-details h3 .item-icon { width:28px; height:28px; flex-basis:28px; }

/* Long-form hero guides; the quick helper keeps its compact presentation. */
.hero-guide-page .guide-section p,.hero-guide-page .guide-section li { font-size:15px; line-height:1.8; }
.hero-guide-page .guide-section h2 { font-size:21px; }
.hero-guide-page .guide-section h3 { font-size:16px; line-height:1.5; }
.hero-guide-page .guide-source-note { color:var(--ui-text-dim); font-size:12px; line-height:1.6; margin:16px 0 0; }
.hero-guide-page .guide-problem { background:var(--ui-inset); border:1px solid var(--border); border-radius:7px; padding:20px; margin:18px 0 0; scroll-margin-top:100px; }
.hero-guide-page .guide-problem p { margin:12px 0 0; }
.hero-guide-page .guide-problem strong,.hero-guide-page .guide-mistake h3 { color:var(--ui-text); }
.hero-guide-page .problem-item { display:inline-flex; margin:4px 0 0; font-size:13px; color:var(--accent); text-decoration:none; }
.hero-guide-page .problem-item:hover { text-decoration:underline; }
.hero-guide-page .guide-mistake+.guide-mistake { border-top:1px solid var(--border); margin-top:20px; padding-top:20px; }
.hero-guide-page .guide-mistake p { margin:8px 0 0; }
.hero-guide-page .matchup-uses { margin-top:16px; padding:14px 16px; border-left:2px solid var(--accent); background:var(--ui-inset); }
.hero-guide-page .matchup-uses p { margin:0 0 6px; color:var(--ui-text); }
.hero-guide-page .matchup-uses a { color:var(--accent); text-underline-offset:3px; }
.hero-guide-page .guide-helper-link { display:block; margin-top:16px; padding-top:16px; border-top:1px solid var(--border); color:var(--accent); font-size:13px; line-height:1.6; }
.hero-guide-page .guide-mobile-nav { display:none; }
@media(max-width:1050px) {
  .hero-guide-page .guide-mobile-nav { display:block; margin-bottom:18px; padding:14px 18px; border:1px solid var(--border); border-radius:7px; background:var(--ui-panel); }
  .hero-guide-page .guide-mobile-nav summary { cursor:pointer; font-size:14px; color:var(--ui-text); }
  .hero-guide-page .guide-mobile-nav .on-page { margin-top:12px; }
}
@media(max-width:600px) {
  .hero-guide-page .guide-section h2 { font-size:19px; }
  .hero-guide-page .guide-problem { padding:16px; }
}

/* Item references share the guides' reading layout and black/gold palette. */
.item-library-toolbar { display:grid; grid-template-columns:minmax(0,1fr) 260px auto; gap:18px; align-items:end; margin-bottom:24px; }
.item-library-toolbar label { display:flex; flex-direction:column; gap:9px; min-width:0; color:var(--ui-text-dim); font-size:12px; }
.item-library-toolbar input,.item-library-toolbar select { width:100%; min-width:0; height:48px; padding:12px 14px; border:1px solid var(--border); border-radius:6px; background:var(--ui-inset); color:var(--ui-text); font-size:14px; }
.item-library-toolbar p { color:var(--ui-text-dim); font-size:12px; margin:0 0 16px; white-space:nowrap; }
.item-library-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.item-library-card { display:flex; flex-direction:column; background:var(--ui-panel); border:1px solid var(--border); padding:22px; border-radius:8px; color:var(--ui-text); text-decoration:none; min-width:0; }
.item-library-card:hover { border-color:var(--accent); }
.item-library-card[hidden],#item-library-empty[hidden] { display:none; }
.item-library-card h2 { margin:0 0 15px; font-size:17px; line-height:1.4; }
.item-library-card h2 .item-label { gap:14px; }
.item-library-card .item-icon { width:44px; height:44px; flex-basis:44px; }
.item-library-card p { font-size:13px; line-height:1.75; color:var(--ui-text-dim); margin:15px 0 22px; }
.item-role-tags { display:flex; flex-wrap:wrap; gap:6px; }
.item-role-tags>span { font-size:10px; line-height:1.4; color:var(--accent); padding:4px 7px; border-radius:4px; border:1px solid var(--ui-item-border); background:var(--ui-item-tint); }
.item-library-card-bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-top:auto; font-size:11px; color:var(--ui-text-dim); }
.item-library-card-bottom strong { color:var(--accent); font-size:12px; }
.item-guide-intro { display:flex; gap:22px; align-items:center; }
.item-guide-intro>div:last-child { min-width:0; }
.item-guide-intro .item-role-tags { margin-top:16px; }
.item-guide-icon { flex:0 0 86px; width:86px; height:86px; padding:5px; border:1px solid var(--border); background:var(--ui-panel); border-radius:9px; }
.item-guide-icon .item-label>span { display:none; }
.item-guide-icon .item-icon { width:74px; height:74px; flex-basis:74px; }
.item-matchup-example { border:1px solid var(--border); border-radius:7px; padding:20px; background:var(--ui-inset); margin-top:18px; }
.item-matchup-heading { display:inline-flex; align-items:center; gap:11px; margin-bottom:14px; text-decoration:none; color:var(--accent); font-size:15px; font-weight:700; }
.item-matchup-portrait { display:block; width:32px; height:43px; flex:0 0 32px; object-fit:cover; border-radius:4px; }
.item-matchup-example p { margin:10px 0; }
.item-matchup-example strong { color:var(--ui-text); }
.item-described-uses article { border-top:1px solid var(--border); padding-top:18px; margin-top:18px; }
.item-hero-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:20px; }
.item-hero-matchup { display:flex; align-items:center; gap:12px; min-width:0; padding:12px; border:1px solid var(--border); border-radius:6px; text-decoration:none; background:var(--ui-inset); }
.item-hero-matchup>span { display:flex; min-width:0; flex-direction:column; gap:5px; }
.item-hero-matchup strong { font-size:13px; color:var(--ui-text); }
.item-hero-matchup small { font-size:10px; line-height:1.5; color:var(--ui-text-dim); }
.item-hero-matchup:hover { border-color:var(--accent); }
.item-comparison-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:20px; }
.item-comparison { display:flex; flex-direction:column; min-width:0; padding:16px; background:var(--ui-inset); border:1px solid var(--border); border-radius:6px; text-decoration:none; }
.item-comparison:hover { border-color:var(--accent); }
.item-comparison h3 { font-size:14px!important; }
.item-comparison .item-label { align-items:flex-start; }
.item-comparison p { font-size:12px!important; line-height:1.7!important; margin:8px 0 16px; }
.item-comparison>span { color:var(--accent); font-size:11px; margin-top:auto; }
.home-library-link { display:flex; align-items:center; gap:20px; background:var(--ui-panel); border:1px solid var(--border); border-radius:8px; padding:24px; margin-top:18px; text-decoration:none; }
.home-library-link:hover { border-color:var(--accent); }
.home-library-link .item-icon { width:48px; height:48px; flex:0 0 48px; }
.home-library-link>div { flex:1; min-width:0; }
.home-library-link h3 { margin:0 0 8px; font-size:19px; color:var(--ui-text); }
.home-library-link p { margin:0; color:var(--ui-text-dim); font-size:13px; line-height:1.7; }
.home-library-link>span { color:var(--accent); font-size:24px; }
.detail-guide-link { display:inline-block; font-size:12px; margin-top:12px; color:var(--accent); }
.guide-source-details { margin-top:20px; }
.guide-source-details summary { cursor:pointer; font-size:13px; color:var(--ui-text-dim); }
.guide-source-details ul { margin-top:16px; }
.library-buying-notes { border:1px solid var(--border); border-radius:7px; padding:17px 20px; margin-bottom:24px; background:var(--ui-panel); }
.library-buying-notes summary { cursor:pointer; font-size:14px; color:var(--ui-text); }
.library-buying-notes ol { padding-left:20px; margin:16px 0 0; }
.library-buying-notes li { color:var(--ui-text-dim); font-size:14px; line-height:1.75; margin-top:10px; }
.library-buying-notes strong { color:var(--ui-text); }
@media(max-width:1200px) {
  .nav-hamburger { display:block; }
  .nav-links { display:none; position:absolute; top:76px; left:0; width:100%; background:var(--ui-panel); padding:10px 20px; flex-direction:column; align-items:stretch; }
  .nav-links.active { display:flex; }
  .nav-links a { padding:14px 10px; }
}
@media(max-width:900px) {
  .item-library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .item-library-toolbar { grid-template-columns:minmax(0,1fr) 220px; }
  .item-library-toolbar p { grid-column:1/-1; margin:0; }
}
@media(max-width:600px) {
  .nav-links { top:68px; }
  .item-library-grid,.item-library-toolbar,.item-hero-grid,.item-comparison-grid { grid-template-columns:minmax(0,1fr); }
  .item-library-toolbar { gap:14px; }
  .item-library-card { padding:20px; }
  .item-guide-intro { align-items:flex-start; gap:14px; }
  .item-guide-icon { width:58px; height:58px; flex-basis:58px; margin-top:12px; }
  .item-guide-icon .item-icon { width:46px; height:46px; flex-basis:46px; }
  .item-matchup-example { padding:16px; }
  .home-library-link { align-items:flex-start; gap:14px; padding:20px; }
  .home-library-link h3 { font-size:17px; }
  .home-library-link .item-icon { width:36px; height:36px; flex-basis:36px; }
}
@media(max-width:600px) {
  .home-hero { padding:34px 20px 28px; }
  .home-hero h1 { font-size:34px; line-height:1.12; margin-top:16px; }
  .home-hero .eyebrow { font-size:9px; letter-spacing:1.5px; }
  .home-hero .home-lead { font-size:18px; }
  .home-hero p.subtitle { font-size:14px; }
  .home-tools,.home-about-wrap { padding-left:20px; padding-right:20px; }
  .home-tools-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .home-section-heading h2 { font-size:17px; }
  .home-section-heading>span { font-size:11px; }
  .home-tool { padding:20px; }
  .home-tool h3 { font-size:22px; }
  .home-tool-top { margin-bottom:12px; }
  .home-tool p { font-size:13px; margin-bottom:16px; }
}

/* Compact item guides: one usage block, matchups, and comparisons. */
.item-guide-page .page-header { max-width:1100px; padding-top:32px; padding-bottom:22px; }
.item-guide-page .guide-wrap { max-width:1100px; }
.item-guide-page .breadcrumb { margin-bottom:20px; }
.item-guide-page .item-guide-intro { display:grid; grid-template-columns:86px minmax(0,1fr); gap:8px 20px; align-items:center; }
.item-guide-page .item-guide-intro>div:last-child { display:contents; }
.item-guide-page .item-guide-icon { grid-row:1/3; }
.item-guide-page .item-guide-intro h1 { margin:0; font-size:36px; line-height:1.2; letter-spacing:-1px; }
.item-guide-page .item-guide-intro .subtitle { margin:0; font-size:15px; line-height:1.65; }
.item-guide-page .item-role-tags { grid-column:2; margin:0; }
.item-guide-jump { display:flex; flex-wrap:wrap; gap:8px 24px; padding:0 0 18px; }
.item-guide-jump a { color:var(--ui-text-dim); font-size:13px; text-underline-offset:4px; }
.item-guide-jump a:hover { color:var(--accent); }
.item-guide-page .guide-section { padding:22px; margin-bottom:16px; }
.item-guide-page .guide-section h2 { margin-bottom:16px; font-size:20px; }
.item-guide-page .guide-section h3 { font-size:14px; line-height:1.5; }
.item-guide-page .guide-section p,.item-guide-page .guide-section li { font-size:14px; line-height:1.7; }
.item-guide-page .guide-section>p { margin:0 0 16px; }
.item-usage-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 28px; }
.item-usage-grid p { margin:0; }
.item-usage-limits { grid-column:1/-1; border-top:1px solid var(--border); padding-top:16px; }
.item-usage-limits h3 { color:var(--accent); }
.item-buying-inline { margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }
.item-buying-inline p { margin:0; }
.item-buying-inline p+p { margin-top:8px; }
.item-example-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 28px; }
.item-guide-page .item-matchup-example { padding:16px 0 0; margin:0; border:0; border-top:1px solid var(--border); border-radius:0; background:transparent; }
.item-guide-page .item-matchup-heading { margin-bottom:10px; }
.item-guide-page .item-matchup-example p { margin:8px 0 0; }
.item-more-matchups { border-top:1px solid var(--border); margin-top:20px; padding-top:16px; }
.item-more-matchups summary { cursor:pointer; font-size:13px; color:var(--ui-text-dim); }
.item-guide-page .item-hero-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:14px; }
.item-guide-page .item-comparison-grid { margin-top:0; }
.item-guide-page .item-comparison { padding:14px; }
.item-guide-page .item-comparison p { margin:6px 0 12px; }
.item-enemy-inline { border-top:1px solid var(--border); margin-top:18px; padding-top:16px; }
.item-enemy-inline p { margin:0 0 10px; }
.item-guide-end { padding:4px 0 0; color:var(--ui-text-dim); font-size:13px; line-height:1.7; }
.item-guide-end nav { display:flex; flex-wrap:wrap; gap:8px 24px; }
.item-guide-end a { color:var(--accent); }
.item-guide-end .guide-source-details { margin-top:16px; }
.item-guide-end ul { padding-left:20px; }
.item-guide-page [id] { scroll-margin-top:100px; }
/* Counter item guides: game-stage chips and accessible section tabs. */
[hidden] { display:none !important; }
.library-intro-context { max-width:850px; color:var(--ui-text-dim); font-size:15px; line-height:1.75; margin:12px 0 22px; }
.item-timing-tags { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 12px; }
.item-guide-page .item-guide-intro .item-timing-tags { grid-column:2; }
.timing-tag { display:inline-flex; align-items:center; white-space:nowrap; padding:4px 9px; border:1px solid var(--border); border-radius:6px; font-size:11px; font-weight:600; line-height:1.4; letter-spacing:.02em; }
.timing-lane { color:#9ae7b1; background:rgba(78,172,108,.12); border-color:rgba(78,172,108,.3); }
.timing-mid { color:#ffd18b; background:rgba(238,164,60,.12); border-color:rgba(238,164,60,.3); }
.timing-late { color:#d3b6ff; background:rgba(158,105,231,.12); border-color:rgba(158,105,231,.3); }
.item-guide-jump { display:flex; flex-wrap:wrap; gap:6px; padding:6px; margin-bottom:18px; background:var(--card-bg,#171717); border:1px solid var(--border); border-radius:10px; }
.item-guide-jump a { flex:1 1 auto; text-align:center; padding:11px 16px; border-radius:7px; border:1px solid transparent; text-decoration:none; line-height:1.4; font-weight:600; }
.item-guide-jump a:hover { background:rgba(255,255,255,.06); }
.item-guide-jump a[aria-current="location"] { background:rgba(158,105,231,.18); border-color:rgba(158,105,231,.45); color:#e0ccff; }
.item-guide-jump a:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.item-usage-grid .item-use-example { margin-top:14px; padding-top:14px; border-top:1px solid var(--border); color:var(--ui-text-dim); }
.purchase-summary { color:var(--ui-text-dim); }
.purchase-summary strong { color:var(--ui-text,#eee); }
.purchase-data-notes { border-top:1px solid var(--border); padding-top:16px; margin-top:18px; }
.purchase-data-notes summary { cursor:pointer; color:var(--accent); font-size:13px; }
.purchase-data-table { width:100%; border-collapse:collapse; margin:16px 0; font-size:13px; text-align:left; }
.purchase-data-table caption { text-align:left; color:var(--ui-text-dim); margin-bottom:8px; }
.purchase-data-table th,.purchase-data-table td { padding:10px 8px; border-bottom:1px solid var(--border); }
.purchase-data-table th { font-weight:600; }
.library-timing-note { margin-bottom:18px; }
.item-library-toolbar { grid-template-columns:minmax(180px,2fr) minmax(140px,1fr) minmax(140px,1fr); }
.item-library-toolbar #item-library-status { grid-column:1/-1; }
.guide-sidebar .on-page a { overflow-wrap:anywhere; }
@media(max-width:760px) {
  .item-library-toolbar { grid-template-columns:1fr 1fr; }
  .item-library-toolbar label:first-child { grid-column:1/-1; }
  .item-guide-jump a { flex:1 1 40%; padding:10px 8px; }
  .purchase-data-table th,.purchase-data-table td { padding:8px 4px; font-size:12px; }
}
@media(max-width:420px) {
  .item-library-toolbar { grid-template-columns:1fr; }
}
@media(max-width:760px) {
  .item-usage-grid,.item-example-grid { grid-template-columns:minmax(0,1fr); }
  .item-guide-page .item-hero-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .item-usage-grid { gap:16px; }
  .item-example-grid { gap:16px; }
}
@media(max-width:600px) {
  .item-guide-page .page-header { padding-top:24px; padding-bottom:18px; }
  .item-guide-page .item-guide-intro { grid-template-columns:58px minmax(0,1fr); gap:12px 14px; }
  .item-guide-page .item-guide-icon { grid-row:1; margin:0; }
  .item-guide-page .item-guide-intro h1 { font-size:27px; letter-spacing:-.7px; }
  .item-guide-page .item-guide-intro .subtitle,.item-guide-page .item-role-tags { grid-column:1/-1; }
  .item-guide-page .item-guide-intro .item-timing-tags { grid-column:1/-1; }
  .item-guide-page .item-guide-intro .subtitle { font-size:14px; }
  .item-guide-page .guide-section { padding:18px; }
  .item-guide-page .guide-section h2 { font-size:18px; }
  .item-guide-jump { gap:8px 18px; padding-bottom:16px; }
  .item-guide-page .item-hero-grid { grid-template-columns:minmax(0,1fr); }
}

/* Header shortcut helper: saves the normal website, not a PWA/app install. */
.nav-links .nav-shortcut-item { margin-left:auto; }
.nav-links .nav-shortcut {
  appearance:none; -webkit-appearance:none; border:1px solid var(--accent); margin:0; cursor:pointer;
  background:var(--accent); color:#000000; font:inherit; font-size:13px;
  font-weight:800; display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px; border-radius:7px; white-space:nowrap; line-height:1.15;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
}
.nav-links .nav-shortcut:hover { background:#f0b44f; border-color:#f0b44f; color:#000000; }
.shortcut-modal[hidden] { display:none !important; }
.shortcut-modal {
  position:fixed; inset:0; z-index:12000; display:grid; place-items:center;
  padding:20px;
}
.shortcut-modal-backdrop {
  position:absolute; inset:0; background:rgba(0,0,0,.72); backdrop-filter:blur(5px);
}
.shortcut-dialog {
  position:relative; width:min(100%,520px); max-height:min(720px,calc(100vh - 40px));
  overflow:auto; background:var(--ui-panel); border:1px solid var(--border); border-radius:12px;
  padding:24px; box-shadow:0 24px 70px rgba(0,0,0,.5);
}
.shortcut-dialog-top { display:flex; gap:18px; align-items:flex-start; justify-content:space-between; }
.shortcut-dialog h2 { margin:0; color:var(--ui-text); font-size:22px; letter-spacing:-.45px; }
.shortcut-dialog .shortcut-intro { margin:9px 0 0; color:var(--ui-text-dim); font-size:13px; line-height:1.65; }
.shortcut-close {
  flex:0 0 auto; width:36px; height:36px; border:1px solid var(--border); border-radius:7px;
  background:var(--ui-inset); color:var(--ui-text); cursor:pointer; font-size:20px; line-height:1;
}
.shortcut-close:hover { border-color:var(--accent); }
.shortcut-device {
  display:inline-flex; margin-top:20px; padding:5px 9px; border:1px solid var(--border);
  border-radius:5px; color:var(--accent); background:var(--ui-orange-tint);
  font-size:10px; font-weight:800; letter-spacing:1px; text-transform:uppercase;
}
.shortcut-steps { margin:16px 0 0; padding-left:21px; color:var(--ui-text-dim); font-size:14px; line-height:1.7; }
.shortcut-steps li+li { margin-top:8px; }
.shortcut-steps strong { color:var(--ui-text); }
.shortcut-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.shortcut-download {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:11px 16px;
  border:1px solid var(--accent); border-radius:6px; background:var(--accent); color:#000;
  font-weight:800; font-size:13px; cursor:pointer;
}
.shortcut-download:hover { filter:brightness(1.08); }
.shortcut-note { margin:16px 0 0; padding-top:14px; border-top:1px solid var(--border); color:var(--ui-text-dim); font-size:12px; line-height:1.6; }
body.shortcut-modal-open { overflow:hidden; }
@media(max-width:1050px) {
  .nav-links .nav-shortcut-item { margin-left:0; }
  .nav-links .nav-shortcut {
    width:100%; text-align:center; justify-content:center; padding:14px 16px; border-radius:8px;
  }
}
@media(max-width:600px) {
  .shortcut-modal { padding:12px; }
  .shortcut-dialog { padding:20px; max-height:calc(100vh - 24px); }
  .shortcut-actions,.shortcut-download { width:100%; }
}


/* Preserve full-width styling when the hero-guide CTA is part of the Journey content region. */
.counter-tool-page .counter-helper-ad-region { max-width:1300px; }
.counter-tool-page .counter-helper-ad-region > .directory-preview { max-width:none; }
