/* Enchantment workshop: tabs for Enchant / Dismantle / Cores, a searchable gear grid, and a detail column. */

.ws { container-type: inline-size; --ws-ink: #203028; --ws-muted: #66776c; --ws-card: #fff; --ws-soft: #f1f5f1; --ws-line: #e1e9e2; --ws-accent: #1488c2; --ws-accent-soft: #e5f3fa; --ws-danger: #c2413e; --ws-danger-soft: #fbeceb; --ws-safe: #2f8a58; --ws-gold: #b7791f; --ws-art: radial-gradient(circle at 50% 45%, #d9f3f6 0, #eef5f1 55%, #f4f7f3 100%); color: var(--ws-ink); }
html[data-theme="dark"] .ws { --ws-ink: #eef0f5; --ws-muted: #aab2bf; --ws-card: #272b34; --ws-soft: #313641; --ws-line: #3a404b; --ws-accent: #5bbef0; --ws-accent-soft: #23374a; --ws-danger: #f08b85; --ws-danger-soft: #3d2a2c; --ws-safe: #7fd4a0; --ws-gold: #e8b35c; --ws-art: radial-gradient(circle at 50% 45%, #2b4652 0, #2a303a 60%, #262a33 100%); }
.ws button { font: inherit; color: inherit; }
.ws img { display: block; }

/* Header */
.ws-head { align-items: flex-end; flex-wrap: wrap; }
.ws-head h1 { margin-top: 0; }
.ws-wallet { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-coin { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 7px 14px 7px 9px; border: 1px solid var(--ws-line); border-radius: 14px; background: var(--ws-card); }
.ws-coin img { grid-row: span 2; width: 28px; height: 28px; object-fit: contain; }
.ws-coin b { font-size: 15px; line-height: 1.1; }
.ws-coin small { color: var(--ws-muted); font-size: 11px; line-height: 1.1; }

/* Tabs */
.ws-tabs { display: inline-flex; gap: 4px; margin: 0 0 20px; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--ws-muted) 12%, transparent); }
.ws-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--ws-muted); font-weight: 700; }
.ws-tabs button span { min-width: 22px; white-space: nowrap; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ws-muted) 16%, transparent); font-size: 11px; font-weight: 700; text-align: center; }
.ws-tabs button.is-active { background: var(--ws-card); color: var(--ws-ink); box-shadow: 0 1px 3px rgba(20, 40, 30, .12); }
.ws-tabs button.has-ready span { background: var(--ws-gold); color: #fff; }

/* Layout */
.ws-split { display: grid; gap: 20px; }
@container (min-width: 820px) {
  .ws-split { grid-template-columns: minmax(0, 1fr) minmax(330px, 400px); align-items: start; }
  .ws-detail { position: sticky; top: 16px; }
}
.ws-card { border: 1px solid var(--ws-line); border-radius: 20px; background: var(--ws-card); }
.ws-empty { margin: 0; padding: 30px 16px; color: var(--ws-muted); text-align: center; grid-column: 1 / -1; }
.ws-empty-detail { border: 1px dashed var(--ws-line); border-radius: 20px; }

/* Browser: search, sort, slot chips, grid */
.ws-browser { min-width: 0; }
.ws-tools { display: flex; gap: 10px; margin-bottom: 10px; }
.ws-search { position: relative; flex: 1; }
.ws-search svg { position: absolute; top: 50%; left: 14px; width: 17px; height: 17px; color: var(--ws-muted); transform: translateY(-50%); pointer-events: none; }
.ws-search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid var(--ws-line); border-radius: 14px; background: var(--ws-card); color: var(--ws-ink); font: inherit; font-size: 15px; }
.ws-search input:focus { outline: 2px solid color-mix(in srgb, var(--ws-accent) 55%, transparent); outline-offset: 1px; }
.ws-sort { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; border: 1px solid var(--ws-line); border-radius: 14px; background: var(--ws-card); color: var(--ws-muted); font-size: 13px; }
.ws-sort select { height: 42px; border: 0; background: transparent; color: var(--ws-ink); font: inherit; font-weight: 700; }
.ws-chips { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.ws-chips::-webkit-scrollbar { display: none; }
.ws-chips button { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--ws-line); border-radius: 999px; background: var(--ws-card); font-size: 13px; font-weight: 700; }
.ws-chips button span { color: var(--ws-muted); font-size: 11px; font-weight: 600; }
.ws-chips button[aria-pressed="true"] { border-color: var(--ws-ink); background: var(--ws-ink); color: var(--ws-card); }
.ws-chips button[aria-pressed="true"] span { color: color-mix(in srgb, var(--ws-card) 70%, transparent); }

