:root{--bg:#090907;--bg2:#11110e;--panel:#151511;--panel2:#1b1a15;--line:#343126;--orange:#e77819;--orange2:#ff9a2a;--paper:#d8d4c8;--muted:#858276;--green:#77a76c;--red:#a84434;--yellow:#c69035;--shadow:rgba(0,0,0,.5)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 20% -10%,#282215 0,transparent 28%),linear-gradient(180deg,#090907,#0d0d0a 60%,#080806);color:var(--paper);font-family:Consolas,"Courier New",monospace;min-height:100vh}.grain{position:fixed;inset:0;pointer-events:none;opacity:.07;z-index:10;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E")}.topbar{height:78px;padding:0 4vw;display:flex;align-items:center;justify-content:space-between;background:rgba(8,8,6,.96);border-bottom:1px solid #25231c;position:sticky;top:0;z-index:9;box-shadow:0 8px 25px #000}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;cursor:pointer}.brand-mark{font-size:30px;line-height:1;font-weight:900;letter-spacing:-2px;color:var(--orange);padding:8px 10px;border:2px solid var(--orange);transform:skew(-5deg);text-shadow:0 0 18px rgba(231,120,25,.25)}.brand div:last-child{display:flex;flex-direction:column;line-height:1.1;letter-spacing:1.2px;font-size:11px}.brand strong{font-size:13px}.brand span{color:var(--muted)}nav{display:flex;height:100%;align-items:center;gap:30px}nav a{color:#89867a;text-decoration:none;font-size:12px;letter-spacing:1.2px;height:100%;display:flex;align-items:center;border-bottom:3px solid transparent}nav a:hover,nav a.active{color:var(--paper);border-color:var(--orange)}.signal{display:flex;align-items:center;gap:9px}.signal .dot{width:9px;height:9px;border-radius:50%;background:#7ecb77;box-shadow:0 0 12px #6db865}.signal div{display:flex;flex-direction:column}.signal small{font-size:9px;color:#6d6a60}.signal strong{font-size:12px;color:#91c987}.hazard{height:8px;background:repeating-linear-gradient(135deg,var(--orange) 0 14px,#111 14px 28px);opacity:.86;border-bottom:1px solid #000}main{width:min(1500px,94vw);margin:auto}.hero{padding:55px 0 35px;border-bottom:1px solid #27251e;background:radial-gradient(circle at 75% 40%,rgba(231,120,25,.08),transparent 32%)}.eyebrow{font-size:11px;color:var(--orange);letter-spacing:2px;margin-bottom:15px}.hero h1{margin:0;font-family:Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif;font-size:clamp(46px,6vw,88px);line-height:.88;letter-spacing:1px;color:#d9d7cf;text-shadow:4px 4px 0 #000}.hero h1 span{color:var(--orange)}.hero p{margin:18px 0 0;color:#8e8a7e;max-width:750px;font-size:14px;letter-spacing:.5px}.stats{display:grid;grid-template-columns:repeat(6,1fr);border:1px solid var(--line);margin:26px 0;background:#0e0e0b}.stats article{min-height:106px;padding:18px;border-right:1px solid var(--line);position:relative;background:linear-gradient(135deg,rgba(255,255,255,.025),transparent)}.stats article:last-child{border-right:0}.stats span{display:block;color:#777468;font-size:10px;letter-spacing:1.2px;margin-bottom:12px}.stats strong{font-family:Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif;font-size:33px;color:#eee9dd;font-weight:500}.stats em{font-style:normal;font-size:10px;color:#6f6b60;margin-left:5px}.stats article:nth-child(2) strong,.stats article:nth-child(3) strong{color:var(--orange2)}.stats .alive strong{color:#7fb779}.stats .infected strong{color:#d46b3d}.stats .dead strong{color:#8c887f}.layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;padding-bottom:40px}.section-title{display:flex;justify-content:space-between;align-items:center;padding:12px 0;color:var(--orange);border-bottom:1px solid var(--line);font-weight:700;letter-spacing:1.5px}.section-title small{font-size:9px;color:#666359;font-weight:400}.controls{display:flex;gap:9px;padding:14px 0}.search{flex:1;min-width:180px;background:#11110e;border:1px solid #333027;display:flex;align-items:center;padding:0 11px}.search span{color:var(--orange);margin-right:8px}.search input{width:100%;background:none;border:0;outline:0;color:var(--paper);font-family:inherit;padding:11px 0}.tabs{display:flex;border:1px solid #333027}.tabs button{border:0;border-right:1px solid #333027;background:#11110e;color:#777468;font-family:inherit;font-size:10px;padding:0 11px;cursor:pointer}.tabs button:last-child{border-right:0}.tabs button.active,.tabs button:hover{color:#111;background:var(--orange);font-weight:700}.controls select{background:#11110e;border:1px solid #333027;color:#bbb6aa;font-family:inherit;padding:0 12px;outline:none}.table-wrap{border:1px solid var(--line);background:#0f0f0c;overflow:auto;box-shadow:0 15px 30px var(--shadow)}table{border-collapse:collapse;width:100%;min-width:880px}thead{background:#171612}th{font-size:9px;letter-spacing:1.1px;text-align:left;color:#777368;padding:12px;border-bottom:1px solid #39362b}td{padding:13px 12px;border-bottom:1px solid #28261f;font-size:12px;color:#aaa69a}tbody tr{transition:.15s;background:linear-gradient(90deg,rgba(255,255,255,.012),transparent 40%)}tbody tr:hover{background:linear-gradient(90deg,rgba(231,120,25,.07),transparent 60%)}td:first-child{font-family:Impact,Haettenschweiler,sans-serif;font-size:19px;color:#6f6b60;width:42px}tbody tr:nth-child(1) td:first-child{color:var(--orange2)}.name{color:#e1ded5;font-weight:700}.id-note{font-size:8px;color:#58564e;margin-top:4px}.badge{display:inline-flex;align-items:center;gap:6px;text-transform:uppercase;font-size:9px;letter-spacing:.8px;font-weight:700}.badge:before{content:"";width:7px;height:7px;border-radius:50%;background:#777}.badge.alive{color:#8cc184}.badge.alive:before{background:#71b46a;box-shadow:0 0 8px rgba(113,180,106,.4)}.badge.infected{color:#de8a54}.badge.infected:before{background:#d16933}.badge.deceased{color:#96766e}.badge.deceased:before{background:#8d3a2e}.metric{font-size:13px;color:#c9c5b9}.kills{color:#e29143;font-weight:700}.health{min-width:95px}.bar{height:5px;background:#27251f;margin-top:4px}.bar i{display:block;height:100%;background:#759f68}.empty{text-align:center;color:#777;padding:50px}aside{padding-top:12px}.panel{border:1px solid var(--line);background:linear-gradient(180deg,#151510,#0f0f0c);margin-bottom:16px;box-shadow:0 15px 30px var(--shadow)}.panel-head{padding:11px 13px;border-bottom:1px solid var(--line);color:var(--orange);font-size:11px;font-weight:700;letter-spacing:1px;background:repeating-linear-gradient(135deg,rgba(231,120,25,.04) 0 8px,transparent 8px 16px)}.bulletin{padding-bottom:14px}.bulletin>*:not(.panel-head){margin-left:15px;margin-right:15px}.urgent{display:inline-block!important;color:#e4a080!important;background:#632619;padding:5px 8px!important;font-size:8px!important;letter-spacing:1px!important;margin-top:15px!important}.bulletin h2{font-family:Impact,Haettenschweiler,sans-serif;letter-spacing:.7px;font-size:23px;margin-top:12px!important;margin-bottom:9px!important}.bulletin p,.bulletin li{font-size:10px;color:#8d897d;line-height:1.55}.bulletin ul{padding-left:18px}.warning{border-top:1px solid #332e23;padding-top:11px;color:var(--orange)!important;font-size:9px!important;letter-spacing:.9px}.spot-content{display:grid;grid-template-columns:72px 1fr;gap:12px;padding:14px}.portrait{height:72px;border:1px solid #474236;background:radial-gradient(circle,#3a3428,#171611 68%);display:grid;place-items:center;font-family:Impact,sans-serif;font-size:32px;color:var(--orange)}.spot-content h3{margin:1px 0 4px;font-size:18px;color:#e2ddd2}.spot-content p{margin:0;color:#777469;font-size:10px;line-height:1.5}.spot-stats{margin-top:10px!important;display:grid;grid-template-columns:1fr 1fr;gap:6px}.spot-stats b{color:var(--orange2)}.feed-list{max-height:260px;overflow:auto}.feed-item{padding:10px 12px;border-bottom:1px solid #28261f;font-size:9px;color:#827f75;line-height:1.4}.feed-item b{color:#d7d3c7}.feed-item span{float:right;color:#5d5a52}.muted{padding:14px;color:#666;font-size:10px}footer{width:min(1500px,94vw);margin:auto;border-top:1px solid #2d2a22;padding:22px 0 35px;color:#5d5a52;font-size:9px;letter-spacing:.9px;display:flex;justify-content:space-between} @media(max-width:1100px){nav{display:none}.stats{grid-template-columns:repeat(3,1fr)}.stats article:nth-child(3){border-right:0}.layout{grid-template-columns:1fr}.layout aside{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.panel{margin:0}}@media(max-width:720px){.topbar{padding:0 18px}.brand div:last-child,.signal{display:none}main{width:94vw}.hero{padding-top:35px}.stats{grid-template-columns:repeat(2,1fr)}.stats article{border-bottom:1px solid var(--line)}.controls{flex-wrap:wrap}.search{flex-basis:100%}.tabs{height:40px;flex:1}.controls select{height:40px}.layout aside{grid-template-columns:1fr}footer{flex-direction:column;gap:8px}.hero h1{font-size:50px}}
.survivor-link{color:inherit;text-decoration:none;border-bottom:1px solid transparent}.survivor-link:hover{color:var(--orange2);border-color:rgba(231,120,25,.45)}
.signal-badge{display:inline-flex;align-items:center;gap:6px;font-size:8px;letter-spacing:.85px;font-weight:800;white-space:nowrap}.signal-badge:before{content:"";width:7px;height:7px;border-radius:50%;background:#666}.signal-badge.online{color:#94ce89}.signal-badge.online:before{background:#78c66f;box-shadow:0 0 10px rgba(120,198,111,.65)}.signal-badge.signal_lost{color:#e5a34d}.signal-badge.signal_lost:before{background:#dc8b27;box-shadow:0 0 8px rgba(220,139,39,.35)}.signal-badge.offline{color:#77746c}.signal-badge.offline:before{background:#5d5b55}.signal-badge.deceased{color:#a56b5f}.signal-badge.deceased:before{background:#8d3a2e}
footer a{color:#77746a;text-decoration:none}footer a:hover{color:var(--orange)}

/* KCSN simulated signal disclosure */
.simulation-notice{margin:0 0 10px;border:1px dashed #5e4a31;background:#15120d;color:#9b835e;padding:9px 12px;font-size:8px;letter-spacing:1.1px}.sim-badge{display:inline-block;vertical-align:middle;border:1px solid #7f6338;background:#21190f;color:#d49a45;padding:3px 5px;font-size:7px;letter-spacing:.8px;font-weight:800;white-space:nowrap}.sim-badge.mini{padding:2px 4px;font-size:6px}.feed-item .sim-badge{margin-right:4px}

/* KCSN v1.10 ruleset classification */
.ruleset-badge{display:inline-block;border:1px solid #4a463b;background:#15140f;color:#aaa493;padding:3px 6px;font-size:7px;letter-spacing:.8px;font-weight:800;white-space:nowrap;text-transform:uppercase}.ruleset-badge.official{border-color:#7f6338;color:#e2a44a;background:#21190f}.ruleset-badge.custom{border-color:#56534b;color:#9d9990;background:#171713}.custom-note{padding:16px;color:#8f8a7d;font-size:10px;line-height:1.6}.custom-note b{display:block;color:#d79b45;letter-spacing:1px;margin-bottom:8px}.custom-note p{margin:0}.settings-digest{font-size:8px;color:#6c685f;word-break:break-all}.controls select#ruleset{min-width:150px}

/* ============================================================
   KCSN MODERN LEADERBOARD — HOME PAGE ONLY
   Inspired by compact competitive leaderboard layouts, but
   themed as a Knox County emergency-survivor registry.
   ============================================================ */

:root{
  --mb-bg:#0b0c0b;
  --mb-bg2:#10110f;
  --mb-panel:#171815;
  --mb-panel2:#1d1e1a;
  --mb-border:#34362f;
  --mb-border2:#45483d;
  --mb-text:#f0ede4;
  --mb-muted:#aaa99f;
  --mb-orange:#f08a24;
  --mb-orange2:#ff9f3a;
  --mb-yellow:#e7b44f;
  --mb-green:#7fd680;
  --mb-red:#d96b5a;
  --mb-shadow:0 18px 45px rgba(0,0,0,.32);
}

body.modern-board{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 50% -10%,rgba(240,138,36,.10),transparent 30%),
    linear-gradient(180deg,#0d0e0c 0%,#0a0b0a 60%,#0b0c0b 100%);
  color:var(--mb-text);
  font-family:Consolas,"Courier New",monospace;
}

.modern-board .grain{opacity:.018}

.skip-link{
  position:fixed;
  top:-80px;
  left:18px;
  z-index:9999;
  padding:10px 14px;
  background:#fff;
  color:#111;
  border-radius:6px;
}
.skip-link:focus{top:18px}

.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.modern-board a:focus-visible,
.modern-board button:focus-visible,
.modern-board input:focus-visible,
.modern-board select:focus-visible,
.modern-board [tabindex="0"]:focus-visible{
  outline:3px solid #ffb25e;
  outline-offset:2px;
}

/* HEADER */
.modern-header{
  width:min(1540px,96vw);
  margin:18px auto 0;
  min-height:66px;
  padding:10px 16px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:22px;
  background:rgba(18,19,17,.94);
  border:1px solid var(--mb-border);
  border-radius:12px;
  box-shadow:var(--mb-shadow);
}

.modern-brand{
  display:flex;
  align-items:center;
  gap:11px;
  color:var(--mb-text);
  text-decoration:none;
}
.modern-brand-mark{
  display:grid;
  place-items:center;
  min-width:62px;
  min-height:42px;
  padding:0 10px;
  border:2px solid var(--mb-orange);
  border-radius:7px;
  color:var(--mb-orange);
  font-size:18px;
  font-weight:900;
  letter-spacing:-1px;
  box-shadow:0 0 12px rgba(240,138,36,.08);
}
.modern-brand-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.modern-brand-copy strong{
  font:800 12px/1.2 Arial,Helvetica,sans-serif;
  letter-spacing:.6px;
}
.modern-brand-copy small{
  color:#8f9088;
  font-size:8px;
  letter-spacing:.5px;
}

.modern-nav{
  display:flex;
  justify-content:center;
  gap:4px;
  overflow-x:auto;
}
.modern-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:0 12px;
  border:1px solid transparent;
  border-radius:7px;
  color:#98988f;
  text-decoration:none;
  font-size:10px;
  letter-spacing:.5px;
  white-space:nowrap;
}
.modern-nav a:hover,
.modern-nav a.active{
  color:var(--mb-text);
  background:rgba(240,138,36,.08);
  border-color:rgba(240,138,36,.24);
}

.modern-live{
  display:flex;
  align-items:center;
  gap:7px;
  color:#a6e7a4;
  font-size:10px;
  font-weight:800;
}
.modern-live span{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--mb-green);
  box-shadow:0 0 6px var(--mb-green),0 0 13px rgba(127,214,128,.42);
}

/* SHELL */
.modern-shell{
  width:min(1510px,95vw);
  margin:0 auto;
}

/* CENTERED HERO */
.board-intro{
  text-align:center;
  padding:42px 0 22px;
}
.board-intro .eyebrow{
  color:#9b8b73;
  font-size:9px;
  letter-spacing:1.8px;
  margin-bottom:8px;
}
.board-intro h1{
  margin:0;
  color:var(--mb-orange2);
  font:800 clamp(28px,3.3vw,44px)/1 Arial,Helvetica,sans-serif;
  letter-spacing:.8px;
  text-shadow:0 0 12px rgba(240,138,36,.12);
}
.board-intro p{
  margin:9px 0 0;
  color:#99988f;
  font-size:11px;
}

/* PODIUM */
.podium-section{
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-bottom:22px;
}
.section-kicker{
  color:#98968c;
  font-size:9px;
  letter-spacing:1.4px;
}
.podium-grid{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(3,minmax(170px,210px));
  gap:10px;
  justify-content:center;
}
.podium-card{
  position:relative;
  min-height:148px;
  padding:18px 14px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid var(--mb-border);
  border-radius:10px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.018),transparent),
    var(--mb-panel);
  box-shadow:0 12px 28px rgba(0,0,0,.2);
  overflow:hidden;
}
.podium-card.place-1{
  transform:translateY(-8px);
  border-color:rgba(231,180,79,.38);
  background:
    radial-gradient(circle at 50% 0%,rgba(231,180,79,.12),transparent 54%),
    var(--mb-panel);
  box-shadow:0 0 0 1px rgba(231,180,79,.05),0 0 24px rgba(231,180,79,.08);
}
.podium-place{
  position:absolute;
  top:8px;
  right:10px;
  color:#8d8d84;
  font-size:9px;
}
.place-1 .podium-place{color:var(--mb-yellow)}
.podium-avatar{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border:1px solid #4b4c43;
  border-radius:50%;
  background:#10110f;
  color:var(--mb-orange);
  font:800 22px/1 Arial,Helvetica,sans-serif;
}
.place-1 .podium-avatar{
  border-color:rgba(231,180,79,.72);
  box-shadow:0 0 10px rgba(231,180,79,.20),0 0 22px rgba(231,180,79,.08);
}
.podium-card strong{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#f3efe5;
  font:700 13px/1.2 Arial,Helvetica,sans-serif;
  white-space:nowrap;
}
.podium-card small{
  color:#9b9a91;
  font-size:9px;
}
.podium-card .podium-stats{
  display:flex;
  gap:9px;
  color:#b7b5ac;
  font-size:9px;
}
.podium-card .podium-stats b{
  color:var(--mb-orange2);
}
.podium-card .podium-tags{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  justify-content:center;
}

/* CONTROLS */
.control-panel{
  display:grid;
  grid-template-columns:minmax(280px,1fr) auto minmax(170px,220px) minmax(150px,190px);
  gap:9px;
  margin:6px 0 12px;
}

.modern-search,
.modern-tabs,
.modern-select select{
  min-height:46px;
  border:1px solid var(--mb-border2);
  border-radius:8px;
  background:#161915;
}

.modern-search{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
}
.modern-search span{
  color:var(--mb-orange);
  font-size:17px;
}
.modern-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:var(--mb-text);
  font:12px Consolas,"Courier New",monospace;
}
.modern-search input::placeholder{color:#7f8078}

.modern-tabs{
  display:flex;
  overflow:hidden;
}
.modern-tabs button{
  min-width:74px;
  padding:0 11px;
  border:0;
  border-right:1px solid var(--mb-border);
  background:transparent;
  color:#97978e;
  font:9px Consolas,"Courier New",monospace;
  cursor:pointer;
}
.modern-tabs button:last-child{border-right:0}
.modern-tabs button:hover,
.modern-tabs button.active{
  background:var(--mb-orange);
  color:#17130e;
  font-weight:800;
}

.modern-select select{
  width:100%;
  padding:0 11px;
  color:#d3d0c6;
  font:9px Consolas,"Courier New",monospace;
}

/* LIVE STATS STRIP */
.network-strip{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:0;
  margin:0 0 14px;
  border:1px solid var(--mb-border);
  border-radius:9px;
  overflow:hidden;
  background:#151713;
}
.network-strip article{
  min-height:54px;
  padding:9px 12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  border-right:1px solid #30322c;
}
.network-strip article:last-child{border-right:0}
.network-strip span{
  color:#88887f;
  font-size:8px;
  letter-spacing:.5px;
}
.network-strip strong{
  color:#d7d3ca;
  font-size:11px;
}
.network-strip article:nth-child(2) strong,
.network-strip .network-state strong{
  color:var(--mb-green);
}
.network-strip article:nth-child(3) strong{color:var(--mb-orange2)}
.network-strip article:nth-child(5) strong{color:var(--mb-yellow)}
.network-strip article:nth-child(6) strong{color:#c88a80}

/* LEADERBOARD */
.leaderboard-frame{
  border:1px solid var(--mb-border);
  border-radius:11px;
  overflow:hidden;
  background:var(--mb-panel);
  box-shadow:var(--mb-shadow);
}
.leaderboard-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  padding:15px 18px 12px;
  border-bottom:1px solid #2f312b;
}
.leaderboard-toolbar h2,
.recent-head h2{
  margin:3px 0 0;
  color:#e8e4da;
  font:800 18px/1 Arial,Helvetica,sans-serif;
  letter-spacing:.4px;
}
.leaderboard-toolbar small{
  color:#8e8e85;
  font-size:9px;
}
.registry-note{
  padding:8px 18px;
  color:#a49378;
  background:rgba(240,138,36,.035);
  border-bottom:1px solid #292b26;
  font-size:8px;
  letter-spacing:.45px;
}

.modern-table-wrap{
  width:100%;
  overflow:auto;
  border:0!important;
  box-shadow:none!important;
}
.modern-board table{
  width:100%;
  min-width:1050px;
  border-collapse:collapse;
}
.modern-board thead{
  background:#1c201b;
}
.modern-board th{
  padding:12px 12px;
  color:#9c9b92;
  border-bottom:1px solid var(--mb-border);
  text-align:left;
  font-size:8px;
  letter-spacing:.55px;
  font-weight:700;
}
.modern-board td{
  padding:14px 12px;
  color:#d3d0c8;
  border-bottom:1px solid #292b27;
  vertical-align:middle;
  font-size:10px;
}
.modern-board tbody tr{
  background:#151713;
}
.modern-board tbody tr:nth-child(even){
  background:#171916;
}
.modern-board tbody tr:hover{
  background:#1d211b;
}

/* Survivor name glow — intentionally subtle */
.modern-board .survivor-link{
  color:#f0ede5;
  text-decoration:none;
  font:700 12px/1.2 Arial,Helvetica,sans-serif;
  text-shadow:
    0 0 4px rgba(240,138,36,.24),
    0 0 9px rgba(240,138,36,.10);
}
.modern-board .survivor-link.signal-online{
  color:#f1efe7;
  text-shadow:
    0 0 4px rgba(127,214,128,.35),
    0 0 10px rgba(127,214,128,.14);
}
.modern-board .survivor-link.signal-lost{
  color:#f1eadb;
  text-shadow:
    0 0 4px rgba(231,180,79,.33),
    0 0 10px rgba(231,180,79,.12);
}
.modern-board .survivor-link.signal-offline{
  color:#c4c1b8;
  text-shadow:none;
}
.modern-board .survivor-link.status-infected{
  color:#f0c9bd;
  text-shadow:
    0 0 4px rgba(217,107,90,.28),
    0 0 8px rgba(217,107,90,.11);
}

.modern-board .id-note{
  margin-top:4px;
  color:#74756e;
  font-size:7px;
}
.modern-board .metric{color:#dbd7ce}
.modern-board .kills{
  color:var(--mb-orange2);
  font-weight:800;
}

.modern-board .ruleset-badge,
.modern-board .sim-badge{
  border-radius:4px;
}
.modern-board .ruleset-badge{
  padding:4px 6px;
  font-size:7px;
}
.modern-board .sim-badge{
  display:inline-flex;
  margin-left:5px;
  padding:3px 5px;
  font-size:6px;
  vertical-align:middle;
}
.modern-board .badge,
.modern-board .signal-badge{
  font-size:8px;
}

.modern-board .health{
  min-width:105px;
}
.modern-board .health span{
  color:#bbb9b0;
  font-size:8px;
}
.modern-board .bar{
  height:6px;
  margin-top:4px;
  border-radius:999px;
  background:#2a2d27;
  overflow:hidden;
}
.modern-board .bar i{
  border-radius:999px;
  background:linear-gradient(90deg,#6fbd6c,#94da84);
}
.modern-board .empty{
  padding:36px 20px!important;
  text-align:center;
  color:#818178;
}

/* RECENT SIGNALS */
.recent-section{
  margin:14px 0 34px;
  border:1px solid var(--mb-border);
  border-radius:10px;
  background:#151713;
  overflow:hidden;
}
.recent-head{
  padding:14px 17px 11px;
  border-bottom:1px solid #2e302a;
}
.modern-feed{
  display:grid;
  grid-template-columns:repeat(3,1fr);
}
.modern-feed .feed-item{
  min-height:52px;
  padding:10px 13px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px;
  border-right:1px solid #292b27;
  border-bottom:1px solid #292b27;
  color:#98988f;
  font-size:8px;
}
.modern-feed .feed-item:nth-child(3n){border-right:0}
.modern-feed .feed-item b{
  color:#e8e4dc;
  font-size:9px;
  text-shadow:0 0 5px rgba(240,138,36,.12);
}
.modern-feed .feed-item > span:last-child{
  margin-left:auto;
  color:#77786f;
}
.modern-feed .muted{padding:14px;color:#818178}

/* FOOTER */
.modern-footer{
  width:min(1510px,95vw);
  margin:0 auto;
  padding:0 0 28px;
  display:flex;
  justify-content:space-between;
  color:#77786f;
  font-size:8px;
}
.modern-footer a{
  color:#96968d;
  text-decoration:none;
}
.modern-footer a:hover{color:var(--mb-orange)}

/* RESPONSIVE */
@media(max-width:1180px){
  .modern-header{
    grid-template-columns:1fr auto;
  }
  .modern-nav{
    grid-column:1/-1;
    grid-row:2;
    justify-content:flex-start;
  }
  .control-panel{
    grid-template-columns:1fr 1fr;
  }
  .modern-search{grid-column:1/-1}
  .network-strip{
    grid-template-columns:repeat(4,1fr);
  }
  .network-strip article{
    border-bottom:1px solid #30322c;
  }
  .modern-feed{grid-template-columns:repeat(2,1fr)}
  .modern-feed .feed-item:nth-child(3n){border-right:1px solid #292b27}
  .modern-feed .feed-item:nth-child(2n){border-right:0}
}

@media(max-width:760px){
  .modern-header{
    width:94vw;
    grid-template-columns:1fr auto;
    margin-top:10px;
  }
  .modern-brand-copy small{display:none}
  .modern-nav{
    width:100%;
    justify-content:flex-start;
  }
  .modern-nav a{
    padding:0 9px;
    font-size:9px;
  }
  .modern-live{display:none}
  .modern-shell{width:92vw}
  .board-intro{padding:30px 0 18px}
  .podium-grid{
    width:100%;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
  }
  .podium-card{
    min-height:128px;
    padding:15px 7px 10px;
  }
  .podium-avatar{
    width:46px;
    height:46px;
  }
  .podium-card strong{font-size:10px}
  .podium-card small{font-size:7px}
  .podium-card .podium-stats{font-size:7px;gap:5px}
  .control-panel{grid-template-columns:1fr}
  .modern-search{grid-column:auto}
  .modern-tabs{
    display:grid;
    grid-template-columns:repeat(3,1fr);
  }
  .network-strip{grid-template-columns:repeat(2,1fr)}
  .leaderboard-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
  .modern-feed{grid-template-columns:1fr}
  .modern-feed .feed-item,
  .modern-feed .feed-item:nth-child(2n),
  .modern-feed .feed-item:nth-child(3n){
    border-right:0;
  }
  .modern-footer{
    flex-direction:column;
    gap:7px;
  }
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}


/* ============================================================
   KCSN v1.13 POLISH PASS
   ============================================================ */

/* Keep skip link hidden unless keyboard-focused */
.skip-link{
  top:-200px!important;
  left:18px!important;
  opacity:0;
  pointer-events:none;
}
.skip-link:focus{
  top:18px!important;
  opacity:1;
  pointer-events:auto;
}

/* Stronger branding hierarchy, slightly less oversized */
.board-intro{
  padding:34px 0 18px!important;
}
.board-intro h1{
  font-size:clamp(24px,2.8vw,36px)!important;
  letter-spacing:1px!important;
}
.board-intro .board-subtitle{
  margin-top:10px!important;
  color:#b1afa6!important;
  font-size:11px!important;
  letter-spacing:.2px;
}

/* Slightly larger podium and tighter spacing */
.podium-section{
  margin-bottom:18px!important;
}
.podium-grid{
  grid-template-columns:repeat(3,minmax(185px,225px))!important;
  gap:12px!important;
}
.podium-card{
  min-height:160px!important;
}
.podium-avatar{
  width:64px!important;
  height:64px!important;
}
.podium-card strong{
  font-size:13px!important;
}

/* Controls: more comfortable interaction and text size */
.control-panel{
  gap:10px!important;
}
.modern-search,
.modern-tabs,
.modern-select select{
  min-height:50px!important;
}
.modern-search input{
  font-size:13px!important;
}
.modern-tabs button{
  font-size:9.5px!important;
}
.modern-select select{
  font-size:9.5px!important;
}

/* Slightly larger table typography */
.modern-board th{
  font-size:8.5px!important;
}
.modern-board td{
  font-size:10.5px!important;
}
.modern-board .survivor-link{
  font-size:12.5px!important;
}
.modern-board .id-note{
  font-size:7.5px!important;
}

/* Make health percentage easier to read */
.modern-board .health span{
  color:#d9d6cd!important;
  font-size:8.5px!important;
  font-weight:700;
}

/* Real-player badge */
.real-badge{
  display:inline-flex;
  align-items:center;
  margin-left:5px;
  padding:3px 6px;
  border:1px solid rgba(127,214,128,.35);
  border-radius:4px;
  background:rgba(127,214,128,.08);
  color:#9ee49c;
  font-size:6px;
  font-weight:800;
  letter-spacing:.4px;
  vertical-align:middle;
  box-shadow:0 0 8px rgba(127,214,128,.08);
}

/* Slightly brighter live stats strip */
.network-strip strong{
  font-size:11.5px!important;
}
.network-strip span{
  color:#96968d!important;
}

/* Slightly tighter recent section */
.recent-section{
  margin-top:12px!important;
}
.modern-feed{
  grid-template-columns:repeat(3,1fr)!important;
}

/* Laptop/mobile */
@media(max-width:760px){
  .board-intro h1{
    font-size:26px!important;
  }
  .board-intro .board-subtitle{
    font-size:10px!important;
    line-height:1.5;
  }
  .podium-grid{
    grid-template-columns:repeat(3,1fr)!important;
  }
  .podium-card{
    min-height:138px!important;
  }
  .podium-avatar{
    width:48px!important;
    height:48px!important;
  }
}


/* ============================================================
   KCSN v1.14 BOTTOM-HALF POLISH
   ============================================================ */

/* Slightly tighter and calmer hero */
.board-intro{
  padding-top:28px!important;
  padding-bottom:14px!important;
}
.board-intro h1{
  font-size:clamp(22px,2.5vw,33px)!important;
}
.podium-section{
  margin-bottom:14px!important;
}

/* Stronger distinction for real vs simulated names */
.modern-board .survivor-link.real-name{
  text-shadow:
    0 0 5px rgba(240,138,36,.36),
    0 0 11px rgba(240,138,36,.16)!important;
}
.modern-board .survivor-link.real-name.signal-online{
  text-shadow:
    0 0 5px rgba(127,214,128,.50),
    0 0 12px rgba(127,214,128,.20)!important;
}
.modern-board .survivor-link.simulated-name{
  opacity:.92;
  text-shadow:
    0 0 3px rgba(240,138,36,.18),
    0 0 7px rgba(240,138,36,.07)!important;
}

/* Recent Signals: compact cards instead of tiny grid rows */
.recent-head{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.recent-subtitle{
  margin:4px 0 0;
  color:#8d8d84;
  font-size:8px;
  letter-spacing:.3px;
}
.modern-feed{
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  gap:10px!important;
  padding:12px!important;
  background:#121411;
}
.signal-card{
  min-height:104px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  border:1px solid #30322c;
  border-radius:8px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.015),transparent),
    #171916;
}
.signal-card:hover{
  border-color:#44473d;
  background:#1a1d18;
}
.signal-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.signal-card-top .survivor-link{
  font-size:11px!important;
}
.signal-time{
  color:#77786f;
  font-size:8px;
  white-space:nowrap;
}
.signal-card-tags{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
}
.signal-card-stats{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  color:#8f9088;
  font-size:8px;
}
.signal-card-stats strong{
  color:var(--mb-orange2);
  font-size:9px;
}

/* Footer easier to read */
.modern-footer{
  color:#929188!important;
  font-size:8.5px!important;
}
.modern-footer a{
  color:#b0aea5!important;
}
.modern-footer a:hover{
  color:var(--mb-orange)!important;
}

/* Slightly better balance in controls */
.control-panel{
  grid-template-columns:minmax(320px,1.35fr) auto minmax(170px,210px) minmax(150px,180px)!important;
}

@media(max-width:980px){
  .modern-feed{
    grid-template-columns:repeat(2,1fr)!important;
  }
}
@media(max-width:760px){
  .modern-feed{
    grid-template-columns:1fr!important;
  }
  .signal-card{
    min-height:92px;
  }
  .control-panel{
    grid-template-columns:1fr!important;
  }
}


/* ============================================================
   KCSN v1.15 SIGNAL CONSISTENCY + CARD TIGHTENING
   ============================================================ */

/* Real players should read a little more clearly than simulations */
.modern-board .survivor-link.real-name{
  color:#f7f4ec!important;
  font-weight:800!important;
  text-shadow:
    0 0 5px rgba(240,138,36,.42),
    0 0 12px rgba(240,138,36,.18)!important;
}
.modern-board .survivor-link.real-name.signal-online{
  color:#f7f7ef!important;
  text-shadow:
    0 0 5px rgba(127,214,128,.60),
    0 0 13px rgba(127,214,128,.24)!important;
}

/* Make recent signal cards more compact */
.signal-card{
  min-height:88px!important;
  padding:10px 11px!important;
  gap:8px!important;
}
.signal-card-stats{
  margin-top:2px!important;
}
.signal-card-tags{
  gap:4px!important;
}
.signal-card-top .survivor-link{
  font-size:10.5px!important;
}

@media(max-width:760px){
  .signal-card{
    min-height:82px!important;
  }
}

/* ============================================================
   KCSN v1.16 SHARED PUBLIC-SITE DESIGN
   ============================================================ */
.modern-subpage .subpage-shell{min-height:calc(100vh - 170px)}
.modern-subpage .subpage-hero{padding:32px 0 20px}
.modern-subpage .subpage-hero h1{margin:5px 0 0;color:var(--mb-orange2);font:800 clamp(28px,3.4vw,44px)/1 Arial,sans-serif}
.modern-subpage .subpage-hero p{max-width:760px;color:var(--mb-muted);font-size:11px;line-height:1.65}
.modern-subpage .subpage-stats{grid-template-columns:repeat(6,1fr)}
.modern-subpage .custom-controls{grid-template-columns:minmax(300px,1.3fr) auto minmax(170px,200px)}
.modern-subpage.custom-page .survivor-link{color:#f1ede4;text-shadow:0 0 4px rgba(240,138,36,.28),0 0 9px rgba(240,138,36,.10)}
.modern-subpage .compact-feed-section{margin-bottom:28px}
.modern-subpage .subpage-feed{display:grid;grid-template-columns:repeat(3,1fr);max-height:none!important}
.modern-subpage .subpage-feed .feed-item{min-height:52px;padding:10px 12px;border-right:1px solid #2b2d28;border-bottom:1px solid #2b2d28;color:#97978e;font-size:8px}
.modern-subpage .subpage-feed .feed-item b{color:#ece8df}
.modern-subpage .subpage-footer{padding-top:14px}
@media(max-width:1050px){.modern-subpage .subpage-stats{grid-template-columns:repeat(3,1fr)}.modern-subpage .custom-controls{grid-template-columns:1fr 1fr}.modern-subpage .modern-search{grid-column:1/-1}}
@media(max-width:760px){.modern-subpage .subpage-stats{grid-template-columns:repeat(2,1fr)}.modern-subpage .custom-controls{grid-template-columns:1fr}.modern-subpage .modern-search{grid-column:auto}.modern-subpage .subpage-feed{grid-template-columns:1fr}}


/* ============================================================
   KCSN v1.17 SUBPAGE ALIGNMENT + MEMORIAL POLISH
   ============================================================ */

/* Force every redesigned public subpage onto the same safe content rail. */
.modern-subpage .subpage-shell,
.modern-subpage .custom-shell,
.modern-subpage .detail-main,
.modern-subpage .info-main{
  width:min(1510px,95vw)!important;
  max-width:1510px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
  transform:none!important;
  left:auto!important;
  right:auto!important;
}

/* Custom page had legacy rules pulling the hero/table against the viewport edge. */
.modern-subpage.custom-page .custom-shell{
  position:relative!important;
  overflow:visible!important;
}
.modern-subpage.custom-page .subpage-hero,
.modern-subpage.custom-page .subpage-stats,
.modern-subpage.custom-page .custom-controls,
.modern-subpage.custom-page .leaderboard-frame,
.modern-subpage.custom-page .recent-section{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  transform:none!important;
}
.modern-subpage.custom-page .subpage-hero{
  overflow:visible!important;
}

/* Keep all subpage hero text aligned on one consistent left edge. */
.modern-subpage .subpage-hero{
  box-sizing:border-box!important;
}

/* Memorial atmosphere: restrained, still readable/accessibility-first. */
.modern-subpage.hall-page{
  background:
    radial-gradient(circle at 50% -8%,rgba(145,66,46,.07),transparent 30%),
    linear-gradient(180deg,#0c0d0c 0%,#090a09 70%,#0a0b0a 100%)!important;
}
.modern-subpage.hall-page .memorial-hero{
  border-bottom-color:rgba(176,92,67,.28)!important;
}
.modern-subpage.hall-page .memorial-hero h1{
  color:#ded3c8!important;
  text-shadow:0 0 12px rgba(154,72,55,.10);
}
.modern-subpage.hall-page .grave-list{
  border-color:rgba(116,91,80,.42)!important;
  background:
    linear-gradient(180deg,rgba(137,61,45,.025),transparent 34%),
    var(--mb-panel)!important;
}
.modern-subpage.hall-page .grave-row{
  border-bottom-color:#302c29!important;
}
.modern-subpage.hall-page .grave-row:hover{
  background:#1b1917!important;
}
.modern-subpage.hall-page .death-stamp{
  background:rgba(217,107,90,.035);
}
.modern-subpage.hall-page .grave-name a{
  text-shadow:
    0 0 4px rgba(217,107,90,.18),
    0 0 9px rgba(217,107,90,.07)!important;
}

/* Slightly stronger footer readability on all subpages. */
.modern-subpage + .modern-footer,
.modern-subpage .subpage-footer{
  color:#929188!important;
}

/* Keep safe gutters even on very wide displays. */
@media(min-width:1600px){
  .modern-subpage .subpage-shell,
  .modern-subpage .custom-shell,
  .modern-subpage .detail-main,
  .modern-subpage .info-main{
    width:min(1510px,94vw)!important;
  }
}
@media(max-width:760px){
  .modern-subpage .subpage-shell,
  .modern-subpage .custom-shell,
  .modern-subpage .detail-main,
  .modern-subpage .info-main{
    width:92vw!important;
  }
}
