* { box-sizing: border-box; }
[hidden] { display: none !important; }
.shooter-page { margin: 0; background: #101714; color: #ece7d8; font: 16px/1.5 system-ui, sans-serif; }
.shooter-header { min-height: 72px; padding: 16px 28px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid #37463b; }
.shooter-header a { color: #dcc492; text-decoration: none; }
.shooter-header > a:last-child { margin-left: auto; }
.shooter-brand { font-weight: 750; letter-spacing: .09em; }
.shooter-brand span { display: block; color: #a5b2a7; font-size: 11px; letter-spacing: .17em; }
.prototype-badge { padding: 5px 10px; border: 1px solid #61735b; border-radius: 4px; font-size: 11px; letter-spacing: .09em; color: #c2d4b6; }
.shooter-shell { width: min(1800px, 100%); padding: 20px 24px 10px; margin: auto; }
.shooter-hud { display: flex; align-items: center; gap: 32px; padding: 16px 22px; background: #1b2822; border: 1px solid #435346; border-radius: 9px; }
.mission-name { margin-right: auto; }
.mission-name h1 { margin: 3px 0 0; font: 26px/1.2 Georgia, serif; }
.shooter-hud small { display: block; font-size: 11px; letter-spacing: .12em; color: #b4c3af; }
.hud-stat { min-width: 102px; }
.hud-stat strong { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.hud-stat span { display: block; font-size: 12px; color: #b2bdb1; }
.hud-stat meter { display: block; width: 100px; height: 10px; accent-color: #95bd85; }
.shooter-page button { border: 1px solid #68765f; background: #28392e; color: #eee8d6; border-radius: 5px; min-height: 44px; padding: 10px 16px; font: inherit; cursor: pointer; }
.shooter-page button:hover { background: #374c3b; }
.shooter-page button:disabled { opacity: .55; cursor: wait; }
.shooter-page :focus-visible { outline: 2px solid #e5ca90; outline-offset: 4px; }
.shooter-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 12px; height: clamp(360px, calc(100dvh - 272px), 920px); margin-top: 12px; }
.shooter-arena { position: relative; min-width: 0; height: 100%; overflow: hidden; background: #202b26; border: 1px solid #435346; border-radius: 8px; }
.shooter-sidebar { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #64725a #18251f; display: flex; flex-direction: column; gap: 12px; }
.shooter-info-card { padding: 18px 16px; border: 1px solid #3b4d40; border-radius: 8px; background: #19261f; }
.shooter-info-card h2 { margin: 9px 0 14px; color: #ece5d0; font: 23px/1.2 Georgia, serif; }
.shooter-info-card p { margin: 0 0 14px; color: #c0ccbc; font-size: 16px; }
.shooter-info-card p:last-child { margin-bottom: 0; }
.shooter-info-card .panel-eyebrow { font-size: 11px; letter-spacing: .12em; }
.sidebar-progress { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.sidebar-progress strong { color: #dfc58d; text-align: right; }
.shooter-info-card meter { width: 100%; height: 12px; margin-top: 8px; accent-color: #adc78f; }
.sidebar-controls, .sidebar-stats { margin: 0; }
.sidebar-controls > div { padding: 9px 0; border-bottom: 1px solid #34483a; }
.sidebar-controls > div:last-child { padding-bottom: 0; border-bottom: 0; }
.sidebar-controls dt { color: #aebdaa; font-size: 14px; }
.sidebar-controls dd { margin: 4px 0 0; font-size: 16px; }
.sidebar-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid #34483a; }
.sidebar-stats dt { color: #bdcab7; font-size: 15px; }
.sidebar-stats dd { margin: 0; color: #f2e5c7; font-size: 20px; font-variant-numeric: tabular-nums; }
.shooter-info-card .sidebar-note { margin: 14px 0 0; color: #a8b7a0; font-size: 14px; }
.shooter-info-card .equipment-state { color: #d4dfbd; }
.threat-name { display: block; margin-bottom: 4px; color: #d9ac91; }
.threat-name--runner { color: #c4c58d; }
#shooter-map { width: 100%; height: 100%; outline-offset: -4px; touch-action: none; }
#shooter-map canvas { display: block; }
.mission-strip { position: absolute; top: 16px; left: 18px; right: 18px; width: fit-content; max-width: calc(100% - 36px); display: flex; gap: 10px; align-items: center; padding: 8px 13px; border: 1px solid #71836b66; border-radius: 5px; background: #122019dc; pointer-events: none; font-size: 14px; }
.live-dot { flex: 0 0 6px; height: 6px; border-radius: 50%; background: #b8c78f; }
.shooter-overlay { position: absolute; inset: 0; display: grid; place-items: center; align-items: safe center; background: #0c1515b8; padding: 24px; overflow-y: auto; }
.mission-panel { width: min(510px, 100%); padding: 32px; background: #1b2925f5; border: 1px solid #8a92736e; border-radius: 10px; box-shadow: 0 24px 90px #0006; }
.panel-eyebrow { color: #d8bd87; font-size: 11px; letter-spacing: .19em; }
.mission-panel h2 { font: 36px/1.1 Georgia, serif; margin: 14px 0; }
.mission-panel p { color: #c2cbbb; }
.control-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 0; border-block: 1px solid #435346; }
.control-guide span { display: flex; align-items: center; gap: 8px; font-size: 14px; }
kbd { font: 12px system-ui, sans-serif; padding: 3px 6px; border: 1px solid #657060; border-radius: 3px; background: #14221b; white-space: nowrap; }
.mission-panel .prototype-note { font-size: 13px; color: #a9b5a7; }
.mission-panel button { width: 100%; margin: 5px 0; }
.mission-panel .shooter-primary { background: #d4ba83; border-color: #d4ba83; color: #15211a; font-weight: 750; }
.mission-panel .shooter-primary:hover { background: #ead2a1; }
.mission-panel a { display: block; margin-top: 14px; color: #d6c69f; text-align: center; font-size: 14px; }
.mission-panel--upgrade { width: min(760px, 100%); padding: 26px; }
.mission-panel--upgrade .control-guide, .mission-panel--upgrade .prototype-note { display: none; }
.upgrade-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 10px; }
.mission-panel .upgrade-option { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; margin: 0; padding: 16px 12px; text-align: left; background: #24382c; border-color: #718366; }
.mission-panel .upgrade-option:hover { background: #344d37; border-color: #e0c792; }
.upgrade-key { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #9f926a; border-radius: 4px; color: #e6cc93; font-size: 13px; }
.upgrade-option strong { font-size: 18px; line-height: 1.25; color: #f0deb8; }
.upgrade-option > span:not(.upgrade-key) { font-size: 14px; color: #c5d0bc; }
.upgrade-option b { margin-top: auto; font-size: 14px; color: #e6ca8d; font-variant-numeric: tabular-nums; }
.shooter-build { margin: 0; padding-left: 19px; color: #d6dfca; font-size: 16px; }
.shooter-build li + li { margin-top: 8px; }
.sector-route { margin: 14px 0 0; padding-left: 22px; font-size: 16px; }
.sector-route li { padding: 7px 0 7px 3px; color: #acb9a6; }
.sector-route span, .sector-route small { display: block; }
.sector-route small { margin-top: 3px; font-size: 13px; }
.sector-route [data-state="next"] { color: #ead09b; }
.sector-route [data-state="active"] { color: #e4ab8c; }
.sector-route [data-state="secured"] { color: #a5d49a; }
.route-minimap { display: block; width: 100%; height: auto; border: 1px solid #5d7056; border-radius: 5px; }
.navigation-cue { position: absolute; bottom: 18px; left: 18px; max-width: calc(100% - 36px); padding: 9px 14px; border: 1px solid #c9b57c; border-radius: 5px; background: #15251ee8; color: #ecd59b; font-size: 17px; pointer-events: none; }
.weapon-stats { margin-bottom: 18px; }
.shooter-error { position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 5; padding: 16px; background: #512f28; color: white; }
.shooter-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 0; color: #a8b7a7; font-size: 13px; }
@media (max-width: 1199px) {
    .shooter-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
    .shooter-arena { grid-column: 1 / -1; grid-row: 1; height: clamp(360px, calc(100dvh - 272px), 920px); }
    .shooter-sidebar { overflow: visible; }
}
@media (max-width: 900px) {
    .shooter-hud { flex-wrap: wrap; gap: 14px 22px; }
    .mission-name { flex-basis: 100%; }
    .shooter-header { padding: 12px 16px; gap: 12px; }
    .prototype-badge { display: none; }
    .shooter-shell { padding: 12px; }
    .shooter-arena { height: max(470px, calc(100dvh - 310px)); }
}
@media (max-width: 650px) {
    .shooter-layout { grid-template-columns: minmax(0, 1fr); }
    .upgrade-options { grid-template-columns: minmax(0, 1fr); }
    .mission-panel .upgrade-option { gap: 7px; }
}
@media (max-width: 520px) {
    .shooter-header { font-size: 13px; }
    .shooter-hud { padding: 14px; gap: 14px; }
    .hud-stat { min-width: 82px; }
    .mission-panel { padding: 22px; }
    .mission-panel h2 { font-size: 30px; }
    .control-guide { grid-template-columns: 1fr; }
}
