/* Bells of Steel brand layer for every 3D assembly guide (loaded after each guide's own <style>, same selectors).
   Matches the Reverse Inverse Hammer product page / About Us kit: black + off-white + #FF4B29, Space Grotesk,
   Press Start 2P level tags, SteelScript for the product name only, square shapes, hard offset shadows,
   halftone texture, Ask-Kaevon tips. Black text on orange (AA). Motion off under prefers-reduced-motion. */
@font-face { font-family: 'SteelScript'; src: url('/brand/steelscript.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #E9ECEE; --panel: #F4F4F0; --ink: #000; --muted: #4a4f55; --line: #000;
  --orange: #FF4B29; --orange-ink: #000; --orange-soft: #ffe1d9; --blue: #000; --chip: #fff;
  --forge: #FF4B29; --paper: #F4F4F0;
  --pix: 'Press Start 2P', ui-monospace, monospace;
  --steel: 'SteelScript', 'Space Grotesk', Arial, sans-serif;
  --gb-dots: radial-gradient(rgba(0,0,0,.07) 1px, transparent 1.4px);
}
html, body { font: 15px/1.5 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; background: var(--bg); }
#panel { background-color: var(--paper); background-image: var(--gb-dots); background-size: 7px 7px; border-right: 2px solid #000; }
#stage { background: #fff; }

/* header: black bar, logo + SteelScript product name */
.top { margin: -18px -20px 16px; padding: 14px 20px 14px; background: #000; color: #fff; align-items: center; }
.brand { color: #fff; font-size: 0; line-height: 1; }
.brand .gb-logo { display: block; height: 15px; width: auto; margin: 0 0 9px; }
.brand small { font-family: var(--steel); font-weight: 400; font-size: 25px; line-height: 1; color: #fff; text-transform: uppercase; letter-spacing: .01em; }
.lang { border: 2px solid #fff; border-radius: 0; background: #000; }
.lang button { color: #fff; font-family: var(--pix); font-size: 9px; padding: 7px 8px; }
.lang button[aria-pressed="true"] { background: var(--forge); color: #000; }

/* your build bar */
.buildbar { background: #000; color: #fff; border: 2px solid #000; border-radius: 0; box-shadow: 5px 5px 0 var(--forge); padding: 8px 8px 8px 12px; margin-bottom: 18px; }
.buildbar .bl b { color: var(--forge); }
.buildbar .btn { background: #fff; color: #000; border-color: #fff; box-shadow: none; }

/* step heading */
.stepno { display: inline-block; font-family: var(--pix); font-size: 9px; line-height: 1.5; letter-spacing: 0; color: #000; background: var(--forge); padding: 6px 8px; box-shadow: 3px 3px 0 #000; margin: 0 0 12px; }
h1 { font-weight: 700; text-transform: uppercase; font-size: 25px; line-height: 1.08; letter-spacing: -.005em; margin: 2px 0 12px; }
h2 { font-family: var(--pix); font-size: 9px; line-height: 1.5; letter-spacing: 0; color: #000; margin: 22px 0 10px; }
.badge { border-radius: 0; background: #000; color: #fff; font-family: var(--pix); font-size: 8px; letter-spacing: 0; padding: 6px 7px; line-height: 1.3; }
.badge.two { background: var(--forge); color: #000; box-shadow: 2px 2px 0 #000; }
.badge.mod { background: #fff; color: #000; box-shadow: inset 0 0 0 2px #000; }
.text { font-size: 15.5px; }

/* Ask-Kaevon tips (pro tips) and heads-up warnings */
.tip { position: relative; border: 2px solid #000; border-left: 2px solid #000; border-radius: 0; background: #000; color: #fff; padding: 12px 14px 12px 70px; min-height: 66px; box-shadow: 5px 5px 0 var(--forge); margin: 16px 0; }
.tip::before { content: ''; position: absolute; left: 10px; top: 10px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; background: #fff url('/brand/kaevon-head-crown.webp') center / cover no-repeat; box-shadow: 2px 2px 0 var(--forge); }
.tip b { display: block; color: var(--forge); font-family: var(--pix); font-size: 8.5px; line-height: 1.5; margin: 0 0 5px; letter-spacing: 0; text-transform: uppercase; }
.tip[style] { background: var(--forge); color: #000; border-color: #000 !important; box-shadow: 5px 5px 0 #000; }
.tip[style]::before { background-image: url('/brand/kaevon-head-mace.webp'); border-color: #000; box-shadow: 2px 2px 0 #000; }
.tip[style] b { color: #000 !important; }

/* routing list */
ol.route li { border-radius: 0; color: #6b7076; }
ol.route li::before { border-radius: 0; background: #c9ccd0; color: #000; }
ol.route li.done::before { background: #000; color: #fff; }
ol.route li.active { background: #fff; box-shadow: inset 0 0 0 2px #000; }
ol.route li.active::before { background: var(--forge); color: #000; }

/* part + hardware chips */
.chips { gap: 12px; }
.chip { border: 2px solid #000; border-radius: 0; box-shadow: 4px 4px 0 #000; padding: 7px 9px 7px 7px; transition: transform 120ms, box-shadow 120ms; }
.chip:hover { border-color: #000; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #000; }
.chip.sel { border-color: #000; box-shadow: 4px 4px 0 var(--forge); outline: 2px solid var(--forge); outline-offset: -2px; }
.chip .no { font-family: var(--pix); font-size: 9px; line-height: 1.6; }
.chip .no .q { color: #000; background: var(--forge); padding: 1px 3px; margin-left: 5px; }
.chip .kit { border-radius: 0; background: #000; font-family: var(--pix); font-size: 7px; padding: 2px 4px; }

/* buttons */
.btn { border: 2px solid #000; border-radius: 0; background: #fff; color: #000; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 13px; box-shadow: 3px 3px 0 #000; transition: transform 100ms, box-shadow 100ms; }
.btn:hover { border-color: #000; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.btn.primary { background: var(--forge); color: #000; border-color: #000; }
.btn.primary:disabled, .btn:disabled { opacity: .4; box-shadow: none; transform: none; }
.btn:focus-visible, .chip:focus-visible, .pkb:focus-visible, ol.steps li button:focus-visible, .lang button:focus-visible { outline: 3px solid var(--forge); outline-offset: 2px; }
.check-btn { background: #000; color: #fff; border-color: #000; box-shadow: 3px 3px 0 var(--forge); }
.check-result { border: 2px solid #000; border-radius: 0; box-shadow: 4px 4px 0 #000; }
.nav { gap: 12px; margin-top: 22px; }

/* all-steps list */
ol.steps li button { border-radius: 0; padding: 7px 8px; }
ol.steps li button:hover { background: #fff; box-shadow: inset 0 0 0 2px #000; }
ol.steps li button .n { color: #555a60; font-weight: 700; }
ol.steps li button[aria-current="step"] { background: #000; color: #fff; box-shadow: 4px 4px 0 var(--forge); }
ol.steps li button[aria-current="step"] .n { color: var(--forge); }
ol.steps li.mod { font-family: var(--pix); font-size: 8.5px; line-height: 1.6; letter-spacing: 0; color: #000; padding: 16px 8px 6px; border-top: 2px solid #000; margin-top: 8px; }
ol.steps li.mod small { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12px; color: #4a4f55; margin-top: 3px; }

/* stage chrome */
.toolbar .btn { background: #fff; backdrop-filter: none; font-size: 12px; padding: 6px 10px; }
.toolbar .btn.on { background: #000; color: #fff; }
.draft { border: 2px solid #000; border-radius: 0; background: #fff; color: #000; font-family: var(--pix); font-size: 7.5px; line-height: 1.5; letter-spacing: 0; padding: 5px 7px; box-shadow: 3px 3px 0 var(--forge); }
.hint { color: #4a4f55; font-weight: 600; }
#tooltip { border-radius: 0; background: #000; box-shadow: 4px 4px 0 var(--forge); }
#tooltip b { color: var(--forge); }
.marker { border-radius: 0; border: 2px solid #000; font-size: 12px; box-shadow: 2px 2px 0 #000; }
.marker.active { background: var(--forge); border-color: #000; color: #000; }
#loading { background: #000; color: #fff; font-family: var(--pix); font-size: 10px; }
#loading .bar { width: 220px; height: 10px; border-radius: 0; background: #222; border: 2px solid #fff; }
#loading .bar i { background: var(--forge); }
#manual { background: rgba(244,244,240,.98); }
.tbl table { border: 2px solid #000; border-radius: 0; }
.legend { border-radius: 0; border: 2px solid #000; background: #fff; color: #000; }

/* build picker: PDP build cards (Lv tags, chips) on black halftone */
#picker { background-color: rgba(0,0,0,.96); background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.4px); background-size: 7px 7px; color: #fff; }
.pkt { font-family: 'Space Grotesk', Arial, sans-serif; color: #fff; font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.02; margin-bottom: 8px; }
.pks { color: #d6d8db; font-size: 15px; margin-bottom: 26px; }
.pkh { font-family: var(--pix); font-size: 10px; letter-spacing: 0; color: var(--forge); margin: 30px 0 16px; }
.pkgrid { gap: 22px 18px; }
.pkb { position: relative; background: #E9ECEE; color: #000; border: 2px solid #000; border-radius: 0; box-shadow: 7px 7px 0 #fff; padding: 22px 14px 14px; min-height: 120px; overflow: visible; transition: transform 120ms, box-shadow 120ms; }
.pkb:hover, .pkb:focus-visible { border-color: #000; transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--forge); }
.pkb::before { content: 'Build'; position: absolute; top: -12px; left: 12px; font-family: var(--pix); font-size: 9px; line-height: 1; padding: 7px 8px; background: var(--forge); color: #000; box-shadow: 3px 3px 0 #000; text-transform: uppercase; }
.pkb[data-build="3in1"]::before { content: 'Lv 3'; }
.pkb[data-build="2in1"]::before { content: 'Lv 2'; }
.pkb[data-build="ghd"]::before, .pkb[data-build="rbe"]::before { content: 'Lv 1'; }
.pkb[data-build^="kit"]::before { content: 'Power-up'; background: #fff; }
.pkb b { font-weight: 700; text-transform: uppercase; font-size: 15px; line-height: 1.15; }
.pkb span { color: #33373c; font-size: 13px; }
.pkb em { align-self: flex-start; font-family: var(--pix); font-size: 8px; line-height: 1.5; color: #fff; background: #000; padding: 5px 6px; letter-spacing: 0; }

/* finish-step mascot (guide-brand.js adds it on the last step) */
.gb-finish { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; margin: 22px 0 6px; padding: 14px; background: #000; color: #fff; box-shadow: 6px 6px 0 var(--forge); }
.gb-finish img { width: 92px; height: auto; display: block; transform: rotate(-4deg); filter: drop-shadow(3px 3px 0 var(--forge)); }
.gb-finish b { display: block; font-family: var(--pix); font-size: 10px; line-height: 1.6; color: var(--forge); margin: 0 0 6px; text-transform: uppercase; }
.gb-finish p { margin: 0; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .gb-finish img { animation: gb-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
  @keyframes gb-pop { from { transform: scale(.4) rotate(-14deg); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .chip, .btn, .pkb { transition: none; } }

@media (max-width: 700px) {
  #stage { border-bottom: 2px solid #000; }
  .top { margin: -14px -16px 14px; padding: 12px 16px; }
  .brand small { font-size: 21px; }
  h1 { font-size: 21px; }
  #picker { position: fixed; z-index: 30; align-items: start; padding: 24px 18px 40px; background-color: #000; }
  .pkgrid { gap: 20px 14px; }
  .pkb { padding: 20px 10px 12px; min-height: 0; }
  .tip { padding-left: 64px; }
  .draft { font-size: 6.5px; padding: 4px 6px; box-shadow: 2px 2px 0 var(--forge); }
  .tip::before { width: 42px; height: 42px; }
}
