/* Site theme. Colours follow the game's own item-quality colours, so they
   carry the same meaning players already know:
   white normal, blue magic, yellow rare, green set, gold unique,
   orange crafted/runes, grey socketed, red "requirement not met". */

:root {
  --stone: #1f1b17;
  --stone-raised: #29241e;
  --line: #463d33;
  --tooltip: rgb(0 0 0 / 0.88);
  --text: #ece6da;
  --text-dim: #a39887;

  --q-normal: #f2f2f2;
  --q-magic: #8484ff;
  --q-rare: #ffff7a;
  --q-set: #3ad13a;
  --q-unique: #c9b47c;
  --q-crafted: #ffa800;
  --q-socketed: #8e8e8e;
  --q-red: #ff5a5a;

  --font-display: "Marcellus", "Trajan Pro", Georgia, serif;
  --font-body: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;

  /* Type scale: 1.25 ratio from a 17px base. */
  --step--1: 0.85rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-6: 3.815rem;

  /* ---- Materials: worn stone and dark iron, after the game's panels ----
     Textures are SVG noise, so there are no image files to load. */

  /* Fine grit, for every stone surface. */
  --tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.5'/%3E%3C/svg%3E");
  /* Cloudy light patches and thin dark cracks, for large slabs. */
  --tex-stone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .009' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .93 0 0 0 0 .82 1.6 0 0 0 -.68'/%3E%3C/filter%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='.009' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -7 0 0 0 .6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='.09'/%3E%3Crect width='100%25' height='100%25' filter='url(%23c)' opacity='.3'/%3E%3C/svg%3E");
  --stone-surface: var(--tex-grain), var(--tex-stone);
  --stone-surface-size: 180px 180px, 520px 520px;

  /* A carved frame standing off the page: lit top edge, dark lower edge,
     an iron rim, then a soft drop shadow. */
  --frame-raised:
    inset 0 1px 0 rgb(255 240 210 / 0.07),
    inset 0 -1px 0 rgb(0 0 0 / 0.6),
    inset 0 0 40px rgb(0 0 0 / 0.35),
    0 0 0 3px #110f0d,
    0 0 0 4px #3d352c,
    0 8px 24px rgb(0 0 0 / 0.55);
  /* Smaller lift for buttons and tabs. */
  --bevel:
    inset 0 1px 0 rgb(255 240 210 / 0.09),
    inset 0 -1px 0 rgb(0 0 0 / 0.55),
    0 1px 2px rgb(0 0 0 / 0.6);
  /* A slot sunk into the stone: shadowed inside, a faint lit lip below. */
  --well:
    inset 0 2px 6px rgb(0 0 0 / 0.85),
    inset 0 0 0 1px rgb(0 0 0 / 0.5),
    0 1px 0 rgb(255 240 210 / 0.05);
  /* Lettering cut into stone. */
  --engrave: 0 1px 0 #000, 0 -1px 0 rgb(255 240 210 / 0.05);
  --engrave-gilt: 0 1px 0 #000, 0 0 14px rgb(201 180 124 / 0.22);
  /* Iron trim and gilt edges. */
  --iron: #3d352c;
  --gilt-line: linear-gradient(to right, transparent, #8a7443 20%, #c9b47c 50%, #8a7443 80%, transparent);

  --radius: 3px;
  --sidebar-width: 15rem;
  --topbar-height: 60px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { font-size: 17px; }

body {
  margin: 0;
  background-color: var(--stone);
  background-image: var(--stone-surface);
  background-size: var(--stone-surface-size);
  /* The stone stays put while the page scrolls over it. */
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  /* Lining figures: the font's default old-style numbers bob up and down,
     which makes stats and results harder to scan. */
  font-variant-numeric: lining-nums;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

a { color: var(--q-unique); }

:focus-visible {
  outline: 2px solid var(--q-unique);
  outline-offset: 2px;
}

/* ---- Item-quality text ---- */

[data-quality="normal"] { color: var(--q-normal); }
[data-quality="magic"] { color: var(--q-magic); }
[data-quality="rare"] { color: var(--q-rare); }
[data-quality="set"] { color: var(--q-set); }
[data-quality="unique"] { color: var(--q-unique); }
[data-quality="crafted"] { color: var(--q-crafted); }

/* Red, like an unmet item requirement: errors and things you're short of. */
.req { color: var(--q-red); }

/* ---- Page shell: top bar, then sidebar + content ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--topbar-height);
  padding: 0 24px 0 20px;
  background-color: #191613;
  background-image: linear-gradient(rgb(255 240 210 / 0.04), rgb(0 0 0 / 0.25)), var(--stone-surface);
  background-size: auto, var(--stone-surface-size);
  border-bottom: 1px solid #000;
  /* An iron rim under the bar, and a shadow cast onto the page. */
  box-shadow: inset 0 -1px 0 var(--iron), 0 4px 14px rgb(0 0 0 / 0.6);
}

.brand {
  width: calc(var(--sidebar-width) - 20px);
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--q-unique);
  text-decoration: none;
  text-shadow: var(--engrave-gilt);
}

/* ---- Item search: the main way to find items, always in the top bar ---- */

.search {
  position: relative;
  flex: 1;
  max-width: 34rem;
}
.search input {
  padding: 8px 36px 8px 12px;
  background: rgb(0 0 0 / 0.45);
}
.search-key {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 6px;
  font: inherit;
  font-size: var(--step--1);
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  pointer-events: none;
}
.search input:focus + .search-key { display: none; }

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--tooltip);
  border: 1px solid #3b3b3b;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.7);
}
.search-result {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 12px;
  padding: 6px 12px;
  cursor: pointer;
}
.search-result[aria-selected="true"] { background: rgb(255 255 255 / 0.08); }
.search-text { display: flex; flex-direction: column; min-width: 0; justify-self: stretch; }
.search-name { color: var(--q-normal); }
.search-name[data-quality="unique"] { color: var(--q-unique); }
.search-name[data-quality="set"] { color: var(--q-set); }
.search-name[data-quality="crafted"] { color: var(--q-crafted); }
.search-meta { font-size: var(--step--1); color: var(--text-dim); }
.search-empty { padding: 8px 12px; color: var(--text-dim); }

