/* KARAMBIT.NETWORK / Crimson Command Header V2
   Scoped to homepage classes. Keeps Steam, forum, motion and admin JS hooks. */
.header {
  position: relative; z-index: 60; padding: 0 !important;
  background: linear-gradient(180deg,rgba(14,11,17,.99),rgba(8,9,14,.97)) !important;
  border-bottom: 1px solid rgba(241,66,90,.29) !important;
  box-shadow: 0 10px 45px #0009, 0 1px 0 #ed35462b;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.header::after {
  content:""; position:absolute; pointer-events:none; bottom:-1px; left:12%; width:28%; height:1px;
  background:linear-gradient(90deg,transparent,#ff3856 48%,transparent);
  box-shadow:0 0 17px #ff29484b;
}
.header-utility {
  position:relative; z-index:2; border-bottom:1px solid #ffffff0c;
  background:linear-gradient(90deg,#180d15,#101117 45%,#140c13);
}
.header-utility-inner {
  width:min(1440px,calc(100% - 64px)); height:37px; margin:auto;
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  font-size:9px; font-weight:800; letter-spacing:.16em; color:#9c98a3;
}
.header-utility-left {display:inline-flex;align-items:center;gap:12px;white-space:nowrap}
.header-utility-left .utility-slash {color:#f83e57;font-weight:1000;font-size:14px}
.header-utility-left strong {color:#e2dce0;font-weight:800}
.header-utility-left .utility-divider{color:#60434b}
.header-utility-right{display:inline-flex;align-items:center;gap:18px;margin-left:auto}
.header-utility-status{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:#c7aeb4}
.header-utility-status i {width:6px;height:6px;border-radius:50%;background:#e83a53;box-shadow:0 0 12px #ec3b5a81}
.header .motion {
  position:static !important; margin:0 !important; z-index:auto !important; display:inline-flex;
  padding:5px 8px; min-height:25px; font-size:9px; letter-spacing:.1em;
  border:1px solid #6e394666 !important; border-radius:4px !important;
  background:#21121c !important; color:#e4c9cf !important;
  box-shadow:none !important; white-space:nowrap; cursor:pointer;
}
.header .motion:hover{border-color:#eb5874 !important;background:#311824 !important}
.header .motion-track {width:25px;height:14px;background:#df3f57}
.header .motion-thumb {width:10px;height:10px;transform:translateX(11px)}
.header .motion[aria-pressed="false"] .motion-thumb{transform:translateX(0)}
.header .header-inner {
  width:min(1440px,calc(100% - 64px)) !important;
  min-height:94px; padding:13px 0 !important;
  display:grid !important; grid-template-columns:minmax(280px,1fr) auto auto !important;
  align-items:center;gap:clamp(12px,2.2vw,30px) !important;
}
.header .brand {
  display:flex;align-items:center;gap:14px;
  min-width:0 !important;margin:0 !important;text-decoration:none;
  color:#fff;white-space:nowrap;
}
.header .brand-image{
  position:relative; flex:0 0 68px; width:68px;height:68px;padding:3px;display:block;
  background:linear-gradient(135deg,#8e293a,#341b23 37%,#d7344e 70%,#461c27);
  border:1px solid #df506872; border-radius:10px;overflow:hidden;
  box-shadow:0 5px 18px #0009,inset 0 1px 0 #ffb0b32e,0 0 0 3px #e8344b0a;
  transition:transform .22s ease,box-shadow .22s ease;
}
.header .brand-image::before{
  content:"";pointer-events:none;position:absolute;inset:3px;z-index:2;border-radius:6px;
  box-shadow:inset 0 0 0 1px #ffffff20,inset 0 0 22px #0005;
}
.header .brand-image img{
  display:block;width:100%;height:100%;object-fit:cover;border-radius:6px;
}
.header .brand:hover .brand-image{
  transform:translateY(-2px);box-shadow:0 9px 26px #000b,0 0 20px #ea30432e;
}
.header .brand-lockup{min-width:0;display:flex;flex-direction:column;gap:3px;justify-content:center}
.header .brand-name{
  display:block;color:#faf5f7;font-size:clamp(18px,1.5vw,23px);
  font-weight:950;line-height:1;letter-spacing:-.035em;text-transform:uppercase;
  text-shadow:0 2px 14px #0009;
}
.header .brand-name span {color:#ef3c55}
.header .brand-tagline{
  color:#a9a4b0;font-size:9px;font-weight:850;letter-spacing:.19em;
  line-height:1.4;white-space:nowrap;
}
.header .nav{
  display:flex;align-items:center;justify-content:flex-end;gap:3px;
  margin:0 !important; flex-basis:auto !important;order:initial !important;
}
.header .nav a{
  display:inline-flex;align-items:center;justify-content:center;min-height:39px;
  padding:10px 12px !important;border:1px solid transparent;border-radius:6px;
  color:#bdb8c3 !important;font-size:10px !important;font-weight:850 !important;
  letter-spacing:.075em;text-decoration:none;white-space:nowrap;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.header .nav a:hover,.header .nav a:focus-visible{
  color:#fff !important;background:#ffffff0c;border-color:#ffffff1b;
}
.header .nav a[aria-current="page"]{
  color:#fff !important;background:#e83d501b;border-color:#d9364d50;
  box-shadow:inset 0 -2px 0 #eb4056;
}
.header .nav a[href="/course/"]{
  color:#f7d6dc !important;border-color:#a43b505c;
  background:linear-gradient(145deg,#4b1927b0,#28131f99);
}
.header .nav a[href="/course/"]:hover{background:#773043;color:#fff !important;border-color:#ec5369}
.header .header-actions{display:flex;align-items:center;gap:8px;margin:0 !important;min-width:0;justify-content:flex-end}
.header .steam-button{
  min-height:43px;min-width:146px;max-width:204px;padding:11px 15px;
  background:linear-gradient(115deg,#db314e,#a5203b) !important;
  border:1px solid #ff6a81 !important;border-radius:6px !important;
  box-shadow:inset 0 1px 0 #ff9b9a44,0 5px 20px #eb234137;
  color:#fff !important;text-transform:none;font-size:11px !important;
  font-weight:850;letter-spacing:.015em;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.header .steam-button:hover{
  background:linear-gradient(115deg,#ef4563,#c12a48) !important;
  transform:translateY(-1px);box-shadow:0 8px 25px #e21d4653;
}
.header .account-control{min-width:0}
.header .account-menu{border:1px solid #d148604f;background:#171018f7;backdrop-filter:blur(16px);box-shadow:0 20px 60px #000e}
.header a:focus-visible,.header button:focus-visible{outline:2px solid #ff8a9e;outline-offset:3px}
@media(max-width:1230px){
  .header .header-inner{grid-template-columns:minmax(240px,1fr) auto !important;row-gap:10px !important;}
  .header .nav{grid-column:1 / -1;grid-row:2;justify-content:center;order:initial !important;
    border-top:1px solid #ffffff0b;padding-top:8px;}
  .header .header-actions{grid-column:2;grid-row:1;}
}
@media(max-width:700px){
  .header-utility-inner,.header .header-inner{width:calc(100% - 32px) !important;}
  .header-utility-inner{height:33px;font-size:8px}
  .header-utility-left .utility-divider,.header-utility-left .utility-subtitle{display:none}
  .header-utility-status{display:none}
  .header .header-inner{min-height:auto;grid-template-columns:minmax(0,1fr) auto !important;gap:9px !important;padding:12px 0 10px !important;}
  .header .brand{gap:10px;}
  .header .brand-image{width:55px;height:55px;flex-basis:55px;padding:2px;}
  .header .brand-name{font-size:clamp(16px,3.4vw,20px);}
  .header .brand-tagline{font-size:8px;letter-spacing:.09em;}
  .header .steam-button{min-width:120px;max-width:156px;padding:9px 10px;font-size:10px !important;}
  .header .nav{grid-column:1 / -1;grid-row:2;display:flex;overflow-x:auto;max-width:100%;gap:3px;
    justify-content:flex-start;padding:9px 0 1px;scrollbar-width:thin;scrollbar-color:#71384a transparent;}
  .header .nav a{padding:8px 11px !important;min-height:36px;font-size:10px !important;}
}
@media(max-width:420px){
  .header-utility-inner,.header .header-inner{width:calc(100% - 20px) !important;}
  .header .brand{gap:7px;}
  .header .brand-image{width:44px;height:44px;flex-basis:44px;}
  .header .brand-name{font-size:14px;}
  .header .brand-tagline{display:none;}
  .header .steam-button{min-width:0;width:113px;max-width:113px;font-size:9px !important;padding:8px;}
  .header .motion{font-size:8px;}
}
@media(prefers-reduced-motion:reduce){
  .header *, .header *::before,.header *::after{animation:none !important;transition:none !important;}
}
