/* 911 BadBoyz — site styles */

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Verdana, sans-serif;
  color: #e9e3e0;
  background-color: #121212;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px);
  padding: 0 clamp(0px, 3vw, 48px);
}
a { color: #ff7a1a; text-decoration: none; }
a:hover { color: #ffb15c; }
img { max-width: 100%; }
.orb { font-family: Orbitron, sans-serif; }
.accent { color: #ff7a1a; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Frame */
.frame { max-width: 1320px; margin: 0 auto; background: #070707; border-left: 1px solid #3a0d08; border-right: 1px solid #3a0d08; box-shadow: 0 0 0 1px #000, 0 0 60px rgba(255,30,10,.12); }
.topstrip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 28px; border-bottom: 1px solid #2a0a06; font-family: Orbitron, sans-serif; font-size: 11px; letter-spacing: .18em; color: #9a8c88; text-transform: uppercase; }
.hero { margin: 0; width: 100%; aspect-ratio: 3 / 1; background: #070707; border-bottom: 1px solid #5a120a; overflow: hidden; }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Nav */
.mainnav { background: linear-gradient(180deg, #3b3b3b 0%, #1b1b1b 48%, #0d0d0d 52%, #222 100%); border-top: 1px solid #6a6a6a; border-bottom: 2px solid #8a150b; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.mainnav ul { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.mainnav li { flex: 1 1 120px; }
.mainnav li + li { border-left: 1px solid rgba(255,255,255,.08); }
.navbtn { position: relative; min-height: 52px; display: flex; align-items: center; justify-content: center; font-family: Orbitron, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .22em; color: #cfcfcf; transition: color .15s, background .15s; }
.navbtn:hover, .navbtn[aria-current="page"] { color: #fff; background: linear-gradient(180deg, rgba(255,42,20,.3), rgba(255,42,20,0)); }
.navbtn:hover::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 2px; background: #ff2a14; box-shadow: 0 0 12px #ff2a14; }

/* Layout */
.page { display: flex; flex-direction: column; gap: 24px; padding: clamp(16px, 3vw, 32px); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head h1 { margin: 0; font-family: Orbitron, sans-serif; font-weight: 900; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: .1em; color: #fff; }
.page-head p { margin: 6px 0 0; font-size: 16px; line-height: 1.6; color: #b5a6a2; max-width: 75ch; }
.twocol { display: flex; flex-wrap: wrap; gap: 24px; padding: clamp(16px, 3vw, 32px); }
.twocol > aside { flex: 1 1 260px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.twocol > main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 28px; border-top: 1px solid #2a0a06; font-family: Orbitron, sans-serif; font-size: 11px; letter-spacing: .16em; color: #9a8c88; }

/* Panels */
.panel { border: 1px solid #5a120a; border-radius: 6px; background: linear-gradient(180deg, #0f0606, #080808); box-shadow: 0 0 18px rgba(255,30,10,.12); padding: clamp(20px, 3vw, 36px); }
.panel > h2, .panel-title { margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid #5a120a; font-family: Orbitron, sans-serif; font-weight: 900; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .12em; color: #f2f2f2; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #5a120a; }
.panel-head h2 { margin: 0; font-family: Orbitron, sans-serif; font-weight: 900; font-size: clamp(18px, 2vw, 24px); letter-spacing: .12em; color: #f2f2f2; }
.panel-head > span { font-size: 14px; color: #b5a6a2; }
.side-h { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #5a120a; font-family: Orbitron, sans-serif; font-weight: 900; font-size: 16px; letter-spacing: .2em; color: #e6e6e6; }
.prose { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.7; color: #e3d9d6; max-width: 72ch; }
.prose p { margin: 0; }
.muted { color: #b5a6a2; }
.note { margin: 16px 0 0; font-size: 14px; color: #b5a6a2; }

/* Buttons */
.sidebtn { min-height: 48px; display: flex; align-items: center; padding: 0 16px; border: 1px solid #2c2c2c; border-radius: 4px; font-family: Orbitron, sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .18em; color: #ddd; transition: border-color .15s, background .15s, color .15s; }
.sidebtn:hover { border-color: #ff2a14; background: rgba(255,42,20,.08); color: #fff; }
.btn { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid #8a150b; border-radius: 4px; background: rgba(255,42,20,.12); font-family: Orbitron, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .16em; color: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.btn:hover { border-color: #ff2a14; background: rgba(255,42,20,.25); color: #fff; }
.btn.ghost { border-color: #3a3a3a; background: transparent; color: #e6e6e6; }
.btn.ghost:hover { border-color: #ff2a14; }
.btn.big { min-height: 52px; padding: 0 32px; border-color: #ff2a14; background: linear-gradient(180deg, #b3170a, #6e0d05); box-shadow: 0 0 16px rgba(255,42,20,.35); font-weight: 900; font-size: 14px; letter-spacing: .2em; }
.btn.big:hover { background: linear-gradient(180deg, #d01c0c, #8a1106); }
.btn.on { border-color: #ff2a14; background: linear-gradient(180deg, #b3170a, #6e0d05); }

/* Home */
.linklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.linklist a { display: flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; }
.tag { font-family: Orbitron, sans-serif; font-size: 11px; letter-spacing: .16em; color: #0a0a0a; background: #ff7a1a; padding: 4px 8px; border-radius: 3px; }
.news-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.news-h h3 { margin: 0; font-size: 18px; font-weight: 600; color: #fff; }
.signoff { margin: 24px 0 0; font-family: Orbitron, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .2em; color: #ff7a1a; }

/* Tiles & trophies */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.tile { border: 1px solid #3a1510; border-radius: 6px; background: #0b0606; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.tile .lbl { font-family: Orbitron, sans-serif; font-size: 12px; letter-spacing: .2em; color: #b5a6a2; }
.tile .val { font-family: Orbitron, sans-serif; font-weight: 900; font-size: clamp(32px, 3.8vw, 50px); line-height: 1; }
.trophies { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.trophy { border: 1px solid #3a1510; border-radius: 6px; background: radial-gradient(ellipse at 50% 0%, rgba(255,60,20,.14), transparent 70%), #0b0606; padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.trophy .t { font-family: Orbitron, sans-serif; font-weight: 900; font-size: 18px; letter-spacing: .08em; color: #fff; }
.trophy .p { font-family: Orbitron, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .18em; }
.gold { color: #f5c542; } .silver { color: #c9ced6; } .bronze { color: #cd7f32; }

/* Tables */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; color: #e3d9d6; }
th[scope=col] { padding: 10px 16px; border-bottom: 1px solid #5a120a; font-family: Orbitron, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .18em; color: #ff7a1a; text-align: left; white-space: nowrap; }
th[scope=col].r, td.r { text-align: right; }
td, th[scope=row] { padding: 14px 16px; border-bottom: 1px solid #241010; vertical-align: middle; }
th[scope=row] { text-align: left; font-weight: 600; white-space: nowrap; }
tfoot td, tfoot th { border-bottom: 0; font-weight: 600; }
caption { caption-side: bottom; text-align: left; padding-top: 14px; font-size: 13px; color: #b5a6a2; }
.kdr { font-family: Orbitron, sans-serif; font-weight: 700; }
.good { color: #4ade80; } .bad { color: #ff6a50; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }

/* Servers */
.srv { display: flex; align-items: center; gap: 10px; }
.srv b { display: block; font-weight: 600; color: #fff; }
.srv small { display: block; font-weight: 400; font-size: 13px; color: #b5a6a2; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6b6b6b; flex: none; }
.dot.on { background: #4ade80; }
.players { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.players b { font-family: Orbitron, sans-serif; font-size: 14px; color: #fff; min-width: 64px; }
.bar { display: block; width: 80px; height: 6px; border-radius: 3px; background: #2a1210; overflow: hidden; }
.bar span { display: block; height: 100%; background: #ff2a14; }

/* Cards (members, maps, matches) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.cards.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.card { border: 1px solid #3a1510; border-radius: 6px; background: #0b0606; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #8a150b; box-shadow: 0 0 18px rgba(255,30,10,.18); }
.card .shot { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; margin: 0; border: 0; border-bottom: 1px solid #3a1510; background: #050505; overflow: hidden; }
.card .shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h2, .card h3 { margin: 0; font-family: Orbitron, sans-serif; font-weight: 900; font-size: 17px; letter-spacing: .06em; color: #fff; overflow-wrap: anywhere; }
.card .file { margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #b5a6a2; overflow-wrap: anywhere; }
.card .dl { margin-top: 10px; align-self: flex-start; }
.member { border: 1px solid #5a120a; border-radius: 6px; background: linear-gradient(180deg, #0f0606, #080808); box-shadow: 0 0 18px rgba(255,30,10,.12); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.member-top { display: flex; align-items: center; gap: 18px; }
.member-top img { width: 96px; height: 96px; border-radius: 6px; border: 2px solid #8a150b; box-shadow: 0 0 16px rgba(255,42,20,.35); flex: none; }
.member h2 { margin: 0; font-family: Orbitron, sans-serif; font-weight: 900; font-size: 22px; letter-spacing: .08em; color: #fff; }
.member .bio { font-size: 15px; line-height: 1.6; color: #e3d9d6; display: flex; flex-direction: column; gap: 8px; }
.member .bio p { margin: 0; }
.member .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* Matches */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid #3a2420; border-radius: 4px; background: #0b0606; font-family: Orbitron, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .16em; color: #cfcfcf; cursor: pointer; }
.chip:hover { border-color: #ff2a14; color: #fff; }
.chip[aria-pressed="true"] { border-color: #ff2a14; background: linear-gradient(180deg, #b3170a, #6e0d05); color: #fff; }
.res { font-family: Orbitron, sans-serif; font-weight: 900; font-size: 12px; letter-spacing: .16em; color: #0a0a0a; padding: 4px 8px; border-radius: 3px; }
.res.W { background: #4ade80; } .res.L { background: #ff6a50; } .res.T { background: #e6e6e6; }
.wip { font-family: Orbitron, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .14em; color: #ff7a1a; border: 1px solid #8a150b; padding: 3px 6px; border-radius: 3px; }
.score { font-family: Orbitron, sans-serif; font-weight: 900; font-size: 24px; color: #fff; white-space: nowrap; }
.score span { color: #6e5a56; }
.match-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.teams { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid #241010; font-size: 14px; line-height: 1.5; }
.teams p { margin: 0; overflow-wrap: anywhere; }
.teams b { font-family: Orbitron, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .14em; color: #ff7a1a; }
.teams b.vs { color: #b5a6a2; }
.server { margin: 0; font-size: 12px; color: #9a8c88; overflow-wrap: anywhere; }
.shots-count { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 3px; background: rgba(0,0,0,.8); font-family: Orbitron, sans-serif; font-size: 11px; letter-spacing: .12em; color: #fff; }
.center { display: flex; justify-content: center; }
dialog.viewer { width: min(1180px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0; background: transparent; color: #fff; }
dialog.viewer::backdrop { background: rgba(0,0,0,.9); }
.viewer-in { display: flex; flex-direction: column; gap: 12px; }
.viewer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.viewer-bar p { margin: 0; font-family: Orbitron, sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.viewer img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; border: 1px solid #3a1510; border-radius: 4px; background: #000; }
.viewer-nav { display: flex; align-items: center; justify-content: center; gap: 16px; }

/* History */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 18px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; }
.timeline .pip { width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; border: 2px solid #ff2a14; background: #0b0606; box-shadow: 0 0 10px rgba(255,42,20,.5); flex: none; }
.timeline .pip.lit { background: #ff2a14; }
.timeline .line { flex: 1; width: 2px; margin-top: 6px; background: linear-gradient(180deg, #8a150b, #3a1510); }
.timeline .ev { display: flex; flex-direction: column; gap: 6px; padding-bottom: 32px; }
.timeline li:last-child .ev { padding-bottom: 0; }
.timeline .when { font-family: Orbitron, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .2em; color: #ff7a1a; }
.timeline h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: Orbitron, sans-serif; font-weight: 900; font-size: clamp(17px, 1.8vw, 21px); letter-spacing: .06em; color: #fff; }
.timeline p { margin: 0; font-size: 16px; line-height: 1.7; color: #e3d9d6; max-width: 70ch; }
.founder { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid #8a150b; border-radius: 6px; background: radial-gradient(ellipse at 0% 50%, rgba(255,60,20,.18), transparent 70%), #0b0606; }
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.roster li { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border: 1px solid #2a1512; border-radius: 4px; background: #0b0606; font-weight: 600; font-size: 15px; color: #fff; overflow-wrap: anywhere; }
.roster li.active { border-color: #8a150b; background: rgba(255,42,20,.08); }
.roster .t911 { font-family: Orbitron, sans-serif; font-size: 11px; letter-spacing: .08em; color: #ff7a1a; }
.badge { flex: none; font-family: Orbitron, sans-serif; font-weight: 700; font-size: 10px; letter-spacing: .14em; color: #0a0a0a; background: #4ade80; padding: 3px 6px; border-radius: 3px; }

/* Forms */
.form-panel { max-width: 720px; width: 100%; }
form { display: flex; flex-direction: column; gap: 20px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-family: Orbitron, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .18em; color: #ff7a1a; }
input, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #3a2420; border-radius: 4px; background: #0b0606; color: #fff; font-family: Inter, sans-serif; font-size: 16px; }
textarea { resize: vertical; line-height: 1.6; }
input:focus, textarea:focus { outline: 2px solid #ff2a14; outline-offset: 1px; border-color: #ff2a14; }
.err { margin: 0; font-size: 14px; color: #ff8a75; }
.hint { margin: 0; font-size: 13px; color: #b5a6a2; }
.alert { margin: 0; padding: 14px 16px; border-radius: 4px; font-size: 15px; }
.alert.ok { border: 1px solid #2f6b44; background: rgba(74,222,128,.08); color: #b8f5cc; }
.alert.bad { border: 1px solid #8a150b; background: rgba(255,42,20,.08); color: #ffb3a6; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Gallery */
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.photo { display: block; aspect-ratio: 4 / 3; border: 1px solid #3a1510; border-radius: 4px; overflow: hidden; background: #050505; transition: border-color .15s, box-shadow .15s; }
.photo:hover, .photo:focus-visible { border-color: #ff2a14; box-shadow: 0 0 16px rgba(255,42,20,.3); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
