/* Nyveris — site styles. Colours live in :root below. */

@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #17161b;
  --panel: #201e25;
  --raised: #29262f;
  --ink: #f2edf1;
  --muted: #b8b1bf;
  --faint: #857e8c;
  --line: #33303a;
  --line-strong: #47424f;
  --accent: #ee8db8;
  --accent-soft: #ffc4de;
  --accent-ink: #241520;
  --leaf: #93bf7a;
  --danger: #ff9fab;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 6px;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  /* Older names still used by other stylesheets */
  --pink: var(--accent);
  --gold: var(--accent);
  --green: var(--raised);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-soft); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a, input { touch-action: manipulation; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
button, .button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
button:hover, .button:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }
button:disabled { opacity: .55; cursor: wait; }
button.secondary, .button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
button.secondary:hover, .button.secondary:hover { background: var(--raised); border-color: var(--faint); color: var(--ink); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { top: 12px; }

/* Header */
.site-header, main, .site-footer { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 21px/1.1 var(--serif); }
.brand:hover { color: var(--ink); }
.brand small { display: none; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 15px; font-weight: 500; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); background: var(--panel); }
.site-header nav [aria-current] { color: var(--ink); background: var(--panel); }
.site-header .nav-join { margin-left: 6px; border: 1px solid var(--line-strong); color: var(--ink); }
.player-count { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.player-count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px rgba(147, 191, 122, .18); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); text-wrap: balance; }
h1 { margin: 0 0 20px; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -.015em; }
h1 em { color: var(--accent); font-style: normal; }
h2 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.01em; }
h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
p { margin: 0 0 16px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); }
.hint, .fine, .hero-description { color: var(--muted); }
.hint, .fine { font-size: 14px; line-height: 1.6; }
.hint strong { color: var(--ink); font-weight: 600; }
code { font-family: var(--mono); font-size: .88em; }

