/* Kenoma Engine — инструкция (guide.js): шаги, снимки с метками, клавиши, советы. Стиль «игровой HUD», без скруглений. */
.guide { max-width: 1320px; }
.ghero { display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-end; justify-content: space-between; padding-bottom: 34px; border-bottom: 1px solid var(--ln); }
.ghero > div:first-child { flex: 1 1 480px; }
.gquick { flex: 1 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.gquick a { padding: 18px; color: var(--tx); display: flex; flex-direction: column; gap: 8px; min-height: 110px; }
.gquick a span { font-family: var(--mono); font-size: 12px; color: var(--cyan); }
.gquick a b { font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.gquick a:hover { color: var(--cyan2); }
.glay { display: flex; gap: 40px; align-items: flex-start; margin-top: 34px; }
.gtoc { flex: 0 0 240px; position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.gtoc .tag { margin-bottom: 10px; font-size: 12px; }
.gtoc a { display: flex; gap: 10px; padding: 7px 10px; border-left: 2px solid var(--ln); color: var(--tx3); font-size: 15px; line-height: 1.3; }
.gtoc a span { font-family: var(--mono); font-size: 11px; color: var(--tx4); padding-top: 2px; }
.gtoc a:hover { color: var(--tx); }
.gtoc a.on { color: var(--tx); border-left-color: var(--cyan); background: rgba(61, 242, 255, .06); }
.gbody { flex: 1 1 auto; min-width: 0; max-width: 980px; }
.gbody section { padding: 10px 0 46px; border-bottom: 1px solid var(--ln); margin-bottom: 36px; scroll-margin-top: 16px; }
.gbody h2 { margin: 6px 0 16px; font-weight: 900; font-style: italic; font-size: clamp(30px, 4vw, 44px); line-height: 1; text-transform: uppercase; }
.gbody h3 { margin: 26px 0 8px; font-weight: 800; font-size: 20px; text-transform: uppercase; }
.gbody p { color: var(--tx2); font-weight: 300; margin: 10px 0; }
.gbody code { font-family: var(--mono); font-size: 14px; color: var(--cyan); }
kbd { display: inline-block; min-width: 26px; padding: 1px 7px; border: 1px solid var(--ln2); border-bottom-width: 3px; background: var(--bg2); font-family: var(--mono); font-size: 12px; color: var(--tx); text-align: center; line-height: 1.7; }
.plus { color: var(--tx4); margin: 0 3px; }
.gsteps { counter-reset: g; list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.gsteps li { counter-increment: g; position: relative; padding: 12px 16px 12px 58px; border: 1px solid var(--ln); background: var(--panel); color: var(--tx2); font-weight: 300; }
.gsteps li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 0; top: 0; bottom: 0; width: 42px; display: flex; align-items: center; justify-content: center;
  background: rgba(61, 242, 255, .1); color: var(--cyan); font-family: var(--mono); font-size: 13px; }
.gsteps li b { color: var(--tx); font-weight: 600; }
.gfig { margin: 22px 0; }
.gfig img { display: block; width: 100%; height: auto; border: 1px solid var(--ln2); }
.gfig a:hover img { border-color: var(--cyan); }
.gfig figcaption { font-family: var(--mono); font-size: 12px; color: var(--tx3); margin-top: 8px; }
.gfig figcaption::before { content: '▸ '; color: var(--cyan); }
.pinwrap { position: relative; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border: 2px solid var(--bg); background: var(--cyan); color: var(--bg); font-weight: 900;
  font-family: var(--mono); font-size: 14px; cursor: pointer; box-shadow: 0 0 0 2px var(--cyan), 0 0 18px rgba(61, 242, 255, .6); padding: 0; }
.pin.on, .pin:hover { background: var(--amber); box-shadow: 0 0 0 2px var(--amber), 0 0 22px rgba(255, 201, 77, .8); }
.glegend { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 8px; counter-reset: l; }
.glegend li { counter-increment: l; padding: 10px 14px 10px 50px; position: relative; border: 1px solid var(--ln); color: var(--tx2); font-weight: 300; font-size: 15px; }
.glegend li::before { content: counter(l); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; background: var(--cyan); color: var(--bg); font-family: var(--mono); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.glegend li.on { border-color: var(--amber); }
.glegend li.on::before { background: var(--amber); }
.glegend li b { color: var(--tx); font-weight: 700; }
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px; margin: 18px 0; }
.gcards > div { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.gcards b { font-weight: 800; text-transform: uppercase; }
.gcards span { color: var(--tx2); font-weight: 300; font-size: 15px; }
.gtip { display: flex; gap: 14px; border-left: 2px solid var(--cyan); background: rgba(61, 242, 255, .05); padding: 12px 16px; margin: 16px 0; font-size: 15px; }
.gtip b { font-family: var(--mono); font-size: 11px; color: var(--cyan); letter-spacing: .1em; padding-top: 3px; }
.gtip span { color: var(--tx2); font-weight: 300; }
.gtip.warn { border-left-color: var(--amber); background: #13110A; }
.gtip.warn b { color: var(--amber); }
.gtable { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.gtable th { text-align: left; font-family: var(--mono); font-size: 11px; color: var(--tx3); letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--ln2); }
.gtable td { padding: 10px; border-bottom: 1px solid var(--ln); color: var(--tx2); font-weight: 300; vertical-align: top; }
.gtable td b { color: var(--tx); font-weight: 600; }
.gtable.keys td:first-child, .gtable.cmds td:first-child { white-space: nowrap; width: 1%; }
.gcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 10px 30px; }
.gmock { max-width: 440px; padding: 26px; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.gmock .mh { font-weight: 800; font-size: 20px; }
.gmock .ms { color: var(--tx3); font-weight: 300; }
.gmock .mf { display: flex; flex-direction: column; gap: 4px; }
.gmock .mf span { font-family: var(--mono); font-size: 11px; color: var(--tx3); text-transform: uppercase; }
.gmock .mf i { font-style: normal; border: 1px solid var(--ln2); background: var(--bg); padding: 10px 12px; }
.gmock .mb { background: var(--amber); color: var(--bg); text-align: center; padding: 11px; font-weight: 800; text-transform: uppercase; }
.gmock .mn { font-family: var(--mono); font-size: 11px; color: var(--tx4); }
.gflow { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin: 18px 0; }
.gflow > .hud { flex: 1 1 260px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.gflow b { font-weight: 800; text-transform: uppercase; }
.gflow span { color: var(--tx2); font-weight: 300; font-size: 15px; }
.gflow .arr { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--cyan); font-size: 34px; padding: 0 6px; }
.gflow .arr small { font-family: var(--mono); font-size: 11px; color: var(--tx3); }
.gcmd { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; border: 1px solid var(--cyan); background: #030507; padding: 14px 16px; margin: 14px 0; }
.gcmd code { overflow-wrap: anywhere; }
.gchat { padding: 20px 22px; font-family: var(--mono); font-size: 14px; line-height: 2; margin: 14px 0; }
.gchat .you { color: var(--cyan); }
.gfaq { border: 1px solid var(--ln); margin-bottom: 8px; background: var(--panel); }
.gfaq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; }
.gfaq summary::-webkit-details-marker { display: none; }
.gfaq summary::before { content: '+ '; color: var(--cyan); font-family: var(--mono); }
.gfaq[open] summary::before { content: '– '; }
.gfaq p { padding: 0 18px 14px; margin: 0; }
@media (max-width: 1000px) { .glay { display: block; } .gtoc { position: static; max-height: none; margin-bottom: 30px; } }
@media (max-width: 560px) { .gtable { display: block; overflow-x: auto; } .gtable td { padding: 8px 6px; } .pin { width: 22px; height: 22px; font-size: 11px; } .gsteps li { padding-left: 50px; } }
