
:root {
  color-scheme: dark;
  --bg: #17130f;
  --surface: #211c17;
  --surface-2: #292219;
  --line: #4a3e2e;
  --muted: #afa38e;
  --text: #f1e7d1;
  --lime: #e2b84b;
  --cyan: #86a66f;
  --violet: #b89ac8;
  --amber: #d27e47;
  --red: #db6d5e;
  --radius: 8px;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse at 78% 0%, rgba(226,184,75,.11), transparent 34rem),
    radial-gradient(ellipse at 3% 56%, rgba(134,166,111,.07), transparent 32rem),
    linear-gradient(145deg, transparent 0 48%, rgba(255,255,255,.012) 49% 51%, transparent 52%),
    var(--bg);
  background-attachment: fixed;
}

button,
input {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.site-header,
main,
footer {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(226,184,75,.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226,184,75,.58);
  border-radius: 5px;
  color: var(--lime);
  background: linear-gradient(145deg, rgba(226,184,75,.16), rgba(226,184,75,.025));
  box-shadow: inset 0 0 18px rgba(226,184,75,.07), 0 5px 14px rgba(0,0,0,.22);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.brand > span:last-child {
  display: grid;
  line-height: 1.05;
}

.brand b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: -.02em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.start-panel {
  min-height: calc(100vh - 160px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 68px 0 110px;
}

.eyebrow {
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.analyzer-card {
  position: relative;
  width: min(100%, 500px);
  padding: 30px;
  border: 1px solid #554633;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(43,36,27,.98), rgba(29,24,19,.99));
  box-shadow: 0 32px 80px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.04);
}

.analyzer-card::before {
  position: absolute;
  inset: 6px;
  z-index: 0;
  border-radius: inherit;
  content: "";
  border: 1px solid rgba(226,184,75,.13);
  pointer-events: none;
}

.card-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 27px;
}

.card-top .step {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #5b4b37;
  border-radius: 5px;
  color: var(--lime);
  background: #191510;
  font-size: 12px;
  font-weight: 800;
}

.card-top h2 {
  margin: 4px 0 0;
  font-size: 24px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field > label {
  font-size: 12px;
  font-weight: 800;
}

.steam-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.field input {
  width: 100%;
  height: 53px;
  padding: 0 15px;
  border: 1px solid #534533;
  border-radius: 5px;
  outline: 0;
  color: var(--text);
  background: #16120f;
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus {
  border-color: rgba(226,184,75,.75);
  box-shadow: 0 0 0 3px rgba(226,184,75,.1);
}

.field input::placeholder {
  color: #596151;
}

.field small {
  color: var(--muted);
  font-size: 11px;
}

.steam-help-button {
  width: 53px;
  height: 53px;
  border: 1px solid #584936;
  border-radius: 5px;
  cursor: pointer;
  color: var(--lime);
  background: #211b15;
  font-size: 17px;
  font-weight: 900;
  transition: border-color .2s, background .2s, transform .2s;
}

.steam-help-button:hover,
.steam-help-button[aria-expanded="true"] {
  border-color: rgba(226,184,75,.7);
  background: rgba(226,184,75,.09);
  transform: translateY(-1px);
}

.steam-help-button:focus-visible {
  outline: 3px solid rgba(226,184,75,.18);
  outline-offset: 2px;
}

.steam-help {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid #594a36;
  border-radius: 5px;
  color: var(--muted);
  background: #191510;
  font-size: 11px;
  line-height: 1.55;
}

.steam-help[hidden] {
  display: none;
}

.steam-help strong {
  color: var(--text);
  font-size: 12px;
}

.steam-help p {
  margin: 0;
}

.steam-help b {
  color: var(--lime);
}

.steam-help a {
  color: var(--lime);
  text-underline-offset: 3px;
}

.drop-zone {
  min-height: 142px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 1px dashed #685742;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(15,12,9,.48);
  transition: border-color .2s, background .2s, transform .2s;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--lime);
  background: rgba(226,184,75,.055);
  transform: translateY(-1px);
}

.drop-zone.has-file {
  border-style: solid;
  border-color: rgba(134,166,111,.7);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--lime);
  background: rgba(226,184,75,.1);
  font-size: 22px;
}

.drop-zone > span:nth-child(3) {
  display: grid;
  gap: 5px;
}

.drop-zone b {
  font-size: 13px;
}

.drop-zone small {
  color: var(--muted);
  font-size: 11px;
}

.drop-zone > strong {
  grid-column: 2;
  overflow: hidden;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  border: 0;
  border: 1px solid #f0c861;
  border-radius: 5px;
  cursor: pointer;
  color: #111409;
  background: linear-gradient(180deg, #edca69, var(--lime));
  box-shadow: 0 4px 0 #8b681c, 0 12px 28px rgba(0,0,0,.28);
  font-size: 13px;
  font-weight: 900;
  transition: filter .2s, transform .2s, opacity .2s;
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: .35;
  box-shadow: none;
}

.primary-button i {
  font-size: 17px;
  font-style: normal;
}

.button-loader {
  display: none;
}

.primary-button.loading .button-label,
.primary-button.loading i {
  display: none;
}

.primary-button.loading .button-loader {
  display: inline;
}

.form-error {
  min-height: 18px;
  margin: 10px 2px 0;
  color: var(--red);
  font-size: 11px;
  line-height: 1.5;
}

.privacy-note {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 5px 0 0;
  color: #767e6e;
  font-size: 10px;
}

.privacy-note span {
  color: var(--lime);
}

.results {
  padding: 26px 0 90px;
}

.results-topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ghost-button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  color: #b7beae;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.ghost-button:hover {
  color: var(--text);
  border-color: #485240;
}

.tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 18px 0 10px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.tabs button:hover {
  color: var(--text);
}

.tabs button.active {
  color: #21180b;
  background: var(--lime);
  box-shadow: inset 0 -2px rgba(99,70,12,.35);
}

.result-content {
  padding-top: 24px;
}

.hero-result {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  padding: 25px 0 30px;
}

.hero-result h2,
.section-heading h2 {
  margin: 7px 0 8px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.06em;
}

.hero-result p,
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.save-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.save-facts span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: rgba(33,28,23,.78);
  font-size: 10px;
}

.save-facts b {
  color: var(--text);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.summary-card {
  min-height: 176px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 30px rgba(0,0,0,.15);
}

.summary-card > div:first-child {
  display: grid;
  align-content: center;
}

.summary-card > div > strong {
  margin-top: 12px;
  font-size: 35px;
  letter-spacing: -.06em;
}

.summary-card strong small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 14px;
}

.summary-card p {
  max-width: 105px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.summary-card.cyan .eyebrow { color: var(--cyan); }
.summary-card.violet .eyebrow { color: var(--violet); }
.summary-card.amber .eyebrow { color: var(--amber); }

.ring {
  --ring-color: var(--lime);
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--value) * 1%), #443827 0);
}