.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ws-tile { position: relative; display: grid; grid-template-rows: auto auto auto; justify-items: center; gap: 2px; min-width: 0; padding: 8px 8px 11px; border: 1px solid var(--ws-line); border-radius: 18px; background: var(--ws-card); text-align: center; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.ws-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(25, 45, 32, .09); }
.ws-tile-art { position: relative; display: grid; place-items: center; width: 100%; height: 84px; margin-bottom: 6px; border-radius: 12px; background: var(--ws-soft); }
.ws-tile-art > img { width: 58px; height: 58px; object-fit: contain; }
.ws-tile strong { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ws-tile > small { color: var(--ws-muted); font-size: 11.5px; }
.ws-plus { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 8px; background: #6b4fc7; color: #fff; font-size: 12px; font-weight: 800; }
.ws-tile.is-lvl-1 .ws-plus { background: #2f8a9e; } .ws-tile.is-lvl-2 .ws-plus { background: #3f6fd0; } .ws-tile.is-lvl-3 .ws-plus { background: #7a4fd0; } .ws-tile.is-lvl-4 .ws-plus { background: linear-gradient(135deg, #e0a23a, #c2582e); }
.ws-tile.is-lvl-1 .ws-tile-art { background: linear-gradient(160deg, #e3f4f3, #f1f6f2); }
.ws-tile.is-lvl-2 .ws-tile-art { background: linear-gradient(160deg, #e2ecfb, #f1f5f8); }
.ws-tile.is-lvl-3 .ws-tile-art { background: linear-gradient(160deg, #ece4fb, #f4f2f8); }
.ws-tile.is-lvl-4 .ws-tile-art { background: linear-gradient(160deg, #fbeedb, #f8f3ec); }
html[data-theme="dark"] .ws-tile[class*="is-lvl-"] .ws-tile-art { background: var(--ws-soft); }
.ws-worn { position: absolute; top: 6px; left: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ws-card); color: var(--ws-safe); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ws-worn svg { width: 13px; height: 13px; }
.ws-tile.is-active { border-color: var(--ws-accent); box-shadow: inset 0 0 0 1px var(--ws-accent), 0 8px 18px color-mix(in srgb, var(--ws-accent) 18%, transparent); }

/* Dismantle tiles */
.ws-check { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid color-mix(in srgb, var(--ws-muted) 45%, transparent); border-radius: 7px; background: var(--ws-card); color: transparent; }
.ws-check svg { width: 12px; height: 12px; }
.ws-tile.is-marked { border-color: var(--ws-danger); box-shadow: inset 0 0 0 1px var(--ws-danger); }
.ws-tile.is-marked .ws-check { border-color: var(--ws-danger); background: var(--ws-danger); color: #fff; }
.ws-yield { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 8px 2px 4px; border-radius: 999px; background: var(--ws-soft); font-size: 12px; }
.ws-yield img { width: 18px; height: 18px; }
.ws-grid.is-locked .ws-tile { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.ws-grid.is-locked .ws-check { display: none; }
.ws-list-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; color: var(--ws-muted); font-size: 13px; font-weight: 700; }
.ws-list-head:first-of-type { margin-top: 4px; }
.ws-link { padding: 0; border: 0; background: none; color: var(--ws-accent) !important; font-weight: 700; }
.ws-footnote { margin: 16px 0 0; color: var(--ws-muted); font-size: 13px; }
.ws-yields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ws-yields > div { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--ws-line); border-radius: 16px; background: var(--ws-card); }
.ws-yields img { width: 34px; height: 34px; }
.ws-yields span { display: grid; }
.ws-yields strong { font-size: 15px; }
.ws-yields small { color: var(--ws-muted); font-size: 12px; }

/* Bulk bar */
.ws-bulk { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 12px 12px 18px; border: 1px solid var(--ws-line); border-radius: 20px; background: color-mix(in srgb, var(--ws-card) 94%, transparent); box-shadow: 0 12px 30px rgba(20, 40, 30, .14); backdrop-filter: blur(10px); }
.ws-bulk-copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.ws-bulk-copy strong { font-size: 15px; }
.ws-bulk-copy small { color: var(--ws-muted); font-size: 12.5px; }
.ws-bulk-gain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 800; }
.ws-bulk-gain > span { display: inline-flex; align-items: center; gap: 4px; }
.ws-bulk-gain img { width: 22px; height: 22px; }
.ws-bulk.is-idle { box-shadow: none; background: var(--ws-soft); }
.ws-bulk.is-confirm { border-color: color-mix(in srgb, var(--ws-danger) 45%, var(--ws-line)); background: color-mix(in srgb, var(--ws-danger-soft) 92%, transparent); }
.ws-bulk.is-confirm strong { color: var(--ws-danger); }
.ws-error { color: var(--ws-danger) !important; font-weight: 600; }
.ws-meter { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--ws-muted) 16%, transparent); }
.ws-meter i { display: block; height: 100%; border-radius: inherit; background: var(--ws-accent); transition: width .3s ease; }
.ws-btn { flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--ws-ink); color: var(--ws-card) !important; font-weight: 800; }
.ws-btn.is-quiet { background: color-mix(in srgb, var(--ws-muted) 14%, transparent); color: var(--ws-ink) !important; }
.ws-btn.is-danger { background: var(--ws-danger); color: #fff !important; }
.ws-btn:disabled { opacity: .6; }

/* Detail */
.ws-detail { display: grid; gap: 12px; min-width: 0; }
.ws-hero { padding: 16px; }
.ws-hero-art { display: grid; place-items: center; height: 170px; border-radius: 16px; background: var(--ws-art); }
.ws-hero-art img { width: 118px; height: 118px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(20, 40, 50, .18)); }
.ws-hero-copy { padding: 14px 4px 4px; text-align: center; }
.ws-hero-copy > small { display: inline-flex; align-items: center; gap: 4px; color: var(--ws-muted); font-size: 13px; }
.ws-worn-label { display: inline-flex; align-items: center; gap: 3px; color: var(--ws-safe); font-weight: 700; }
.ws-worn-label svg { width: 13px; height: 13px; }
.ws-hero-copy h2 { margin: 2px 0 4px; font: 700 26px/1.15 var(--serif); letter-spacing: -.01em; }
.ws-level { display: inline-flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; }
.ws-level svg { width: 18px; color: var(--ws-muted); }
.ws-level strong { color: var(--ws-accent); }
.ws-level em { color: var(--ws-gold); font-size: 14px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* 0–25 track: five bands of five */
.ws-track { margin-top: 16px; }
.ws-bands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ws-band { display: grid; justify-items: center; gap: 6px; }
.ws-band-gate { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ws-soft); color: var(--ws-muted); font-size: 12px; }
.ws-band-gate.is-plain { visibility: hidden; }
.ws-band-gate img { width: 20px; height: 20px; }
.ws-band-gate.is-bound { background: var(--ws-card); box-shadow: 0 0 0 2px var(--ws-accent); }
.ws-band-gate.is-open { color: var(--ws-accent); }
.ws-band-gate.is-next { background: var(--ws-accent); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ws-accent) 20%, transparent); }
.ws-pips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; width: 100%; }
.ws-pips i { height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--ws-muted) 18%, transparent); }
.ws-pips i:first-child { border-radius: 999px 2px 2px 999px; } .ws-pips i:last-child { border-radius: 2px 999px 999px 2px; }
.ws-pips i.is-done { background: linear-gradient(90deg, #2aa58a, var(--ws-accent)); background-size: 500% 100%; }
.ws-pips i.is-next { background: color-mix(in srgb, var(--ws-accent) 45%, transparent); animation: ws-blink 1.6s ease-in-out infinite; }
@keyframes ws-blink { 50% { opacity: .35; } }
.ws-band-label { display: inline-flex; align-items: center; gap: 3px; color: var(--ws-muted); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.ws-band-label b { display: inline-grid; color: color-mix(in srgb, var(--ws-muted) 55%, transparent); }
.ws-band-label b.is-on { color: var(--ws-safe); }
.ws-band-label svg, .ws-track-key svg { width: 8px; height: 9px; }
.ws-track-key { display: flex; justify-content: center; gap: 16px; margin: 10px 0 0; color: var(--ws-muted); font-size: 11px; }
.ws-track-key span { display: inline-flex; align-items: center; gap: 4px; }
.ws-track-key i { font-style: normal; }

/* Odds */
.ws-odds { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center; padding: 16px; }
.ws-chance { --ws-tone: #2aa58a; position: relative; display: grid; place-items: center; align-content: center; width: 84px; height: 84px; }
.ws-chance.is-mid { --ws-tone: #e3a132; } .ws-chance.is-low { --ws-tone: #e06a44; }
.ws-chance svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ws-chance circle { fill: none; stroke-width: 7; stroke: color-mix(in srgb, var(--ws-tone) 18%, transparent); }
.ws-chance circle + circle { stroke: var(--ws-tone); stroke-linecap: round; stroke-dasharray: var(--ws-chance) 100; }
.ws-chance strong { font-size: 21px; line-height: 1; }
.ws-chance small { color: var(--ws-muted); font-size: 11px; }
.ws-facts { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ws-facts li { display: flex; align-items: center; gap: 8px; }
.ws-facts i { display: grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ws-soft); color: var(--ws-muted); font-size: 11px; font-style: normal; font-weight: 800; }
.ws-facts .is-danger { color: var(--ws-danger); } .ws-facts .is-danger i { background: var(--ws-danger-soft); color: var(--ws-danger); }
.ws-facts .is-safe i { background: color-mix(in srgb, var(--ws-safe) 16%, transparent); color: var(--ws-safe); }
.ws-facts .is-path { color: var(--ws-accent); } .ws-facts .is-path i { background: var(--ws-accent-soft); color: var(--ws-accent); }
.ws-costs { display: grid; grid-template-columns: 1fr 1fr; grid-column: 1 / -1; gap: 8px; }
.ws-costs > span { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 11px; border-radius: 14px; background: var(--ws-soft); }
.ws-costs img { flex: none; width: 30px; height: 30px; object-fit: contain; }
.ws-costs span span { display: grid; min-width: 0; }
.ws-costs b { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.ws-costs small { color: var(--ws-muted); font-size: 11.5px; }
.ws-costs .is-short { box-shadow: inset 0 0 0 1px var(--ws-danger); } .ws-costs .is-short small { color: var(--ws-danger); }

.ws-go { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 54px; padding: 0 20px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #25c1ef, #0a7ccb); color: #fff !important; font-size: 16px; font-weight: 800; text-align: left; box-shadow: 0 10px 24px rgba(10, 110, 180, .28), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .15s ease, box-shadow .2s ease; }
.ws-go:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(10, 110, 180, .34), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ws-go:disabled { background: color-mix(in srgb, var(--ws-muted) 22%, var(--ws-card)); color: var(--ws-muted) !important; box-shadow: none; opacity: 1; }
.ws-go-cost { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.ws-go-cost img { width: 20px; height: 20px; }
.ws-callout { padding: 14px 16px; border-color: color-mix(in srgb, var(--ws-accent) 40%, var(--ws-line)); background: var(--ws-accent-soft); }
.ws-callout strong { font-size: 15px; }
.ws-callout p { margin: 4px 0 0; color: var(--ws-muted); font-size: 13.5px; line-height: 1.45; }

/* Path ladder */
.ws-ladder { padding: 16px 12px 8px; }
.ws-ladder > header { padding: 0 4px 10px; }
.ws-ladder h3, .ws-essences h3 { margin: 0; font: 700 20px/1.2 var(--serif); }
.ws-ladder > header small, .ws-essences header small { display: block; margin-top: 3px; color: var(--ws-muted); font-size: 12.5px; line-height: 1.4; }
.ws-rung { border-top: 1px solid var(--ws-line); }
.ws-rung-head { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 4px; border: 0; background: none; text-align: left; }
.ws-rung-head > span:not(.ws-rung-badge):not(.ws-rung-stack) { display: grid; flex: 1; gap: 2px; min-width: 0; }
.ws-rung-head strong { font-size: 14px; }
.ws-rung-head small { overflow: hidden; color: var(--ws-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ws-rung-head > i { color: var(--ws-muted); font-size: 18px; font-style: normal; transition: transform .2s ease; }
.ws-rung.is-open .ws-rung-head > i { transform: rotate(90deg); }
.ws-rung-badge { display: grid; flex: none; place-items: center; width: 40px; height: 28px; border-radius: 9px; background: var(--ws-soft); color: var(--ws-muted); font-size: 13px; font-weight: 800; }
.ws-rung.is-bound .ws-rung-badge { background: var(--ws-accent-soft); color: var(--ws-accent); }
.ws-rung.is-next .ws-rung-badge, .ws-rung.is-legacy .ws-rung-badge { background: var(--ws-accent); color: #fff; }
.ws-rung-art { flex: none; width: 30px; height: 30px; }
.ws-rung-stack { display: flex; flex: none; }
.ws-rung-stack img { width: 24px; height: 24px; padding: 2px; border-radius: 50%; background: var(--ws-card); box-shadow: 0 0 0 1px var(--ws-line); }
.ws-rung-stack img + img { margin-left: -8px; }
.ws-rung.is-locked .ws-rung-stack { opacity: .6; }
.ws-options { display: grid; gap: 8px; padding: 0 4px 10px; }
.ws-option { --ws-path: #3a8f86; padding: 12px; border: 1px solid var(--ws-line); border-left: 4px solid var(--ws-path); border-radius: 14px; background: var(--ws-card); }
.ws-option.is-bound { background: color-mix(in srgb, var(--ws-path) 7%, var(--ws-card)); }
.ws-option-head { display: flex; align-items: center; gap: 8px; }
.ws-option-art { width: 26px; height: 26px; }
.ws-option-head strong { flex: 1; font-size: 14.5px; }
.ws-option-head em { display: inline-flex; align-items: center; gap: 3px; color: var(--ws-accent); font-size: 12px; font-style: normal; font-weight: 800; }
.ws-option-head em svg { width: 11px; height: 11px; }
.ws-option p { margin: 6px 0 0; color: var(--ws-muted); font-size: 12.5px; line-height: 1.4; }
.ws-option-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ws-option-stats > span { display: grid; padding: 5px 9px; border-radius: 10px; background: var(--ws-soft); }
.ws-option-stats small { color: var(--ws-muted); font-size: 10.5px; }
.ws-option-stats b { font-size: 12.5px; }
.ws-option-stats .is-negative b { color: var(--ws-danger); }
.ws-recipe { display: flex; gap: 6px; margin-top: 8px; }
.ws-recipe > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 4px; border-radius: 999px; background: var(--ws-soft); color: var(--ws-danger); font-size: 12px; font-weight: 700; }
.ws-recipe > span.is-met { color: var(--ws-safe); }
.ws-recipe img { width: 20px; height: 20px; }
.ws-mini { margin-top: 10px; min-height: 32px; padding: 0 12px; border: 1px solid var(--ws-line); border-radius: 10px; background: var(--ws-card); font-size: 12.5px; font-weight: 800; }
.ws-mini.is-confirm { border-color: var(--ws-accent); background: var(--ws-accent); color: #fff !important; }
.ws-note { margin: 0; padding: 0 6px 12px; color: var(--ws-muted); font-size: 12px; line-height: 1.45; }
.ws-row-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; text-align: left; }
.ws-row-link img { width: 32px; height: 32px; }
.ws-row-link span { display: grid; flex: 1; gap: 2px; }
.ws-row-link strong { font-size: 14px; }
.ws-row-link small { color: var(--ws-muted); font-size: 12px; }
.ws-row-link > i { color: var(--ws-muted); font-size: 20px; font-style: normal; }
.ws-row-link:disabled { opacity: .6; }

/* Cores */
.ws-cores { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ws-core { display: grid; justify-items: center; gap: 6px; padding: 18px 16px 16px; text-align: center; }
.ws-core.is-ready { border-color: color-mix(in srgb, var(--ws-gold) 55%, var(--ws-line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ws-gold) 35%, transparent); }
.ws-core-flow { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ws-core-flow > svg { width: 22px; color: var(--ws-muted); }
.ws-core-flow > span { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--ws-soft); }
.ws-core-flow img { width: 42px; height: 42px; }
.ws-core-flow small { position: absolute; right: -4px; bottom: -4px; padding: 1px 6px; border-radius: 8px; background: var(--ws-ink); color: var(--ws-card); font-size: 11px; font-weight: 800; }
.ws-core-out { background: radial-gradient(circle, color-mix(in srgb, var(--ws-gold) 22%, transparent), var(--ws-soft) 70%) !important; }
.ws-core-out b { position: absolute; right: -4px; bottom: -4px; min-width: 20px; padding: 1px 6px; border-radius: 8px; background: var(--ws-gold); color: #fff; font-size: 11px; }
.ws-core > strong { font-size: 16px; }
.ws-core > small { color: var(--ws-muted); font-size: 12.5px; }
.ws-core .ws-meter { width: 100%; margin-top: 6px; }
.ws-core .ws-meter i { background: var(--ws-gold); }
.ws-core-count { color: var(--ws-muted); font-size: 12.5px; }
.ws-core-count b { color: var(--ws-ink); }
.ws-core .ws-btn { width: 100%; margin-top: 4px; }
.ws-core.is-ready .ws-btn { background: var(--ws-gold); color: #fff !important; }
.ws-core-src { font-size: 11.5px !important; }
.ws-essences { margin-top: 16px; padding: 16px; }
.ws-essences > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.ws-essences > div > span { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--ws-soft); }
.ws-essences img { width: 30px; height: 30px; }
.ws-essences strong { font-size: 13px; }
.ws-essences b { font-size: 14px; }
.ws-noart { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ws-muted); }

@container (max-width: 520px) {
  .ws-tools { flex-direction: column; }
  .ws-sort { justify-content: space-between; }
  .ws-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .ws-bulk { flex-wrap: wrap; }
  .ws-bulk-copy { flex-basis: 100%; }
  .ws-bulk .ws-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-tile, .ws-tile:hover, .ws-go { transform: none !important; transition: none; }
  .ws-pips i.is-next { animation: none; }
}
