
:root {
  --bg: #0B1F17;
  --bg-alt: #0F2A1F;
  --card: #12281F;
  --line: #1F3D2E;
  --green: #1C6E42;
  --green-bright: #2E9A5C;
  --gold: #F2C744;
  --chalk: #E8ECE8;
  --muted: #8FA79A;
  --red: #E4483C;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6em;
  width: 100%;
  background-color: var(--bg);
  color: var(--chalk);
}

a:link, a:visited { color: var(--green-bright); text-decoration: none; }
.homeTable a:link, .homeTable a:visited { font-weight: bold; text-decoration: none; }
a:active, a:hover { color: var(--gold); text-decoration: none; }

p {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--chalk);
  text-align: left;
  margin: 0 0 10px 0;
}

h1 {
  font-family: 'Anton', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 2.2rem;
  color: var(--green-bright);
  font-weight: 400;
  margin: 0 0 10px 0;
}
h2 {
  font-family: 'Anton', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.4rem;
  color: var(--green-bright);
  font-weight: 400;
  margin: 0 0 12px 0;
}
h3 {
  font-family: 'Anton', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 400;
  margin: 0 0 6px 0;
}

/* ===== LAYOUT ===== */
#lms_container {
  width: 100%;
  max-width: 1024px;
  margin: auto;
  padding: 0 20px 60px;
}

/* ===== HEADER (logo + horizontal nav) ===== */
#lms_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
#lms_logo_area {
  margin: 0;
}
#lms_logo img { display: block; max-width: 170px; height: auto; }
#lms_slogan {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lms_menu {
  margin: 0;
  padding: 0;
  border-top: none;
}
.lms_menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.lms_menu li a {
  display: block;
  padding: 9px 16px;
  margin: 0;
  color: var(--chalk);
  font-family: 'Inter', Tahoma, Geneva, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  background: transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.lms_menu li a:hover,
.lms_menu li .current {
  background: var(--green);
  color: var(--chalk);
  text-decoration: none;
}

#lms_content_area {
  width: 100%;
}

/* ===== RIGHT COLUMN ===== */
#lms_right {
  flex: 1;
  min-width: 0;
  padding: 0;
}
#lms_right_top {
  width: 100%;
  padding: 0 0 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
#lms_right_mid {
  width: 100%;
  padding: 0 0 10px 0;
}
#lms_right_bottom {
  width: 100%;
  margin-top: 20px;
}

.lms_one_col {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 20px 0;
  padding: 20px;
}
.lms_one_col img {
  float: left;
  border-radius: 8px;
  margin: 0 15px 15px 0;
}

.lms_two_col {
  float: left;
  width: calc(50% - 10px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 20px 20px 0;
  padding: 18px;
}
.lms_two_col_right {
  margin: 0 0 20px 0;
}
.lms_two_col img { float: left; margin: 10px 10px 10px 0; }

.lms_v_line {
  float: left;
  width: 1px;
  min-height: 700px;
  border-left: 1px solid var(--line);
  margin: 0 2px 0 0;
}
.lms_h_line {
  height: 0;
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
}

.lms_more {
  float: right;
  background: var(--gold);
  color: var(--bg);
  border-radius: 6px;
  width: auto;
  padding: 5px 14px;
  height: auto;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  margin: 10px 0;
}
.lms_more a { color: var(--bg); text-decoration: none; }

.lms_list {
  list-style: none;
  font-family: 'Inter', Tahoma, Geneva, sans-serif;
  font-size: 14px;
  color: var(--chalk);
  padding: 0;
}
.lms_list li {
  position: relative;
  padding: 0 0 0 18px;
  margin: 0 0 8px 0;
}
.lms_list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

#lms_footer {
  width: 100%;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  margin: 0;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
#lms_footer a { color: var(--green-bright); }

.cleaner { clear: both; height: 0; margin: 0; padding: 0; }
.cleaner img { margin: 0 0 0 30px; }

/* ===== TABLES ===== */
.homeTable {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
}
.homeTable td, .homeTable th {
  border: 1px solid var(--muted);
  margin: 0;
  padding: 8px 10px;
  text-align: left;
}
.homeTable thead th {
  background: var(--green);
  color: var(--chalk);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}

a.backlink { padding: 10px; }

/* ===== BUTTONS ===== */
.button, .button:visited {
  display: inline-block;
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: none;
  text-shadow: none;
  cursor: pointer;
  font-size: 0.85rem;
  margin: 10px 3px 4px 0;
  border: none;
  transition: background 0.15s ease;
}
.button, .button:visited {
  background-color: var(--gold);
  color: var(--bg);
}
.button:hover {
  background-color: var(--green-bright);
  color: var(--chalk);
}

#register_button .button, .button:visited {
  background-color: var(--green);
  color: var(--chalk);
}

img.ajaxload { margin-top: 10px; }

.error { height: 15px; }
div.errorimg {
  padding-left: 20px;
  float: left;
  background: transparent url(../images/error.png) no-repeat center left;
  height: 15px;
  width: 140px;
  color: var(--red);
}

