:root {
  --bg: #080a0d;
  --bg2: #0c1014;
  --panel: #11161b;
  --panel2: #151c22;
  --line: #263039;
  --line-soft: #1c242b;
  --text: #d8dde0;
  --muted: #7e8992;
  --gold: #c8a45e;
  --gold2: #e0c078;
  --blue: #7ba1ba;
  --green: #79a987;
  --red: #b86c63;
  --shadow: 0 16px 48px rgba(0,0,0,.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 52% -10%, #171c20 0, var(--bg) 42%); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.topbar { position: sticky; top: 0; z-index: 30; height: 58px; display: flex; align-items: center; gap: 28px; padding: 0 28px; background: rgba(7,9,11,.94); border-bottom: 1px solid #232a30; backdrop-filter: blur(12px); }
.brand-wrap { display: flex; align-items: center; gap: 12px; min-width: 310px; }
.brand { font-family: Georgia, serif; font-weight: 700; letter-spacing: .08em; color: #d8c48e; font-size: 18px; }
.brand span { color: #8fa3af; }
.league-badge { font-size: 11px; color: #b7a16d; border: 1px solid #54482f; padding: 3px 7px; background: #15130d; }
.topbar nav { display: flex; gap: 22px; font-size: 13px; color: #9ca5ab; }
.topbar nav a:hover { color: #eee; }
.status-pill { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: 12px; color: #9da8ad; }
.status-pill i { width: 7px; height: 7px; background: #8a7341; border-radius: 50%; box-shadow: 0 0 10px rgba(200,164,94,.35); }
.status-pill.ready i { background: #6da37b; }
.status-pill.error i { background: #b45e57; }
.announcement { padding: 8px 28px; background: #121820; border-bottom: 1px solid #252f38; color: #89969f; font-size: 12px; text-align: center; }
.announcement strong { color: #c6aa68; }
.page-shell { max-width: 1500px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 22px; }
.sidebar { position: sticky; top: 98px; align-self: start; display: grid; gap: 16px; }
.panel { background: linear-gradient(180deg, rgba(19,25,30,.97), rgba(13,18,22,.98)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.generator-panel { padding: 18px; }
.panel-title { display: flex; align-items: center; gap: 9px; color: #aeb7bc; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 700; margin-bottom: 16px; }
.panel-title span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #584b30; color: #d0ac5e; background: #19160f; font-size: 10px; }
.field-label { display: block; color: #8e9aa2; font-size: 12px; margin-bottom: 7px; }
.field-label.spaced { margin-top: 18px; }
.search-wrap { position: relative; }
.search-wrap input { width: 100%; padding: 11px 34px 11px 12px; background: #090d10; border: 1px solid #303943; color: #ecf0f2; outline: none; }
.search-wrap input:focus { border-color: #806d43; box-shadow: 0 0 0 2px rgba(200,164,94,.08); }
.kbd { position: absolute; right: 9px; top: 9px; color: #606c74; border: 1px solid #2b343b; padding: 0 5px; font-size: 11px; }
.skill-results { display: none; position: absolute; width: 274px; max-height: 280px; overflow: auto; background: #0d1216; border: 1px solid #34404a; z-index: 20; box-shadow: 0 16px 30px rgba(0,0,0,.45); }
.skill-results.open { display: block; }
.skill-option { padding: 9px 11px; border-bottom: 1px solid #1d252b; cursor: pointer; }
.skill-option:hover { background: #182027; }
.skill-option strong { display: block; font-size: 12px; color: #dbe0e2; }
.skill-option small { color: #71808a; }
.segmented { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid #2d363e; }
.segmented button { border: 0; border-right: 1px solid #2d363e; color: #7f8b93; background: #0b0f12; padding: 8px 4px; cursor: pointer; font-size: 11px; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: #282216; color: #d6b76e; }
.mini-info { margin-top: 16px; border-top: 1px solid #242d34; border-bottom: 1px solid #242d34; padding: 8px 0; }
.mini-info > div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 11px; }
.mini-info span { color: #69767f; }
.mini-info strong { color: #b6c0c6; font-weight: 600; text-align: right; }
.primary-btn { margin-top: 16px; width: 100%; border: 1px solid #806a39; background: linear-gradient(#2a2417,#1d190f); color: #d9bd79; padding: 12px 13px; cursor: pointer; display: flex; justify-content: space-between; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.primary-btn:hover { border-color: #b18f4c; color: #edd18d; }
.primary-btn:disabled { opacity: .5; cursor: progress; }
.fineprint { color: #606c73; font-size: 10px; margin: 11px 0 0; }
.compact-panel { padding: 15px 18px; }
.engine-grid { display: grid; gap: 8px; }
.engine-grid div { display: flex; justify-content: space-between; font-size: 11px; }
.engine-grid span { color: #68747d; }.engine-grid strong { color: #aeb9bf; }
.workspace { min-width: 0; display: grid; gap: 18px; }
.hero-panel { padding: 28px 30px; display: grid; grid-template-columns: 1fr auto; gap: 30px; background: linear-gradient(115deg, #151a1d 0%, #10171b 52%, #17140e 100%); }
.eyebrow { color: #9a8350; font-size: 10px; letter-spacing: .16em; font-weight: 700; margin-bottom: 6px; }
h1 { margin: 0; font-family: Georgia, serif; color: #e0e1dc; font-size: clamp(29px, 4vw, 47px); line-height: 1.08; font-weight: 500; max-width: 850px; }
.hero-panel p { max-width: 810px; color: #87939b; font-size: 14px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 100px); align-self: end; }
.hero-stats div { border-left: 1px solid #31383b; padding-left: 15px; }
.hero-stats strong { display: block; color: #d5b66c; font: 28px Georgia, serif; }
.hero-stats span { color: #6e7980; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.result-hidden { display: none; gap: 18px; }
.result-hidden.visible { display: grid; }
.overview-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stat-card { padding: 14px 15px; min-height: 104px; }
.stat-card span { color: #6d7981; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.stat-card strong { display: block; color: #d7dcde; margin-top: 6px; font: 19px Georgia, serif; }
.stat-card small { display: block; color: #71808a; margin-top: 7px; font-size: 10px; }
.roadmap-panel, .tree-panel, .pob-panel, .method-panel { padding: 18px; }
.panel-headline { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
h2 { margin: 0; font: 24px Georgia, serif; color: #d7dbda; font-weight: 500; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.tabs button { background: #0c1115; border: 1px solid #29323a; color: #78848c; font-size: 10px; padding: 5px 8px; cursor: pointer; }
.tabs button.active { color: #dfc378; border-color: #715e35; background: #1c1810; }
.roadmap-content { display: grid; grid-template-columns: 140px 1fr; gap: 20px; border-top: 1px solid #232c33; padding-top: 18px; }
.act-summary { display: flex; gap: 12px; align-items: center; }
.act-number { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #5a4b2f; color: #d0ac5e; font: 19px Georgia, serif; background: #17140d; }
.act-summary span { display: block; color: #6d7981; font-size: 10px; }.act-summary strong { font-size: 12px; color: #aeb8bd; }
.notable-list { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.notable-chip { border: 1px solid #36414a; background: #11181d; padding: 8px 10px; min-width: 150px; }
.notable-chip b { display: block; color: #c8b477; font-size: 11px; }.notable-chip small { color: #74818a; font-size: 9px; }
.tree-stage { position: relative; background: #080c10; border: 1px solid #202a31; height: 680px; overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.tree-stage.dragging { cursor: grabbing; }
#tree-canvas { width: 100%; height: 100%; display: block; }
.tree-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.tree-buttons { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tree-hud { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; pointer-events: none; }
.tree-hud span { padding: 4px 7px; border: 1px solid #2b363e; background: rgba(7,10,13,.88); color: #88969e; font-size: 9px; }
.tree-tooltip { position: absolute; pointer-events: none; display: none; width: 260px; background: #090c0f; border: 1px solid #5c4c2d; padding: 10px; font-size: 10px; color: #aeb8be; box-shadow: 0 12px 30px #000; }
.tree-tooltip strong { color: #d4b86e; display: block; font-size: 12px; margin-bottom: 2px; }.tree-tooltip small { display:block; color:#64727b; margin-bottom:6px; }.tree-note { color: #5f6d75; font-size: 10px; padding-top: 9px; }
.legend { display: flex; gap: 12px; color: #77838a; font-size: 10px; flex-wrap: wrap; }.legend span { display: flex; gap: 6px; align-items: center; }.dot { width: 8px; height: 8px; border-radius: 50%; background: #151e24; border: 1px solid #394650; }.dot.previous { background:#bd8c36; border-color:#f0d68c; }.dot.added { background:#85d4df; border-color:#d8fbff; box-shadow:0 0 5px #87e8ff; }.dot.planned { background:#243d4b; border-color:#6c94aa; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.two-col > .panel { padding: 18px; }
.support-list { display: grid; gap: 7px; }.support-row { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 9px; border-bottom: 1px solid #212a30; padding: 6px 0; }.support-row i { width: 22px; height: 22px; border: 1px solid #4d6070; background: #16202a; display: grid; place-items: center; color: #9db0bf; font-style: normal; font-size: 9px; }.support-row strong { font-size: 11px; color: #b8c1c6; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }.tag { border: 1px solid #35404a; background: #0e1418; color: #83919a; font-size: 10px; padding: 4px 7px; text-transform: uppercase; letter-spacing: .05em; }.tag.damage { border-color: #5b4933; color: #c2a463; background: #17130d; }
.warning-list { margin-top: 13px; display: grid; gap: 7px; }.warning { color: #887d67; font-size: 10px; border-left: 2px solid #625233; padding-left: 8px; }
.actions { display: flex; gap: 7px; }.secondary-btn { border: 1px solid #34414a; background: #0e1418; color: #98a6ae; padding: 7px 10px; cursor: pointer; font: 10px/1.2 inherit; text-decoration: none; }.secondary-btn:hover { border-color: #6b5b38; color: #d0b66f; }.secondary-btn[aria-pressed="true"] { border-color:#4e7a89; color:#9edce7; }.secondary-btn.disabled { opacity:.45; pointer-events:none; }
#pob-code { width: 100%; height: 190px; resize: vertical; background: #080b0d; border: 1px solid #293139; color: #8899a3; padding: 12px; font: 10px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.method-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }.method-grid > div { border: 1px solid #273139; background: #0d1216; padding: 14px; }.method-grid b { color: #bea05b; font: 23px Georgia, serif; }.method-grid h3 { margin: 9px 0 5px; color: #bfc7ca; font-size: 12px; }.method-grid p { margin: 0; color: #6b7880; font-size: 10px; }
footer { max-width: 1500px; margin: 0 auto; padding: 25px 24px 45px; color: #566169; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; border-top: 1px solid #1e252a; }
.loading-overlay { opacity: .45; }
.error-box { border: 1px solid #623e39; background: #1b1010; color: #c18780; padding: 12px; font-size: 11px; }
@media (max-width: 1050px) { .page-shell { grid-template-columns: 1fr; }.sidebar { position: static; grid-template-columns: 1fr 1fr; }.overview-grid { grid-template-columns: 1fr 1fr; }.hero-panel { grid-template-columns: 1fr; }.hero-stats { justify-content: start; } }
@media (max-width: 700px) { .topbar nav,.league-badge { display:none; }.topbar { padding: 0 14px; }.brand-wrap { min-width:0; }.page-shell { padding: 12px; }.sidebar { grid-template-columns: 1fr; }.overview-grid,.two-col,.method-grid { grid-template-columns: 1fr; }.roadmap-content { grid-template-columns: 1fr; }.hero-stats { grid-template-columns: repeat(3,1fr); }.hero-panel { padding:20px; }.panel-headline { align-items:flex-start; flex-direction:column; }.tree-actions { width:100%; align-items:flex-start; flex-direction:column; }.tree-buttons { justify-content:flex-start; }.legend { flex-wrap:wrap; }.tree-stage { height:520px; }.tabs { justify-content:flex-start; } footer { flex-direction:column; } }


/* AdSense + compliance surfaces */
.ad-shell, .ad-panel { min-height: 90px; }
.ad-shell { max-width: 1500px; margin: 12px auto 0; padding: 0 24px; color: #5f6a72; font-size: 10px; }
.ad-shell > span { display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .1em; }
.ad-shell ins, .ad-panel ins { border: 1px dashed #313a42; background: rgba(9,13,16,.55); min-height: 90px; width: 100%; }
.ad-panel ins { min-height: 250px; }
.ad-inline { margin: 14px 0 0; padding: 0; }
.ad-placeholder { display: grid !important; place-items: center; text-align: center; color: #6e7a82; padding: 12px; }
.ad-placeholder b { display: block; color: #9c8652; font-size: 11px; margin-bottom: 4px; }
.ad-placeholder small { display: block; max-width: 320px; line-height: 1.4; }
footer a { color: #9c8652; text-decoration: none; }
footer a:hover { color: #d0b66f; }
.legal-page { max-width: 920px; margin: 42px auto; padding: 0 24px; color: #aeb8bd; }
.legal-page h1 { font-size: 36px; margin-bottom: 16px; }
.legal-page h2 { margin-top: 28px; font-size: 22px; }
.legal-page p, .legal-page li { color: #7f8b93; line-height: 1.65; font-size: 14px; }
.legal-page code { color: #d0b66f; }
