/* Arbre de la région à l'étape « Compétences » (public/js/creation-tree.js) :
   le ciel de l'Ascension, aux couleurs de la création. */
.ct-box { position: relative; height: min(62vh, 620px); min-height: 420px; overflow: hidden; border: 1px solid var(--cr-line); background: radial-gradient(ellipse at 50% 50%, #15213a 0, var(--cr-deep) 75%); }
.ct-svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; cursor: grab; }
.ct-svg.is-panning, .ct-svg.is-panning * { cursor: grabbing; }
.ct-orbit { fill: none; stroke: #c8b78414; stroke-dasharray: 4 10; }
.ct-edge { stroke: #8c98b0; stroke-width: 1.2; stroke-dasharray: 3 5; opacity: .22; }
.ct-sector { font-family: var(--cr-display); font-weight: 600; font-size: 54px; fill: var(--cr-gold); opacity: .45; }
.ct-sector.is-mine { opacity: 1; fill: var(--cr-gold-bright); }
.ct-art { font-family: var(--cr-display); font-weight: 600; font-size: 44px; fill: var(--cr-gold-bright); opacity: .55; }
.ct-node .ct-dot { fill: #0b1425; stroke: #6e7690; stroke-width: 1.2; opacity: .45; }
.ct-node.is-mine .ct-dot { opacity: .8; }
.ct-origin .ct-dot, .ct-start .ct-dot { opacity: 1; stroke: var(--cr-gold); stroke-width: 2; }
.ct-start:not(.is-mine) { opacity: .45; }
.ct-node image { pointer-events: none; }
.ct-node.is-pick { cursor: pointer; outline: none; }
.ct-node.is-pick .ct-dot { opacity: 1; stroke: var(--cr-gold-bright); stroke-width: 2.4; }
.ct-node.is-pick .ct-aura { fill: none; stroke: var(--cr-gold-bright); stroke-width: 1.4; opacity: .4; animation: ct-breathe 3.5s ease-in-out infinite; }
.ct-node.is-pick:hover .ct-aura, .ct-node.is-pick:focus-visible .ct-aura { opacity: 1; animation: none; }
.ct-node.is-chosen .ct-dot { fill: var(--cr-gold); stroke: var(--cr-gold-bright); }
.ct-node.is-chosen .ct-aura { opacity: .9; animation: none; }
.ct-slot { font-family: var(--cr-mono); font-size: 26px; font-weight: 700; fill: #0b1425; pointer-events: none; }
.ct-label { font-family: var(--cr-text); font-size: 26px; fill: var(--cr-soft); paint-order: stroke; stroke: #0b1425; stroke-width: 5px; pointer-events: none; }
.ct-node.is-pick .ct-label { fill: var(--cr-ink); }
.ct-node.is-chosen .ct-label { fill: var(--cr-gold-bright); }
.ct-label.is-hub { font-family: var(--cr-display); font-size: 46px; fill: var(--cr-gold-bright); }
.ct-controls { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.ct-controls button { min-width: 36px; min-height: 34px; padding: 4px 10px; font: 15px var(--cr-text); color: var(--cr-ink); background: var(--cr-night); border: 1px solid var(--cr-line); cursor: pointer; }
.ct-controls button:hover, .ct-controls button:focus-visible { border-color: var(--cr-gold); }
@keyframes ct-breathe { 50% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .ct-node.is-pick .ct-aura { animation: none; } }

.ct-edge.is-level-locked { stroke: #394154; opacity: .1; }
