.sw-art { display: block; user-select: none; }
:where(.sw-btn, .sw-node, .sw-cross, .sw-seed):focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-button); }

/* GameButton */
.sw-btn { white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 28px; min-height: 56px; padding: var(--space-3) var(--space-8);
  border: 3px solid var(--rim); border-radius: var(--radius-button); cursor: pointer; position: relative; top: 0; transition: top .08s, box-shadow .08s; }
.sw-btn-primary { background: linear-gradient(var(--gold-light), var(--gold)); color: var(--on-gold); box-shadow: var(--button-drop); }
.sw-btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line); box-shadow: 0 4px 0 0 var(--line); }
.sw-btn:active { top: 4px; box-shadow: none; }
.sw-btn:disabled { background: var(--locked); color: var(--on-locked); border-color: var(--locked-deep); box-shadow: none; cursor: not-allowed; }

/* GoalPill */
.sw-pill { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill);
  background: var(--surface-raised); color: var(--ink); border: 2px solid var(--line); font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 600; }
.sw-pill strong { font-weight: 700; }
.sw-pill-progress { font-family: var(--font-body); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--gold-ink); }

/* SkillNode */
.sw-node { display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-2); background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: inherit; }
.sw-node-disc { position: relative; width: var(--size-node); height: var(--size-node); border-radius: var(--radius-node); }
.sw-node-disc > .sw-art { width: 100%; height: 100%; }
.sw-node-landed .sw-node-disc { box-shadow: var(--glow-landed); }
.sw-node-available .sw-node-disc { box-shadow: var(--glow-available); animation: sw-pulse 1.8s ease-in-out infinite; }
.sw-node-locked .sw-node-disc { box-shadow: var(--ring-locked); }
.sw-node-locked .sw-node-label { color: var(--ink-muted); }
.sw-node-check { position: absolute; right: -6px; bottom: -6px; width: var(--size-marker); height: var(--size-marker); }
.sw-node-flag { position: absolute; top: -18px; right: -12px; }
.sw-node-label { font-family: var(--font-body); font-size: 14px; line-height: 18px; font-weight: 800; max-width: 12ch; text-align: center; }
@keyframes sw-pulse { 50% { box-shadow: 0 0 0 3px var(--go-deep), 0 0 22px 8px rgba(92, 200, 74, 0.45); } }
@media (prefers-reduced-motion: reduce) { .sw-node-available .sw-node-disc { animation: none; } }

/* CrossoverNode */
.sw-cross { display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-2); background: none; border: 0; padding: var(--space-1); cursor: pointer; color: var(--ink); font: inherit; }
.sw-cross-gem { position: relative; width: var(--size-crossover); height: var(--size-crossover); }
.sw-cross-gem > .sw-art:first-child { width: 100%; height: 100%; }
.sw-cross-landed .sw-cross-gem > .sw-art:first-child { filter: drop-shadow(0 0 8px rgba(255, 211, 107, 0.9)); }
.sw-cross-available .sw-cross-gem > .sw-art:first-child { filter: drop-shadow(0 0 8px rgba(92, 200, 74, 0.9)); }
.sw-cross-locked .sw-cross-gem > .sw-art:first-child { filter: grayscale(.85) brightness(.85); }
.sw-cross-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.sw-cross-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sw-cross-tag { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

/* SeedBadge */
.sw-seed { display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-2); background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: inherit; }
.sw-seed-art { width: var(--size-seed); height: var(--size-seed); border-radius: var(--radius-node); }
.sw-seed:not(.is-active) .sw-seed-art { filter: saturate(.8); }
.sw-seed.is-active .sw-seed-art { box-shadow: 0 0 20px 6px rgba(255, 211, 107, 0.75); }
.sw-seed-label { font-family: var(--font-display); font-size: 22px; line-height: 26px; font-weight: 700; }
