/* Exul: Beyond the Gate — Wiki stylesheet */

:root {
	/* Palette matches the in-game crafting UIs (Printer / Scrapper / Smelter /
	   Extruder): near-black neutral panels with the game's orange accent
	   Color(0.98,0.41,0.19) = #fa6930, light-grey text, warm greys. */
	--bg:        #0a0a0a;
	--bg-2:      #141414;
	--bg-3:      #1e1c1a;
	--bg-hover:  #272321;
	--border:    #2d2a27;
	--border-2:  #3f3a34;
	--text:      #d9d6d2;
	--text-dim:  #9c968f;
	--text-faint:#6b655d;
	--accent:    #fa6930;
	--accent-dk: #c2531f;
	--amber:     #f0a83c;
	--danger:    #f2564b;
	--radius:    10px;
	--radius-sm: 6px;
	--maxw:      1560px;
	--font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mono:      "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

	/* rarity palette */
	--r-common:    #9aa4b2;
	--r-uncommon:  #4caf7d;
	--r-rare:      #3d9bff;
	--r-superrare: #c069ff;
	--r-legendary: #ffb03a;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); background: var(--bg-3); padding: 1px 5px; border-radius: 4px; font-size: .88em; }

/* ---------- Top bar ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 16px;
	height: 58px;
	padding: 0 20px;
	background: linear-gradient(180deg, #0d131d, #0a0e14);
	border-bottom: 1px solid var(--border);
}
.menu-toggle {
	display: none;
	background: none; border: none; color: var(--text);
	font-size: 22px; cursor: pointer; padding: 4px 8px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand:hover { text-decoration: none; }
.brand-mark {
	font-weight: 800;
	letter-spacing: 4px;
	font-size: 20px;
	color: var(--text);
	background: linear-gradient(90deg, var(--accent), #ffab78);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
}
.brand-sub { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; }

.search-wrap { position: relative; margin-left: auto; width: min(360px, 42vw); }
#search {
	width: 100%;
	background: var(--bg-3);
	border: 1px solid var(--border-2);
	border-radius: 20px;
	color: var(--text);
	padding: 9px 16px;
	font-size: 14px;
	outline: none;
}
#search:focus { border-color: var(--accent-dk); box-shadow: 0 0 0 2px rgba(250,105,48,.18); }
.search-dropdown {
	position: absolute;
	top: 46px; right: 0; left: 0;
	background: var(--bg-2);
	border: 1px solid var(--border-2);
	border-radius: var(--radius);
	max-height: 60vh; overflow-y: auto;
	box-shadow: 0 20px 50px rgba(0,0,0,.55);
	padding: 6px;
}
.search-dropdown .sr-item {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer;
}
.search-dropdown .sr-item:hover, .search-dropdown .sr-item.active { background: var(--bg-hover); }
.search-dropdown .sr-icon { width: 36px; height: 36px; object-fit: contain; flex: none; }
.search-dropdown .sr-name { font-size: 14px; }
.search-dropdown .sr-cat { margin-left: auto; font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .5px; }
.search-empty { padding: 14px; color: var(--text-dim); text-align: center; font-size: 13px; }

/* ---------- Layout ---------- */
.layout { display: flex; max-width: var(--maxw); margin: 0 auto; }

.sidebar {
	position: sticky;
	top: 58px;
	align-self: flex-start;
	width: 232px;
	flex: none;
	height: calc(100vh - 58px);
	overflow-y: auto;
	padding: 18px 10px 40px;
	border-right: 1px solid var(--border);
}
.nav-group { margin-bottom: 18px; }
.nav-group-title {
	font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px;
	color: var(--text-faint); padding: 4px 12px; margin-bottom: 4px;
}
.nav-link {
	display: flex; align-items: center; gap: 9px;
	padding: 7px 12px; border-radius: var(--radius-sm);
	color: var(--text-dim); font-size: 14px; cursor: pointer;
}
.nav-link:hover { background: var(--bg-3); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--bg-hover); color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }
.nav-link .ni { width: 18px; text-align: center; opacity: .8; }
.nav-link .count { margin-left: auto; font-size: 11px; color: var(--text-faint); }

/* ---------- Content ---------- */
.content {
	flex: 1 1 auto;
	min-width: 0;
	padding: 28px 32px 80px;
}
.loading { color: var(--text-dim); }