.cyan .ring { --ring-color: var(--cyan); }
.violet .ring { --ring-color: var(--violet); }
.amber .ring { --ring-color: var(--amber); }

.ring::before {
  width: 62px;
  height: 62px;
  grid-area: 1/1;
  border-radius: 50%;
  content: "";
  background: #211b15;
}

.ring > div {
  z-index: 1;
  display: grid;
  grid-area: 1/1;
  text-align: center;
}

.ring strong {
  font-size: 16px;
  letter-spacing: -.04em;
}

.ring span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.overview-split {
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  gap: 12px;
  margin-top: 12px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.panel-heading h3,
.subsection-heading h3 {
  margin: 5px 0 0;
  font-size: 22px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
}

.campaign-bars {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 11px;
}

.bar-label span {
  color: var(--muted);
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #403526;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9d7623, var(--lime));
}

.bar.insane i {
  background: linear-gradient(90deg, #7259b0, var(--violet));
}

.highest-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 27px;
  padding: 17px;
  border: 1px solid rgba(226,184,75,.13);
  border-radius: 5px;
  background: #191510;
}

.highest-card > div {
  display: grid;
  gap: 5px;
}

.highest-card span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.highest-card strong {
  font-size: 16px;
}

.highest-card b {
  color: var(--lime);
  font-size: 11px;
}

.next-list {
  display: grid;
  gap: 2px;
  max-height: 292px;
  overflow: auto;
  margin-top: 20px;
  padding-right: 4px;
}

.next-list > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 10px;
}

