/* Reusable pieces: gold-framed panels, headings, badges, pills, buttons,
   segmented XP bars, class medallions and the cartoon icon palette. */

/* --- panels ------------------------------------------------------------------

   Two looks (owner, 2026-11-05: less noise, more hierarchy):
   - .panel: the calm one for every section: a dark surface, a gold-tinted
     hairline, a soft light along the top and one header (glyph, title, a
     one-line note under it);
   - .frame-ornate: the beveled gold 9-slice frame (img/frame-gold.svg) with
     its gems, kept for one signature piece per page (the race banner, a
     character's title band). */

.panel {
  position: relative;
  padding: var(--panel-pad);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(154, 123, 255, 0.06), transparent 60%),
    linear-gradient(180deg, var(--panel-top) 0%, rgba(22, 18, 29, 0.96) 40%, var(--panel-bottom) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 180, 0.1),
    0 1px 0 rgba(0, 0, 0, 0.6),
    0 22px 44px -22px rgba(0, 0, 0, 0.85);
}

/* A short gold glint centred on the top edge. */
.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(60%, 22rem);
  height: 1px;
  translate: -50% 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(247, 231, 172, 0.7), transparent);
}

.frame-ornate {
  position: relative;
  border: 4px solid transparent;
  border-image: url("../img/frame-gold.svg") 32 / 50px / 11px stretch;
  border-radius: var(--radius-lg);
  background-clip: padding-box;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6), 0 20px 48px rgba(0, 0, 0, 0.55);
}

/* Gem ornaments riding on the top and bottom of the ornate frame. */
.frame-ornate::before,
.frame-ornate::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  width: 112px;
  height: 32px;
  translate: -50% 0;
  pointer-events: none;
  background: url("../img/rule-gem.svg") center / contain no-repeat;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6));
}

.frame-ornate::before {
  top: -22px;
}

.frame-ornate::after {
  bottom: -22px;
}

.panel-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.65rem;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--panel-rule);
}

/* The section's glyph (js/app.js puts a statGlyph here from data-glyph). */
.panel-glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 1px solid var(--panel-line-strong);
  background: radial-gradient(circle at 35% 28%, rgba(212, 175, 55, 0.22), rgba(10, 8, 14, 0.9) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 235, 180, 0.15), 0 0 14px rgba(212, 175, 55, 0.12);
}

.panel-glyph svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-width: 0;
  font-size: 1.1875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.2;
  background: linear-gradient(180deg, var(--gold-text-top) 0%, var(--gold-text-mid) 50%, var(--gold-text-low) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 var(--ink-line));
}

/* A small gold diamond rune before a title that has no glyph. */
.panel-title::before {
  content: "";
  flex: none;
  width: 0.5em;
  height: 0.5em;
  rotate: 45deg;
  border: 2px solid var(--ink-line);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-dim));
}

.panel-glyph + .panel-title::before {
  display: none;
}

/* The one-line note sits under the title, lined up with it. */
.panel-note {
  flex: 1 0 100%;
  min-width: 0;
  font-size: var(--fs-note);
  font-style: italic;
  line-height: 1.4;
  color: var(--text-muted);
}

.panel-glyph ~ .panel-note {
  padding-left: 2.8rem;
}

/* Something on the right end of the title row (tabs, a count). */
.panel-tools {
  margin-left: auto;
}

/* Show all / fewer under a folded list (js/views/fold.js). */
.fold-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.5rem;
  margin-top: var(--sp-3);
  padding: 0.35rem 0.9rem;
  border: 1px dashed var(--panel-line-strong);
  border-radius: var(--radius-sm);
  background: rgba(10, 8, 14, 0.5);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-gold);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}

.fold-toggle:hover {
  border-style: solid;
  border-color: var(--gold);
  background: var(--tint-gold);
  color: var(--text-gold-bright);
}

.fold-toggle::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.2rem;
  rotate: 45deg;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.fold-toggle[aria-expanded="true"]::after {
  margin-top: 0.2rem;
  rotate: 225deg;
}

/* A segmented tab strip inside a panel (the race so far: road | chronicle). */
.seg-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--panel-line);
  background: rgba(6, 5, 9, 0.7);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.seg-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.3rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

.seg-tab:hover {
  color: var(--text-gold-bright);
}

