/* Anoint finder: only what site.css does not already cover. Same tokens, same "design G" look.
   Sections: oil colours · form extras · results · my oils · narrow screens */

/* ---------- oils: in-game icon (img.game-icon.drop), or the coloured drop when it cannot load (svg.drop), lowest tier first ---------- */
[data-oil] { --oil: #888; --oil-edge: rgba(0, 0, 0, .45); }
[data-oil="Clear"] { --oil: #e3e7ea; }
[data-oil="Sepia"] { --oil: #a6835a; }
[data-oil="Amber"] { --oil: #e3a43a; }
[data-oil="Verdant"] { --oil: #5bb24b; }
[data-oil="Teal"] { --oil: #2fb4a9; }
[data-oil="Azure"] { --oil: #3f90e6; }
[data-oil="Indigo"] { --oil: #5d63d8; }
[data-oil="Violet"] { --oil: #a362dd; }
[data-oil="Crimson"] { --oil: #d13f43; }
[data-oil="Black"] { --oil: #2a2a30; --oil-edge: #8a8d96; }
[data-oil="Opalescent"] { --oil: url(#g-opal); }
[data-oil="Silver"] { --oil: url(#g-silver); }
[data-oil="Golden"] { --oil: url(#g-gold); }
[data-oil="Prismatic"] { --oil: url(#g-prism); }
svg.drop { width: 16px; height: 16px; flex: none; fill: var(--oil); stroke: var(--oil-edge); stroke-width: 1; }

/* ---------- form extras ---------- */
.an-search { position: relative; }
.an-search > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.an-search .in { padding-left: 37px; }
.an-search .in::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.4); cursor: pointer; }
.an-syn { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; min-height: 0; }
.an-syn:empty { display: none; }
.an-syn b { color: var(--ink-2); font-weight: 650; }
.an-quick { justify-content: flex-start; }
.an-select { position: relative; }
.an-select > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; width: 16px; height: 16px; }
.an-select select { appearance: none; padding-left: 35px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.an-select select option { background: var(--panel); color: var(--ink); }
.an-ops { display: grid; gap: 8px; border-top: 1px solid var(--edge); padding-top: 12px; }
.an-favn { color: var(--ink-3); font-size: 12px; }

/* ---------- results (middle) ---------- */
.an-stage { justify-content: flex-start; align-items: stretch; gap: 12px; }
.an-head, .an-list, .an-more { width: min(640px, 100%); margin: 0 auto; }
.an-head h2 { font-size: 15px; font-weight: 750; display: flex; align-items: center; gap: 7px; }
.an-head h2 svg { width: 18px; height: 18px; color: var(--accent); }
.an-head p { color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.an-head p b { color: var(--ink-2); font-weight: 650; }
.an-list { display: flex; flex-direction: column; gap: 8px; }
.an-sec { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; display: flex; align-items: center; gap: 7px; margin: 6px 0 -2px; }
.an-sec svg { width: 15px; height: 15px; }
.an-sec.ok svg { color: var(--pass); }
.an-sec.near svg { color: var(--warn); }
.an-more { display: block; width: auto; margin: 0 auto; padding: 5px 16px; }

.an-card { --cut: 10px; padding: 1px; background: var(--card-edge); }
.an-card.ok { background: #3f6a3a; }
.an-card-in { background: var(--card); padding: 11px 13px 11px 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
.an-name { font-size: 16px; font-weight: 750; letter-spacing: -.005em; line-height: 1.25; color: var(--ink); align-self: center; }
.an-badge { display: inline-block; vertical-align: 2px; margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 1px 7px; border-radius: 999px; background: var(--raise); color: var(--ink-2); cursor: help; }
.an-star { width: 30px; height: 30px; border: 0; padding: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.an-star svg { width: 19px; height: 19px; }
.an-star:hover { color: var(--ink); background: var(--raise); }
.an-star[aria-pressed="true"] { color: var(--warn); }
.an-star[aria-pressed="true"] svg { fill: currentColor; }
.an-stats { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.4; color: var(--magic-2); }
.an-stats p + p { margin-top: 1px; }
.an-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; padding-top: 8px; border-top: 1px solid var(--card-line); }
.an-state { margin-left: auto; font-size: 12px; font-weight: 650; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.an-state svg { width: 15px; height: 15px; }
.an-state.ok { color: var(--pass); }
.an-state.near { color: var(--warn); }
mark.hl { background: var(--hit-bg); color: var(--ink); border-radius: 3px; padding: 0 2px; margin: 0 -2px; }

.oil { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--raise); border: 1px solid transparent; font-size: 12.5px; font-weight: 650; color: var(--ink); cursor: help; white-space: nowrap; }
.oil.miss { background: transparent; border: 1px dashed var(--warn); color: var(--warn); }
.oil.miss .drop { opacity: .55; }
.oil img.drop { margin: -3px -1px -3px -3px; }
.oil-arrow { color: var(--ink-3); width: 12px; height: 12px; stroke-width: 2; }

.an-empty { text-align: center; padding: 26px 16px; color: var(--ink-3); font-size: 13.5px; border: 1px dashed var(--edge-hi); border-radius: 10px; background: var(--bg); }
.an-empty b { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 3px; }

/* ---------- my oils (right) ---------- */
.an-clear { margin-left: auto; }
.an-pick { display: none; }
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.an-oil { display: flex; align-items: center; gap: 7px; padding: 4px 5px 4px 8px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--raise); min-width: 0; }
.an-oil.has { border-color: var(--accent); background: var(--accent-bg); }
.an-oil .nm { font-size: 13px; font-weight: 600; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: help; }
.an-oil svg.drop { width: 17px; height: 17px; }
.an-oil img.drop { margin: -4px -3px -4px -5px; }
.step { display: flex; align-items: center; flex: none; }
.step button { width: 24px; height: 24px; border: 0; padding: 0; border-radius: 6px; background: var(--panel); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.step button svg { width: 14px; height: 14px; stroke-width: 2; }
.step button:hover { color: var(--ink); background: var(--raise-hi); }
.step button:disabled { opacity: .35; cursor: default; }
.step output { min-width: 22px; text-align: center; font: 600 13px/1 var(--mono); color: var(--ink-3); }
.an-oil.has .step output { color: var(--ink); }
.an-total { font-size: 12.5px; color: var(--ink-2); }
.an-total b { color: var(--ink); font-weight: 650; }

/* ---------- narrow screens ---------- */
@media (max-width: 1180px) {
  .an-stage { min-height: 420px; }
}
@media (max-width: 760px) {
  /* one column: search, my oils, results, how to, footer */
  .an .side { display: contents; }
  .an .form { order: 1; }
  .an .an-oils { order: 2; background: var(--panel); border-top: 1px solid var(--edge); }
  .an .an-stage { order: 3; }
  .an .an-how { order: 4; background: var(--panel); border-top: 1px solid var(--edge); }
  .an .legal { order: 5; background: var(--panel); }
  .an[data-mode="all"] .an-grid, .an[data-mode="all"] .an-total, .an[data-mode="all"] .an-clear { display: none; }
  .an[data-mode="all"] .an-pick { display: flex; }
  .an-card-in { padding: 10px 11px 10px 13px; }
}
@media (max-width: 440px) {
  .an-oil { gap: 5px; padding-left: 6px; }
  .step button { width: 22px; }
  .step output { min-width: 18px; }
}
@media (max-width: 360px) { .an-grid { grid-template-columns: minmax(0, 1fr); } }