/* ---- Inventory footprint: an item's size in inventory cells ---- */

.footprint {
  --cell: 11px;
  flex: none;
  display: inline-block;
  width: calc(var(--w) * var(--cell) + 1px);
  height: calc(var(--h) * var(--cell) + 1px);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-color: rgb(40 60 110 / 0.35);
  --grid-line: rgb(150 170 220 / 0.35);
}
.footprint-medium { --cell: 22px; }
.footprint-large { --cell: 36px; }
.footprint img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Items in a grid that can be dragged to other cells (grid-arrange.js): the
   item follows the pointer, and the cells it would land on light up, red
   when it can't go there and gold for a swap. */
.arrangeable { touch-action: none; user-select: none; -webkit-user-select: none; }
.arrangeable.dragging { z-index: 3; opacity: 0.85; cursor: grabbing; }
.drop-target { position: absolute; z-index: 2; pointer-events: none; background: rgb(60 140 70 / 0.35); border: 1px solid rgb(110 190 120 / 0.7); }
.drop-target.blocked { background: rgb(150 40 40 / 0.35); border-color: rgb(200 80 80 / 0.7); }
.drop-target.swap { background: rgb(170 140 60 / 0.35); border-color: rgb(220 190 110 / 0.75); }
.footprint.unusable {
  background-color: rgb(150 30 30 / 0.45);
  --grid-line: rgb(230 120 120 / 0.35);
}

/* The character calculators use. Sits at the far right of the bar. */
.character-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}
.character-picker label {
  margin: 0;
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--text-dim);
}
.character-picker select {
  width: auto;
  max-width: 22rem;
  padding: 6px 10px;
  color: var(--q-unique);
  background: var(--tooltip);
  border-color: #3b3b3b;
}
.picker-edit { font-size: var(--step--1); }
.picker-empty { font-size: var(--step--1); color: var(--text-dim); }

