
.detail-main{padding:30px 0 42px}
.subpage-hero{padding:34px 0 22px;border-bottom:1px solid var(--mb-border);margin-bottom:20px}
.subpage-hero h1{margin:5px 0 0;color:var(--mb-orange2);font:800 clamp(28px,3.2vw,42px)/1 Arial,Helvetica,sans-serif;letter-spacing:.5px}
.subpage-hero p{max-width:760px;margin:10px 0 0;color:var(--mb-muted);font-size:11px;line-height:1.65}
.split-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:30px}.split-hero p{max-width:520px;text-align:right}.memorial-hero h1{color:#d8c8b8}
.profile-crumb{padding:24px 0 14px;color:#77786f;font-size:9px;letter-spacing:.8px}.profile-crumb a{color:var(--mb-orange);text-decoration:none}.profile-crumb span{margin:0 7px}
.profile-head{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:18px;align-items:center;padding:20px;border:1px solid var(--mb-border);border-radius:10px;background:var(--mb-panel);box-shadow:var(--mb-shadow)}
.profile-avatar{height:92px;border:1px solid #4b4c43;border-radius:50%;display:grid;place-items:center;font:800 38px Arial,sans-serif;color:var(--mb-orange2);background:#11120f;box-shadow:0 0 18px rgba(240,138,36,.08)}
.profile-title h1{margin:4px 0 8px;font:800 clamp(28px,4vw,44px)/1 Arial,sans-serif;color:var(--mb-text);text-shadow:0 0 9px rgba(240,138,36,.12)}
.profile-id{margin-top:8px;font-size:8px;color:#77786f;word-break:break-all}.profile-signal{text-align:right}.profile-signal small{display:block;margin-top:7px;color:#84857c;font-size:8px}
.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;margin-top:16px}.detail-card{border:1px solid var(--mb-border);border-radius:9px;background:var(--mb-panel);overflow:hidden}.detail-card h2{margin:0;padding:12px 14px;border-bottom:1px solid var(--mb-border);color:var(--mb-orange);font:800 10px Consolas,monospace;letter-spacing:.8px}
.profile-stats{display:grid;grid-template-columns:repeat(4,1fr)}.profile-stats div{padding:17px;border-right:1px solid #2c2e29}.profile-stats div:last-child{border-right:0}.profile-stats span{display:block;margin-bottom:7px;color:#85857d;font-size:8px}.profile-stats strong{color:#e4e0d7;font:800 24px Arial,sans-serif}.profile-stats .hot strong{color:var(--mb-orange2)}
.casefile{padding:10px 14px}.case-row{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #2a2c27;font-size:9px}.case-row:last-child{border-bottom:0}.case-row span{color:#818179}.case-row b{color:#d0cdc4;text-align:right}
.history{padding:4px 14px 12px}.history-row{display:grid;grid-template-columns:150px 95px 1fr 1fr 1fr;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #292b27;font-size:9px}.history-row time{color:#77786f}.history-row strong{color:#cbc8bf}
.death-stamp{display:inline-flex;border:1px solid rgba(217,107,90,.45);border-radius:4px;color:#dc8577;padding:4px 7px;font-size:8px;letter-spacing:.7px}.back-link{display:inline-block;margin-top:14px;color:var(--mb-orange);text-decoration:none}.profile-error,.empty-page{padding:50px 20px;text-align:center;color:#8c8c83;border:1px solid var(--mb-border);border-radius:9px;background:var(--mb-panel)}.settings-digest{max-width:190px;overflow-wrap:anywhere}.last-words{display:block}.last-words span{display:block;margin-bottom:6px}.last-words b{display:block;text-align:left!important;color:#d9a050!important;font-style:italic;line-height:1.5}
.grave-list{border:1px solid var(--mb-border);border-radius:10px;background:var(--mb-panel);overflow:hidden}.grave-row{display:grid;grid-template-columns:58px minmax(220px,1fr) 100px 100px 150px 125px;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid #2c2e29}.grave-row:last-child{border-bottom:0}.grave-row:hover{background:#1b1d19}.grave-rank{color:#898980;font:800 20px Arial,sans-serif}.grave-row:nth-child(1) .grave-rank{color:var(--mb-orange2)}.grave-name a{color:#f0ede4;text-decoration:none;font:700 12px Arial,sans-serif;text-shadow:0 0 7px rgba(217,107,90,.12)}.grave-name small{display:block;margin-top:4px;color:#73746c;font-size:7px}.grave-stat span{display:block;color:#7e7f76;font-size:7px}.grave-stat b{display:block;margin-top:4px;color:#d1cec5;font-size:10px}.grave-quote{margin-top:7px;color:#c39b67;font-size:9px;font-style:italic;line-height:1.4}.grave-quote span{color:#7e7464;font-style:normal}
.record-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}.record-summary article,.record-cards article{border:1px solid var(--mb-border);border-radius:9px;background:var(--mb-panel);padding:15px}.record-summary span,.record-cards>article>span{display:block;color:#898980;font-size:8px;letter-spacing:.6px;margin-bottom:8px}.record-summary strong{color:var(--mb-orange2);font:800 27px Arial,sans-serif}
.record-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}.record-cards article{min-height:126px}.record-cards article.wide{grid-column:1/-1;min-height:auto}.record-holder{display:flex;flex-direction:column;gap:5px;color:inherit;text-decoration:none}.record-holder strong{color:#f0ede4;font:700 12px Arial,sans-serif}.record-holder b{color:var(--mb-orange2);font:800 20px Arial,sans-serif}.record-holder small{color:#808078;font-size:8px}.record-holder.horizontal{display:grid;grid-template-columns:1fr auto;align-items:center}.record-holder.horizontal small{grid-column:1/-1}
.records-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.record-list{padding:0 14px 12px}.record-row{display:grid;grid-template-columns:42px minmax(0,1fr) 80px 80px;gap:9px;align-items:center;padding:11px 0;border-bottom:1px solid #292b27;text-decoration:none;color:#aaa79e}.record-row:hover{background:#1a1c18}.record-rank{color:#85857c;font:800 17px Arial,sans-serif}.record-row:first-child .record-rank{color:var(--mb-orange2)}.record-name b{display:block;color:#ece8df}.record-name small,.record-row>span>small{display:block;color:#72736b;font-size:7px}.record-row>span>b{display:block;margin-top:3px;color:#c8c5bc;font-size:10px}.record-empty{color:#77786f;font-size:9px}
@media(max-width:900px){.split-hero{display:block}.split-hero p{text-align:left}.profile-head{grid-template-columns:72px 1fr}.profile-avatar{height:72px}.profile-signal{grid-column:1/-1;text-align:left}.detail-grid{grid-template-columns:1fr}.profile-stats{grid-template-columns:repeat(2,1fr)}.grave-row{grid-template-columns:42px 1fr 80px 80px}.grave-row .grave-stat:nth-last-child(-n+2){display:none}.record-summary,.record-cards{grid-template-columns:repeat(2,1fr)}.records-grid{grid-template-columns:1fr}}
@media(max-width:600px){.record-summary,.record-cards{grid-template-columns:1fr}.record-holder.horizontal{display:flex}.record-row{grid-template-columns:36px 1fr 66px}.record-row>span:last-child{display:none}.history-row{grid-template-columns:1fr 90px}.history-row strong:nth-last-child(-n+2){display:none}}


/* v1.17 Hall of the Dead polish */
.hall-page .grave-rank{
  text-shadow:0 0 8px rgba(240,138,36,.08);
}
.hall-page .grave-row:nth-child(1) .grave-rank{
  color:#e69655!important;
}
.hall-page .grave-stat b{
  color:#d7d1c9!important;
}
.hall-page .grave-quote{
  color:#c6a06f!important;
}


/* ============================================================
   KCSN v1.18 SURVIVOR PROFILE POLISH
   ============================================================ */

/* Tighter profile hero */
.survivor-page .profile-head{
  grid-template-columns:78px minmax(0,1fr) auto!important;
  gap:16px!important;
  padding:16px 18px!important;
}
.survivor-page .profile-avatar{
  width:78px!important;
  height:78px!important;
  border-radius:50%!important;
  font-size:31px!important;
  transition:none!important;
}

/* Signal-aware avatar glow */
.survivor-page .profile-avatar.avatar-online{
  border-color:rgba(127,214,128,.55)!important;
  box-shadow:
    0 0 8px rgba(127,214,128,.28),
    0 0 22px rgba(127,214,128,.10)!important;
}
.survivor-page .profile-avatar.avatar-signal-lost{
  border-color:rgba(231,180,79,.58)!important;
  box-shadow:
    0 0 8px rgba(231,180,79,.26),
    0 0 22px rgba(231,180,79,.09)!important;
}
.survivor-page .profile-avatar.avatar-offline{
  border-color:#4a4b45!important;
  box-shadow:
    0 0 7px rgba(170,170,160,.10)!important;
}
.survivor-page .profile-avatar.avatar-deceased{
  border-color:rgba(217,107,90,.58)!important;
  color:#d98577!important;
  box-shadow:
    0 0 8px rgba(217,107,90,.25),
    0 0 22px rgba(217,107,90,.08)!important;
}

/* Survivor name is still prominent, but no longer dominates the whole page */
.survivor-page .profile-title h1{
  font-size:clamp(27px,3.4vw,39px)!important;
  line-height:1.02!important;
  margin-bottom:7px!important;
}

/* Slightly tighter title/meta area */
.survivor-page .profile-title .eyebrow,
.survivor-page .profile-title .section-kicker{
  margin-bottom:5px!important;
}
.survivor-page .profile-id{
  margin-top:7px!important;
  font-size:8.5px!important;
}

/* Case file easier to read */
.survivor-page .casefile{
  padding:8px 14px 12px!important;
}
.survivor-page .case-row{
  padding:11px 0!important;
  font-size:10px!important;
  line-height:1.45!important;
}
.survivor-page .case-row span{
  color:#929188!important;
  font-size:9px!important;
}
.survivor-page .case-row b{
  color:#ddd9d0!important;
  font-size:10px!important;
}

/* Field stats remain large but slightly less oversized */
.survivor-page .profile-stats div{
  padding:15px 17px!important;
}
.survivor-page .profile-stats strong{
  font-size:22px!important;
}
.survivor-page .profile-stats span{
  font-size:8.5px!important;
}

/* Compact history rows, especially when only one report exists */
.survivor-page .history{
  padding:2px 14px 9px!important;
}
.survivor-page .history-row{
  min-height:46px!important;
  padding:9px 0!important;
  font-size:9.5px!important;
}
.survivor-page .detail-card:has(.history) h2{
  padding-top:11px!important;
  padding-bottom:11px!important;
}

/* More balanced spacing between profile header and detail grid */
.survivor-page .detail-grid{
  margin-top:14px!important;
  gap:14px!important;
}

/* Signal summary on the right */
.survivor-page .profile-signal{
  min-width:150px;
}
.survivor-page .profile-signal small{
  font-size:8.5px!important;
  color:#929188!important;
}

@media(max-width:900px){
  .survivor-page .profile-head{
    grid-template-columns:68px 1fr!important;
  }
  .survivor-page .profile-avatar{
    width:68px!important;
    height:68px!important;
    font-size:27px!important;
  }
  .survivor-page .profile-signal{
    min-width:0;
  }
}


/* ============================================================
   KCSN v1.19 SURVIVOR ACHIEVEMENTS
   ============================================================ */
.achievement-wrap{
  margin-top:14px;
}
.achievement-panel{
  overflow:hidden;
}
.achievement-head{
  padding:0;
}
.achievement-head h2{
  margin:0!important;
}
.achievement-head p{
  margin:-31px 14px 0 auto;
  width:max-content;
  color:#8d8d84;
  font-size:8px;
  letter-spacing:.7px;
  pointer-events:none;
}
.achievement-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:14px;
}
.achievement-badge{
  min-height:92px;
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:11px;
  align-items:center;
  padding:11px;
  border:1px solid #30322c;
  border-radius:8px;
  background:#141613;
}
.achievement-emblem{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border:1px solid #45473f;
  border-radius:50%;
  background:#0e0f0d;
  color:#818279;
  font:800 14px/1 Arial,sans-serif;
  letter-spacing:-.4px;
}
.achievement-copy{
  min-width:0;
}
.achievement-copy strong{
  display:block;
  color:#aaa89f;
  font:800 10px/1.2 Arial,sans-serif;
  letter-spacing:.3px;
}
.achievement-copy span{
  display:block;
  margin-top:5px;
  color:#77786f;
  font-size:8px;
  line-height:1.45;
}
.achievement-copy small{
  display:block;
  margin-top:7px;
  color:#6e6f68;
  font-size:7px;
  letter-spacing:.6px;
}
.achievement-badge.earned{
  border-color:rgba(240,138,36,.36);
  background:
    radial-gradient(circle at 0% 50%,rgba(240,138,36,.075),transparent 45%),
    #171815;
  box-shadow:0 0 15px rgba(240,138,36,.035);
}
.achievement-badge.earned .achievement-emblem{
  border-color:rgba(240,138,36,.58);
  color:var(--mb-orange2);
  background:rgba(240,138,36,.07);
  box-shadow:
    0 0 7px rgba(240,138,36,.18),
    0 0 15px rgba(240,138,36,.06);
}
.achievement-badge.earned .achievement-copy strong{
  color:#f1ede4;
  text-shadow:0 0 6px rgba(240,138,36,.12);
}
.achievement-badge.earned .achievement-copy small{
  color:#d8903f;
}
.achievement-badge.locked{
  opacity:.58;
}
.signal-history-card{
  margin-top:14px!important;
}

@media(max-width:720px){
  .achievement-grid{
    grid-template-columns:1fr;
  }
}