.next-list > div:hover {
  background: #30281e;
}

.type-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
}

.next-portrait {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #46513d;
  border-radius: 4px;
  object-fit: cover;
  object-position: center 18%;
  background: #191510;
}

.next-list p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.next-list b {
  font-size: 11px;
}

.next-list small {
  color: var(--muted);
  font-size: 9px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.mini-stats div {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
}

.mini-stats span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-stats b {
  font-size: 19px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 24px 0 30px;
}

.collection-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.collection-toolbar label {
  display: grid;
  gap: 7px;
}

.collection-toolbar label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.collection-search {
  width: min(320px, 70vw);
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  color: var(--text);
  background: var(--surface);
  font-size: 11px;
}

.collection-search:focus {
  border-color: rgba(226,184,75,.65);
}

.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.segmented button {
  padding: 8px 11px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
}

.segmented button.active {
  color: var(--text);
  background: #4a3d2c;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.collection-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  opacity: .7;
}

.collection-card.owned {
  opacity: 1;
  border-color: #665335;
  background: linear-gradient(145deg, rgba(226,184,75,.055), var(--surface));
}

.collection-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #514330;
  border-radius: 4px;
  color: var(--muted);
  background: #191510;
  font-size: 10px;
  font-weight: 900;
}

.owned .collection-icon {
  color: var(--lime);
  border-color: rgba(226,184,75,.34);
  background: rgba(226,184,75,.07);
}

.collection-card > div {
  display: grid;
  gap: 4px;
}

.collection-card b {
  font-size: 11px;
}