.menu-toggle { display: none; }

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar-height));
}

.sidebar {
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
  padding: 4px 0 24px;
  background-color: #1c1915;
  background-image: var(--stone-surface);
  background-size: var(--stone-surface-size);
  border-right: 1px solid #000;
  /* Iron edge, and the column stands slightly over the content. */
  box-shadow: inset -1px 0 0 var(--iron), inset -12px 0 18px -12px rgb(0 0 0 / 0.6), 4px 0 14px rgb(0 0 0 / 0.4);
}

#site-nav section { margin-top: 20px; }

/* Section names carved in spaced small capitals, over a fading gilt rule. */
#site-nav h2 {
  position: relative;
  margin: 0 20px 4px;
  padding: 0 0 6px;
  font-size: var(--step-0);
  font-variant: small-caps;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-shadow: var(--engrave);
}
#site-nav h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gilt-line);
  opacity: 0.35;
}
/* On desktop the first section ("Your characters") goes without its name,
   kept for screen readers. On small screens the menu still shows it. */
@media (min-width: 761px) {
  #site-nav section:first-child h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
/* The section holding the current page: its name and rule catch the light. */
#site-nav section:has([aria-current="page"]) h2 { color: var(--q-unique); text-shadow: var(--engrave-gilt); }
#site-nav section:has([aria-current="page"]) h2::after { opacity: 0.85; }

#site-nav ul { list-style: none; margin: 0; padding: 0; }

.tool {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 20px;
  color: var(--text);
  text-decoration: none;
}

#site-nav a.tool:hover { background: rgb(255 255 255 / 0.05); }

/* The current page sits in a groove, and the sidebar's iron edge lights up
   gilt beside it, glowing back into the groove. */
#site-nav a.tool[aria-current="page"] {
  background: linear-gradient(to right, rgb(0 0 0 / 0.2), rgb(0 0 0 / 0.35) 60%, rgb(201 180 124 / 0.12));
  box-shadow:
    inset -1px 0 0 var(--q-unique),
    inset -10px 0 12px -8px rgb(201 180 124 / 0.45),
    inset 0 2px 5px rgb(0 0 0 / 0.7),
    0 1px 0 rgb(255 240 210 / 0.05);
}

/* Planned tools keep their quality colour but dimmed, so the colour code
   still reads before the page exists. */
.tool.planned { color: var(--text-dim); }
.tool.planned .tool-name[data-quality] { opacity: 0.6; }
.tool.planned .tool-name:not([data-quality]) { color: var(--text-dim); }

.status { font-size: var(--step--1); font-style: italic; color: var(--q-socketed); }

.content {
  padding: 48px 48px 64px;
  max-width: 68rem;
}

.content-wide { max-width: 92rem; }

.page-header { margin-bottom: 32px; max-width: 40rem; }
.page-header h1 { font-size: var(--step-4); color: var(--q-unique); text-shadow: var(--engrave-gilt); }
h2, h3 { text-shadow: var(--engrave); }
.lede { margin: 8px 0 0; color: var(--text-dim); font-size: var(--step-1); line-height: 1.45; }

@media (max-width: 760px) {
  :root { --topbar-height: 104px; }

  /* Bar wraps: brand and menu on the first row, character on the second. */
  .topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 10px 16px;
  }
  .brand { width: auto; }
  .menu-toggle {
    display: block;
    margin-left: auto;
    padding: 6px 14px;
    font: inherit;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
  }
  /* Second row: search and character side by side. */
  .search { order: 1; flex: 1 1 55%; max-width: none; }
  .search-key { display: none; }
  .character-picker { order: 2; flex: 1 1 35%; margin-left: 0; }
  .character-picker label, .picker-edit { display: none; }
  .character-picker select { flex: 1; max-width: none; min-width: 0; }

  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }

  .sidebar {
    display: none;
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar.open { display: block; }
  #site-nav h2, .tool { padding-left: 16px; padding-right: 16px; }

  .content { padding: 28px 16px 48px; }
  .page-header h1 { font-size: var(--step-3); }
}

