/* Skeuomorphic vBulletin-ish / CS 1.6 themed stylesheet for tungstrike.win */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

* { box-sizing: border-box; }

html { font-size: 15px; }

body {
  margin: 0;
  padding: 32px;
  font-family: Verdana, Arial, Tahoma, Calibri, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #222;
  background: #1a1a1a url('/img/bg/tuscan.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}

a { color: #1d4e89; text-decoration: underline; }
a:hover { color: #d35400; text-decoration: underline; }

#wrapper {
  max-width: 1140px;
  margin: 0 auto;
  background: #f3f3f3;
  border: 1px solid #555;
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 0 0 1px rgba(0,0,0,0.25),
    0 8px 24px rgba(0,0,0,0.55);
  overflow: hidden;
}

/* Header */
#header {
  position: relative;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.12) 0%, rgba(0,0,0,0.25) 100%),
    linear-gradient(135deg, #2b4f81 0%, #1a3050 60%, #0f1c2e 100%);
  color: #fff;
  padding: 22px 24px;
  border-bottom: 1px solid #0f1c2e;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
#header::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  background: url('/img/brand/neegy-white.png') no-repeat center/contain;
  opacity: 0.92;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.5));
}
#header h1 {
  margin: 0;
  font-family: "Archivo Black", "Impact", sans-serif;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 #000,
    0 3px 6px rgba(0,0,0,0.55),
    0 0 18px rgba(100,180,255,0.35);
  line-height: 1.05;
}
#header p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #bcd3ea;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

/* Navigation */
#nav {
  background: linear-gradient(to bottom, #5c7fa8 0%, #3d5d82 50%, #2d4a6b 51%, #3d5d82 100%);
  padding: 0 10px;
  border-top: 1px solid #7fa3c8;
  border-bottom: 1px solid #1a2e44;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
#nav a {
  display: inline-block;
  padding: 10px 16px;
  margin: 6px 2px 0;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0,0,0,0.6);
  background: linear-gradient(to bottom, #7a9cc1 0%, #4f739c 50%, #3a5a7e 51%, #4f739c 100%);
  border: 1px solid #29405c;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.2) inset;
}
#nav a:hover {
  background: linear-gradient(to bottom, #92b5db 0%, #5f87b5 50%, #466a94 51%, #5f87b5 100%);
}
#nav a.active {
  background: linear-gradient(to bottom, #f3f3f3 0%, #e0e0e0 100%);
  color: #1a3050;
  text-shadow: none;
  border-color: #1a3050;
}

/* Content area */
#content {
  padding: 18px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 200px),
    #f3f3f3;
}