.seg-tab[aria-selected="true"] {
  color: var(--text-on-gold);
  background: linear-gradient(180deg, var(--gold-bright), var(--surface-gold) 55%, #c99a2e);
  box-shadow: 0 0 0 1px var(--ink-line), 0 4px 12px rgba(212, 175, 55, 0.25);
}

.seg-tab svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seg-tab:focus-visible,
.fold-toggle:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

.empty {
  padding: 1rem 0.2rem;
  color: var(--text-faint);
  font-style: italic;
  text-align: center;
}

/* --- pills, badges, buttons ---------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 2px solid rgba(212, 175, 55, 0.45);
  background: rgba(10, 8, 14, 0.85);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 235, 180, 0.1), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--parchment-dim);
}

.pill-live .pill-dot {
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
}

.pill-stale .pill-dot {
  background: var(--warn);
  box-shadow: 0 0 10px var(--warn);
}

.pill-down .pill-dot {
  background: var(--bad);
  box-shadow: 0 0 10px var(--bad);
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.55rem 0.12rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  background: rgba(8, 6, 12, 0.6);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  vertical-align: middle;
  white-space: nowrap;
}

.badge:empty {
  display: none;
}

.badge-stale {
  color: var(--text-warn);
}

.badge-not_found {
  color: var(--text-bad);
}

.badge-hidden {
  color: var(--text-arcane);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.45);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.08), rgba(10, 8, 14, 0.9));
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.icon-button:hover {
  color: var(--text-gold-bright);
  border-color: var(--gold);
}

/* An icon button with a text label: a pill on wide screens, the plain round
   button below 1200 px, where the label stays as its accessible name. */
.tool-button {
  width: auto;
  gap: 0.5rem;
  padding: 0 1rem 0 0.8rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tool-button > .icon {
  flex: none;
}

/* No hover glow and no click while there is nothing to import. */
.tool-button:disabled {
  opacity: 0.45;
  box-shadow: none;
  pointer-events: none;
}

@media (max-width: 1199.98px) {
  .tool-button {
    width: 2.5rem;
    padding: 0;
  }

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

.icon {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-speaker {
  fill: currentColor;
  stroke-linejoin: round;
}

#sound-toggle[aria-pressed="true"] {
  color: var(--text-gold-bright);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

#sound-toggle[aria-pressed="true"] .icon-cross {
  display: none;
}

#sound-toggle[aria-pressed="false"] .icon-wave {
  display: none;
}

/* --- XP bar: a gold-rimmed trough, 20 segments, a glowing class fill ------- */

.xpbar {
  position: relative;
  display: block;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, #050307, #17121d);
  border: 2px solid #8a6420;
  box-shadow:
    0 0 0 1px var(--ink-line),
    inset 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* The segment notches sit on top of the fill. */
.xpbar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 1.5px), rgba(0, 0, 0, 0.6) calc(5% - 1.5px) 5%);
}

.xpbar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--xp, 0%);
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--class-color) 55%, #fff 45%) 0%,
      var(--class-color) 45%,
      color-mix(in srgb, var(--class-color) 60%, #000 40%) 100%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--class-color) 70%, transparent);
  transition: width var(--t-slow) cubic-bezier(0.22, 1, 0.36, 1);
}

/* The shimmer: a 56 px band moved with a transform (the compositor runs it),
   not by background-position (repainted every frame: 36 bars kept the page
   busy, 2026-11-09). */
.xpbar-spark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--xp, 0%);
  overflow: hidden;
  opacity: 0.55;
}

.xpbar-spark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  background-size: 56px 100%;
  background-repeat: no-repeat;
  animation: xp-sheen 2.8s linear infinite;
  will-change: transform;
}

.xp-unknown .xpbar-fill {
  width: 100%;
  opacity: 0.3;
  background: repeating-linear-gradient(115deg, rgba(201, 184, 143, 0.55) 0 7px, transparent 7px 15px);
  box-shadow: none;
}

.xp-unknown .xpbar-spark {
  display: none;
}

/* --- small type ----------------------------------------------------------- */

.num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.sep {
  color: var(--text-faint);
  padding: 0 0.35rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.8rem;
}

.stat {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: linear-gradient(180deg, var(--tint-row), rgba(0, 0, 0, 0.25));
  box-shadow: inset 0 1px 0 rgba(255, 235, 180, 0.06);
}

.stat-label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--text-gold);
}

.stat-value {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
}

.stat-sub {
  display: block;
  font-size: var(--fs-note);
  color: var(--text-muted);
  font-style: italic;
}

/* --- class medallion: a round gold-rimmed portrait with the class icon ---- */

