/* VANTA SHIFT — Silah Atölyesi (gunsmith studio). Layout never shifts: every value cell has a fixed
   width, panels are fixed-size, long lists scroll inside their own container. */
#armory { background: #0d0e10; overflow: hidden; }
#armory.on { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 430px); grid-template-rows: 100%; }
#armory.light { background: #e9ebee; color: #16181c; }

.arm-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
#arm-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#arm-gl.drag { cursor: grabbing; }
#arm-gl.hover { cursor: pointer; }

.arm-top {
  position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; gap: 16px;
  padding: calc(16px + var(--sa-t)) 18px 0 calc(18px + var(--sa-l)); pointer-events: none;
}
.arm-top > * { pointer-events: auto; }
.arm-back { flex: 0 0 auto; }
.arm-title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.arm-title small { font-size: 11px; letter-spacing: 0.32em; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arm-title small b { color: #59d6a6; font-weight: 600; }
.arm-title #arm-cls { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 640px; }
.arm-title h1 {
  margin: 0; font-family: var(--disp); font-weight: 400; font-size: clamp(40px, 5.6vw, 84px); line-height: 0.92;
  letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.arm-tools { flex: 0 0 auto; display: flex; gap: 6px; }
.tbtn {
  height: 28px; padding: 0 10px; font-size: 10.5px; letter-spacing: 0.16em; border: 1px solid var(--line-2);
  background: rgba(0,0,0,0.35); border-radius: 2px;
}
.tbtn.on { border-color: #59d6a6; color: #59d6a6; }
#armory.light .tbtn, #armory.light .sbtn { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.18); color: #16181c; }
#armory.light .tbtn.on { border-color: #12936a; color: #12936a; }
#armory.light .arm-title small, #armory.light .dim, #armory.light .field-label { color: #5b6068; }

/* stats overlay (desktop) */
.arm-stats {
  position: absolute; left: calc(18px + var(--sa-l)); top: 50%; transform: translateY(-46%); width: 270px;
  display: flex; flex-direction: column; gap: 9px; pointer-events: none;
}
.st-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 92px; grid-template-rows: auto 4px; column-gap: 8px; row-gap: 4px; align-items: center; }
.st-row i { grid-row: 1 / 3; width: 18px; height: 18px; opacity: 0.8; }
.st-row i svg { width: 18px; height: 18px; display: block; }
.st-row span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row b { font-size: 11.5px; font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.st-row b small { display: block; font-size: 9px; font-weight: 500; line-height: 1; height: 9px; }
.st-row b small.up { color: #59d6a6; } .st-row b small.dn { color: #ff7d6e; }
.st-bar { grid-column: 2 / 4; position: relative; height: 4px; background: rgba(255,255,255,0.1); overflow: hidden; }
#armory.light .st-bar { background: rgba(0,0,0,0.1); }
.st-bar em, .st-bar u { position: absolute; left: 0; top: 0; bottom: 0; transition: width 0.35s cubic-bezier(.2,.8,.2,1); }
.st-bar em { background: #d9a04a; }
.st-bar u { background: #59d6a6; opacity: 0.9; text-decoration: none; }
.st-bar u.dn { background: #ff7d6e; }

/* optic cam reticle */
.arm-reticle { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; }
.arm-reticle canvas { width: min(70vmin, 520px); height: min(70vmin, 520px); }
.arm-reticle span { position: absolute; bottom: 132px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.3em; color: #fff; text-shadow: 0 0 4px #000; white-space: nowrap; }

/* bottom controls */
.arm-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; align-items: end; gap: 12px 16px;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr) auto;
  padding: 0 18px calc(16px + var(--sa-b)) calc(18px + var(--sa-l));
}
.arm-modes { grid-template-columns: repeat(4, 1fr); background: rgba(0,0,0,0.35); }
#armory.light .arm-modes { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.18); }
#armory.light .seg button.on { background: rgba(0,0,0,0.1); color: #000; }
.arm-explode { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.arm-explode input { width: 100%; }
.arm-acts { display: flex; gap: 8px; align-items: stretch; }
.fire-btn {
  display: flex; align-items: center; gap: 0; height: 44px; padding: 0; border: 0; background: #0b0c0e; color: #59d6a6;
  border-radius: 2px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(89,214,166,0.35);
}
.fire-btn .chev { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(89,214,166,0.12); border-right: 1px solid rgba(89,214,166,0.4); font-size: 18px; }
.fire-btn b { font-family: var(--disp); font-weight: 400; font-size: 20px; letter-spacing: 0.16em; padding: 0 22px; white-space: nowrap; }
.fire-btn:active, .fire-btn.on { background: #13261f; }
.fire-btn.on .chev { background: #d9a04a; color: #111; }
.arm-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(76px + var(--sa-b)); font-size: 10.5px; letter-spacing: 0.12em; white-space: nowrap; pointer-events: none; opacity: 0.75; }
.sbtn.on { border-color: #59d6a6; color: #59d6a6; }

/* side panel */
.arm-panel {
  min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px;
  padding: calc(16px + var(--sa-t)) calc(16px + var(--sa-r)) calc(14px + var(--sa-b)) 16px;
  background: rgba(12, 13, 15, 0.96); border-left: 1px solid var(--line);
}
#armory.light .arm-panel { background: #f6f7f9; border-color: rgba(0,0,0,0.1); }
.arm-plats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; flex: 0 0 auto; }
.plat {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
  padding: 7px 2px 6px; border: 1px solid var(--line); border-radius: 2px; background: rgba(255,255,255,0.03);
}
.plat svg { width: 100%; height: 22px; display: block; }
.plat b { font-size: 10.5px; letter-spacing: 0.08em; white-space: nowrap; }
.plat.on { border-color: #59d6a6; box-shadow: inset 0 0 0 1px rgba(89,214,166,0.35); }
.plat .lock { position: absolute; right: 3px; top: 2px; font-size: 9px; color: var(--amber); }
#armory.light .plat { border-color: rgba(0,0,0,0.14); background: #fff; }
.arm-level { flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 11px; letter-spacing: 0.1em; }
.arm-level .lv { font-family: var(--disp); font-size: 22px; letter-spacing: 0.04em; }
.arm-level .xpbar { height: 4px; background: rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.arm-level .xpbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--amber); }
.arm-level .xp { color: var(--ink-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.arm-tabs { flex: 0 0 auto; grid-template-columns: repeat(3, 1fr); }
.arm-tabs .only-m { display: none; }
.arm-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 4px; overscroll-behavior: contain; scrollbar-width: thin; }
.arm-actions { flex: 0 0 auto; display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; }
.arm-equip { justify-content: center; min-height: 40px; }

/* slot list */
.slot { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.slot:last-child { border-bottom: 0; }
.slot-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.slot-h .field-label { white-space: nowrap; }
.slot-h em { font-style: normal; font-size: 11px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.slot.focus { background: linear-gradient(90deg, rgba(89,214,166,0.08), transparent 70%); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 6px; }
.opt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; min-height: 54px;
  padding: 7px 9px; text-align: left; border: 1px solid var(--line); border-radius: 2px; background: rgba(255,255,255,0.025);
}
.opt b { font-size: 11.5px; font-weight: 600; line-height: 1.2; width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.opt small { font-size: 9.5px; letter-spacing: 0.04em; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.opt.on { border-color: #59d6a6; background: rgba(89,214,166,0.08); }
.opt.locked { opacity: 0.5; }
.opt.locked small { color: var(--amber); }
.opt:hover:not(.on) { border-color: var(--line-2); }
#armory.light .opt { border-color: rgba(0,0,0,0.14); background: #fff; }
#armory.light .opt.on { border-color: #12936a; background: #e3f6ef; }
.part-desc { min-height: 30px; margin: 8px 0 0; font-size: 11px; color: var(--ink-dim); line-height: 1.35; }

/* paint */
.paint-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.swatch { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 2px; background: rgba(255,255,255,0.02); min-width: 0; }
.swatch i { display: block; height: 26px; border-radius: 1px; }
.swatch b { font-size: 9.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swatch.on { border-color: #59d6a6; }
.swatch.locked { opacity: 0.45; }
.swatch .lock { position: absolute; right: 4px; top: 3px; font-size: 9px; color: var(--amber); }
.pick-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick-row label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pick-row input[type=color] { width: 100%; height: 34px; border: 1px solid var(--line-2); background: transparent; padding: 2px; border-radius: 2px; }
.sec { margin: 14px 0 8px; }
.emb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.emb-grid button { height: 34px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); font-size: 11px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emb-grid button.on { border-color: #59d6a6; }
.fin-seg { grid-template-columns: repeat(5, 1fr); }

/* builds */
.build-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bcard { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 2px; background: rgba(255,255,255,0.025); min-width: 0; }
.bcard .bn { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .bm { font-size: 10px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .row { gap: 6px; }
.bcard .sbtn { min-height: 28px; padding: 3px 8px; font-size: 11px; flex: 1 1 auto; }
.bcard.eq { border-color: var(--amber); }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.code-row input { height: 36px; padding: 0 10px; background: rgba(0,0,0,0.4); border: 1px solid var(--line-2); border-radius: 2px; font-family: var(--mono); font-size: 12px; min-width: 0; }
.name-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.name-row input { height: 36px; padding: 0 10px; background: rgba(0,0,0,0.4); border: 1px solid var(--line-2); border-radius: 2px; min-width: 0; }
#armory.light .code-row input, #armory.light .name-row input { background: #fff; border-color: rgba(0,0,0,0.2); color: #111; }

/* ---------- tablets / narrow desktop ---------- */
@media (max-width: 1100px) and (min-aspect-ratio: 1/1) {
  .arm-stats { width: 220px; }
  .arm-bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .arm-modes { grid-column: 1 / 3; grid-row: 1; }
  .arm-explode { grid-column: 1; grid-row: 2; }
  .arm-acts { grid-column: 2; grid-row: 2; }
}

/* ---------- phones portrait & tall narrow screens: stage on top, panel below ---------- */
@media (max-aspect-ratio: 1/1) {
  #armory.on { grid-template-columns: 100%; grid-template-rows: minmax(0, 46%) minmax(0, 54%); }
  .arm-panel { border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; gap: 10px; }
  .arm-stats { display: none; }
  .arm-tabs { grid-template-columns: repeat(4, 1fr); }
  .arm-tabs .only-m { display: block; }
  .arm-title #arm-cls { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 640px; }
.arm-title h1 { font-size: clamp(30px, 9vw, 46px); }
  .arm-tools .tbtn { padding: 0 7px; letter-spacing: 0.08em; }
  .arm-bottom { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: 10px; gap: 8px; }
  .arm-modes { grid-column: 1 / 3; grid-row: 1; }
  .arm-explode { grid-column: 1; grid-row: 2; }
  .arm-acts { grid-column: 2; grid-row: 2; }
  #arm-cls { display: none !important; }
  .fire-btn { height: 36px; } .fire-btn .chev { width: 34px; height: 36px; } .fire-btn b { font-size: 15px; padding: 0 12px; }
  .arm-modes button { font-size: 11px; padding: 7px 2px; }
  .arm-hint { display: none; }
  .arm-top { padding-top: calc(10px + var(--sa-t)); gap: 10px; }
}
@media (max-aspect-ratio: 1/1) and (max-width: 420px) {
  .arm-tools .tbtn:nth-child(4) { display: none; }
  .arm-back { padding: 4px 8px; min-height: 30px; font-size: 11px; }
  .arm-explode .field-label { font-size: 9.5px; }
  .opts { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .arm-modes button { font-size: 10px; }
}

/* ---------- phones landscape: stage left, panel right ---------- */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  #armory.on { grid-template-columns: minmax(0, 1fr) min(44vw, 380px); }
  .arm-stats { display: none; }
  .arm-tabs { grid-template-columns: repeat(4, 1fr); }
  .arm-tabs .only-m { display: block; }
  .arm-title #arm-cls { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 640px; }
.arm-title h1 { font-size: 30px; }
  .arm-top { padding-top: calc(8px + var(--sa-t)); gap: 8px; }
  .arm-tools { display: none; }
  .arm-bottom { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: calc(8px + var(--sa-b)); gap: 6px; }
  .arm-modes { grid-column: 1 / 3; grid-row: 1; }
  .arm-explode { grid-column: 1; grid-row: 2; }
  .arm-acts { grid-column: 2; grid-row: 2; }
  #arm-cls { display: none !important; }
  .fire-btn { height: 34px; } .fire-btn .chev { width: 32px; height: 34px; } .fire-btn b { font-size: 14px; padding: 0 10px; }
  .arm-modes button { font-size: 10.5px; padding: 6px 2px; }
  .arm-hint { display: none; }
  .arm-panel { padding: calc(8px + var(--sa-t)) calc(10px + var(--sa-r)) calc(8px + var(--sa-b)) 10px; gap: 8px; }
  .arm-level { display: none; }
  .plat { padding: 4px 2px; } .plat svg { height: 14px; }
}

/* profile modal */
.prof { display: flex; flex-direction: column; gap: 10px; }
.prof-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.prof-lv { display: flex; flex-direction: column; align-items: flex-start; }
.prof-lv b { font-family: var(--disp); font-weight: 400; font-size: 46px; line-height: 1; }
.prof-xp { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.prof .xpbar { height: 5px; background: rgba(255,255,255,0.1); position: relative; overflow: hidden; }
.prof .xpbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--amber); }
.prof-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.prof-stats div { display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 2px; min-width: 0; }
.prof-stats span { font-size: 10px; letter-spacing: 0.12em; color: var(--ink-dim); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.prof .sec { margin: 6px 0 0; }
.prof p { margin: 0; }
@media (max-width: 420px) { .prof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------- Atış Poligonu (firing range) ---------------- */
#rng { position: absolute; inset: 0; z-index: 5; pointer-events: none; color: #f3f1ea; font-family: var(--mono); container-type: size; overflow: hidden; }
#rng > * { pointer-events: none; }
#rng button, #rng .rng-lock { pointer-events: auto; }
body.in-range .arm-top, body.in-range .arm-stats, body.in-range .arm-bottom, body.in-range .arm-hint, body.in-range .arm-reticle { visibility: hidden; }
.rng-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.rng-title { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.rng-title small { font-size: 10px; letter-spacing: 0.3em; color: #f2c230; }
.rng-title b { font-family: var(--disp); font-weight: 400; font-size: clamp(16px, 2.2vw, 24px); letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
.rng-top .sbtn { background: rgba(10,12,16,0.7); white-space: nowrap; }
.rng-card { position: absolute; left: 12px; top: 64px; width: 250px; display: flex; flex-direction: column; gap: 3px; background: rgba(8,10,14,0.66); padding: 10px 12px; font-size: 11px; }
.rng-card div { display: flex; justify-content: space-between; gap: 8px; }
.rng-card span { color: #a9a6a0; letter-spacing: 0.08em; font-size: 10px; white-space: nowrap; }
.rng-card b { font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rng-last { position: absolute; right: 12px; top: 64px; width: 250px; background: rgba(8,10,14,0.66); padding: 10px 12px; font-size: 11px; display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.rng-last:empty { display: none; }
.rng-last b { font-size: 13px; letter-spacing: 0.08em; color: #f2c230; }
.rng-last em { font-style: normal; font-weight: 700; color: #fff; }
.rng-ammo { position: absolute; right: 16px; bottom: 78px; text-align: right; font-size: 12px; text-shadow: 0 1px 4px #000; }
.rng-ammo b { font-size: 34px; font-variant-numeric: tabular-nums; }
.rng-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 10px; letter-spacing: 0.14em; color: rgba(255,255,255,0.75); white-space: nowrap; text-shadow: 0 1px 4px #000; }
.rng-cross { position: absolute; left: 50%; top: 50%; width: 0; height: 0; --gap: 6px; }
.rng-cross i { position: absolute; background: #fff; box-shadow: 0 0 2px #000; }
.rng-cross i:nth-child(1) { width: 2px; height: 8px; left: -1px; top: calc(-8px - var(--gap)); }
.rng-cross i:nth-child(2) { width: 2px; height: 8px; left: -1px; top: var(--gap); }
.rng-cross i:nth-child(3) { width: 8px; height: 2px; top: -1px; left: calc(-8px - var(--gap)); }
.rng-cross i:nth-child(4) { width: 8px; height: 2px; top: -1px; left: var(--gap); }
.rng-hit { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; opacity: 0; background:
  linear-gradient(45deg, transparent 45%, #fff 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #fff 45% 55%, transparent 55%); }
.rng-hit.on { opacity: 1; } .rng-hit.head { filter: sepia(1) saturate(6) hue-rotate(5deg); }
.rng-scope { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, transparent 0 calc(min(50cqw, 50cqh) - 2px), #000 calc(min(50cqw, 50cqh) - 1px)); }
.rng-scope canvas { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); }
.rng-lock { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 22px; background: rgba(8,10,14,0.8); border: 1px solid rgba(255,255,255,0.2); cursor: pointer; }
.rng-lock b { font-family: var(--disp); font-weight: 400; font-size: 22px; letter-spacing: 0.05em; }
.rng-lock span { font-size: 10px; letter-spacing: 0.16em; color: #bdbab3; }
.rng-touch { display: none; position: absolute; right: 12px; bottom: 60px; gap: 10px; align-items: flex-end; }
#rng.touch .rng-touch { display: flex; }
#rng.touch .rng-ammo { right: auto; left: 12px; bottom: 16px; text-align: left; }
#rng.touch .rng-ammo span { display: block; font-size: 10px; max-width: 40vw; }
#rng.touch .rng-last { top: 120px; }
.rng-touch .tb { pointer-events: auto; width: 62px; height: 62px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.4); background: rgba(10,10,12,0.45); color: #fff; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; }
.rng-touch .tb.fire { width: 84px; height: 84px; border-color: rgba(255,90,74,0.8); background: rgba(120,20,14,0.45); font-size: 12px; }
.rng-touch .tb.on { background: rgba(224,38,27,0.45); border-color: rgba(224,38,27,0.9); }
.rng-touch .tb.press { transform: scale(0.94); }
.arm-range-btn { border-color: rgba(242,194,48,0.6) !important; color: #f2c230 !important; }
@media (max-width: 900px) {
  .rng-card, .rng-last { width: 200px; font-size: 10px; padding: 8px 10px; }
  .rng-card div:nth-child(n+4) { display: none; }
}
@media (max-width: 560px), (max-height: 460px) {
  .rng-card { top: 56px; width: 168px; }
  .rng-last { width: 168px; top: auto; bottom: 150px; right: 12px; }
  .rng-top .sbtn { padding: 6px 8px; font-size: 10px; }
  .rng-title b { display: none; }
  .rng-hint { display: none; }
}
/* on phones/tablets the range takes the whole screen (the parts panel comes back on exit) */
@media (max-width: 900px), (pointer: coarse) {
  body.in-range #armory.on { grid-template-columns: 100%; grid-template-rows: 100%; }
  body.in-range #armory .arm-panel { display: none; }
  body.in-range #armory .arm-stage { grid-row: 1; grid-column: 1; height: 100%; }
}

/* ---------------- Bıçak + Ekipman studios ---------------- */
.arm-kind { flex: 0 0 auto; grid-template-columns: repeat(3, 1fr); }
.arm-kind button { font-family: var(--disp); font-weight: 400; font-size: 15px; letter-spacing: 0.06em; padding: 9px 4px; }
.arm-plats[hidden] { display: none !important; }
body.arm-k-knife .arm-modes, body.arm-k-knife #arm-ex-row, body.arm-k-knife #arm-optic,
body.arm-k-gear .arm-modes, body.arm-k-gear #arm-ex-row, body.arm-k-gear #arm-optic { display: none !important; }
.opts.fab .opt { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.opts.fab .opt .fsw { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 3px; background-size: cover; border: 1px solid rgba(255,255,255,0.18); }
.prem { color: #f2c230; font-size: 11px; }
.gtext { display: flex; flex-direction: column; gap: 6px; }
.gtext input { width: 100%; padding: 10px 12px; font: 600 15px var(--mono); letter-spacing: 0.04em; background: rgba(0,0,0,0.35); border: 1px solid var(--line); color: inherit; border-radius: 2px; }
#armory.light .gtext input { background: #fff; border-color: rgba(0,0,0,0.18); }
.rng-optics { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); display: flex; gap: 4px; align-items: center; background: rgba(8,10,14,0.7); padding: 5px 6px; max-width: calc(100% - 24px); }
.rng-optics:empty { display: none; }
.rng-optics span { font-size: 9.5px; letter-spacing: 0.2em; color: #f2c230; padding: 0 6px; white-space: nowrap; }
.rng-optics button { font: 600 10.5px var(--mono); letter-spacing: 0.06em; padding: 7px 9px; color: #e9e6df; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.16); white-space: nowrap; cursor: pointer; }
.rng-optics button.on { border-color: #f2c230; color: #f2c230; background: rgba(242,194,48,0.12); }
.rng-optics button.trial { border-style: dashed; }
.rng-lock-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.rng-lock-row .mbtn { padding: 10px 16px; }
.rng-lock { cursor: default; top: 50%; transform: translate(-50%, -50%); text-align: center; }
#rng.touch .rng-optics { bottom: auto; top: 56px; }
@media (max-width: 560px) { .rng-optics span { display: none; } .rng-optics button { padding: 6px 6px; font-size: 9.5px; } }