/* Panels */
.panel {
  border: 1px solid #8a93a3;
  border-radius: 5px;
  margin-bottom: 18px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 2px 5px rgba(0,0,0,0.12);
}
.panel-head {
  background: linear-gradient(to bottom, #7a9cc1 0%, #4f739c 50%, #3a5a7e 51%, #4f739c 100%);
  color: #fff;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
  border-bottom: 1px solid #2a415e;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset;
}
.panel-body {
  padding: 14px;
  background: #fafafa;
}
.panel-foot {
  padding: 8px 14px;
  font-size: 12px;
  color: #555;
  background: #e8eaee;
  border-top: 1px solid #d0d4dc;
  border-radius: 0 0 4px 4px;
}

/* Tables */
.tborder {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #9aa3b3;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.tborder th {
  background: linear-gradient(to bottom, #e4e7ed 0%, #c9ced8 100%);
  color: #2b3544;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: bold;
  border-bottom: 1px solid #9aa3b3;
  border-right: 1px solid #b8bec8;
  text-align: left;
}
.tborder th:last-child { border-right: none; }
.tborder td {
  padding: 9px 10px;
  border-bottom: 1px solid #d9dde4;
  border-right: 1px solid #e4e7ed;
  vertical-align: middle;
}
.tborder td:last-child { border-right: none; }
.tborder tr:last-child td { border-bottom: none; }
.alt1 { background: #f7f7f7; }
.alt2 { background: #eceff4; }
.tborder tr:hover td { background: #e2e7f0; }

.small { font-size: 12px; color: #555; }
.num { text-align: right; }
.center { text-align: center; }

/* Rank badges */
.rank {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.2);
  box-shadow: 0 1px 1px rgba(0,0,0,0.15);
}
.rank-staff { background: linear-gradient(to bottom, #e74c3c, #c0392b); color: #fff; }
.rank-senior { background: linear-gradient(to bottom, #8e44ad, #6c3483); color: #fff; }
.rank-vip { background: linear-gradient(to bottom, #f1c40f, #d4ac0d); color: #000; }
.rank-pro { background: linear-gradient(to bottom, #3498db, #2471a3); color: #fff; }
.rank-elite { background: linear-gradient(to bottom, #e74c3c, #b03a2e); color: #fff; }

/* Buttons / inputs */
input[type="text"], input[type="password"] {
  border: 1px solid #999;
  border-radius: 3px;
  padding: 5px 7px;
  font-family: inherit;
  font-size: 13px;
  background: linear-gradient(to bottom, #fff, #f0f0f0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08) inset;
}
button, .btn {
  display: inline-block;
  border: 1px solid #6c7a8d;
  border-radius: 4px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  color: #222;
  text-decoration: none;
  background: linear-gradient(to bottom, #f7f9fb 0%, #d7dbe1 50%, #c4c9d1 51%, #d7dbe1 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 1px 2px rgba(0,0,0,0.15);
  cursor: pointer;
}
button:hover, .btn:hover {
  background: linear-gradient(to bottom, #fff 0%, #e2e6ec 50%, #d0d5dd 51%, #e2e6ec 100%);
  color: #222;
}
button:active, .btn:active {
  box-shadow: 0 1px 3px rgba(0,0,0,0.25) inset;
}

/* Footer */
#footer {
  background: linear-gradient(to bottom, #e4e7ed 0%, #c9ced8 100%);
  padding: 12px;
  font-size: 12px;
  color: #444;
  text-align: center;
  border-top: 1px solid #9aa3b3;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

/* Lock bar */
.lockbar {
  background: #fff9e6;
  border: 1px solid #e6c35c;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 16px;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08) inset;
}

/* Decorative watermark */
.watermark {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 170px;
  height: 170px;
  background: url('/img/csart/cs-ct-standing.png') no-repeat center/contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Responsive */
@media (max-width: 760px) {
  #header h1 { font-size: 34px; }
  #header::after { width: 56px; height: 56px; }
  #nav a { padding: 8px 10px; font-size: 12px; }
  html { font-size: 14px; }
}

/* Clickable player names in tables */
a.pname { color: #14202e; text-decoration: none; }
a.pname:hover { text-decoration: underline; }

/* ===== Player profile (modern tiles, same theme) ===== */
.pf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, #2b4f81 0%, #1a3050 60%, #0f1c2e 100%);
  border: 1px solid #0f1c2e;
  border-radius: 5px;
  padding: 16px 18px;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 2px 6px rgba(0,0,0,0.3);
}
.pf-head .who .n {
  font-family: "Archivo Black", "Impact", sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 #000, 0 2px 4px rgba(0,0,0,0.5);
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.pf-head .who .r {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #bcd3ea;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}
.pf-elo { text-align: right; }
.pf-elo .n {
  font-family: "Archivo Black", "Impact", sans-serif;
  font-size: 40px;
  color: #ffd76a;
  text-shadow: 0 1px 0 #7a5b00, 0 2px 6px rgba(0,0,0,0.55);
  line-height: 1;
}
.pf-elo .l { display: block; font-size: 11px; color: #bcd3ea; letter-spacing: 2px; }
.pf-pos {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
.pf-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.statcard {
  background: #fff;
  border: 1px solid #9aa3b3;
  border-radius: 5px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 2px 4px rgba(0,0,0,0.12);
}
.statcard .v {
  font-family: "Archivo Black", "Impact", sans-serif;
  font-size: 24px;
  color: #1a3050;
  line-height: 1.1;
}
.statcard .l {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 760px) {
  .pf-cards { grid-template-columns: repeat(2, 1fr); }
  .pf-grid { grid-template-columns: 1fr; }
}