.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: .5px; }
.page-head p.lede { margin: 0; color: var(--text-dim); max-width: 70ch; }
.breadcrumb { font-size: 12.5px; color: var(--text-faint); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-dim); }

.section-title {
	font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px;
	color: var(--accent); margin: 34px 0 14px; padding-bottom: 8px;
	border-bottom: 1px solid var(--border);
}

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.card {
	background: var(--bg-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	cursor: pointer;
	transition: border-color .12s, transform .12s, background .12s;
	display: flex; flex-direction: column; gap: 8px;
	position: relative;
	overflow: hidden;
}
.card:hover { border-color: var(--border-2); background: var(--bg-3); transform: translateY(-2px); text-decoration: none; }
.card .thumb {
	height: 110px; display: flex; align-items: center; justify-content: center;
}
.card .thumb img { max-height: 106px; max-width: 142px; object-fit: contain; image-rendering: auto; }
.card .cname { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.25; }
.card .cmeta { font-size: 11.5px; color: var(--text-dim); }
.card .rarity-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }

/* icon placeholder badge */
.badge-ph {
	width: 65px; height: 65px; border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 24px; color: #0a0e14;
	background: var(--border-2);
}
.badge-ph.sm { width: 31px; height: 31px; font-size: 13px; border-radius: 5px; }

/* ---------- Rarity chips ---------- */
.chip {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
	padding: 3px 9px; border-radius: 20px;
	border: 1px solid currentColor;
}
.r-common    { color: var(--r-common); }
.r-uncommon  { color: var(--r-uncommon); }
.r-rare      { color: var(--r-rare); }
.r-superrare { color: var(--r-superrare); }
.r-legendary { color: var(--r-legendary); }
.rb-common    { background: var(--r-common); }
.rb-uncommon  { background: var(--r-uncommon); }
.rb-rare      { background: var(--r-rare); }
.rb-superrare { background: var(--r-superrare); }
.rb-legendary { background: var(--r-legendary); }