.collection-title {
  width: fit-content;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration-color: rgba(226,184,75,.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.collection-title:hover,
.collection-title:focus-visible {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

.dlc-label {
  color: var(--amber);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: .72em;
  font-weight: 900;
  letter-spacing: .05em;
  white-space: nowrap;
}

.collection-card small {
  color: var(--muted);
  font-size: 9px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 5px 7px;
  border-radius: 99px;
  color: var(--muted);
  background: #3a3024;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #687060;
}

.status.done {
  color: var(--lime);
  background: rgba(226,184,75,.09);
}

.status.done i {
  background: var(--lime);
}

.character-layout {
  display: grid;
  grid-template-columns: minmax(320px, .77fr) minmax(500px, 1.23fr);
  gap: 14px;
  align-items: start;
}

.character-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.character-card {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  background: var(--surface);
}

.character-card:hover {
  border-color: #6b5942;
}

.character-card.selected {
  border-color: rgba(226,184,75,.7);
  box-shadow: 0 0 0 3px rgba(226,184,75,.06);
}

.character-card.locked {
  opacity: .57;
}

.character-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.character-card b {
  font-size: 10px;
}

.character-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.character-card > i {
  color: var(--lime);
  font-size: 11px;
  font-style: normal;
}

.character-card.locked > i {
  color: #626a5b;
}

.avatar {
  width: 39px;
  height: 39px;
  display: block;
  flex: 0 0 auto;
  border: 1px solid #6a5841;
  border-radius: 4px;
  object-fit: cover;
  object-position: center 18%;
  background: #191510;
}

.avatar.large {
  width: 64px;
  height: 64px;
  border-radius: 5px;
}

.character-detail {
  position: sticky;
  top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
}

.detail-top {
  display: flex;
  gap: 15px;
  align-items: center;
}

.detail-top > div {
  display: grid;
  gap: 6px;
}

.detail-top h3 {
  margin: 0;
  font-size: 25px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}

.level-line {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: baseline;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(226,184,75,.12);
  border-radius: 5px;
  background: #191510;
}

.level-line span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.level-line strong {
  color: var(--lime);
  font-size: 25px;
}

.level-line small {
  justify-self: end;
  color: var(--muted);
  font-size: 9px;
}

.equipment-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.equipment-line div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.equipment-line span,
.stats-grid span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.equipment-line b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 19px;
}

.stats-grid > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.stats-grid b {
  font-size: 9px;
}

.stats-grid i {
  height: 4px;
  grid-column: 1/-1;
  overflow: hidden;
  border-radius: 99px;
  background: #2a3025;
}

.stats-grid em {
  display: block;
  height: 100%;
  background: var(--cyan);
}

.mode-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 26px 0 11px;
}

.mode-heading > div {
  display: flex;
  gap: 9px;
  align-items: center;
}

.mode-heading h4 {
  margin: 0;
  font-size: 13px;
}

.mode-heading > b {
  color: var(--muted);
  font-size: 10px;
}

.checkpoint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.checkpoint {
  min-height: 33px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 7px;
  border: 1px solid #44382a;
  border-radius: 4px;
  color: #676f61;
  font-size: 8px;
}

.checkpoint i {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #383f33;
  border-radius: 4px;
  font-size: 8px;
  font-style: normal;
}

.checkpoint.done {
  color: #dfe5d8;
  border-color: #645335;
  background: rgba(226,184,75,.035);
}

.checkpoint.done i {
  color: #111409;
  border-color: var(--lime);
  background: var(--lime);
}

.locked-detail {
  display: grid;
  gap: 8px;
  margin-top: 25px;
  padding: 20px;
  border: 1px dashed #3c4336;
  border-radius: 5px;
}

.locked-detail span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.locked-detail strong {
  font-size: 14px;
  line-height: 1.5;
}

.arena-grid {
  display: grid;
  gap: 8px;
}

.arena-card {
  min-height: 88px;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.arena-card > span {
  color: #4f5749;
  font-size: 22px;
  font-weight: 900;
}

.arena-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.arena-card p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.arena-card.cleared {
  border-color: rgba(226,184,75,.4);
  background: linear-gradient(90deg, rgba(226,184,75,.065), var(--surface) 45%);
}

.arena-card.available {
  border-color: rgba(255,201,94,.3);
}

.arena-state {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: #656d5f;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.arena-state small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  text-transform: none;
}

.cleared .arena-state {
  color: var(--lime);
}

.available .arena-state {
  color: var(--amber);
}

.subsection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 42px 0 16px;
}

.subsection-heading > b {
  color: var(--lime);
  font-size: 22px;
}

.empty-state {
  grid-column: 1/-1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 5px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

footer {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #676e60;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .collection-grid {
    grid-template-columns: 1fr 1fr;
  }

  .character-layout {
    grid-template-columns: 1fr;
  }

  .character-detail {
    position: static;
  }
}

@media (max-width: 780px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 640px);
  }

  .site-header {
    min-height: 74px;
  }

  .start-panel {
    padding: 45px 0 70px;
  }

  .analyzer-card {
    padding: 22px;
  }

  .overview-split,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .mini-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-result,
  .section-heading {
    align-items: flex-start;
  }

  .save-facts {
    max-width: 180px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
  }

  .results {
    padding-top: 10px;
  }

  .results-topbar,
  .hero-result,
  .section-heading,
  .collection-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .results-topbar {
    padding: 14px 0;
  }

  .ghost-button {
    width: 100%;
  }

  .hero-result {
    display: grid;
  }

  .save-facts {
    max-width: none;
    justify-content: flex-start;
  }

  .section-heading {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .section-heading p {
    max-width: 240px;
  }

  .collection-toolbar {
    display: grid;
  }

  .collection-search {
    width: 100%;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .equipment-line {
    grid-template-columns: 1fr;
  }

  .checkpoint-grid {
    grid-template-columns: 1fr 1fr;
  }

  .character-detail {
    padding: 18px;
  }

  .arena-card {
    grid-template-columns: 35px 1fr;
  }

  .arena-state {
    grid-column: 2;
    justify-items: start;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