/* ===== ADMIN (kept functional, restyled minimally) ===== */
.adminpanel { width: 100%; max-width: 1200px; text-align: center; margin: 0 auto; }
.map { margin: 0 auto; width: 560px; }
table.admin {
  font-size: 11px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--chalk);
}
table.admin thead tr th { text-align: left; background: var(--green); padding: 8px; }
tr.statusblocked { background-color: var(--line); }
tr.statusadmin { background-color: #234a6b; }
table.admin tbody tr td { padding: 6px 8px; }
table.admin tbody tr:hover { background-color: var(--bg-alt); }

.admin_change, .admin_result {
  float: left; height: 16px; width: 16px;
  background: transparent url(../images/wrench.png) no-repeat center right;
  cursor: pointer;
}
.admin_delete {
  float: left; height: 16px; width: 16px;
  background: transparent url(../images/cross.png) no-repeat center right;
  cursor: pointer;
}
.admin_no { float: left; margin-left: 20px; }

/* ===== FORMS ===== */
form.login, form.register, form.editaccount, .forgotpw, .adminpanel {
  position: relative;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  padding: 4px 0 0 0;
  text-align: left;
}
form.login, form.register { width: auto; }
#_register_btt { margin-left: 15px; }
form.editaccount { width: 400px; }
form.editaccount input, .forgotpw input { width: 300px; }
.forgotpw { width: 400px; height: 400px; }
form.register label, form.editaccount label { display: block; }
form.register input { width: 300px; }

form label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.userSummary label {
  margin: 12px 0 4px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login_row { float: left; clear: both; width: 100%; }
.login_row input[type=checkbox] { float: left; }
.login_row label { float: left; }

input[type=text], input[type=password] {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--chalk);
  border-radius: 6px;
  padding: 9px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}
input:focus {
  background-color: var(--bg-alt);
  outline: 1px solid var(--green-bright);
}

form .login, form .fieldset1, form .fieldset2 {
  border: none;
  padding: 0;
  margin: 0 0 14px 0;
  float: none;
  width: 100% !important;
}
form legend {
  text-align: left;
  color: var(--green-bright);
  font-weight: bold;
  font-size: 14px;
  padding: 0;
  margin: 0 0 8px 0;
}

.error {
  color: var(--red);
  float: left;
  padding: 2px;
  font-size: 12px;
  height: 18px;
  clear: right;
  width: 100%;
  font-weight: 400;
}
.error_captcha {
  color: var(--red);
  float: left;
  padding: 2px;
  font-size: 12px;
  height: 20px;
  width: 75px;
  font-weight: 400;
}
.captcha_message { width: 70px; float: left; }

.linkback { margin: 0 auto; width: 100px; text-align: center; height: 30px; }

.highlightRow {
  font-weight: 700;
  color: var(--red);
}

.highlightGreen {
  font-weight: 700;
  color: var(--green-bright);
}

.highlightGold {
  font-weight: 700;
  color: var(--gold);
}

/* ===== TABLESORTER ===== */
table.tablesorter th { text-align: left; }
table.tablesorter .even { background-color: var(--line); }
table.tablesorter .odd { background-color: transparent; }
table.tablesorter .header {
  background-color: var(--green);
  color: var(--chalk);
  padding-left: 16px;
  padding-top: 8px;
  height: auto;
  cursor: pointer;
}
table.tablesorterBAK .headerSortUp {
  background-image: url(../images/asc.png);
  background-repeat: no-repeat;
  background-position: right center;
}
table.tablesorterBAK .headerSortDown {
  background-image: url(../images/desc.png);
  background-repeat: no-repeat;
  background-position: right center;
}

/* ===== PITCH-LINE DIVIDER ===== */
.pitch-line {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pitch-line::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--line);
}
.pitch-line::after {
  content: "";
  width: 14px; height: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
}

/* ===== SHARED SECTION / RULES-PAGE STYLES ===== */
.section { padding: 36px 20px; }
.section-title { font-size: 1.3rem; margin-bottom: 20px; }

ol.rules-list { list-style: none; counter-reset: rule; }
ol.rules-list > li {
  counter-increment: rule;
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--chalk);
}
ol.rules-list > li:last-child { border-bottom: 1px solid var(--line); }
ol.rules-list > li::before {
  content: counter(rule);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 22px;
  padding-top: 1px;
}
ol.rules-list > li p { margin: 0; }
ol.rules-list a { word-break: break-word; }

.fee-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.team-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-top: 6px;
}
.team-block-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.team-grid span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--chalk);
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}

.example-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.example-round {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.example-line { font-size: 0.88rem; line-height: 1.6; }
.result-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 4px;
}
.result-pill.win { background: var(--green); color: var(--chalk); }
.result-pill.out { background: var(--red); color: #fff; }
/* ===== WELCOME CARD ===== */
.welcome-row { margin-bottom: 14px; }
.page-h1 {
  font-size: 1.3rem;
  color: var(--chalk);
}
.page-h1 .name { color: var(--green-bright); }

.status-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(228,72,60,0.12);
  border: 1px solid var(--red);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.status-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.status-badge .text { font-size: 0.85rem; font-weight: 600; color: var(--chalk); }
.status-badge .text b { color: var(--red); }
.status-badge.alive {
  background: rgba(46,154,92,0.12);
  border-color: var(--green-bright);
}
.status-badge.alive .dot { background: var(--green-bright); }
.status-badge.alive .text b { color: var(--green-bright); }

.alert-banner {
  background: rgba(242,199,68,0.1);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--chalk);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-block {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.stat-block.wide {
  grid-column: span 3;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}
.stat-num {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: 1.3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-block.wide .stat-num { font-size: 1.5rem; margin-bottom: 0; }
.stat-label {
  font-family: 'Anton', sans-serif;
  font-size: 0.9rem;
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-block.wide { grid-column: span 2; }
}
/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  #lms_header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .lms_menu ul { width: 100%; }
  .lms_menu li a { padding: 10px 12px; font-size: 0.78rem; }
  .lms_two_col {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }
}