.skilltree-page { max-width: 1280px; margin: 0 auto; }
.skilltree-hero { padding: 2rem 0 1rem; }
.skilltree-hero h1 { margin: .2rem 0 .6rem; }
.skilltree-hero p { max-width: 60rem; }
.skilltree { --accent: var(--bellato); }
.skilltree[data-race="Cora"] { --accent: var(--cora); }
.skilltree[data-race="Accretia"] { --accent: var(--accretia); }
.skilltree[hidden] { display: none; }
.skilltree-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 1.5rem; padding: 1rem 0; }
.skilltree-controls label { display: grid; gap: .3rem; color: var(--muted); font-size: .8rem; }
.skilltree-controls select { color: var(--text); background: #101b24; border: 1px solid var(--line); border-radius: 7px; padding: .55rem; font: inherit; min-width: 16rem; }
.skilltree-controls input[type="range"] { width: 14rem; accent-color: var(--accent); }
.skilltree-label { margin: 0 0 .3rem; font-size: .8rem; color: var(--muted); }
.skilltree-races { display: flex; gap: .5rem; }
.skilltree button { font: inherit; color: var(--text); cursor: pointer; border: 1px solid var(--line); background: #111d26; border-radius: 7px; padding: .5rem 1rem; }
.skilltree-races button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #26333c; }
.skilltree button:focus-visible, .skilltree select:focus-visible, .skilltree input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skilltree-help { color: var(--muted); font-size: .85rem; max-width: 60rem; }

.st-stage { position: relative; border: 1px solid #3a3226; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #1b2028 0%, #0c1117 55%, #06090c 100%); }
.st-board { display: block; width: 100%; height: min(82vh, 900px); cursor: grab; touch-action: none; user-select: none; }
.st-board:active { cursor: grabbing; }
.st-ring { fill: none; stroke: #b08a55; stroke-opacity: .45; stroke-width: 2; stroke-dasharray: 5 9; }
.st-ring-label { fill: #c9a46e; fill-opacity: .8; font-size: 13px; text-anchor: middle; letter-spacing: .12em; text-transform: uppercase; }
.st-spoke-label { fill: #c9b48f; font-size: 20px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; letter-spacing: .06em; }
.st-spoke-line { fill: #8fb3d1; }
.st-edge { stroke: #5b5244; stroke-width: 2; stroke-opacity: .45; }
.st-edge-cross { stroke-dasharray: 2 6; }
.st-edge-next { stroke: var(--accent); stroke-opacity: .55; stroke-dasharray: 6 5; }
.st-edge-lit { stroke: #dce9ff; stroke-width: 4; stroke-opacity: .95; filter: drop-shadow(0 0 5px #9cc4ff); }
.st-edge-skill { stroke-width: 2; }
.st-node { cursor: pointer; }
.st-node:focus { outline: none; }
.st-dot { fill: #141a20; stroke: #6d6252; stroke-width: 2.5; }
.st-hub .st-dot { fill: #1d2630; stroke: var(--accent); stroke-width: 4; filter: drop-shadow(0 0 14px var(--accent)); }
.st-tier .st-dot { stroke: #6a8299; }
.st-open .st-dot { stroke: #e9f1ff; filter: drop-shadow(0 0 6px #8fbaff); }
.st-class.st-open .st-dot { fill: #2a2a1c; stroke: var(--accent); filter: drop-shadow(0 0 7px var(--accent)); }
.st-locked .st-dot { stroke: var(--accent); stroke-dasharray: 4 3; }
.st-never { opacity: .35; }
.st-off { opacity: .55; }
.st-focus .st-dot { stroke: #fff; stroke-width: 4; }
.st-node:hover .st-dot, .st-node:focus-visible .st-dot { stroke: #fff; }
.st-icon { pointer-events: none; }
.st-label { fill: #d8d2c6; font-size: 12px; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: #06090c; stroke-width: 4px; opacity: 0; }
.st-hub .st-label { font-size: 15px; font-weight: 700; opacity: 1; fill: var(--accent); }
.st-zoomed .st-label, .st-open .st-label, .st-locked .st-label, .st-skill .st-label,
.st-node:hover .st-label, .st-focus .st-label { opacity: 1; }
.st-tier .st-label { fill: #a9c3da; }

.st-zoom { position: absolute; left: .8rem; top: .8rem; display: grid; gap: .35rem; }
.st-zoom button { width: 2.3rem; height: 2.3rem; padding: 0; font-size: 1.15rem; background: #0e151bcc; }
.st-summary { position: absolute; left: 4rem; top: .8rem; margin: 0; padding: .4rem .7rem; border-radius: 7px; background: #0e151bcc; color: var(--accent); font-size: .85rem; }
.st-detail { position: absolute; right: .8rem; top: .8rem; width: min(22rem, 42%); max-height: calc(100% - 1.6rem); overflow: auto;
  padding: 1rem; border: 1px solid #5b4a33; border-radius: 10px; background: #0b1117ee; box-shadow: 0 10px 30px #000a; }
.st-detail:empty { display: none; }
.skilltree .st-close { position: absolute; right: .4rem; top: .35rem; padding: .1rem .5rem; font-size: 1.1rem; background: none; border: 0; color: var(--muted); }
.skilltree .st-close:hover { color: var(--text); }
.st-detail h3 { margin: .1rem 0 .6rem; color: var(--gold-2); }
.st-kicker { margin: 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.st-reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .82rem; }
.st-reqs li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; padding-left: .6rem; border-left: 3px solid var(--line); }
.st-reqs li.st-met { border-left-color: #6fcf8f; }
.st-reqs li.st-unmet { border-left-color: #e0705a; }
.st-reqs b { color: var(--muted); font-weight: 600; }
.st-text { font-size: .82rem; color: #c3cbd0; }
.st-desc { margin: 0 0 .8rem; padding: .55rem .7rem; border-radius: 7px; background: #16212a; color: #e3e7e4; font-size: .86rem; line-height: 1.45; }
.st-hint { font-size: .72rem; color: var(--muted); margin-bottom: 0; }
.st-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: .8rem 0; font-size: .78rem; color: var(--muted); }
.st-key { display: inline-block; width: 1.6rem; height: 0; margin-right: .45rem; vertical-align: middle; border-top: 3px solid; }
.st-key-open { border-color: #dce9ff; }
.st-key-locked { border-color: var(--accent); border-top-style: dashed; }
.st-key-never { border-color: #5b5244; opacity: .5; }
.st-key-cross { border-color: #5b5244; border-top-style: dotted; }
@media (max-width: 760px) {
  .st-board { height: 70vh; }
  .st-detail { position: static; width: auto; max-height: none; border-radius: 0; border-width: 1px 0 0; }
  .st-summary { display: none; }
}

/* Each castable skill's clip (umbrella #1292, skill-clips.js) */
.skill-clip { margin: 0 0 .9rem; }
.skill-clip video { display: block; width: 100%; max-width: 640px; height: auto; aspect-ratio: 16 / 9; border: 1px solid #52616a; border-radius: 6px; background: #000; }
.skill-clip figcaption { margin-top: .35rem; color: #b9c8cc; font-size: .8rem; line-height: 1.35; }
