/* The bench uses light work surfaces, a moss-green estimate, and copper trim. */
:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #252e25;
  background: #eeece2;
  line-height: 1.5;
  --ink: #252e25;
  --muted: #535d4e;
  --paper: #faf8ef;
  --line: #d0cabb;
  --pine: #192921;
  --moss: #344d3b;
  --gold: #ffd49a;
  --copper: #754728;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #965126; outline-offset: 3px; }
.wrap { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { background: var(--pine); color: #fff8e9; border-bottom: 2px solid #a77547; }
.site-header :focus-visible, .results :focus-visible { outline-color: var(--gold); }
.header-content { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-weight: 740; line-height: 1.13; text-decoration: none; }
.brand small { display: block; margin-top: 4px; color: #d1dac8; font-size: .8125rem; font-weight: 500; }
.brand-mark { flex: none; width: 32px; height: 32px; border: 1px solid #b98256; border-radius: 5px; display: grid; place-items: center; }
.brand-mark i { width: 13px; height: 13px; transform: rotate(45deg); border: 1px solid #f3bb82; position: relative; }
.brand-mark i::after { content: ""; position: absolute; inset: 3px; background: #f3bb82; }
.workshop-nav { display: flex; gap: clamp(5px, 1.9vw, 22px); margin-left: auto; color: #d1dac8; font-size: .875rem; }
.workshop-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.workshop-nav a[aria-current=page] { border-bottom-color: #cb9865; color: #fff8e9; font-weight: 700; }
.workshop-nav a:hover { color: #fff8e9; text-decoration: underline; text-underline-offset: 4px; }
.header-import { min-height: 44px; padding: 0 13px; border: 1px solid #a88358; border-radius: 5px; background: #28392d; color: #fff8e9; font-weight: 700; font-size: .875rem; white-space: nowrap; }
.header-import:hover { background: #354c3a; }
.header-save-status { display: block; max-width: 12rem; overflow: hidden; color: var(--gold); font-size: .75rem; font-weight: 600; text-overflow: ellipsis; }

.intro { padding: 30px 0 25px; }
h1, .reading h2, .sources h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 4.2vw, 3.65rem); line-height: 1.07; letter-spacing: -.055em; }
.intro p { margin-top: 6px; color: var(--muted); }
.bench-intro { display: flex; justify-content: space-between; align-items: end; gap: 6px 20px; flex-wrap: wrap; }
.bench-section-links { display: flex; flex-wrap: wrap; gap: 3px 16px; color: var(--copper); font-size: .875rem; }
.bench-section-links a { text-underline-offset: 3px; }
.eyebrow { margin-bottom: 8px; color: var(--copper); font-size: .875rem; font-weight: 700; }
h2 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.025em; }

.calculator, .compare { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.planner, .results, .compare-inputs, .compare-result { min-width: 0; padding: clamp(20px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 9px; }
.planner, .compare-inputs { background: var(--paper); box-shadow: 0 3px 0 #3025160b; }
.results { scroll-margin-top: 14px; }
.ad-preview { min-width: 0; }
.ad-preview-label { margin-bottom: 4px; color: var(--muted); font-size: .8125rem; font-weight: 650; }
.mock-ad {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 96px;
  padding: 12px 16px;
  border: 1px solid #9c6038;
  border-radius: 7px;
  background: linear-gradient(115deg, #502e22, #784a32);
  color: #fff1d8;
  line-height: 1.3;
}
.mock-ad-brand { margin-bottom: 3px; color: #ffdc9f; font-family: Georgia, serif; font-size: clamp(1.125rem, 2vw, 1.45rem); font-weight: 700; }
.mock-ad-art { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #b78253; border-radius: 50%; background: #38251f; }
.mock-ad-art span { position: relative; width: 21px; height: 25px; margin-top: 5px; border: 3px solid #e3a669; background: radial-gradient(ellipse at bottom, #fff1c2, #ed9e46 52%, #994726); box-shadow: inset 0 0 0 2px #4c3025; }
.mock-ad-art span::before { content: ""; position: absolute; left: 3px; top: -11px; width: 9px; height: 8px; border: 2px solid #e3a669; border-bottom: 0; border-radius: 6px 6px 0 0; }
.mock-ad-art span::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -5px; height: 4px; background: #e3a669; }
@media (min-width: 821px) {
  .calculator {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    grid-template-areas: "plan result";
  }
  .calculator:has(.ad-preview:not([hidden])) {
    grid-template-areas: "plan result" "plan ad";
    grid-template-rows: auto 1fr;
  }
  .calculator > .planner { grid-area: plan; }
  .calculator > .results { grid-area: result; }
  .calculator > .ad-preview { grid-area: ad; }
}
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.text-button { background: transparent; padding: 0; border: 0; color: var(--copper); text-underline-offset: 3px; text-decoration: underline; font-size: .875rem; font-weight: 700; text-align: left; }
.text-button:hover { color: #55321b; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 15px; align-items: start; }
.fields.single { grid-template-columns: 1fr; }
.planner-wide { grid-column: 1 / -1; }
.planner-fields > .field-note { margin-top: 0; }
.goal-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 15px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #eeebe0; }
.goal-switch input { min-height: 0; margin: 0; border: 0; }
.goal-switch span { display: grid; place-items: center; height: 100%; min-height: 44px; padding: 6px 4px; border-radius: 6px; text-align: center; line-height: 1.2; cursor: pointer; }
.goal-switch span:hover { background: #e8ece4; }
.goal-switch input:checked + span { background: var(--moss); color: #fffdf2; }
.goal-switch input:focus-visible + span { outline: 3px solid #bb6a34; outline-offset: 1px; }
.save-import { width: min(480px, calc(100% - 28px)); padding: clamp(16px, 4vw, 24px); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.save-import::backdrop { background: #142a24a6; }
.loaded-save { margin-top: 10px; padding: 8px 10px; border-radius: 5px; background: #edf3eb; overflow-wrap: anywhere; }
.loaded-save .field-note { margin-top: 0; }
.save-import label { margin-top: 14px; }
.save-import textarea { display: block; width: 100%; min-height: 4.5rem; margin: 5px 0; padding: 8px 10px; border: 1px solid #bdb9aa; border-radius: 5px; background: #fffdf7; color: var(--ink); font: inherit; resize: vertical; }
.save-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.save-import button { min-height: 44px; }
.save-submit { padding: 0 12px; border: 0; border-radius: 5px; background: var(--moss); color: #fffdf2; font-weight: 700; }
.save-import button:disabled { color: var(--muted); cursor: default; }
.save-submit:disabled { background: #e8ece4; }
.save-import p:empty { display: none; }
label { display: block; font-weight: 680; font-size: .875rem; }
select, input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; margin-top: 5px; border: 1px solid #bdb9aa; border-radius: 5px; color: var(--ink); background: #fffdf7; font-size: 1rem; font-weight: 480; }
select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, #40544a 50%), linear-gradient(135deg, #40544a 50%, transparent 50%); background-position: right 14px center, right 9px center; background-size: 5px 5px; background-repeat: no-repeat; }
input[type=number] { appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { appearance: none; margin: 0; }
input[aria-invalid=true] { border-color: #ac4330; }
.input-unit { display: block; position: relative; }
.input-unit input { padding-right: 62px; }
.input-unit > span { position: absolute; top: 10px; right: 11px; color: var(--muted); font-weight: 500; pointer-events: none; }
.field-note { color: var(--muted); font-size: .875rem; margin-top: 5px; }
.field > label[for] + select { margin-top: 5px; }
.field > label:last-child { margin-top: 9px; }
.estimate { min-width: 0; margin: 15px 0 0; padding: 8px 12px 12px; border: 1px solid var(--line); border-radius: 8px; }
.estimate legend { padding: 0 5px; font-size: .875rem; font-weight: 720; }
.estimate .fields { margin-top: 0; align-items: end; }
.check-field { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.check-field input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--moss); }
.estimate-status { margin-top: 8px; font-size: .875rem; font-weight: 650; }
.estimate .text-button { margin-top: 8px; }
.estimate .text-button:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.estimate-actions { display: flex; flex-wrap: wrap; gap: 0 16px; }
.estimate-actions .text-button { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }
.skill-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.skill-shortcuts button {
  min-width: 0;
  min-height: 68px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  padding: 5px 2px;
  border: 1px solid #bab7a6;
  border-radius: 5px;
  background: #eeebe0;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.skill-shortcuts button:hover { background: #e7e9d9; border-color: #798468; }
.skill-shortcuts button[aria-pressed=true] { background: #e1e8d5; border-color: #5f7758; box-shadow: inset 0 -3px #5f7758; }
.skill-shortcuts img { display: block; image-rendering: pixelated; }
.skill-field { margin-top: 13px; }
.skill-field .text-button { min-height: 32px; }
.compare-button { min-height: 44px; padding: 0 12px; border: 1px solid #b99a70; border-radius: 5px; background: #293f31; color: #ffdfb0; font-size: .875rem; font-weight: 700; }
.compare-button:hover { background: #3a523d; }
.text-button.light { color: #eef2e8; font-weight: 650; }
.text-button.light:hover { color: #fff; }
.copy-status { color: var(--gold); font-size: .875rem; }
.copy-status:empty, .field-note:empty, .result-math p:empty { display: none; }
.error { color: #922f20; font-size: .875rem; margin-top: 10px; }

.results {
  background:
    linear-gradient(98deg, var(--pine) 28%, #192921e8 64%, #202f22d9),
    repeating-linear-gradient(90deg, #ad98654f 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, #ad98654f 0 1px, #263729 1px 20px);
  color: #fff8e9;
  border-color: #314536;
  box-shadow: inset 0 3px #aa8050, 0 4px 0 #293f3122;
}
.result-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 22px;
  color: #f4d5ac;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.result-heading::before { content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg); background: #d7a065; }
.headline { overflow-wrap: anywhere; }
#goal-line { color: #fff8e9; font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
#goal-time {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
  font-weight: 760;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.04;
  letter-spacing: -.06em;
}
.result-context { color: #d1dbc9; font-size: .875rem; margin-top: 16px; overflow-wrap: anywhere; }
.results .empty { color: #fff8e9; max-width: 26ch; font-size: 1.25rem; font-weight: 650; line-height: 1.3; }
.result-math { margin-top: 5px; color: #d1dbc9; font-size: .875rem; }
.result-math p { margin-top: 5px; }
summary { cursor: pointer; font-weight: 700; }
.result-math summary, .route-math summary { width: fit-content; color: #fff8e9; padding: 7px 0; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #67785e; }
.copy-status { flex-basis: 100%; }
.fastest-route { margin-top: 18px; padding: 14px; border: 1px solid #536851; border-radius: 5px; background: #2b4033; color: #e2e8d9; font-size: .875rem; }
.fastest-route h3, .milestones h3 { color: #fff8e9; font-size: 1rem; }
.route-decision { margin-top: 4px; color: var(--gold); font-weight: 700; font-size: 1rem; }
.route-steps, .route-math ul { margin: 8px 0 0; padding-left: 21px; }
.route-steps li + li { margin-top: 3px; }
.route-math { margin-top: 6px; }
.route-math p { margin-top: 6px; }
.milestones { margin-top: 16px; color: #e6eee7; font-size: .875rem; }
.milestones p { color: #d1dbc9; }
.milestones ul { margin: 6px 0 0; padding-left: 18px; }

.compare { column-gap: 20px; row-gap: 12px; margin-top: 28px; scroll-margin-top: 16px; }
.compare-heading { grid-column: 1 / -1; align-items: center; }
.compare-inputs h3 { font-size: 1.125rem; }
.compare-result { background: #e5e9da; border-color: #bec8b4; }
.compare-result .empty { color: var(--muted); }
.estimate-math, .reading-math { color: var(--copper); margin-top: 5px; font-size: .875rem; }
.estimate-math p { color: var(--muted); margin-top: 3px; }
.decision strong { display: block; font-size: clamp(1.55rem, 3.15vw, 2.2rem); font-weight: 740; letter-spacing: -.04em; line-height: 1.15; }
.decision p { color: var(--muted); margin-top: 6px; }
.compare-result .chart-row { color: var(--ink); }
.compare-result .track { background: #ced6c7; }
.compare-result .legend { color: var(--muted); }
.chart { margin-top: 16px; }
.chart-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .9rem; }
.chart-row strong { font-variant-numeric: tabular-nums; text-align: right; }
.track { display: flex; overflow: hidden; height: 9px; border-radius: 99px; background: #31473e; margin: 5px 0 12px; }
.track span { display: block; height: 100%; }
.current-bar { background: #8fa79a; }
.upgrade-bar { background: #3f7a5c; }
.acquisition-bar, .legend span { background: #d98e59; }
.legend { display: flex; align-items: center; gap: 7px; font-size: .8125rem; color: #d2ded5; }
.legend span { width: 9px; height: 9px; border-radius: 2px; }
.break-even { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; border-bottom: 1px solid #bec8b4; padding: 8px 0 11px; align-items: baseline; }
.break-even > span { font-weight: 650; white-space: nowrap; color: var(--ink); }
.break-even strong { color: var(--copper); text-align: right; overflow-wrap: anywhere; }
.break-even p { grid-column: 1 / -1; font-size: .875rem; }
.math { margin-top: 14px; padding-top: 10px; border-top: 1px solid #bec8b4; font-size: .875rem; color: var(--muted); }
.math summary { cursor: pointer; color: var(--copper); font-weight: 700; padding: 3px 0; }
.math dl div { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.math dd { color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.math p { margin-top: 9px; }

.reading { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 30px 0; margin-top: 25px; border-top: 1px solid #d7d9cc; }
.skill-library { margin-top: 28px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.skill-library h2 { font: 600 1.9rem/1.12 Georgia, serif; }
.skill-library > p { margin-top: 6px; color: var(--muted); }
.manual-skills-heading { margin-top: 22px; }
.skill-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.skill-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  min-height: 110px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}
.skill-card:hover { background: #eeefdf; border-color: #798468; }
.skill-card[aria-pressed=true] { background: #e1e8d5; border-color: #5f7758; box-shadow: inset 0 -3px #5f7758; }
.skill-card-heading { display: flex; align-items: center; gap: 8px; font-size: .9375rem; line-height: 1.2; overflow-wrap: anywhere; }
.skill-card-art { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid #c4c8b5; border-radius: 5px; background: #e9e9da; }
.skill-card-art img { image-rendering: pixelated; }
.skill-card-examples { color: var(--muted); font-size: .875rem; line-height: 1.38; }
.reading h2, .sources h2 { font-size: 1.85rem; }
.reading p, .sources > p { margin-top: 9px; color: var(--muted); }
.sources { padding: 23px 0 39px; border-top: 1px solid #d7d9cc; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 15px; }
.source-grid article { border: 1px solid var(--line); border-radius: 9px; padding: 15px; background: var(--paper); }
.source-grid h3 { margin: 0; font-size: 1rem; }
.source-grid ul { padding-left: 20px; margin: 7px 0 0; }
.source-grid li { margin-top: 5px; font-size: .875rem; color: var(--muted); }
.source-grid a { color: #355848; font-weight: 700; text-underline-offset: 2px; }
.site-footer { border-top: 1px solid #d7d9cc; }
.site-footer .wrap { display: grid; gap: 4px; padding: 17px 0 22px; color: var(--muted); font-size: .875rem; }
.ad-preview-control { justify-self: start; }
.not-found { display: flex; flex-direction: column; min-height: 100vh; }
.not-found main { flex: 1; }
.home-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 8px 16px; border-radius: 8px; background: var(--pine); color: #f9f7eb; font-weight: 700; text-decoration: none; }
.home-link:hover { text-decoration: underline; }

.purchase-main { padding-bottom: 36px; }
.purchase-result .result-heading { margin-bottom: 14px; }
.purchase-time { color: var(--gold); font-size: clamp(2.25rem, 4.6vw, 4rem); font-weight: 760; font-variant-numeric: tabular-nums; line-height: 1.05; letter-spacing: -.05em; }
.purchase-result .result-context { margin-top: 9px; font-size: 1rem; }
.purchase-breakdown { margin: 18px 0 8px; font-size: .9375rem; }
.purchase-breakdown div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #67785e; }
.purchase-breakdown dd { text-align: right; font-weight: 700; }
.purchase-link { display: inline-flex; align-items: center; text-decoration: none; }
.purchase-link:hover { text-decoration: underline; text-underline-offset: 3px; }
#gp-rate-note { margin-top: 9px; }
.shop-tools { display: flex; align-items: end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.shop-tools label { width: min(100%, 21rem); }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shop-card { display: flex; flex-direction: column; gap: 13px; min-width: 0; padding: clamp(16px, 2vw, 23px); border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 0 3px 0 #3025160b; }
.shop-card-heading { display: flex; align-items: center; gap: 10px; }
.shop-card-heading h2 { font-size: 1.2rem; }
.shop-skill { color: var(--muted); font-size: .875rem; }
.shop-card dl { display: grid; gap: 7px; font-size: .9375rem; }
.shop-card dl div { display: grid; grid-template-columns: 4.3rem 1fr; gap: 7px; }
.shop-card dt { color: var(--muted); }
.shop-card dd.shop-cost { font-weight: 700; }
.shop-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 13px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.shop-estimate { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 12px; border-radius: 5px; background: var(--moss); color: #fffdf2; font-weight: 700; text-decoration: none; }
.shop-estimate:hover { background: var(--pine); }
.shop-source, .shop-estimate { font-size: .875rem; }
.shop-source { display: inline-flex; align-items: center; min-height: 44px; color: var(--copper); text-underline-offset: 3px; }
.shop-empty { color: var(--muted); }

.player-main { padding-bottom: 36px; }
.player-profile { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid #a77547; border-radius: 8px; background: var(--paper); overflow-wrap: anywhere; }
.player-note { margin-top: 5px; color: var(--muted); font-size: .875rem; }
.player-vitals { display: flex; flex-wrap: wrap; gap: 8px 24px; font-variant-numeric: tabular-nums; }
.player-vitals dt { color: var(--muted); font-size: .875rem; }
.player-vitals dd { font-weight: 740; }
.player-layout { display: grid; grid-template-columns: minmax(245px, .83fr) minmax(0, 2fr); align-items: start; gap: 20px; margin-top: 18px; }
.player-loadout { padding: 20px; border: 1px solid #4d604c; border-radius: 9px; background: var(--pine); color: #fff8e9; }
.player-loadout :focus-visible { outline-color: var(--gold); }
.player-loadout .player-note { color: #d1dac8; }
.player-loadout .player-note:empty { display: none; }
.player-loadout label { margin-top: 15px; }
.player-loadout label .player-note { font-weight: 400; }
#manual-attack { max-width: 9rem; }
.player-slots { display: grid; gap: 5px; margin-top: 13px; }
.player-slots button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 10px; border: 1px solid #5d6b55; border-radius: 5px; background: #24362b; color: #fff8e9; text-align: left; }
.player-slots button:hover { background: #2b4031; }
.player-slots button[aria-pressed=true] { border-color: #ce9d68; box-shadow: inset 3px 0 #ce9d68; background: #334939; }
.player-slots button span { color: #d1dac8; font-size: .875rem; }
.player-slots button strong { text-align: right; font-size: .875rem; overflow-wrap: anywhere; }
.player-empty-toggle { margin-top: 5px; min-height: 44px; }
.player-upgrades { min-width: 0; }
.player-upgrades-heading { margin: 1px 0 13px; }
.player-upgrades-heading h2 { scroll-margin-top: 12px; }
.player-upgrades-heading .weapon-bonuses { max-width: 25rem; margin-top: 9px; }
.player-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; gap: 12px; }
.player-weapon { display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 0 3px 0 #3025160b; }
.weapon-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 5px 8px; flex-wrap: wrap; }
.weapon-heading h3 { font-size: 1.2rem; }
.weapon-status { padding: 2px 7px; border-radius: 4px; background: #efe9dc; color: #654526; font-size: .875rem; font-weight: 650; }
.weapon-status.weapon-owned { background: #e0ebd9; color: #284835; }
.weapon-stats { display: grid; gap: 3px; padding: 8px 10px; border-radius: 5px; background: #efeee5; font-size: .875rem; font-variant-numeric: tabular-nums; }
.weapon-stats div { display: flex; justify-content: space-between; gap: 6px 12px; }
.weapon-stats dd { text-align: right; font-weight: 660; }
.weapon-requirement + .weapon-stats { margin-top: 10px; }
.weapon-gain { color: #326043; }
.weapon-loss { color: #8a442d; }
.weapon-bonuses { margin: 4px 0 0; font-size: .875rem; }
.weapon-bonuses summary, .player-skills summary { padding: 5px 0; color: var(--copper); cursor: pointer; font-weight: 680; }
.weapon-route { margin-top: 8px; font-size: 1rem; }
.weapon-route h4 { margin: 0; font-size: .9375rem; }
.weapon-route ul { margin: 5px 0 6px; padding-left: 19px; }
.weapon-estimate { color: var(--moss); font-weight: 700; }
.weapon-links { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: auto; padding-top: 4px; }
.weapon-links a, .weapon-route a, .player-skill-list a { color: var(--copper); text-underline-offset: 3px; }
.weapon-links a, .player-skill-list a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.player-baseline { margin-top: 13px; }
.player-skills { margin-top: 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.player-skill-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: 3px 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.player-skill-list li { display: flex; justify-content: space-between; align-items: center; gap: 0 10px; flex-wrap: wrap; padding-inline: 8px; border-top: 1px solid var(--line); }

@media (min-width: 491px) {
  .planner:has([name=goal]:checked:is([value=items], [value=xp])) :is(#activity-field, #target-field) { grid-column: auto; }
}
@media (max-width: 1050px) {
  .skill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .wrap { width: min(680px, calc(100% - 36px)); }
  .calculator, .compare { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { padding: 24px 0 18px; }
  #goal-time { font-size: clamp(2.35rem, 7vw, 3.5rem); }
  .header-content { flex-wrap: wrap; gap: 0 10px; padding-top: 8px; }
  .workshop-nav { order: 1; flex-basis: 100%; margin-left: 0; }
  .player-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .player-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 490px) {
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap { width: calc(100% - 28px); }
  .header-content { min-height: 65px; }
  .header-content { gap: 0 8px; }
  .brand { gap: 8px; }
  .brand small { font-size: .75rem; }
  .header-import { padding-inline: 9px; }
  .header-save-status { max-width: 84px; }
  .workshop-nav { gap: 0; justify-content: space-between; flex-wrap: wrap; }
  .workshop-nav a { padding-inline: 5px; }
  .intro { padding: 18px 0 14px; }
  .intro p { margin-top: 4px; font-size: .9375rem; }
  .planner, .results, .compare-inputs, .compare-result { padding: 16px; }
  .result-heading { margin-bottom: 13px; }
  .result-context { margin-top: 12px; }
  .result-actions { margin-top: 11px; padding-top: 11px; gap: 5px 13px; }
  .result-actions .text-button { min-height: 44px; }
  .fields { gap: 10px; }
  .fields, .reading, .source-grid, .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .reading { gap: 22px; }
  .player-loadout, .player-profile { padding: 14px; }
  .player-slots button { flex-direction: column; align-items: flex-start; gap: 1px; }
  .player-slots button strong { text-align: left; }
}
@media (max-width: 360px) {
  .skill-card-heading { flex-direction: column; align-items: flex-start; }
  .wrap { width: calc(100% - 20px); }
  .header-content { padding-block: 6px; }
  .skill-shortcuts { gap: 5px; }
}
