/* Browser aim trainer: page, stage HUD, menu, settings drawer, spray chart. */
.at-page { padding:32px 0 56px; }
.at-container { max-width:1280px; }
.at-page [hidden] { display:none !important; }

/* Heading */
.at-heading { margin-bottom:20px; }
.at-back { display:inline-flex; align-items:center; gap:6px; color:var(--text-3); font-size:13px; }
.at-back::before { content:''; width:6px; height:6px; border:solid currentColor; border-width:0 0 1.5px 1.5px; transform:rotate(45deg); }
.at-back:hover { color:var(--text-1); }
.at-heading h1 { font-size:clamp(24px,3vw,34px); line-height:1.15; font-weight:700; margin-top:8px; }
.at-heading p { color:var(--text-2); margin-top:6px; font-size:16px; }

/* Shared controls */
.at-page button:not(.btn) { font:inherit; cursor:pointer; }
.at-ghost { border:1px solid var(--border-2); background:var(--bg-2); color:var(--text-2); border-radius:var(--radius); font-size:13px !important; font-weight:600; padding:9px 14px; line-height:1.2; transition:color .15s,border-color .15s,background .15s; }
.at-ghost:hover { color:var(--text-1); border-color:var(--border-hi); background:var(--bg-3); }
.at-ghost.at-small { padding:6px 10px; font-size:12px !important; justify-self:start; }
.at-page button:disabled { opacity:.55; cursor:wait; }
.at-page :focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.at-note { display:block; color:var(--text-3); font-size:12px; line-height:1.45; }
.at-note:empty { display:none; }
.at-settings .is-disabled { opacity:.45; pointer-events:none; }
.at-note[data-tone="ok"] { color:var(--alive); }
.at-note[data-tone="ok"]::before { content:''; display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:50%; background:currentColor; vertical-align:1px; }
.at-note[data-tone="wait"] { color:#ffc488; }
.at-error { color:#f0a3a3; font-size:13px; margin-top:14px; }

/* Stage */
.at-stage { position:relative; width:100%; height:clamp(500px,calc(100svh - 230px),720px); overflow:hidden; border:1px solid var(--border-2); border-radius:var(--radius-lg); background:#141c23; isolation:isolate; }
#at-canvas { display:block; width:100%; height:100%; outline:none; }
.at-stage:fullscreen { width:100vw; height:100dvh; border:0; border-radius:0; }
.at-hud-top { position:absolute; left:22px; right:22px; display:flex; align-items:center; justify-content:space-between; gap:12px; pointer-events:none; color:#fff; text-shadow:0 1px 3px #0009; z-index:2; }
.at-hud-top { top:18px; }
.at-weapon-name { display:flex; align-items:center; gap:12px; font:700 17px/1 var(--ui); letter-spacing:.03em; }
.at-ak-icon { width:34px; height:34px; margin:-8px -2px; filter:brightness(0) invert(1) drop-shadow(0 1px 2px #000a); }
.at-hud-divider { width:2px; height:20px; border-radius:1px; background:#ffffffb3; box-shadow:0 1px 2px #0008; }
#at-pause { pointer-events:auto; display:inline-flex; align-items:center; gap:8px; border:1px solid #ffffff2e; background:#0a121bb3; color:#ffffffd9; border-radius:999px; padding:6px 12px 6px 6px; font-size:12px; font-weight:600; backdrop-filter:blur(6px); }
#at-pause span { font:10px var(--mono); padding:2px 6px; border-radius:999px; background:#ffffff1f; }
#at-pause:hover { color:#fff; border-color:#ffffff5c; }
/* Hotbar (Rust): six slots, guns in the first three. The slot in hand is lit; each gun shows
   its condition bar, loaded rounds and fitted sight like Rust's item tiles. */
.at-hotbar { position:absolute; left:50%; bottom:16px; transform:translateX(-50%); display:flex; gap:4px; margin:0; padding:0; list-style:none; pointer-events:none; z-index:2; }
.at-hotbar li { position:relative; width:62px; height:62px; border-radius:2px; background:#3a3a36a6; box-shadow:inset 0 0 0 1px #ffffff0d; transition:background .12s; }
.at-hotbar li.is-active { background:#5f87a6b8; box-shadow:inset 0 0 0 1px #9cc6e680; }
.at-slot-item { position:absolute; inset:7px 6px 8px 9px; width:calc(100% - 15px); height:calc(100% - 15px); object-fit:contain; filter:drop-shadow(0 1px 1px #0008); }
.at-slot-bar { position:absolute; left:0; top:0; bottom:0; width:3px; background:#7fb23a; }
.at-slot-mod { position:absolute; left:7px; top:4px; width:20px; height:20px; object-fit:contain; z-index:1; filter:drop-shadow(0 1px 1px #000c); }
.at-slot-ammo { position:absolute; right:5px; bottom:3px; color:#fff; font:700 13px/1 var(--ui); font-variant-numeric:tabular-nums; text-shadow:0 1px 2px #000; }
.at-hotbar li.is-low .at-slot-ammo { color:#ffc488; }

/* Inventory (Tab / View): Rust's dark tiles over the running range, the pick in Rust blue. */
.at-inv { position:absolute; inset:0; z-index:3; display:flex; align-items:center; justify-content:center; padding:24px; background:#05090ea6; backdrop-filter:blur(3px); }
.at-inv-panel { display:grid; gap:18px; width:min(100%,540px); padding:18px 20px 20px; border-radius:6px; background:#1d1d1bf0; box-shadow:0 0 0 1px #ffffff12, 0 24px 60px #000a; color:#fff; }
.at-inv-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.at-inv-head h3 { font:700 15px/1 var(--ui); letter-spacing:.14em; text-transform:uppercase; color:#e8e6df; }
.at-inv-close { display:inline-flex; align-items:center; gap:8px; padding:5px 10px 5px 5px; border:0; border-radius:4px; background:#ffffff0f; color:#ffffffc4; font:600 12px var(--ui); cursor:pointer; }
.at-inv-close:hover,.at-inv-close.is-pad-focus { background:#ffffff1f; color:#fff; }
.at-inv-close kbd { font:10px var(--mono); padding:2px 6px; border-radius:3px; background:#ffffff1f; }
.at-inv-section { display:grid; gap:8px; }
.at-inv-section h4 { font:700 11px/1 var(--ui); letter-spacing:.12em; text-transform:uppercase; color:#ffffff80; }
.at-inv-grid { display:flex; flex-wrap:wrap; gap:6px; padding:3px; margin:-3px; border-radius:6px; }
.at-inv-tile { position:relative; cursor:pointer; }
.at-inv-tile input { position:absolute; inset:0; opacity:0; margin:0; cursor:inherit; }
.at-inv-tile span { display:grid; justify-items:center; align-content:center; gap:6px; width:96px; height:96px; border-radius:3px; background:#3a3a36b8; box-shadow:inset 0 0 0 1px #ffffff0d; transition:background .12s; }
.at-inv-tile img { width:54px; height:54px; object-fit:contain; filter:drop-shadow(0 1px 1px #0009); }
.at-inv-tile b { font:600 12px/1 var(--ui); color:#ffffffc9; }
.at-inv-tile:hover span { background:#48483fc4; }
.at-inv-tile input:checked+span { background:#5f87a6c7; box-shadow:inset 0 0 0 1px #9cc6e699; }
.at-inv-tile input:checked+span b { color:#fff; }
.at-inv-tile input:focus-visible+span { outline:2px solid var(--accent); outline-offset:2px; }
.at-inv-none { width:54px; height:54px; border-radius:50%; border:2px dashed #ffffff3d; transform:scale(.6); }
.at-inv-grid.is-pad-focus { outline:2px solid var(--accent); outline-offset:3px; }
.at-inv .at-seg-pair { max-width:330px; }

/* Crosshair, hitmarker, reload */
/* 4x scope picture (Rust Console): black screen, a round view 90% of its height with a soft
   edge, and a thin crosshair across it. Under the HUD, faded in by range.mjs. */
.at-scope { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:1; }
.at-scope-lens { position:absolute; left:50%; top:50%; height:90%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; box-shadow:0 0 0 100vmax #000;
  background:radial-gradient(closest-side, transparent 93%, #000000b8 97.5%, #000 100%), linear-gradient(#000000d9, #000000d9) center / 100% max(1.5px, .3%) no-repeat, linear-gradient(#000000d9, #000000d9) center / max(1.5px, .3%) 100% no-repeat; }
.at-crosshair { --at-gap:8px; position:absolute; top:50%; left:50%; width:0; height:0; pointer-events:none; z-index:2; filter:drop-shadow(0 0 1px #0006); }
.at-crosshair i,.at-crosshair b { position:absolute; display:block; background:#f1f2e2bd; }
.at-crosshair i:nth-child(1) { width:1px; height:7px; left:-.5px; top:calc(-1 * var(--at-gap) - 7px); }
.at-crosshair i:nth-child(2) { width:1px; height:7px; left:-.5px; top:var(--at-gap); }
.at-crosshair i:nth-child(3) { width:7px; height:1px; left:calc(-1 * var(--at-gap) - 7px); top:-.5px; }
.at-crosshair i:nth-child(4) { width:7px; height:1px; left:var(--at-gap); top:-.5px; }
.at-crosshair b { width:1px; height:1px; left:-.5px; top:-.5px; }
.at-crosshair.is-ads { visibility:hidden; }
.at-hitmarker { position:absolute; top:50%; left:50%; width:0; height:0; pointer-events:none; color:#f4f4e9ed; filter:drop-shadow(0 0 1px #0008); z-index:3; }
.at-hitmarker i { position:absolute; width:8px; height:1px; left:0; top:-.5px; background:currentColor; transform-origin:0 50%; }
.at-hitmarker i:nth-child(1) { transform:rotate(45deg) translateX(4px); }
.at-hitmarker i:nth-child(2) { transform:rotate(135deg) translateX(4px); }
.at-hitmarker i:nth-child(3) { transform:rotate(225deg) translateX(4px); }
.at-hitmarker i:nth-child(4) { transform:rotate(315deg) translateX(4px); }
.at-hitmarker.is-head { color:#ffda7d; }
.at-reload { position:absolute; left:50%; bottom:96px; transform:translateX(-50%); width:165px; color:#fff; pointer-events:none; z-index:2; }
.at-reload span { display:flex; justify-content:space-between; font-size:13px; text-shadow:0 1px 2px #000; }
.at-reload b { font:11px var(--mono); }
.at-reload progress { width:100%; height:3px; display:block; appearance:none; margin-top:7px; border:0; background:#ffffff30; }
.at-reload progress::-webkit-progress-bar { background:#ffffff30; }
.at-reload progress::-webkit-progress-value { background:#fff; }
.at-reload progress::-moz-progress-bar { background:#fff; }

/* Spray chart: fixed size, white pattern dots, green pull dots, 5 shot boxes */
.at-spray-chart { position:absolute; top:56px; right:22px; z-index:2; pointer-events:none; display:grid; grid-template-columns:68px 220px; gap:6px; padding:6px; border-radius:4px; background:#25313cd9; color:#e6eef6; font-size:11px; box-shadow:0 6px 18px #0005; }
.at-spray-chart canvas { display:block; width:220px; height:236px; border-radius:2px; background:#33414ecc; }
.at-spray-side { display:grid; grid-auto-rows:min-content; gap:3px; align-content:start; }
.at-spray-mode { padding:3px 0 4px; text-align:center; white-space:nowrap; font:600 8.5px var(--mono); letter-spacing:.02em; text-transform:uppercase; color:#9fd0ff; }
.at-spray-segs { display:grid; gap:3px; margin:0; padding:0; list-style:none; }
.at-spray-segs li,.at-spray-total { display:flex; align-items:center; justify-content:space-between; gap:4px; height:24px; padding:0 6px; border-radius:2px; background:#4a5866b3; }
.at-spray-segs span,.at-spray-total span { color:#c5d1dc; font:10px var(--mono); }
.at-spray-segs b,.at-spray-total b { color:#fff; font:500 11px var(--mono); }
.at-spray-total { margin-top:3px; background:#3c4957d9; }
.at-spray-total span { font-family:inherit; font-size:10px; }
[data-tone="good"] b,b[data-tone="good"] { color:#7ef0a0; }
[data-tone="ok"] b,b[data-tone="ok"] { color:#ffd37a; }
[data-tone="bad"] b,b[data-tone="bad"] { color:#ff9a8f; }

/* Menu overlay: start, pause and results */
.at-overlay { position:absolute; inset:0; z-index:4; display:flex; align-items:center; justify-content:center; padding:68px 40px 36px; overflow-y:auto; background:radial-gradient(120% 90% at 15% 0%,#1a2a3c80,transparent 60%),linear-gradient(120deg,#0f1822f7,#0a1119f2); }
.at-stage.is-loaded .at-overlay { background:linear-gradient(90deg,#060c13e0 0%,#060c13b3 55%,#060c13d9 100%); backdrop-filter:blur(10px) saturate(.9); }
.at-menu-tools { position:absolute; top:16px; right:16px; display:flex; gap:8px; }
.at-menu-tools button { display:grid; place-items:center; width:38px; height:38px; padding:0; border:1px solid #ffffff1a; border-radius:50%; background:#ffffff0d; color:var(--text-2); transition:color .15s,border-color .15s,background .15s; }
.at-menu-tools button:hover { color:var(--text-1); border-color:#ffffff40; background:#ffffff1a; }
.at-menu-tools button span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.at-menu-tools svg,.at-restart svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
#at-mute .at-muted-x,#at-mute.is-muted .at-wave { display:none; }
#at-mute.is-muted .at-muted-x { display:inline; }
#at-mute.is-muted { color:#ffb4a8; }
.at-menu { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,430px); align-items:center; gap:clamp(32px,6vw,80px); width:100%; max-width:1000px; }
.at-menu-kicker { display:inline-flex; align-items:center; gap:8px; color:var(--accent); font:11px var(--mono); letter-spacing:.1em; text-transform:uppercase; }
.at-menu-kicker::before { content:''; width:18px; height:2px; border-radius:2px; background:currentColor; }
.at-menu h2 { color:#fff; font-size:clamp(34px,4.2vw,52px); font-weight:700; line-height:1; letter-spacing:-.01em; margin-top:14px; }
.at-menu-main>p:not(.at-error):not(.at-menu-hint) { color:var(--text-2); font-size:16px; margin-top:12px; max-width:380px; }
.at-menu-main>p:empty { display:none; }
/* Each stat sizes to its value so long ones like "145 / 210" never run into the next divider. */
.at-menu-stats { display:flex; flex-wrap:wrap; row-gap:14px; margin:26px 0 0; }
.at-menu-stats div { display:flex; flex-direction:column-reverse; gap:4px; flex:0 0 auto; min-width:64px; padding:0 22px; border-left:1px solid #ffffff1f; }
.at-menu-stats div:first-child { padding-left:0; border-left:0; }
.at-menu-stats dt { color:var(--text-3); font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.at-menu-stats dd { margin:0; color:#fff; font:500 24px/1.1 var(--mono); white-space:nowrap; }
.at-menu-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:28px; }
.at-menu-actions .btn { min-width:180px; height:48px; justify-content:center; border-radius:10px; font-size:16px; }
.at-restart { display:inline-flex; align-items:center; gap:8px; height:48px; padding:0 18px !important; border-radius:10px !important; border-color:#ffffff26 !important; background:#ffffff0a !important; color:var(--text-1) !important; font-size:14px !important; }
.at-restart:hover { background:#ffffff17 !important; border-color:#ffffff4d !important; }
.at-menu-hint { color:var(--text-3); font-size:12px; margin-top:16px; }

/* Setup card: one label / control row per choice */
.at-setup { display:grid; padding:6px 20px 16px; border:1px solid #ffffff17; border-radius:16px; background:#0b131dd9; backdrop-filter:blur(12px); box-shadow:0 24px 48px #0008; }
.at-setup h3 { color:var(--text-1); font-size:15px; font-weight:700; letter-spacing:.02em; }
.at-setup-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 0 10px; }
.at-row { display:grid; grid-template-columns:74px minmax(0,1fr); align-items:start; gap:12px; padding:11px 0; border-top:1px solid #ffffff0f; }
.at-row-label { padding-top:9px; color:var(--text-3); font-size:13px; font-weight:600; }
.at-row-ctl { display:grid; gap:6px; min-width:0; }
.at-setup-reset { padding-top:10px; border-top:1px solid #ffffff0f; }

/* "?" help popover: hover or focus on desktop, tap on touch */
.at-help { position:relative; }
.at-help-btn { display:grid; place-items:center; width:22px; height:22px; padding:0; border:1px solid var(--border-hi); border-radius:50%; background:var(--bg-2); color:var(--text-2); font:700 12px/1 var(--ui) !important; }
.at-help-btn:hover,.at-help.is-open .at-help-btn { color:#04101e; background:var(--accent); border-color:var(--accent); }
.at-help-pop { position:absolute; top:calc(100% + 8px); right:-6px; z-index:6; width:270px; padding:14px 16px; border:1px solid var(--border-hi); border-radius:10px; background:#0b131ef7; box-shadow:0 14px 34px #000a; color:var(--text-2); font-size:13px; line-height:1.45; text-align:left; opacity:0; visibility:hidden; transform:translateY(-4px); transition:opacity .15s,transform .15s,visibility .15s; }
.at-help-pop::before { content:''; position:absolute; top:-6px; right:12px; width:10px; height:10px; background:inherit; border:solid var(--border-hi); border-width:1px 0 0 1px; transform:rotate(45deg); }
.at-help:hover .at-help-pop,.at-help:focus-within .at-help-pop,.at-help.is-open .at-help-pop { opacity:1; visibility:visible; transform:none; }
.at-help-pop strong { display:block; color:var(--text-1); font-size:13.5px; margin-bottom:6px; }
.at-help-pop p+p { margin-top:7px; }
.at-help-pop b { color:var(--text-1); font-weight:600; }
.at-help-note { color:var(--text-3); font-size:12px; }
.at-help-note a { color:var(--accent); }
.at-seg-pair { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.at-seg { display:grid; gap:2px; padding:3px; border-radius:10px; background:#ffffff0d; }
.at-seg-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.at-seg-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.at-seg-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.at-seg label { position:relative; display:block; cursor:pointer; }
.at-seg input { position:absolute; inset:0; opacity:0; margin:0; cursor:inherit; }
.at-seg span { display:flex; align-items:center; justify-content:center; gap:6px; min-height:32px; padding:6px; border-radius:8px; color:var(--text-2); font-size:13px; font-weight:600; text-align:center; line-height:1.15; transition:background .15s,color .15s; }
.at-seg label:hover span { color:var(--text-1); background:#ffffff08; }
.at-seg input:checked+span { color:#04101e; background:var(--accent); box-shadow:0 2px 10px #4da6ff40; }
.at-seg input:focus-visible+span { outline:2px solid var(--accent); outline-offset:1px; }
/* Controller menu focus (menu-pad.mjs). */
.at-seg.is-pad-focus, .at-menu .is-pad-focus { outline:2px solid var(--accent); outline-offset:3px; box-shadow:0 0 0 6px #4da6ff22; }
.at-seg input:disabled+span { color:var(--text-4); background:none; cursor:not-allowed; }
.at-seg label:has(input:disabled) { cursor:not-allowed; }
.at-seg label[data-badge]:not([data-badge=""]) span::after { content:attr(data-badge); font:9px var(--mono); letter-spacing:.04em; text-transform:uppercase; padding:1px 5px; border-radius:999px; border:1px solid var(--border-2); color:var(--text-3); }
.at-seg label.is-locked span::after { content:''; width:10px; height:11px; background:currentColor; -webkit-mask:var(--at-lock) center / contain no-repeat; mask:var(--at-lock) center / contain no-repeat; }
.at-page { --at-lock:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 11'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h.5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5zm1.5 0h3V3.5a1.5 1.5 0 0 0-3 0z'/%3E%3C/svg%3E"); }

/* Settings card, under the range beside Controls */
.at-settings:focus { outline:none; }
.at-settings-head { display:flex; align-items:center; gap:16px; margin-bottom:14px; }
.at-settings-head span { margin-left:auto; }
.at-tabs { display:inline-grid; grid-auto-flow:column; gap:2px; padding:3px; border-radius:10px; background:#ffffff0d; }
.at-tabs button { padding:6px 16px; border:0; border-radius:8px; background:none; color:var(--text-2); font-size:13px !important; font-weight:600; }
.at-tabs button:hover { color:var(--text-1); }
.at-tabs button[aria-selected="true"] { color:#04101e; background:var(--accent); }
.at-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; margin-bottom:4px; border:1px solid var(--border); border-radius:10px; background:var(--bg-1); }
.at-panel-head div { display:grid; gap:2px; }
.at-panel-head strong { color:var(--text-1); font-size:14px; }
.at-panel-head small { color:var(--text-3); font-size:12px; }
.at-panel-head .at-small { justify-self:auto; white-space:nowrap; }
.at-settings-head h2 { margin-bottom:0 !important; }
.at-settings-head span { color:var(--text-3); font-size:12px; }
.at-settings-grid { columns:230px 3; column-gap:32px; }
.at-settings-group { display:grid; gap:12px; padding:12px 0 18px; break-inside:avoid; }
.at-settings-group h3 { color:var(--text-3); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.09em; }
.at-settings-group>label:not(.at-toggle) { display:grid; grid-template-columns:1fr auto; gap:8px; font-size:13.5px; color:var(--text-2); }
.at-settings-group output { color:var(--text-1); font:12px var(--mono); }
.at-settings input[type=range] { --fill:50%; grid-column:1/-1; width:100%; height:18px; margin:0; appearance:none; background:transparent; cursor:pointer; }
.at-settings input[type=range]::-webkit-slider-runnable-track { height:4px; border-radius:2px; background:linear-gradient(90deg,var(--accent) var(--fill),var(--border-2) var(--fill)); }
.at-settings input[type=range]::-moz-range-track { height:4px; border-radius:2px; background:var(--border-2); }
.at-settings input[type=range]::-moz-range-progress { height:4px; border-radius:2px; background:var(--accent); }
.at-settings input[type=range]::-webkit-slider-thumb { appearance:none; width:16px; height:16px; margin-top:-6px; border-radius:50%; background:#fff; border:3px solid var(--accent); }
.at-settings input[type=range]::-moz-range-thumb { width:10px; height:10px; border-radius:50%; background:#fff; border:3px solid var(--accent); }
.at-toggle { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:13.5px; color:var(--text-2); cursor:pointer; }
.at-toggle input { appearance:none; flex:0 0 36px; width:36px; height:20px; margin:0; border-radius:999px; background:var(--border-2); position:relative; cursor:pointer; transition:background .15s; }
.at-toggle input::after { content:''; position:absolute; top:3px; left:3px; width:14px; height:14px; border-radius:50%; background:#fff; transition:transform .15s; }
.at-toggle input:checked { background:var(--accent); }
.at-toggle input:checked::after { transform:translateX(16px); }
.at-bind { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:8px; font-size:13.5px; color:var(--text-2); }
.at-bind button,.at-bind select { min-width:76px; padding:6px 10px; border:1px solid var(--border-2); border-radius:6px; background:var(--bg-2); color:var(--text-1); font:12px var(--mono); }
.at-bind button[aria-pressed="true"] { border-color:var(--accent); color:var(--accent); }
.at-bind select { font-family:inherit; font-size:13px; }
.at-bind span+select { grid-column:2 / -1; }

/* Results row */
.at-results { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; align-items:center; gap:12px; margin-top:16px; }
.at-results>div { display:grid; gap:4px; padding:12px 16px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-2); }
.at-results>div>span { color:var(--text-3); font-size:11px; text-transform:uppercase; letter-spacing:.07em; }
.at-results strong { color:var(--text-1); font:22px var(--mono); font-weight:400; }
.at-results strong small { font-size:15px; color:var(--text-3); margin-left:2px; }

/* Info cards */
.at-info { display:grid; grid-template-columns:minmax(260px,1fr) 2.8fr; align-items:stretch; gap:16px; margin-top:28px; }
.at-card { padding:20px; border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--bg-2); font-size:13.5px; color:var(--text-2); line-height:1.55; }
.at-card h2 { color:var(--text-1); font-size:15px; font-weight:700; margin-bottom:14px; letter-spacing:.02em; }
.at-card p+p { margin-top:10px; }
.at-card b { color:var(--text-1); font-weight:600; }
.at-card-note { color:var(--text-3); font-size:12px; margin-top:10px; }
.at-card a { color:var(--accent); }
.at-controls { display:grid; gap:7px; margin:0; }
.at-controls div { display:grid; grid-template-columns:118px 1fr; align-items:center; gap:10px; }
.at-controls dt { margin:0; }
.at-controls dd { margin:0; color:var(--text-2); font-size:13px; }
.at-controls kbd { display:inline-block; font:11px var(--mono); background:var(--bg-3); padding:3px 7px; border:1px solid var(--border-2); border-bottom-width:2px; border-radius:4px; color:var(--text-1); white-space:nowrap; }

/* Credits and store links */
.at-credits { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:28px; margin-top:16px; padding:22px 24px; border:1px solid var(--border); border-radius:var(--radius-lg); background:linear-gradient(120deg,var(--bg-2),var(--bg-1)); }
.at-credits h2 { color:var(--text-1); font-size:15px; font-weight:700; letter-spacing:.02em; }
.at-credits p { color:var(--text-2); font-size:13.5px; line-height:1.55; margin-top:6px; max-width:620px; }
.at-credits-links { display:flex; gap:16px; font-size:12.5px !important; }
.at-credits-links a { color:var(--text-3); text-decoration:underline; text-underline-offset:3px; }
.at-credits-links a:hover { color:var(--text-1); }
.at-stores { display:flex; flex-wrap:wrap; gap:8px; }
.at-store { display:grid; gap:1px; min-width:150px; padding:10px 14px; border:1px solid var(--border-2); border-radius:8px; background:var(--bg-1); transition:border-color .15s,background .15s; }
.at-store small { color:var(--text-3); font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; }
.at-store span { color:var(--text-1); font-size:14.5px; font-weight:700; }
.at-store span::after { content:' ↗'; color:var(--text-3); font-weight:400; }
.at-store:hover { border-color:var(--border-hi); background:var(--bg-3); }

@media(max-width:1000px) {
  .at-menu { grid-template-columns:1fr; max-width:520px; gap:24px; }
  .at-credits { grid-template-columns:1fr; }
}
@media(max-width:800px) {
  .at-body .nav-inner { grid-template-columns:1fr auto; }
  .at-body .nav-links { display:none; }
  .at-body .nav-hamburger { display:flex; }
  .at-overlay { align-items:flex-start; }
  .at-results { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .at-results>button { grid-column:1 / -1; justify-self:start; }
  .at-info { grid-template-columns:1fr; }
  .at-spray-chart { grid-template-columns:58px 150px; }
  .at-spray-chart canvas { width:150px; height:200px; }
}
@media(max-width:480px) {
  .at-page { padding-top:22px; }
  .at-container { padding:0 16px; }
  .at-stage { height:560px; }
  .at-overlay { padding:60px 16px 20px; }
  .at-menu-stats { flex-wrap:wrap; row-gap:14px; }
  .at-menu-stats div { flex:0 0 50%; }
  .at-menu-stats div:nth-child(3) { padding-left:0; border-left:0; }
  .at-row { grid-template-columns:1fr; gap:6px; }
  .at-row-label { padding-top:0; }
  .at-setup { padding:4px 16px 14px; }
  .at-hud-top { left:14px; right:14px; }
  .at-hotbar { bottom:60px; gap:3px; }
  .at-hotbar li { width:44px; height:44px; }
  .at-slot-mod { width:14px; height:14px; left:5px; top:3px; }
  .at-slot-ammo { font-size:11px; }
  .at-reload { bottom:118px; }
  .at-inv-tile span { width:72px; height:72px; gap:4px; }
  .at-inv-tile img { width:38px; height:38px; }
  .at-inv-tile b { font-size:11px; }
  .at-spray-chart { right:14px; top:50px; grid-template-columns:52px 104px; }
  .at-spray-chart canvas { width:104px; height:176px; }
  .at-spray-segs li,.at-spray-total { height:20px; padding:0 4px; }
  .at-stores { display:grid; grid-template-columns:1fr; }
}