.medal {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.28), transparent 45%),
    radial-gradient(circle at 50% 55%,
      color-mix(in srgb, var(--class-color) 62%, #120c18) 0%,
      color-mix(in srgb, var(--class-color) 30%, #08060b) 75%);
  border: 3px solid #d9ad45;
  box-shadow:
    0 0 0 1.5px var(--ink-line),
    inset 0 0 0 1.5px rgba(0, 0, 0, 0.6),
    inset 0 -6px 12px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.55);
}

.medal > .ci {
  width: 80%;
  height: 80%;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.45));
}

/* --- cartoon icon palette (js/icons.js) ------------------------------------ */

.ci {
  overflow: visible;
}

.ci path {
  stroke: var(--ink-line);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ci .ci-steel { fill: #eef3f8; }
.ci .ci-steel-dark { fill: #9fb0c4; }
.ci .ci-gold { fill: #f5c84f; }
.ci .ci-wood { fill: #c07d3e; }
.ci .ci-wood-dark { fill: #84502a; }
.ci .ci-leather { fill: #6b3f1d; }
.ci .ci-red { fill: #e2463c; }
.ci .ci-dark { fill: #2a1d16; }
.ci .ci-bone { fill: #f4ead2; }
.ci .ci-holy { fill: #fff2a8; }
.ci .ci-orb { fill: #fffbe6; }
.ci .ci-orb-core { fill: #ffe066; stroke: none; }
.ci .ci-arcane { fill: #6fdcff; }
.ci .ci-arcane-core { fill: #eafcff; }
.ci .ci-fel { fill: #4fd94a; }
.ci .ci-fel-core { fill: #c9ff70; stroke: none; }
.ci .ci-eye-fel { fill: #b6ff4a; stroke: none; }
.ci .ci-eye-storm { fill: #8af0ff; }
.ci .ci-storm { fill: #4b9bff; }
.ci .ci-leaf { fill: #6cc94a; }
.ci .ci-paw { fill: #4a2c16; }
.ci .ci-ice { fill: #b9efff; }
.ci .ci-ice-dark { fill: #5fb4e6; }
.ci .ci-jade { fill: #2fcf98; }
.ci .ci-jade-light { fill: #a6f2d2; }
.ci .ci-horn { fill: #4b3d4f; }
.ci .ci-demon { fill: #7a3c96; }
.ci .ci-scale { fill: #237a66; }
.ci .ci-scale-light { fill: #49c2a2; }
.ci .ci-amber { fill: #ffc93c; }
.ci .ci-parchment { fill: #efe0b8; }

.ci .ci-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.6;
}

.ci .ci-string {
  fill: none;
  stroke: #f4ead2;
  stroke-width: 1.3;
}

.ci .ci-vein {
  fill: none;
  stroke: #2f7a26;
  stroke-width: 1.4;
}

.ci .ci-ink-line {
  fill: none;
  stroke-width: 1.6;
}

.ci .ci-bow-ink {
  fill: none;
  stroke-width: 6.4;
}

.ci .ci-bow-wood {
  fill: none;
  stroke: #c07d3e;
  stroke-width: 3.4;
}

.ci .ci-q-ink {
  fill: none;
  stroke-width: 6.6;
}

.ci .ci-q-gold {
  fill: none;
  stroke: #f5c84f;
  stroke-width: 3.6;
}

/* --- ribbon / record glyphs (line art) ------------------------------------- */

.glyph {
  width: 1.9rem;
  height: 1.9rem;
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 0 var(--ink-line)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.45));
}

/* --- cartoon busts in medallions (js/figures.js, js/cast.js) ------------------ */

/* The bust fills the class-tinted disc and is clipped to it. */
.medal-bust {
  overflow: hidden;
}

.medal-bust > .fig {
  width: 100%;
  height: 100%;
}

/* A small class icon on the portrait's shoulder. */
.class-pip {
  position: absolute;
  top: -0.3rem;
  right: -0.4rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid #b8902c;
  background: radial-gradient(circle at 38% 30%, #3a3046, #110d16);
  box-shadow: 0 0 0 1.5px var(--ink-line), 0 2px 5px rgba(0, 0, 0, 0.6);
}

.class-pip > .ci {
  width: 84%;
  height: 84%;
}

.class-pip > .ci path {
  stroke-width: 2.6;
}

/* The ribbon of a place medal (top three), behind the rank coin. */
.rank-ribbon {
  position: absolute;
  left: -0.62rem;
  bottom: 0.8rem;
  width: 2.2rem;
  height: 1.7rem;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
}

.rank-ribbon path {
  stroke: var(--ink-line);
  stroke-width: 1.1;
  stroke-linejoin: round;
}

.rank-ribbon .ribbon-left {
  fill: #c2261c;
}

.rank-ribbon .ribbon-right {
  fill: #2f6fd8;
}

/* --- crowns (podium, the leader's title band, the vault's luckiest) ---------- */

.podium-crown path,
.phero-crown path,
.luck-crown path {
  stroke: var(--ink-line);
  stroke-width: 2;
  stroke-linejoin: round;
}

.podium-crown .crown-band,
.phero-crown .crown-band,
.luck-crown .crown-band,
.podium-crown .crown-tip,
.phero-crown .crown-tip,
.luck-crown .crown-tip {
  fill: url(#def-gold);
}

.podium-crown .crown-gem,
.phero-crown .crown-gem,
.luck-crown .crown-gem {
  fill: #e2463c;
}

/* --- quality boxes (Fresh Loot's rarity filter) ------------------------------ */

/* One box per quality, no names: filled in the quality colour when its items
   show, hollow and dashed when they're hidden. The number is how many such
   items the feed holds. */
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.15rem 0.3rem;
  border-radius: 8px;
  border: 2px dashed color-mix(in srgb, var(--quality-color) 60%, transparent);
  background: #0c0910;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--quality-color);
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), translate var(--t-fast);
}

.chip:hover {
  translate: 0 -1px;
  border-color: var(--quality-color);
}

.chip[aria-pressed="true"] {
  border: 2px solid var(--ink-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 55%), var(--quality-color);
  color: var(--text-on-gold);
  box-shadow:
    0 0 12px color-mix(in srgb, var(--quality-color) 50%, transparent),
    inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

.chip:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

/* --- line glyphs: slots, professions, tabs (js/icons.js) -------------------- */

.slot-glyph,
.prof-glyph {
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- item tooltip (js/tooltip.js) -------------------------------------------- */

/* One shared box, like the game's item tooltip: the name in its quality
   colour, then the lines left and right aligned, each in a palette tone
   (.tip-white … .tip-gold; never a colour straight from the data). Placed by
   JS beside the item (--tip-x / --tip-y), inside the viewport. */
.tip {
  position: fixed;
  z-index: 60;
  left: var(--tip-x, 0px);
  top: var(--tip-y, 0px);
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  width: max-content;
  max-width: min(21rem, calc(100vw - 1rem));
  padding: 0.55rem 0.75rem 0.6rem;
  border: 1.5px solid #7d6a45;
  border-radius: var(--radius-sm);
  background: #07060e;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--ink-line);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.35;
  text-align: left;
  pointer-events: none;
  animation: tip-in var(--t-fast) ease-out;
}

.tip[hidden] {
  display: none;
}

@keyframes tip-in {
  from {
    opacity: 0;
    translate: 0 3px;
  }
}

.tip-name {
  margin-bottom: 0.1rem;
  font-size: var(--fs-text);
  font-weight: 700;
  line-height: 1.3;
  color: var(--quality-color);
  overflow-wrap: anywhere;
}

.tip-line {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
}

.tip-left {
  overflow-wrap: anywhere;
}

.tip-right {
  flex: none;
  text-align: right;
}

.tip-white { color: var(--text-tip-white); }
.tip-grey { color: var(--text-tip-grey); }
.tip-green { color: var(--text-tip-green); }
.tip-yellow { color: var(--text-tip-yellow); }
.tip-blue { color: var(--text-tip-blue); }
.tip-purple { color: var(--text-tip-purple); }
.tip-orange { color: var(--text-tip-orange); }
.tip-red { color: var(--text-tip-red); }
.tip-cyan { color: var(--text-tip-cyan); }
.tip-gold { color: var(--text-tip-gold); }

.tip-meta {
  color: var(--text-muted);
}

.tip-gap {
  margin-top: 0.45rem;
}

.tip-hint {
  margin-top: 0.35rem;
  font-style: italic;
  color: var(--text-faint);
}

@media (prefers-reduced-motion: reduce) {
  .tip {
    animation: none;
  }
}

/* --- "Import to Auctionator" (js/views/auctionator.js): beside a shopping list's heading --- */

.atr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
}

.atr-head > :first-child {
  margin-bottom: 0;
}

.atr-open {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.25rem 0.9rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: #120e18;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-gold-bright);
  cursor: pointer;
  transition: border-color var(--t-fast), translate var(--t-fast);
}

.atr-open:hover {
  translate: 0 -1px;
  border-color: var(--gold);
}

.atr-open:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .atr-open:hover {
    translate: none;
  }
}

.atr-row {
  margin: 0.6rem 0 0;
}