/* ---------- Detail page ---------- */
.detail { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.detail-media {
	background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 22px; text-align: center; position: sticky; top: 78px;
}
.detail-media img { max-width: 220px; max-height: 220px; object-fit: contain; }
.detail-media .big-badge {
	width: 144px; height: 144px; margin: 0 auto; border-radius: 16px;
	display: flex; align-items: center; justify-content: center;
	font-size: 52px; font-weight: 800; color: #0a0e14;
	background: var(--border-2);
}
.detail-media .dm-sub { margin-top: 14px; font-size: 12px; color: var(--text-dim); }
.detail-body h1 { margin: 0 0 8px; font-size: 25px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font-size: 11.5px; background: var(--bg-3); border: 1px solid var(--border); color: var(--text-dim); padding: 3px 9px; border-radius: 20px; }
.desc { color: var(--text); background: var(--bg-2); border-left: 3px solid var(--accent-dk); padding: 12px 16px; border-radius: var(--radius-sm); font-style: italic; margin: 4px 0 20px; }

/* stat table */
.stats { width: 100%; border-collapse: collapse; margin: 6px 0 8px; }
.stats th, .stats td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.stats th { color: var(--text-dim); font-weight: 500; width: 45%; }
.stats td { color: var(--text); font-variant-numeric: tabular-nums; }
.stats tr:last-child th, .stats tr:last-child td { border-bottom: none; }

/* recipe / relation boxes */
.rel-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.rel-box h3 { margin: 0 0 10px; font-size: 14px; color: var(--accent); }
.ing { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.ing img { width: 36px; height: 36px; object-fit: contain; }
.ing .q { color: var(--amber); font-variant-numeric: tabular-nums; font-weight: 700; min-width: 34px; }
.ing .arrow { color: var(--text-faint); }
.pill-link { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px 3px 4px; font-size: 13px; margin: 3px 4px 3px 0; }
.pill-link img { width: 31px; height: 31px; object-fit: contain; }
.pill-link:hover { border-color: var(--border-2); text-decoration: none; background: var(--bg-hover); }

/* generic cards for enemies/abilities/mechanics */
.info-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.info-card h2 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 12px; }
.info-card .tier { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; color: #0a0e14; }
.info-card p { margin: 6px 0 12px; color: var(--text); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.enemy-badge { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: #0a0e14; flex: none; }
ul.traits { margin: 8px 0 0; padding-left: 18px; }
ul.traits li { margin-bottom: 6px; color: var(--text-dim); }
ul.traits li strong { color: var(--text); }

/* stat mini-grid inside info cards */
.statline { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.statline .s { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 11px; font-size: 12.5px; }
.statline .s b { color: var(--accent); font-variant-numeric: tabular-nums; }
.statline .s span { color: var(--text-dim); }

/* home hero */
.hero { background: radial-gradient(1200px 300px at 20% -30%, rgba(250,105,48,.16), transparent), var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 34px 34px; margin-bottom: 26px; }
.hero h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: 1px; }
.hero .tagline { color: var(--accent); font-size: 15px; margin-bottom: 16px; }
.hero p { color: var(--text-dim); max-width: 72ch; margin: 0 0 12px; }
.hero p:last-child { margin-bottom: 0; }
.steam-embed { margin: 20px 0 4px; }
.steam-embed iframe { width: 646px; max-width: 100%; height: 190px; border: 0; border-radius: 6px; display: block; }

/* screenshot carousel */
.carousel { margin: 0 0 26px; }
.c-frame { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.c-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; user-select: none; }
.c-slide.active { opacity: 1; }
.c-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 56px; border: none; cursor: pointer;
	font-size: 30px; line-height: 1; color: #fff; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity .15s, background .15s; z-index: 2; }
.carousel:hover .c-arrow { opacity: 1; }
.c-prev { left: 0; border-radius: 0 8px 8px 0; }
.c-next { right: 0; border-radius: 8px 0 0 8px; }
.c-arrow:hover { background: rgba(250,105,48,.75); }
.c-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.c-dot { width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; background: var(--border-2); cursor: pointer; transition: background .15s; }
.c-dot.active { background: var(--accent); }
.c-dot:hover { background: var(--text-dim); }
.c-frame { cursor: zoom-in; }
.c-expand { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border: none; border-radius: 6px;
	background: rgba(0,0,0,.45); color: #fff; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity .15s, background .15s; }
.carousel:hover .c-expand { opacity: 1; }
.c-expand:hover { background: rgba(250,105,48,.85); }

/* fullscreen lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); user-select: none; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: none; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; font-size: 20px; cursor: pointer; }
.lb-close:hover { background: rgba(250,105,48,.85); }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 74px; border: none; border-radius: 10px;
	background: rgba(255,255,255,.06); color: #fff; font-size: 40px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-arrow:hover { background: rgba(250,105,48,.85); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--text);
	background: rgba(0,0,0,.55); padding: 4px 12px; border-radius: 20px; font-variant-numeric: tabular-nums; }
body.lb-lock { overflow: hidden; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tile { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; cursor: pointer; transition: border-color .12s, transform .12s; }
.tile:hover { border-color: var(--accent-dk); transform: translateY(-2px); text-decoration: none; }
.tile .tile-ic { font-size: 22px; margin-bottom: 8px; }
.tile h3 { margin: 0 0 4px; font-size: 16px; color: var(--text); }
.tile p { margin: 0; font-size: 13px; color: var(--text-dim); }

.quote { border-left: 3px solid var(--amber); padding: 6px 14px; color: var(--text-dim); font-style: italic; margin: 10px 0 0; }

.muted { color: var(--text-dim); }
.center-note { text-align: center; color: var(--text-faint); padding: 40px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 18px 20px; text-align: center; color: var(--text-faint); font-size: 12px; }

/* ---------- Recipe cards (Crafting) ---------- */
.recipe-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
	gap: 14px;
	margin-bottom: 8px;
}
.recipe {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--bg-2);
	border: 1px solid var(--border-2);
	border-radius: var(--radius);
	padding: 14px 16px;
	transition: border-color .12s;
}
.recipe:hover { border-color: var(--accent-dk); }
.recipe .rtime {
	position: absolute; top: 10px; right: 12px;
	font-size: 11px; color: var(--text-dim);
	background: var(--bg-3); border: 1px solid var(--border);
	border-radius: 20px; padding: 2px 9px; font-variant-numeric: tabular-nums;
}
.recipe .rflow { position: relative; z-index: 1; display: flex; align-items: center; gap: 0; padding-right: 14px; }
.recipe .rside { display: flex; flex-direction: column; gap: 4px; flex: 0 1 auto; min-width: 0; }
.recipe .ing-line { min-height: 52px; }
.recipe .rtime { z-index: 2; }
/* middle channel the curved connectors are drawn through */
.recipe .rgap { flex: none; width: 66px; align-self: stretch; }
/* SVG overlay: curved arrows drawn from measured item positions (drawRecipeConnectors) */
.rsvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.ing-line {
	display: flex; align-items: center; gap: 9px;
	padding: 4px 8px; border-radius: var(--radius-sm); color: var(--text);
}
/* keep long ingredient/product names inside their column (don't overflow into
   the connector channel) so the curves never sit on the text */
.recipe .ing-line { min-width: 0; }
/* break-word (not anywhere): wrap between words, and only split a single word
   if it truly can't fit — never collapse the column to one-character-per-line */
.recipe .ing-line .nm { min-width: 0; overflow-wrap: break-word; }
.ing-line:hover { background: var(--bg-hover); text-decoration: none; }
.ing-line .q { color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 32px; font-size: 14.5px; }
.ing-line .nm { font-size: 14.5px; }
.rc-ic, .badge-ph.rc { width: 62px; height: 62px; object-fit: contain; flex: none; }
.badge-ph.rc { font-size: 22px; border-radius: 8px; }

/* ---------- Difficulty comparison table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.difftable { width: 100%; border-collapse: collapse; min-width: 560px; }
.difftable th, .difftable td {
	padding: 9px 14px; text-align: center;
	border-bottom: 1px solid var(--border); font-size: 14px;
}
.difftable tr:last-child td { border-bottom: none; }
.difftable th:first-child, .difftable td:first-child {
	text-align: left; color: var(--text-dim); font-weight: 500; white-space: nowrap;
}
.difftable .dcol { color: var(--text); font-weight: 700; background: var(--bg-3); }
.difftable td { font-variant-numeric: tabular-nums; color: var(--text); }
.diff-group td {
	background: var(--bg-3); color: var(--accent);
	text-transform: uppercase; letter-spacing: 1px; font-size: 11px; font-weight: 700;
	text-align: left; padding: 7px 14px;
}
.difftable .d-good { color: #5bd48d; font-weight: 600; }
.difftable .d-bad  { color: #ff6b6b; font-weight: 600; }
.difftable .d-neu  { color: var(--text-faint); }

/* ---------- Roadmap timeline (version phases) ---------- */
.rm-legend { display:flex; gap:18px; flex-wrap:wrap; margin:4px 0 24px; font-size:13px; color:var(--text-dim); }
.rm-legend span { display:inline-flex; align-items:center; gap:7px; }
.rm-dot { width:11px; height:11px; border-radius:50%; display:inline-block; }
.rm-dot.rs-done { background:#5bd48d; }
.rm-dot.rs-prog { background:#ffb03a; }
.rm-dot.rs-plan { background:#6c7a90; }

.tl { position:relative; margin:0 0 0 10px; padding-left:34px; border-left:2px solid var(--border-2); }
.tl-node { position:relative; margin-bottom:28px; }
.tl-node:last-child { margin-bottom:0; }
.tl-node::before {
	content:""; position:absolute; left:-43px; top:2px; width:18px; height:18px;
	border-radius:50%; border:3px solid var(--bg); box-sizing:border-box;
}
.tl-node.rs-done::before { background:#5bd48d; }
.tl-node.rs-prog::before { background:#ffb03a; box-shadow:0 0 0 5px rgba(255,176,58,.18); }
.tl-node.rs-plan::before { background:#6c7a90; }
.tl-head { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:11px; }
.tl-ver { font-size:20px; font-weight:800; color:var(--text); letter-spacing:.5px; }
.tl-name { font-size:15px; color:var(--text-dim); }
.tl-node.rs-plan .tl-ver { color:var(--text-dim); }
.tl-badge { font-size:10.5px; text-transform:uppercase; letter-spacing:.6px; font-weight:700; padding:3px 10px; border-radius:20px; }
.tl-badge.rs-done { background:rgba(91,212,141,.14); color:#5bd48d; }
.tl-badge.rs-prog { background:rgba(255,176,58,.15); color:#ffb03a; }
.tl-badge.rs-plan { background:rgba(140,154,170,.12); color:#8a97a7; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip2 { background:var(--bg-2); border:1px solid var(--border); border-radius:8px; padding:8px 12px; font-size:13px; color:var(--text); }
.tl-node.rs-plan .chip2 { color:var(--text-dim); }
.tl-node.rs-prog .chip2 { border-color:rgba(255,176,58,.28); }

/* "% complete" bar for the in-development version */
.tl-prog { display:flex; align-items:center; gap:12px; max-width:440px; margin:0 0 14px; }
.tl-prog-bar { flex:1; height:9px; background:var(--bg-3); border:1px solid var(--border); border-radius:20px; overflow:hidden; }
.tl-prog-bar > i { display:block; height:100%; border-radius:20px; background:linear-gradient(90deg, var(--accent-dk), var(--accent)); }
.tl-prog-label { font-size:12.5px; font-weight:700; color:var(--accent); font-variant-numeric:tabular-nums; white-space:nowrap; }

/* ---------- Skill tree ---------- */
.sk-legend { display:flex; gap:18px; flex-wrap:wrap; align-items:center; margin:4px 0 16px; font-size:13px; color:var(--text-dim); }
.sk-legend > span { display:inline-flex; align-items:center; gap:7px; }
.sk-key { width:14px; height:14px; border-radius:5px; display:inline-block; border:1px solid var(--border-2); background:var(--bg-3); }
.sk-key.active { border-color:var(--accent); box-shadow:inset 0 0 0 2px rgba(250,105,48,.4); }
.sk-key.start { background:var(--accent); border-color:var(--accent); }
.skilltree-scroll { position:relative; overflow:auto; height:74vh; border:1px solid var(--border); border-radius:var(--radius);
	background:radial-gradient(700px 420px at 42% 24%, rgba(250,105,48,.06), transparent), var(--bg); cursor:grab; }
.skilltree-scroll.grabbing { cursor:grabbing; }
.skilltree { position:relative; }
.sk-svg { position:absolute; inset:0; pointer-events:none; }
.sk-svg path { fill:none; stroke:var(--accent); stroke-width:2; opacity:.3; }
.sk-node { position:absolute; transform:translate(-50%,-50%); width:116px; box-sizing:border-box;
	background:var(--bg-3); border:1px solid var(--border-2); border-radius:10px; padding:8px 7px 9px;
	display:flex; flex-direction:column; align-items:center; gap:5px; text-align:center; z-index:1; transition:border-color .1s; }
.sk-node * { pointer-events:none; }
.sk-node .sk-ic { width:48px; height:48px; object-fit:contain; }
.sk-node .sk-ph { display:flex; align-items:center; justify-content:center; border-radius:8px; background:var(--border-2); color:#0a0a0a; font-weight:800; font-size:14px; }
.sk-node .sk-name { font-size:11px; line-height:1.2; color:var(--text); }
.sk-node:hover { border-color:var(--accent); z-index:3; }
.sk-node.active { border-color:var(--accent); }
.sk-node.active .sk-name { color:var(--accent); }
.sk-node.root { width:auto; padding:11px 18px; background:var(--accent); border-color:var(--accent); }
.sk-node.root .sk-start { font-weight:800; letter-spacing:1.5px; color:#0a0a0a; font-size:13px; }
.skilltip { position:fixed; z-index:200; max-width:290px; background:var(--bg-2); border:1px solid var(--accent-dk);
	border-radius:8px; padding:10px 12px; box-shadow:0 12px 34px rgba(0,0,0,.55); pointer-events:none; }
.skilltip .st-name { font-weight:700; font-size:14px; margin-bottom:4px; color:var(--text); }
.skilltip .st-meta { font-size:11.5px; color:var(--text-dim); margin-bottom:7px; }
.skilltip .st-meta .st-active { color:var(--accent); font-weight:700; }
.skilltip .st-desc { font-size:13px; color:var(--text); line-height:1.4; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.menu-toggle { display: block; }
	.sidebar {
		position: fixed; top: 58px; left: 0; z-index: 40;
		height: calc(100vh - 58px); background: var(--bg-2);
		transform: translateX(-100%); transition: transform .2s;
		border-right: 1px solid var(--border);
	}
	.sidebar.open { transform: translateX(0); }
	.detail { grid-template-columns: 1fr; }
	.detail-media { position: static; }
	.two-col { grid-template-columns: 1fr; }
	.content { padding: 20px 18px 60px; }
	.brand-sub { display: none; }
	.recipe-list { grid-template-columns: 1fr; }
}