/* Home: hero */
.hero { display: grid; grid-template-columns: 1fr; align-items: center; gap: 64px; padding-block: 72px 72px; }
.hero > *, .account-layout > *, .profile-card > *, .account-settings > * { min-width: 0; }
.hero-description { max-width: 50ch; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.hero-copy .hint { max-width: 52ch; }
.feature-strip { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.feature-strip li + li::before { content: "·"; margin: 0 10px; color: var(--faint); }

.art-label { padding: 2px 6px 10px; font-size: 13px; color: var(--muted); }
.art-label span { margin-left: 8px; }
.explorer { display: block; width: 64px; height: 64px; background-repeat: no-repeat; image-rendering: pixelated; }
.explorer { background-image: url('/explorer-grid-v3.png'); background-size: 192px 256px; background-position: 0 0; }
.caught-monster-icon, .catch-icon { display: block; flex: 0 0 32px; width: 32px; height: 32px; background: url('/monsters-v1.png?v=placeholder-20261020') no-repeat; image-rendering: pixelated; }

/* Home: sections */
.section-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-title h2, .section-title .eyebrow { margin: 0; }
.section-title .eyebrow { color: var(--muted); font-weight: 400; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; padding: 32px 0 0; margin: 0 0 72px; }
.steps li { min-width: 0; }
.step-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font: 600 14px/1 var(--sans);
}
.steps p { color: var(--muted); margin-bottom: 0; font-size: 15px; max-width: 34ch; }

.account-strip { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 72px 0; padding: 32px 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.account-strip h2 { margin-bottom: 8px; }
.account-strip p { max-width: 60ch; color: var(--muted); margin: 0; }
.account-strip .button { flex-shrink: 0; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); font-size: 14px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .footer-brand { color: var(--ink); font-family: var(--serif); font-size: 16px; text-decoration: none; }
.site-footer > span { flex: 1 1 220px; }
.site-footer > .footer-links { flex: 0 1 auto; display: inline-flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer .copyright { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--faint, var(--muted)); }

/* Account pages */
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 80px; padding-block: 80px 96px; align-items: start; }
.account-intro { padding-top: 20px; }
.account-intro h1 { font-size: clamp(36px, 4.4vw, 54px); }
.account-intro .lede { max-width: 34ch; }
.margin-note { display: flex; align-items: center; gap: 16px; padding-top: 24px; margin-top: 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; max-width: 420px; }
.margin-note .explorer { flex-shrink: 0; }
.margin-note p { margin: 0; }
.form-card, .installation-ledger { position: relative; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-card > p:not(.eyebrow), .installation-ledger p { color: var(--muted); font-size: 15px; }
.form-card h2 { font-size: 26px; }
form { min-width: 0; }
label { display: block; margin: 18px 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
label span { color: var(--muted); font-weight: 400; }
input, select, textarea {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--faint); }
input:hover { border-color: var(--faint); }
input:focus-visible, select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(238, 141, 184, .22); }
form .hint { margin: 6px 0 14px; }
form button[type="submit"] { margin-top: 24px; width: 100%; }
.form-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 4px; font-size: 14px; }
.form-bottom { border-top: 1px solid var(--line); padding-top: 18px; margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.form-bottom a { display: inline-flex; align-items: center; min-height: 40px; }

.notice { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.notice:not(:empty) { padding: 12px 14px; margin-block: 18px; border-radius: var(--radius-sm); background: var(--raised); border: 1px solid var(--line-strong); }
.error { color: var(--danger); }
.notice.error { color: #ffd9e4; background: #351d27; border-color: #5e3044; }
.notice:empty { margin: 0; }

/* Profile */
.profile-main { padding-block: 56px 80px; }
.profile-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.profile-heading h1 { font-size: clamp(34px, 4vw, 50px); margin-bottom: 0; }
.player-search { width: 380px; max-width: 100%; }
.player-search label { margin-top: 0; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; width: 0; }
.search-row button[type="submit"] { margin: 0; width: auto; flex-shrink: 0; }

.profile-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; }
.profile-identity { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 20px; padding: 28px 32px; border-right: 1px solid var(--line); }
.profile-identity .portrait { grid-row: span 3; }
.profile-identity h2 { margin: 0; overflow-wrap: anywhere; font-size: clamp(26px, 3vw, 34px); }
.profile-identity a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; }
.profile-identity p { margin: 0; }
.portrait { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 12px; background: var(--raised); }
.profile-details { display: flex; align-items: center; padding: 20px 32px; }
.stats { width: 100%; margin: 0; }
.stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stats > div:last-child { border-bottom: 0; }
.stats dt, .pvp-stats dt { color: var(--muted); font-size: 14px; }
.stats dd { margin: 0; font-size: 17px; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

.pvp-score { margin: 24px 0; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.pvp-score h2 { margin-bottom: 4px; }
.pvp-score .hint { margin-bottom: 0; }
#pvp-status:empty { display: none; }
#pvp-status { margin: 12px 0 0; }
.pvp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
.pvp-stats > div { min-width: 0; padding: 14px 18px; border-radius: var(--radius); background: var(--raised); }
.pvp-stats dd { margin: 2px 0 0; font: 600 clamp(26px, 3vw, 32px)/1.2 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pvp-stats > div:first-child dd { color: var(--accent); }

.caught-companions { margin: 56px 0; }
.caught-companions > .hint { max-width: 70ch; }
.caught-monsters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 20px 0 0; gap: 10px; list-style: none; }
.caught-card { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow-wrap: anywhere; }
.caught-card > div { min-width: 0; }
.caught-card .caught-monster-icon { flex: 0 0 auto; padding: 6px; box-sizing: content-box; border-radius: 8px; background-color: var(--raised); background-origin: content-box; background-clip: content-box; box-shadow: inset 0 0 0 6px var(--raised); }
.caught-card .caught-monster-icon.art-pending { background-image: none; }
.caught-card .monster-custom-art { width: var(--monster-art-size); height: var(--monster-art-size); flex-shrink: 0; aspect-ratio: 1; }
.caught-card h3 { margin-bottom: 2px; font-size: 18px; }
.caught-card p, .caught-card time { display: block; margin: 1px 0; color: var(--muted); font-size: 13px; }
.caught-card p:first-of-type { color: var(--ink); }
.caught-empty { grid-column: 1 / -1; padding: 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

#storage-count { margin: 0; }
.storage-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.storage-boxes button { width: 100%; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.storage-boxes button[aria-pressed="true"] { border-color: var(--accent); background: rgba(238, 141, 184, .12); color: var(--accent-soft); }

.account-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 32px; margin-top: 64px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.account-settings > div > p:not(.eyebrow) { color: var(--muted); }
.account-settings h3 { font-size: 20px; }
.account-settings form label:first-of-type { margin-top: 12px; }
.settings-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.settings-actions a { display: inline-flex; align-items: center; min-height: 40px; }

/* Download */
.installation-ledger h2 { margin-bottom: 4px; }
.installation-ledger ol { padding: 0; list-style: none; margin: 16px 0 0; counter-reset: step; }
.installation-ledger li { position: relative; padding: 18px 0 4px 46px; border-top: 1px solid var(--line); counter-increment: step; }
.installation-ledger li::before { content: counter(step); position: absolute; left: 0; top: 16px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent); font: 600 13px/1 var(--sans); }
.installation-ledger strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 600; color: var(--ink); }
.installation-ledger li p { margin-bottom: 12px; }
.installation-ledger code { overflow-wrap: anywhere; padding: 1px 5px; border-radius: 4px; background: var(--raised); color: var(--ink); }
.installation-ledger .margin-note { margin-top: 12px; max-width: none; }

/* Authoring guide */
.guide-main { padding-block: 64px 80px; }
.authoring-manual { min-width: 0; max-width: 780px; margin-inline: auto; overflow-wrap: anywhere; }
.authoring-manual > .lede { max-width: 60ch; }
.authoring-manual section { padding: 36px 0 20px; border-top: 1px solid var(--line); }
.authoring-manual p, .authoring-manual li { max-width: 72ch; color: var(--muted); }
.authoring-manual strong { color: var(--ink); font-weight: 600; }
.authoring-manual ol { padding-left: 22px; }
.authoring-manual li { margin-bottom: 12px; padding-left: 4px; }
.authoring-manual li::marker { color: var(--accent); }
.authoring-manual pre { max-width: 100%; overflow-x: auto; margin: 0 0 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); font: 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.authoring-manual code { color: var(--ink); overflow-wrap: anywhere; }
.authoring-manual :not(pre) > code { white-space: normal; padding: 1px 5px; border-radius: 4px; background: var(--raised); }
.authoring-manual .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.authoring-manual .actions a { padding: 4px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; }
.authoring-manual .actions a:hover { border-color: var(--accent); }

/* Responsive */
@media (max-width: 1100px) {
  .player-count { order: 3; margin-left: 0; width: 100%; }
  .hero { gap: 40px; }
  .account-layout { gap: 48px; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-identity { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .site-header, main, .site-footer { width: calc(100% - 40px); }
  .site-header { justify-content: center; }
  .brand { width: 100%; justify-content: center; }
  .player-count { justify-content: center; }
  .site-header nav { width: calc(100% + 24px); margin-inline: -12px; gap: 2px; justify-content: center; }
  .hero { grid-template-columns: 1fr; padding-block: 44px 56px; }
  .hero h1 { font-size: clamp(40px, 8vw, 56px); }
  .steps { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .account-strip { flex-direction: column; align-items: start; gap: 20px; margin: 56px 0; }
  .account-layout { grid-template-columns: 1fr; padding-block: 44px 64px; gap: 28px; }
  .account-intro { padding-top: 0; }
  .account-intro .margin-note { margin-top: 20px; }
  .profile-heading { align-items: stretch; flex-direction: column; gap: 20px; }
  .player-search { width: 100%; }
  .caught-monsters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-settings { grid-template-columns: 1fr; gap: 32px; }
  .storage-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pvp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .site-header, main, .site-footer { width: calc(100% - 32px); }
  .brand { font-size: 19px; }
  .site-header nav { font-size: 14px; }
  .site-header nav a { padding-inline: 9px; }
  .site-header .nav-join { margin-left: 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: clamp(36px, 11vw, 46px); }
  .account-strip, .form-card, .installation-ledger, .account-settings, .pvp-score { padding: 24px 20px; }
  .profile-main { padding-top: 32px; }
  .profile-identity { padding: 20px; column-gap: 16px; }
  .portrait { width: 72px; height: 72px; }
  .profile-details { padding: 8px 20px; }
  .caught-monsters { grid-template-columns: 1fr; }
  .account-intro h1 { font-size: clamp(32px, 10vw, 42px); }
  .search-row button { padding-inline: 16px; }
  .guide-main { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Magnifying-glass button on catches and companions: opens the monster's details page. */
.inspect-link { flex: 0 0 auto; display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: auto; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); background: var(--raised); }
.inspect-link:hover, .inspect-link:focus-visible { color: var(--ink); border-color: var(--accent); }
.inspect-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* Home page download buttons, one per platform. */
.download-platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 28px 0 0; max-width: 400px; }
.platform-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 0; padding: 8px 6px; font-size: 13px; text-align: center; }
.platform-button svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.platform-button span { display: grid; gap: 2px; line-height: 1.2; }
.platform-button[aria-disabled="true"] { cursor: default; opacity: .65; }
.platform-button[aria-disabled="true"]:hover { background: transparent; border-color: var(--line-strong); color: var(--ink); }
@media (max-width: 520px) { .download-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Rare recoloured monsters get a sparkle icon (the label is for screen readers). */
.variant-badge { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.15em; background: linear-gradient(135deg, #7fd3ff, #ee8db8); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3c.6 5 2.4 8.4 8 9-5.6.6-7.4 4-8 9-.6-5-2.4-8.4-8-9 5.6-.6 7.4-4 8-9zM19 1c.3 1.9 1 2.7 3 3-2 .3-2.7 1.1-3 3-.3-1.9-1-2.7-3-3 2-.3 2.7-1.1 3-3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 3c.6 5 2.4 8.4 8 9-5.6.6-7.4 4-8 9-.6-5-2.4-8.4-8-9 5.6-.6 7.4-4 8-9zM19 1c.3 1.9 1 2.7 3 3-2 .3-2.7 1.1-3 3-.3-1.9-1-2.7-3-3 2-.3 2.7-1.1 3-3z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Loading: status lines that say they are loading get a spinning circle, and artwork that is
   still downloading shows one in its place instead of the built-in icon. */
@keyframes lf-spin { to { transform: rotate(360deg); } }
.is-loading::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.15em; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; background: none; box-shadow: none; animation: lf-spin .8s linear infinite; }
.art-pending { position: relative; background-image: none !important; }
.art-pending::after { content: ""; position: absolute; inset: 0; margin: auto; width: min(60%, 28px); height: min(60%, 28px); min-width: 14px; min-height: 14px; box-sizing: border-box; border: 3px solid var(--muted); border-right-color: transparent; border-radius: 50%; animation: lf-spin .8s linear infinite; }
.art-pending > canvas { visibility: hidden; }
.store-art { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .is-loading::before, .art-pending::after { animation-duration: 2.4s; } }