/* ---- Forms ---- */

/* A raised slab of stone in an iron frame. */
.panel {
  background-color: var(--stone-raised);
  background-image: var(--stone-surface);
  background-size: var(--stone-surface-size);
  border: 1px solid #4f463a;
  border-radius: var(--radius);
  box-shadow: var(--frame-raised);
  padding: 24px;
}

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

select, input {
  width: 100%;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  background: rgb(0 0 0 / 0.4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--well);
}
/* Native menus don't take a see-through background. */
option { background: var(--stone); }

input:invalid { border-color: var(--q-red); }

/* Filled in from a saved character. */
select:disabled, input:disabled {
  color: var(--text-dim);
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  opacity: 1;
}

.hint {
  margin: 6px 0 0;
  font-size: var(--step--1);
  color: var(--text-dim);
  line-height: 1.45;
  max-width: 34rem;
}

input[aria-invalid="true"] { border-color: var(--q-red); }

label.checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; }
label.checkbox[hidden] { display: none; }
input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--q-unique); box-shadow: none; }

/* Gilt: lit from above, with a dark lower edge so it stands off the stone. */
.button {
  padding: 8px 18px;
  font: inherit;
  font-weight: 500;
  color: #1a1510;
  background: linear-gradient(#ddc98f, #b49c5f);
  border: 1px solid #6f5d33;
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgb(255 250 225 / 0.5), inset 0 -2px 0 rgb(80 60 20 / 0.45), 0 2px 4px rgb(0 0 0 / 0.6);
  text-shadow: 0 1px 0 rgb(255 245 210 / 0.35);
  cursor: pointer;
}
a.button { display: inline-block; text-decoration: none; }
.button:hover { background: linear-gradient(#ead8a2, #c4ab6c); }
.button:active { box-shadow: inset 0 2px 4px rgb(60 40 10 / 0.5); }
.button.secondary {
  color: var(--text);
  background: linear-gradient(#2f2923, #1c1915);
  border-color: var(--line);
  box-shadow: var(--bevel);
  text-shadow: var(--engrave);
}
.button.secondary:hover { background: linear-gradient(#3a332b, #221e19); border-color: var(--q-socketed); }
.button.secondary:active { box-shadow: var(--well); }

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.link-button {
  padding: 0;
  font: inherit;
  color: var(--q-unique);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button.danger { color: var(--q-red); }

/* Radio groups shown as joined buttons. */
.segmented { margin: 0; padding: 0; border: 0; min-width: 0; }
.segmented-options { display: flex; flex-wrap: wrap; }
.segmented label {
  margin: 0;
  padding: 7px 14px;
  font-weight: 400;
  background: linear-gradient(#2a251f, #1a1714);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgb(255 240 210 / 0.07);
  cursor: pointer;
}
.segmented label:hover { background: linear-gradient(#352f28, #1f1b17); }
.segmented label + label { border-left: 0; }
.segmented label:first-of-type { border-radius: var(--radius) 0 0 var(--radius); }
.segmented label:last-of-type { border-radius: 0 var(--radius) var(--radius) 0; }
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) {
  color: #1a1510;
  background: linear-gradient(#ddc98f, #b49c5f);
  border-color: #6f5d33;
  box-shadow: inset 0 1px 0 rgb(255 250 225 / 0.5), inset 0 -2px 0 rgb(80 60 20 / 0.4);
}
.segmented label:has(input:focus-visible) { outline: 2px solid var(--q-unique); outline-offset: 2px; }
.segmented legend { margin-bottom: 4px; padding: 0; font-size: var(--step--1); color: var(--text-dim); }

/* ---- Filters: a row of controls above a list (item pages, guides) ---- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 28px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.filters legend, .filter label {
  margin-bottom: 4px;
  padding: 0;
  font-size: var(--step--1);
  color: var(--text-dim);
}
.filter select { width: auto; min-width: 11rem; }

.filter-checks { display: flex; flex-direction: column; gap: 6px; }
.filter-checks label { font-weight: 400; }

@media (max-width: 700px) {
  .filters { gap: 14px 16px; }
  .segmented label { padding: 6px 10px; }
}

/* ---- Tooltip: results styled like an in-game item tooltip ---- */

.tooltip {
  background: var(--tooltip);
  border: 1px solid #3b3b3b;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.5);
  padding: 28px 24px;
  text-align: center;
  font-variant-numeric: lining-nums tabular-nums;
}

.tooltip p { margin: 0; }
.tooltip .base { color: var(--q-normal); }
.tooltip .mod { color: var(--q-magic); }
.tooltip .dim { color: var(--q-socketed); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- Item tooltip on hover (item-tooltip.js), like the game's ---- */

.item-tip {
  position: fixed;
  z-index: 100;
  max-width: min(28rem, calc(100vw - 16px));
  padding: 10px 18px 12px;
  pointer-events: none;
  text-align: center;
  font-family: var(--font-display);
  font-variant: small-caps;
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums;
  background: rgb(0 0 0 / 0.92);
  border: 1px solid #3b3b3b;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.5);
}
.item-tip[hidden] { display: none; }
.item-tip p { margin: 0; }
.item-tip [data-c="white"] { color: var(--q-normal); }
.item-tip [data-c="grey"] { color: var(--q-socketed); }
.item-tip [data-c="blue"] { color: var(--q-magic); }
.item-tip [data-c="gold"] { color: var(--q-unique); }
.item-tip [data-c="green"] { color: var(--q-set); }
.item-tip [data-c="yellow"] { color: var(--q-rare); }
.item-tip [data-c="orange"] { color: var(--q-crafted); }
.item-tip [data-c="red"] { color: var(--q-red); }
.tip-unrolled { color: var(--text-dim); font-size: 0.8em; font-variant: normal; }

/* ---- Reading an item from a screenshot (screenshot-box.js) ---- */
.ocr {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.ocr.over { border-color: var(--q-unique); background: rgb(201 180 124 / 0.06); }
.ocr.done { border-style: solid; background: var(--tooltip); }
.ocr p { margin: 0 0 4px; }
.ocr-title { font-family: var(--font-display); font-size: var(--step-1); }
.ocr progress { width: 100%; max-width: 24rem; margin: 6px 12px 0 0; accent-color: var(--q-unique); vertical-align: middle; }
.ocr-name { font-family: var(--font-display); font-size: var(--step-2); }
.ocr .dim { color: var(--text-dim); }
.ocr-stats { list-style: none; margin: 8px 0; padding: 0; color: var(--q-magic); }
.ocr-unread ul { margin: 4px 0 8px; padding-left: 18px; color: var(--text-dim); font-size: var(--step--1); }
.ocr .dialog-actions { margin-top: 10px; }
.ocr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
/* Below the add box's search row. */
.inv-add-row ~ .ocr { margin-top: 14px; }
.ocr-checks p { color: var(--q-crafted); }
.ocr-checks ul { margin: 4px 0 8px; padding-left: 18px; color: var(--text-dim); font-size: var(--step--1); }

/* Item pages: a game type picker next to "Add to shared stash". */
.stash-add { display: inline-flex; align-items: center; gap: 6px; }
.stash-add .type-select { width: auto; }

/* ---- Level up: the leveling page and the dashboard ---- */

/* Like the game's round red "+" that appears on level-up. */
.level-up {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  font: inherit;
  font-size: var(--step-1);
  font-family: var(--font-display);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.level-up:hover { border-color: var(--q-red); background: rgb(255 90 90 / 0.06); }
.level-up:disabled { opacity: 0.45; cursor: default; }
.level-up-plus {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  color: #ffe2c4;
  background: radial-gradient(circle at 35% 30%, #d84a2c, #7a1408 70%);
  border: 2px solid #c9a35a;
}
