:root {
  --ink: #0b1017;
  --surface-blue: #121b26;
  --edge: #2b3542;
  --paper: #f2f2ef;
  --subtle: #a9b5c2;
  --amber: #ffc064;
  --ice: #98d9f6;
  --sans: "Inter", "Microsoft JhengHei", system-ui, sans-serif;
  --frame: min(1280px, 92%);
  color-scheme: dark;
}
.site-header {
  min-height: 72px;
  gap: 48px;
  padding-inline: max(4%, calc((100% - 1280px) / 2));
  background: #0d121a;
  border-color: #242d38;
  font-family: var(--sans);
}
.site-brand { color: var(--paper); gap: 8px; }
.site-brand img { width: 33px; height: 37px; }
.site-brand strong { font: 760 23px/1.1 var(--sans); letter-spacing: -.85px; }
.site-brand span { gap: 2px; }
.site-brand small { font-size: 10px; font-weight: 600; color: var(--subtle); letter-spacing: .21em; }
.site-header-actions { flex: 1; justify-content: space-between; gap: 20px; }
.site-links { gap: 14px; }
.site-links a { position: relative; border: 0; min-width: 0; padding-inline: 12px; color: var(--subtle); font-size: 14px; font-weight: 650; }
.site-links a:hover, .site-links a[aria-current=page] { background: transparent; color: var(--amber); }
.site-links a[aria-current=page]::after { content: ""; position: absolute; height: 3px; bottom: 0; inset-inline: 12px; background: var(--amber); }
.site-settings { gap: 16px; border: 0; padding-left: 0; }
.site-header .site-settings select { border-radius: 6px; min-height: 44px; border-color: transparent; background: transparent; color: #d3dbe4; }
.site-header .site-settings select option { color: var(--paper); background: #16202d; }
.site-header .site-settings .season-select { color: var(--amber); }
.site-settings .language-label { display: inline-flex; align-items: center; gap: 1px; }
.site-settings .language-label>svg { display: block; width: 15px; height: 15px; stroke: var(--subtle); fill: none; stroke-width: 1.6; }
.site-settings .language-label select { padding: 7px 2px; }
.season-status { display: inline-flex; align-items: center; gap: 8px; color: #f5cb83; font: 700 13px/1 var(--sans); letter-spacing: .04em; }
.season-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.workshop-home { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.6 var(--sans); }
.workshop-home *, .workshop-home *::before, .workshop-home *::after { box-sizing: border-box; }
.workshop-home :where(h1,h2,h3,p,dl,dt,dd) { margin: 0; }
.workshop-home a { text-decoration: none; }
.workshop-home svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workshop-home :focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.home-skip { position: fixed; top: 8px; left: 8px; z-index: 50; padding: 10px 16px; background: var(--amber); color: var(--ink); transform: translateY(-160%); }
.home-skip:focus { transform: none; }
.home-wrap { width: var(--frame); margin: 0 auto; padding-block: 28px 38px; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(348px, 27.6vw, 397px);
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid #34404f;
  background: #152331;
}
.hero-art, .card-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-art { object-position: center 38%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #09111de6 0%, #101a28a8 30%, #0a142138 49%, transparent 68%); }
.hero-content { padding: 40px clamp(28px, 3.8vw, 60px); }
.hero-season { display: flex; align-items: center; gap: 10px; color: #ffcf8a; font-size: 13px; font-weight: 650; letter-spacing: .1em; }
.hero-season span:first-child { padding: 2px 8px; border: 1px solid #bd9459; border-radius: 3px; background: #312a21c4; font: 720 12px/1.3 var(--sans); letter-spacing: .09em; }
.hero h1 { margin: 8px 0 12px; font-size: clamp(60px, 5.5vw, 80px); font-weight: 850; line-height: 1.21; letter-spacing: .022em; color: #fff9ef; }
.hero-description { color: #d3d9df; font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 19px; gap: 15px; border-radius: 6px; font-size: 14px; font-weight: 730; transition: background-color .18s, border-color .18s; }
.action-primary { color: #201810; background: var(--amber); border: 1px solid var(--amber); }
.action-primary:hover { background: #ffd18e; }
.hero-actions svg, .card-link svg { width: 18px; height: 18px; }
.action-secondary { color: var(--paper); background: #101a27b8; border: 1px solid #68727d; }
.action-secondary:hover { background: #293644; border-color: #a5b5c3; }
.tools { margin-top: 34px; scroll-margin-top: 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-heading h2, .data-heading h2 { font-size: clamp(23px, 2vw, 29px); letter-spacing: .02em; line-height: 1.4; }
.storage-note { display: inline-flex; align-items: center; gap: 7px; color: var(--subtle); font-size: 12px; }
.storage-note svg { width: 15px; height: 15px; }
.tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.tool-card {
  --signal: var(--amber);
  position: relative;
  isolation: isolate;
  display: flex;
  overflow: hidden;
  min-height: 218px;
  align-items: center;
  border: 1px solid #534335;
  border-radius: 10px;
  background: #121822;
  color: var(--paper);
  transition: border-color .2s;
}
.atlas-card { --signal: var(--ice); border-color: #304a61; }
.card-art { transition: transform .35s; object-position: center 48%; }
.tool-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#101722f5 0%,#101722e8 28%,#10172265 54%,transparent 80%); }
.card-copy { padding: 24px 28px; }
.card-symbol { display: grid; place-items: center; width: 30px; height: 30px; color: var(--signal); border: 1px solid color-mix(in srgb, var(--signal) 44%, transparent); background: color-mix(in srgb, var(--signal) 8%, #131b25); border-radius: 6px; }
.card-symbol svg { width: 19px; height: 19px; }
.card-copy h3 { font-size: 26px; font-weight: 760; line-height: 1.4; letter-spacing: .035em; margin-top: 7px; }
.card-copy p { color: #c0cad5; font-size: 14px; line-height: 1.65; margin-top: 5px; }
.card-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--signal); }
.card-link svg { width: 16px; height: 16px; }
.tool-card:hover { border-color: var(--signal); }
@media (hover:hover) { .tool-card:hover .card-art { transform: scale(1.025); } }
.season-data { display: grid; grid-template-columns: minmax(140px,.9fr) 3.2fr; align-items: center; margin-top: 26px; padding: 22px 28px; background: #111923; border: 1px solid #293442; border-radius: 10px; }
.data-heading h2 { font-size: 17px; }
.data-heading p { margin-top: 2px; font-size: 12px; color: var(--subtle); }
.data-heading p span { color: #637180; }
.season-data dl { display: grid; grid-template-columns: repeat(4,1fr); }
.season-data dl div { display: flex; flex-direction: column-reverse; align-items: flex-start; border-left: 1px solid #2b3542; padding-inline: clamp(16px,3.25vw,52px) 8px; }
.season-data dt { color: var(--subtle); font-size: 12px; }
.season-data dd { font: 650 28px/1.2 var(--sans); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.home-footer { border-top: 1px solid #232e3b; padding: 19px max(4%, calc((100% - 1280px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--subtle); }
.home-footer span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 730; color: #cbd1d9; }
.home-footer img { opacity: .8; }
.home-footer small { font-size: 12px; }
@media (max-width: 900px) {
  .site-header { gap: 20px; }
  .site-links { gap: 6px; }
  .hero-content { padding-inline: 30px; }
  .tool-card { min-height: 210px; }
  .card-copy { padding: 22px; }
  .card-copy h3 { font-size: 24px; }
}
@media (max-width: 680px) {
  :root { --frame: calc(100% - 32px); }
  .site-header { gap: 0; padding-inline: 16px; min-height: auto; }
  .site-brand { min-height: 52px; }
  .site-brand strong { font-size: 19px; }
  .site-brand small { display: none; }
  .site-brand img { width: 25px; height: 28px; }
  .site-header-actions { display: contents; }
  .site-settings { gap: 10px; }
  .site-links { min-height: 44px; border-top: 1px solid #232c38; }
  .site-links a[aria-current=page]::after { inset-inline: 22%; }
  .site-links a { min-height: 44px; }
  .home-wrap { padding-top: 16px; }
  .tool-grid { grid-template-columns: 1fr; gap: 12px; }
  .tool-card { min-height: 193px; }
  .card-copy { padding: 19px 22px; }
  .tools { margin-top: 26px; }
  .section-heading { margin-bottom: 12px; flex-wrap: wrap; gap: 4px 10px; }
  .season-data { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .data-heading { display:flex; align-items: baseline; gap: 10px; }
  .season-data dl { gap: 6px; }
  .season-data dl div { padding-left: 12px; }
  .season-data dl div:first-child { padding-left: 0; border-left: none; }
  .season-data dd { font-size: 24px; }
  .home-footer { flex-wrap: wrap; padding-inline: 16px; }
}
@media (max-width: 600px) {
  .hero { min-height: 398px; align-items: flex-end; }
  .hero-art { height: 79%; object-position: 58% top; }
  .hero::before { background: linear-gradient(0deg,#111c29 3%,#111c29f5 25%,#111c29ab 48%,#111c2912 73%); }
  .hero-content { width: 100%; padding: 125px 20px 24px; }
  .hero h1 { font-size: 49px; margin: 8px 0; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 8px; margin-top: 17px; }
  .hero-actions a { min-height: 44px; padding: 9px 14px; gap: 8px; }
  .storage-note { font-size: 11px; }
}
@media (max-width: 370px) {
  .hero-content { padding-inline: 14px; }
  .hero-actions a { padding-inline: 10px; font-size: 13px; }
  .site-settings { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .workshop-home *, .workshop-home *::after { transition: none; scroll-behavior: auto; } .tool-card:hover .card-art { transform: none; } }
/* Planner controls use the same navigation, with a distinct accent for each workspace. */
.tool-page {
  --bg: #0d141e;
  --surface: #141e2b;
  --panel: var(--surface);
  --raised: #1c2837;
  --border: #324050;
  --line: var(--border);
  --text: #ecf0f3;
  --muted: #b0becc;
  --gold: var(--amber);
  --gold-soft: #342b22;
  --gold-bg: var(--gold-soft);
  --radius: 7px;
  font-family: var(--sans);
}
.atlas-page { --gold: var(--ice); --gold-soft: #1c3347; }
.tool-page .site-header { padding-inline: 28px; }
.tool-page .site-breadcrumb { background: var(--bg); }
.tool-page .tool-toolbar { background: #16202b; border-block: 1px solid var(--line); }
.tool-page .tool-toolbar .plan-name { background: #101925; border-color: var(--line); padding-inline: 12px; }
.tool-page .tool-actions button.primary { color: #17212f; background: var(--gold); }
.tool-page .tool-footer { background: #101720; }
.tool-page :is(.panel-head,.section-nav,.inspector-tabs) { background: #182330; }
.tool-page :is(.panel-head h2,.canvas-heading h2,.subheading h2) { font-weight: 750; font-size: 16px; }
.tool-page .panel-head h2 { gap: 10px; }
.tool-page :is(.panel,.summary-strip,.inspector,.canvas-controls) { box-shadow: 0 6px 18px #04070c24; }
.build-page .summary-strip { border-radius: 10px; background: linear-gradient(105deg,#262b2e,#15212d 55%); }
.build-page .summary-cell { border-color: var(--line); }
.build-page .summary-cell strong { font-weight: 760; color: #fff2da; }
.build-page .tool-toolbar { border-bottom-color: #514338; }
.build-page .hero-choice, .build-page .hero-choice:hover:not(:disabled) {
  background: linear-gradient(90deg,#131b25fa,#141b25e8 42%,#141b2560), url('/art/forge-blade.webp') right center / cover;
  border-color: #6b5640;
}
.build-page .hero-choice .hero-placeholder { color: var(--amber); border-color: #826343; background: #17202ad9; }
.build-page .hero-choice small { color: #d2d8de; }
.build-page .god-card { background: radial-gradient(ellipse at 50% 14%,#374253,#121b27 82%); }
.build-page .equipment-slot:not(.filled) { background: #101923; }
.build-page .section-nav button.active { box-shadow: inset 0 -1px var(--gold); }
.build-page .tree-canvas { background: radial-gradient(ellipse at center,#263343,#0e1620 82%); }
.atlas-page .tool-toolbar { border-bottom-color: #354f66; }
.atlas-page .canvas-heading { background: #131e2b; border-color: var(--line); }
.atlas-page .board-container { background: radial-gradient(ellipse at 50% 46%,#21354a,#0e1825 82%); }
.atlas-page .atlas-navigation { background: #111b27; }
.atlas-page .canvas-controls { background: #152131; border-color: #3e536b; }
.atlas-page .inspector-tabs button[aria-selected=true] { color: var(--ice); border-bottom-color: var(--ice); }
@media (min-width: 901px) {
  .build-page .layout { max-width: 1600px; margin-inline: auto; }
}
@media (max-width: 680px) {
  .tool-page .site-header { padding-inline: 16px; }
  .tool-page .site-settings { gap: 4px; }
}
