/* The talent planner's own rules; the shared look is shared/site.css. */
:root {
 --tile: 80px;
 --gap: 28px;
 --label: 46px;
}

.columns {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
 gap: 18px;
 align-items: start;
}

.tree { padding: 18px 16px 22px; }

.section {
 margin: 0 0 14px;
 display: flex;
 align-items: center;
 gap: 10px;
 color: var(--dim);
 font-size: 11px;
 letter-spacing: 2px;
 text-transform: uppercase;
}

.section::before, .section::after { content: ""; flex: 1; height: 1px; background: var(--edge); }

.section.minor { color: var(--gold); }

.stage-note { margin: 0 0 18px; color: #a9a094; font-size: 13px; line-height: 1.35; text-align: center; }

.todo {
 margin: 0 0 18px;
 padding: 10px;
 border: 1px dashed #47424b;
 border-radius: 5px;
 color: #6b6570;
 font-size: 13px;
 text-align: center;
}

.row {
 display: grid;
 grid-template-columns: var(--label) auto;
 justify-content: center;
 align-items: start;
 margin-bottom: var(--gap);
}

.level {
 height: var(--tile);
 display: flex;
 flex-direction: column;
 justify-content: center;
 color: var(--gold);
 font: 700 19px/1 Georgia, "Times New Roman", serif;
}

.level small {
 margin-top: 4px;
 color: var(--dim);
 font: 10px/1.1 "Segoe UI", Verdana, sans-serif;
 letter-spacing: .5px;
 text-transform: uppercase;
}

.slots {
 display: grid;
 grid-template-columns: repeat(var(--cols, 3), calc(var(--tile) + 18px));
 justify-items: center;
}

.slot { position: relative; width: calc(var(--tile) + 18px); text-align: center; }

.node {
 position: relative;
 width: var(--tile);
 height: var(--tile);
 padding: 0;
 border: 2px solid var(--gold-soft);
 border-radius: 7px;
 background: #060507;
 box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255, 255, 255, .08);
 cursor: pointer;
 overflow: hidden;
}

.node img { display: block; width: 100%; height: 100%; }
img.pixel { image-rendering: pixelated; }

.node:hover, .node:focus-visible { border-color: #fff0b8; outline: none; }

.node.picked { border-color: #ffd866; box-shadow: 0 0 0 1px #000, 0 0 14px rgba(255, 200, 70, .7); }

.node.passed img { filter: grayscale(.9) brightness(.45); }
.node.passed { border-color: #47424b; }

.node.idea { border-style: dashed; border-color: var(--idea); }

.node.empty {
 border: 2px dashed #47424b;
 color: #5d5762;
 font: 400 34px/1 "Wild Breath", Georgia, serif;
 cursor: default;
}

.flag {
 position: absolute;
 right: 0;
 bottom: 0;
 padding: 1px 5px 2px;
 border-top-left-radius: 5px;
 background: rgba(8, 20, 28, .88);
 color: var(--idea);
 font: 700 9px/1.2 "Segoe UI", Verdana, sans-serif;
 letter-spacing: 1px;
}

.name {
 margin-top: 5px;
 min-height: 30px;
 color: var(--ink);
 font-size: 12px;
 line-height: 1.2;
 overflow-wrap: anywhere;
}

.slot.is-passed .name { color: #6b6570; }

/* A path's banner: its emblem, name and role. */
.path-head {
 display: grid;
 grid-template-columns: 80px 1fr;
 gap: 12px;
 align-items: center;
 margin: 0 0 20px;
 padding: 10px 12px;
 border: 1px solid var(--edge);
 border-radius: 5px;
 background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, #121014), #121014);
}

.path-head img { width: 80px; height: 80px; border: 1px solid var(--gold-soft); border-radius: 5px; }
.path-head h3 { margin: 0; font: 400 24px/1 "Wild Breath", Georgia, serif; color: #fff3d6; }

.path-head h3 span {
 margin-left: 8px;
 color: var(--gold);
 font: 600 11px/1 "Segoe UI", Verdana, sans-serif;
 letter-spacing: 1.5px;
 text-transform: uppercase;
 vertical-align: middle;
}

.path-head p { margin: 4px 0 0; color: #a9a094; font-size: 13px; line-height: 1.3; }

.paths {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 16px;
}

.path {
 padding: 14px 12px 4px;
 border: 1px solid var(--edge);
 border-radius: 5px;
 background: rgba(0, 0, 0, .28);
}

.tip .state { margin-top: 8px; font-size: 12px; }
.tip .state.game { color: #5fd35f; }
.tip .state.idea { color: var(--idea); }
.tip .state.need { color: #ff4a3d; }

@media (max-width: 560px) {
 :root { --tile: 60px; --gap: 26px; --label: 40px; }
 .columns { grid-template-columns: 1fr; }
}
