.wfi-guide {
  color-scheme: dark;
  --bg: #111c19;
  --deep: #0c1512;
  --surface: #192722;
  --line: #394b40;
  --text: #f1ecdf;
  --muted: #b2beb0;
  --amber: #e4ad60;
  --green: #b5c29b;
  --heading: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --mono: Consolas, "Courier New", monospace;
}
.wfi-guide * { box-sizing: border-box; }

.wfi-guide a { color: inherit; text-decoration: none; }
.wfi-guide button { font: inherit; cursor: pointer; }
.wfi-guide :focus-visible { outline: 2px solid #ffca80; outline-offset: 4px; }
.wfi-guide [hidden] { display: none !important; }

.wfi-guide .switch { display: inline-flex; gap: 3px; align-items: center; padding: 3px; border: 1px solid var(--line); background: var(--deep); width: fit-content; }
.wfi-guide .switch button { min-height: 36px; border: 1px solid transparent; padding: 6px 12px; background: transparent; color: var(--muted); white-space: nowrap; font-size: .875rem; }
.wfi-guide .switch button[aria-pressed="true"] { border-color: #786143; background: #302a1d; color: #ffd298; }
.wfi-guide .switch button:hover { color: #ffd298; }

.wfi-guide .guide-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 314px; margin-block: 26px 37px; border: 1px solid #485144; background: #14241d; display: flex; align-items: center; }
.wfi-guide .hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.wfi-guide .hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #17261f 17%, #15241dec 38%, #15241d30 83%), linear-gradient(0deg,#13211ba0,#15241d00 60%), url("/static/assets/kolguyev-briefing.webp") right 42% / min(820px, 85%) auto no-repeat; }
.wfi-guide .hero-art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 47px,#d1d9a51c 48px), repeating-linear-gradient(0deg, transparent 0 47px,#d1d9a51c 48px); mask-image: linear-gradient(90deg, transparent 27%, #0009 65%); }
.wfi-guide .hero-art i { position: absolute; right: 12%; top: 37%; width: 118px; height: 118px; border: 1px solid #ffd29872; outline: 1px dashed #ffd29864; outline-offset: 15px; border-radius: 100%; }
.wfi-guide .hero-art i::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 28px var(--mono); color: #ffd298; }
.wfi-guide .guide-hero-copy { padding: 34px clamp(22px, 4vw, 52px); }
.wfi-guide .guide-eyebrow, .wfi-guide .route-kicker { color: var(--amber); font: 700 .81rem/1.4 var(--mono); letter-spacing: .095em; text-transform: uppercase; }
.wfi-guide .guide-eyebrow { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.wfi-guide .crosshair { width: 13px; height: 13px; border: 1px solid currentColor; display: inline-grid; place-items: center; }
.wfi-guide .crosshair::before { content: "+"; line-height: 1; }

.wfi-guide h1, .wfi-guide h2, .wfi-guide h3, .wfi-guide h4, .wfi-guide p { margin: 0; }
.wfi-guide h1 { margin-top: 9px; font: 700 clamp(2.4rem, 5.2vw, 4.65rem)/1.01 var(--heading); letter-spacing: -.05em; }
.wfi-guide .guide-hero p { max-width: 470px; margin-top: 13px; color: #e1e4d7; font-size: 1.05rem; }
.wfi-guide .hero-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.wfi-guide .guide-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); font-weight: 650; font-size: .9rem; background: #101b17b8; }
.wfi-guide .guide-link.primary { background: var(--amber); border-color: var(--amber); color: #182017; }
.wfi-guide .guide-link.primary:hover { background: #ffd096; }
.wfi-guide .guide-link.ghost:hover { border-color: var(--amber); color: #ffd096; }
.wfi-guide .section-head { display: flex; justify-content: space-between; gap: 15px; align-items: end; margin-bottom: 14px; }
.wfi-guide h2 { font: 700 clamp(1.7rem, 3.2vw, 2.45rem)/1.13 var(--heading); letter-spacing: -.025em; }
.wfi-guide .section-head p { color: var(--muted); margin-top: 5px; }
.wfi-guide .wfi-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem; margin-block: 0 2.5rem; }
.wfi-guide .wfi-intro-copy, .wfi-guide .wfi-intro-rewards { min-width: 0; padding: clamp(1rem, 2.4vw, 1.75rem); border: 1px solid var(--line); background: var(--surface); }
.wfi-guide .wfi-intro-copy { border-top: 2px solid var(--amber); }
.wfi-guide .wfi-intro h2 { font-size: clamp(1.55rem, 2.9vw, 2.2rem); }
.wfi-guide .wfi-intro h3 { font: 650 1.2rem/1.3 var(--heading); }
.wfi-guide .wfi-intro-copy h3 { margin-top: 1.15rem; }
.wfi-guide .wfi-intro-copy p { margin-top: .55rem; }
.wfi-guide .wfi-intro-caption { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.wfi-guide .wfi-intro dl { margin: .75rem 0; }
.wfi-guide .wfi-intro dl > div { border-top: 1px solid var(--line); padding-block: .55rem; }
.wfi-guide .wfi-intro dl > div:last-child { border-bottom: 1px solid var(--line); }
.wfi-guide .wfi-intro dt { font-weight: 650; }
.wfi-guide .wfi-intro dd { margin: .15rem 0 0; font-size: .94rem; }
.wfi-guide .wfi-intro dd strong { color: #ffd298; margin-right: .25em; }
@media (max-width: 820px) {
  .wfi-guide .wfi-intro { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
}

.wfi-guide .wfi-materials { margin-bottom: 2.5rem; }
.wfi-guide .wfi-materials dl { margin: 0 0 .75rem; border: 1px solid var(--line); background: var(--surface); }
.wfi-guide .wfi-materials dl > div { display: grid; grid-template-columns: minmax(11rem, .3fr) minmax(0, 1fr); gap: .45rem 1rem; padding: .8rem 1rem; }
.wfi-guide .wfi-materials dl > div + div { border-top: 1px solid var(--line); }
.wfi-guide .wfi-materials dt { font-weight: 650; color: #ffd298; }
.wfi-guide .wfi-materials dd { margin: 0; }
.wfi-guide .wfi-materials > p { margin: .35rem 0 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 650px) {
  .wfi-guide .wfi-materials dl > div { grid-template-columns: minmax(0, 1fr); }
}

.wfi-guide .route-frame { container-type: inline-size; }
.wfi-guide .route-frame.narrow { max-width: 390px; margin-inline: auto; }
.wfi-guide .route-sheet { padding: 20px; border: 1px solid var(--line); background: linear-gradient(150deg,#1b2b23,#15231d 58%); }
.wfi-guide .route-title { display: flex; gap: 13px; align-items: baseline; flex-wrap: wrap; margin-bottom: 16px; }
.wfi-guide .route-title h3 { font: 650 1.35rem/1.25 var(--heading); }
.wfi-guide .flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 23px; margin: 0; padding: 0; list-style: none; }
.wfi-guide .flow-node { --node: #e9b46b; position: relative; min-width: 0; display: flex; flex-direction: column; border: 1px solid #475347; border-top: 2px solid var(--node); background: #101d17; }
.wfi-guide .flow-node:nth-child(2) { --node: #f3c385; }
.wfi-guide .flow-node:nth-child(3) { --node: #bdd2a6; }
.wfi-guide .flow-node:nth-child(4) { --node: #b6caae; }
.wfi-guide .node-head { padding: 12px 12px 11px; min-height: 78px; background: #ffffff06; border-bottom: 1px solid var(--line); }
.wfi-guide .node-head span { display: block; color: var(--node); font: .78rem/1.25 var(--mono); }
.wfi-guide .node-head h4 { margin-top: 4px; font: 650 1.33rem/1.08 var(--heading); }
.wfi-guide .node-body { margin: 0; display: grid; grid-template-rows: minmax(67px, auto) minmax(97px, auto) minmax(65px, auto) minmax(76px, 1fr); flex: 1; }
.wfi-guide .node-body > div { padding: 8px 12px; border-bottom: 1px solid #324036; }
.wfi-guide .node-body dt { margin-bottom: 2px; color: #a9bbac; font: .77rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.wfi-guide .node-body dd { margin: 0; font-size: .91rem; line-height: 1.36; }
.wfi-guide .node-result { background: #e4ad6012; }
.wfi-guide .node-result dt { color: var(--node); }
.wfi-guide .node-result strong { color: #ffda9d; }
.wfi-guide .node-link { border: 0; width: 100%; min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 12px; background: #23332a; color: #e8eee1; text-align: left; font-size: .86rem; }
.wfi-guide a.node-link:hover { background: #354737; color: #ffda9d; }
.wfi-guide .node-link .glyph { margin-left: auto; font-family: var(--mono); color: var(--amber); }
.wfi-guide .node-return { color: #dfc79c; }
.wfi-guide .return-link { color: #ffda9d; text-decoration: underline; text-underline-offset: 3px; }
.wfi-guide .handoff { display: block; position: absolute; z-index: 2; top: 276px; right: -24px; width: 24px; border-top: 2px solid var(--amber); }
.wfi-guide .handoff::after { content: ""; position: absolute; width: 6px; height: 6px; border-top: 2px solid var(--amber); border-right: 2px solid var(--amber); transform: rotate(45deg); right: 3px; top: -5px; }
.wfi-guide .handoff span { display: none; }
.wfi-guide .branches { margin-top: 16px; border: 1px solid #425345; padding: 12px; background: #122019; }
.wfi-guide .branches h4 { font: 650 1rem/1.4 var(--sans); margin-bottom: 8px; }
.wfi-guide .branch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wfi-guide .branch { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.16fr); align-items: center; gap: 10px; padding: 10px; border: 1px solid #39493d; }
.wfi-guide .branch > span { color: var(--amber); }
.wfi-guide .branch strong { display: block; font-size: .87rem; line-height: 1.35; }
.wfi-guide .branch small { display: block; margin-top: 3px; color: var(--muted); font-size: .81rem; line-height: 1.35; }
.wfi-guide .branch a:hover { color: var(--amber); }
@container (max-width: 920px) {
  .wfi-guide .flow { gap: 16px; }
  .wfi-guide .handoff { right: -17px; width: 17px; }
  .wfi-guide .node-head h4 { font-size: 1.16rem; }
  .wfi-guide .node-head, .wfi-guide .node-body > div, .wfi-guide .node-link { padding-inline: 9px; }
}
@container (max-width: 820px) {
  .wfi-guide .route-sheet { padding: 13px; }
  .wfi-guide .route-title { gap: 4px; display: grid; }
  .wfi-guide .flow, .wfi-guide .branch-list { grid-template-columns: minmax(0, 1fr); }
  .wfi-guide .flow { gap: 37px; }
  .wfi-guide .node-head { min-height: 0; }
  .wfi-guide .node-head h4 { font-size: 1.3rem; }
  .wfi-guide .node-head, .wfi-guide .node-link { padding-inline: 12px; }
  .wfi-guide .node-body { display: block; }
  .wfi-guide .node-body > div { display: grid; grid-template-columns: 77px minmax(0, 1fr); align-items: baseline; gap: 6px; padding: 7px 12px; }
  .wfi-guide .node-body dt { margin: 0; }
  .wfi-guide .handoff { width: auto; height: 37px; top: calc(100% + 1px); right: auto; left: 18px; border-top: 0; border-left: 2px solid var(--amber); display: flex; align-items: center; }
  .wfi-guide .handoff::after { transform: rotate(135deg); top: auto; bottom: 3px; left: -5px; }
  .wfi-guide .handoff span { display: block; margin-left: 11px; color: #ebc78e; font: .78rem var(--mono); }
}
.wfi-guide .guide { margin-block: 46px; }
.wfi-guide .guide-box { border: 1px solid var(--line); background: var(--surface); }
.wfi-guide .guide-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: #14211b; }
.wfi-guide .guide-nav button { flex: 1; min-height: 44px; padding: 8px 12px; border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 650; }
.wfi-guide .guide-nav button[aria-pressed="true"] { border-color: #846843; background: #322c20; color: #ffd298; }
.wfi-guide .guide-nav button:hover { color: #ffd298; }
.wfi-guide .screen-shell { padding: clamp(12px, 2vw, 22px); }
.wfi-guide .screen-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.wfi-guide .screen-head .switch { flex-wrap: wrap; max-width: 100%; }
.wfi-guide .scene-provenance { font: .79rem/1.4 var(--mono); color: #c7d4be; text-transform: uppercase; letter-spacing: .045em; }
.wfi-guide .scene-breadcrumb { color: #d3ddce; font-size: .89rem; margin-bottom: 12px; }
.wfi-guide .scene-breadcrumb kbd { color: #ffe2ac; font: inherit; font-weight: 700; }
.wfi-guide .scene-grid { display: grid; grid-template-columns: minmax(0, 2.7fr) minmax(205px, 1fr); gap: 15px; align-items: stretch; }
.wfi-guide .notes { display: grid; gap: 8px; align-content: start; margin: 0; padding: 0; list-style: none; }
.wfi-guide .note { display: grid; grid-template-columns: auto 1fr; gap: 9px; text-align: left; width: 100%; padding: 10px; border: 1px solid #435346; color: #e5e9db; background: #15231d; line-height: 1.4; }
.wfi-guide .note b { display: block; color: #ffe0af; margin-bottom: 2px; }
.wfi-guide .note span:last-child { font-size: .89rem; }
.wfi-guide .note[aria-pressed="true"] { border-color: #eab474; background: #2b2b20; }
.wfi-guide .marker, .wfi-guide .note-number { border-radius: 50%; display: grid; place-items: center; font: 700 .86rem/1 var(--mono); width: 25px; aspect-ratio: 1; background: #ffc574; color: #191d17; border: 1px solid #301f12; }
.wfi-guide .marker { position: absolute; z-index: 2; top: 50%; right: 0; transform: translate(47%, -50%); box-shadow: 0 0 0 2px #191e1a; padding: 0; }
.wfi-guide .marker[aria-pressed="true"] { background: #ffdc9c; box-shadow: 0 0 0 2px #fff5cd, 0 0 0 5px #1a1f19; }
.wfi-guide .anchored { position: relative; outline: 1px dashed #d9a965a8; outline-offset: -2px; }
.wfi-guide .anchored:has(.marker[aria-pressed="true"]) { outline: 2px solid #ffd08b; }
.wfi-guide .game { min-width: 0; padding: 13px; border: 6px solid #0a0e11; border-radius: 14px; box-shadow: inset 0 0 0 1px #3a4850; background: #10171c; color: #f0f3f5; font: .86rem/1.37 "Segoe UI", Arial, sans-serif; }
.wfi-guide .game-top, .wfi-guide .game-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wfi-guide .game-top { padding-bottom: 8px; border-bottom: 1px solid #53616b; }
.wfi-guide .game-top strong { font-weight: 650; letter-spacing: .04em; }
.wfi-guide .game-top span, .wfi-guide .game-footer span { font-size: .76rem; color: #d7e3e7; }
.wfi-guide .game-title { font-size: 1.18rem; font-weight: 650; margin: 8px 0; }
.wfi-guide .game-status { display: flex; gap: 8px; align-items: baseline; min-height: 38px; padding: 7px 11px; margin-bottom: 8px; border-radius: 4px; background: #33372a; color: #f5f0d7; }
.wfi-guide .game-status strong { color: #f8d195; font-size: .72rem; }
.wfi-guide .game-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); gap: 8px; }
.wfi-guide .game-panel { border-radius: 5px; padding: 9px; min-width: 0; background: #27343e; }
.wfi-guide .game-panel h4 { margin-bottom: 7px; color: #f1f3f2; font-size: .9rem; }
.wfi-guide .game-panel p + p { margin-top: 6px; }
.wfi-guide .factory-scene .game-panel { background: #222c26; }
.wfi-guide .game-actions { display: grid; gap: 5px; }
.wfi-guide .game-action { position: relative; align-content: center; min-height: 29px; padding: 5px 9px; border: 1px solid #8da3b0; border-radius: 4px; background: #394b57; color: #f0f3f5; }
.wfi-guide .game-action.anchored, .wfi-guide .game-status.anchored, .wfi-guide .search-square.anchored { padding-right: 18px; }
.wfi-guide .game-action.faint { background: #2b3a43; color: #d7e2e8; }
.wfi-guide .game-footer { margin-top: 9px; }
.wfi-guide .game-footer .game-action { min-height: 25px; padding-block: 3px; }
.wfi-guide .pda-main { display: grid; grid-template-columns: minmax(82px, 1fr) minmax(0, 4fr); gap: 8px; padding-top: 9px; }
.wfi-guide .pda-sidebar { display: grid; gap: 5px; align-content: start; background: #303b44; border-radius: 5px; padding: 7px; font-size: .76rem; }
.wfi-guide .pda-sidebar .selected { background: #60737f; }
.wfi-guide .pda-scene .game-title { margin-top: 0; }
.wfi-guide .pda-scene .game-status { min-height: 32px; }
.wfi-guide .pda-scene .game-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 7px; }
.wfi-guide .search-square { position: relative; padding: 6px; margin-top: 7px; border-radius: 3px; background: #1d282c; }
.wfi-guide .search-square b { color: #f7dab1; }
.wfi-guide .receiver-image { position: relative; align-self: start; margin: 0; }
.wfi-guide .receiver-image img { width: 100%; height: auto; display: block; border: 1px solid #566449; }
.wfi-guide .receiver-image .marker { top: calc(var(--mark-y) - var(--target-h) / 2); right: auto; left: calc(var(--mark-x) + var(--target-w) / 2); transform: translate(-32%, -50%); }
.wfi-guide .receiver-image .target { position: absolute; left: var(--mark-x); top: var(--mark-y); width: var(--target-w); height: var(--target-h); transform: translate(-50%, -50%); border: 2px solid #e6b767; box-shadow: 0 0 0 1px #0f1910; pointer-events: none; }
.wfi-guide .receiver-image:has(.marker[aria-pressed="true"]) .target { border-color: #ffe2aa; box-shadow: 0 0 0 2px #0d160f; }
.wfi-guide .dual-notes { display: grid; gap: 8px; }
.wfi-guide .field-steps { border: 1px solid #435346; background: #111d18; padding: 8px; }
.wfi-guide .field-steps .game-action { padding-left: 27px; padding-right: 6px; }
.wfi-guide .field-steps .marker { right: auto; left: 0; transform: translate(-25%, -50%); }
.wfi-guide .field-steps .between { display: block; color: var(--muted); font-size: .8rem; margin: 5px 0 6px 26px; }
.wfi-guide .field-steps .step-caption { display: block; font: .76rem var(--mono); color: #d9b677; margin-bottom: 6px; }

@media (max-width: 880px) {

  .wfi-guide .scene-grid { grid-template-columns: minmax(0, 2.2fr) minmax(175px, 1fr); }
}
@media (max-width: 650px) {

  .wfi-guide .guide-hero { min-height: 258px; margin-block: 14px 26px; }
  .wfi-guide .hero-art::before { background: linear-gradient(90deg, #17261f 2%, #17261fdc 66%, #17261f78), url("/static/assets/kolguyev-briefing.webp") center / cover; }
  .wfi-guide .hero-art i { display: none; }
  .wfi-guide .guide-hero-copy { padding: 22px 16px; }
  .wfi-guide .guide-hero p { font-size: .96rem; }
  .wfi-guide .section-head { align-items: start; flex-direction: column; }
  .wfi-guide .guide-nav { gap: 2px; padding: 4px; }
  .wfi-guide .guide-nav button { padding: 6px; font-size: .84rem; }
  .wfi-guide .scene-grid { grid-template-columns: minmax(0, 1fr); }
  .wfi-guide .scene-grid .notes { grid-row: auto; }
  .wfi-guide .game { padding: 7px; border-width: 4px; font-size: .77rem; }
  .wfi-guide .game-panels { grid-template-columns: 1fr; }
  .wfi-guide .pda-main { grid-template-columns: 1fr; }
  .wfi-guide .pda-sidebar { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px; padding: 3px; font-size: .69rem; }
  .wfi-guide .pda-sidebar .game-action { padding: 3px 1px; min-height: 22px; text-align: center; }
  .wfi-guide .pda-scene .game-actions { grid-template-columns: 1fr; }

}
