:root {
  --bg: #0D0F0B;
  --panel: #13150F;
  --ink: #EEFBD9;
  --muted: #C2E38D;
  --accent-1: #9CFF00;
  --accent-2: #82D400;
  --accent-3: #5E9900;
  --danger: #ff4d6d;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 80% -10%,
      rgba(156, 255, 0, 0.1),
      transparent 60%),
    radial-gradient(1000px 500px at -10% 20%,
      rgba(94, 153, 0, 0.12),
      transparent 60%),
    var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

a {
  color: var(--muted);
  text-decoration: none;
}

a:hover {
  color: var(--accent-1);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg,
      rgba(19, 21, 15, 0.95),
      rgba(19, 21, 15, 0.65));
  border-bottom: 1px solid rgba(194, 227, 141, 0.12);
  backdrop-filter: blur(6px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo-box {
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 1px;
  width: 44px;
  height: 32px;
  border: 1px solid rgba(194, 227, 141, 0.3);
  background: #11140D;
  color: var(--accent-1);
}

.brand-text {
  opacity: 0.9;
}

.links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  align-items: center;
}

.menu-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  border: 1px solid rgba(194, 227, 141, 0.25);
  padding: 6px 10px;
  border-radius: 10px;
}

.links a {
  padding: 8px 10px;
  border-radius: 10px;
}

.links a:hover {
  background: rgba(156, 255, 0, 0.08);
}

.hero {
  padding: 64px 0 20px;
  border-bottom: 1px solid rgba(194, 227, 141, 0.12);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.hero h1 {
  font-size: 64px;
  line-height: 1;
  margin: 0;
}

.hero h1 span {
  color: var(--accent-1);
}

.hero p {
  margin-top: 10px;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  background: var(--accent-2);
  color: #172008;
  border: 1px solid var(--accent-3);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.2);
  color: #172008;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(194, 227, 141, 0.35);
}

.meta-card {
  background: var(--panel);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(194, 227, 141, 0.18);
  margin-bottom: 10px;

  /* display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center; */
}

.tag {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 12px;
  padding: 6px 10px;
  color: #121D00;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 999px;
}

.countdown {
  font-size: 28px;
  font-weight: 800;
}

.server-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(194, 227, 141, 0.3);
}

.server-pill.online {
  color: var(--accent-1);
  border-color: rgba(156, 255, 0, 0.5);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.head-actions {
  margin-left: auto;
}

.register {
  padding: 46px 0 10px;
}

.register-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  background: linear-gradient(135deg,
      rgba(156, 255, 0, 0.08),
      rgba(94, 153, 0, 0.06));
  border: 1px solid rgba(194, 227, 141, 0.18);
  border-radius: 18px;
  padding: 24px;
}

.reg-copy p {
  opacity: 0.85;
}

.bullets {
  margin: 12px 0 16px;
  padding-left: 18px;
}

.bullets li {
  margin: 6px 0;
}

.reg-form {
  display: grid;
  gap: 10px;
  align-content: start;
}

.reg-form label {
  display: grid;
  gap: 6px;
  font-size: 17px;
  color: #E3FFB8;
}

.reg-form input,
.reg-form select {
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(194, 227, 141, 0.25);
  background: #11140C;
  color: #F7FFEA;
  padding: 0 12px;
}

.reg-form button {
  margin-top: 6px;
}

.reg-form .error-msg {
  color: var(--danger, #e74c3c);
  font-size: 0.85rem;
  margin-top: 4px;
  display: block;
  min-height: 1em;
}
.reg-form button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.cf-turnstile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  padding: 10px 0 8px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(194, 227, 141, 0.18);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  word-break: break-word;
  animation: fadeIn 0.5s ease forwards;
}

.card:hover {
  background: rgba(156, 255, 0, 0.06);
}

.card .row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card .row+.row {
  margin-top: 6px;
}

.card .teams {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.card .meta {
  opacity: 0.85;
  font-size: 14px;
  color: var(--muted);
}

.match-vs-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  margin-bottom: 10px;
}

.match-team {
  font-weight: 600;
  font-size: 1rem;
}

.match-vs {
  font-size: 0.9rem;
  color: var(--accent-1);
}

.match-team {
  word-break: break-word;
  max-width: 100%;
}

.empty {
  margin-top: 10px;
  opacity: 0.7;
}

.leader {
  padding: 10px 0 22px;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid rgba(194, 227, 141, 0.18);
  border-radius: 16px;
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(194, 227, 141, 0.15);
  text-align: left;
}

.table thead th {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.table tbody tr:hover {
  background: rgba(156, 255, 0, 0.06);
}

.rules {
  padding: 10px 0 40px;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.rule {
  background: var(--panel);
  border: 1px solid rgba(194, 227, 141, 0.18);
  border-radius: 16px;
  padding: 14px;
}

.site-footer {
  border-top: 1px solid rgba(194, 227, 141, 0.12);
  padding: 18px 0;
  background: #10120C;
}

.foot-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.dot {
  opacity: 0.5;
}

.skeleton .card {
  position: relative;
  overflow: hidden;
}

.skeleton .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.06),
      transparent);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .register-grid {
    grid-template-columns: 1fr;
  }

  .members {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .rules-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 640px) {

  .cards,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 40px;
  }
}

.member-row input {
  background: #10130C;
  border: 1px solid rgba(194, 227, 141, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
}

@media (max-width: 960px) {
  .register-inner {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    gap: 0;
  }

  .links a:last-child {
    border-bottom: none;
  }

  .menu-btn {
    display: block;
    margin-left: auto;
  }
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes stutter-glitch {
  0% {
    transform: translate(0);
  }

  25% {
    transform: translate(-4px, 1px);
  }

  30% {
    transform: translate(0);
  }

  35% {
    transform: translate(3px, -2px);
  }

  40% {
    transform: translate(0);
  }

  45% {
    transform: translate(-1px, 4px);
  }

  50% {
    transform: translate(0);
  }

  75% {
    transform: translate(-2px, -3px);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@media (max-width: 768px) {
  .hero-bg-image {
    position: absolute;
    top: 1%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("./assets/ghost.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    animation: stutter-glitch 2s infinite cubic-bezier(0.645, 0.045, 0.355, 1);
  }

  .hero-bg-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(-45deg,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 60%);
    background-size: 200% 100%;
    background-repeat: no-repeat;
    animation: shimmer 5s infinite;
  }
}

#heroArtLeft,
#heroArtRight {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  width: clamp(120px, 20vw, 200px);
  aspect-ratio: 1 / 3;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  border-radius: 18px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

#heroArtLeft {
  left: clamp(0px, 8vw, 5px);
  background-image: linear-gradient(160deg,
      rgba(94, 153, 0, 0.75),
      rgba(0, 0, 0, 0) 65%),
    url("./assets/codl.webp");
}

#heroArtRight {
  right: clamp(0px, 8vw, 5px);
  background-image: linear-gradient(160deg,
      rgba(94, 153, 0, 0.75),
      rgba(0, 0, 0, 0) 65%),
    url("./assets/codr.webp");
}

@media (max-width: 1450px) {

  #heroArtLeft,
  #heroArtRight {
    display: none;
  }
}

#heroArtLeft::before,
#heroArtRight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom,
      rgba(156, 255, 0, 0.08) 0px,
      rgba(156, 255, 0, 0.08) 2px,
      transparent 3px,
      transparent 6px);
  animation: scan 2s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(100%);
  }
}

@media (max-width: 960px) {

  #heroArtLeft,
  #heroArtRight {
    display: none;
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0.2) 20%,
      rgba(255, 255, 255, 0.5) 60%,
      rgba(255, 255, 255, 0));
  animation: shimmer2 1.5s infinite;
}

@keyframes shimmer2 {
  100% {
    transform: translateX(100%);
  }
}

.skeleton .card {
  position: relative;
}

.skeleton .table {
  position: relative;
}

.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 40px 0;
}

.spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-1);
  animation: spin 1s ease-in-out infinite;
}

.reg-spinner {
  display: inline-block;
  width: 25px;
  height: 25px;
  border: 5px solid transparent;
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

.reg-spinner[hidden] {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.teams-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #9cff00;
}

.team-count {
  color: #C2E38D;
}

.teams-list {
    padding-top: 0rem;
    padding-right: 0px;
    padding-bottom: 2rem;
    padding-left: 0px;
}

.teams-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-card {
  background: #1b1b1b;
  border: 1px solid #5e9900;
  border-radius: 8px;
  padding: 1.5rem;
  padding-top: 2.5rem;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards;
}

.team-card:hover,
.team-card:focus {
  background: #2e2e2e;
  box-shadow: 0 0 8px #9cff00;
  outline: none;
}

.team-card h3 {
  margin: 0 0 0.5rem;
  text-align: center;
  color: #9cff00;
  font-size: 1.25rem;
}

.team-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.75rem;
}

.team-stats div {
  text-align: center;
}

.team-stats div span {
  display: block;
  font-weight: bold;
  font-size: 1.1rem;
  color: #9cff00;
}

.team-status-label {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: #eee;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  text-transform: capitalize;
  color: #555;
}

.team-status-label.approved {
  background-color: #d4edda;
  color: #155724;
}
.team-status-label.pending {
  background-color: #fff3cd;
  color: #856404;
}
.team-status-label.rejected {
  background-color: #f8d7da;
  color: #721c24;
}
.team-status-label.unknown {
  background-color: #e2e3e5;
  color: #6c757d;
}

.team-details {
  padding-top: 0rem;
  padding-right: 1rem;
  padding-bottom: 0rem;
  padding-left: 1rem;
  color: #f0f0f0;
  border-top: 0px solid #3fa34d;
}

.team-details .container {
  max-width: 720px;
  margin: auto;
}

.team-name {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #9cff00;
}

.team-status {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.team-info p,
.team-members li {
  margin: 0.5rem 0;
}

.team-members ul {
  padding-left: 1.5rem;
  list-style: square;
}

.error {
  color: #ff4d4d;
  background: #2a0000;
  padding: 1rem;
  border-radius: 5px;
  margin-top: 2rem;
}

.hidden {
  display: none;
}

.team-details .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.team-header {
  text-align: center;
  margin-bottom: 2rem;
}

.team-header .team-name {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  color: #9cff00;
}

.team-header .team-status {
  font-size: 1rem;
  color: #bbb;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.team-cards .card {
  background-color: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(156, 255, 0, 0.1);
}

.team-cards .card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #9cff00;
}

.team-cards .card p {
  margin: 0;
  font-size: 1rem;
  color: #eee;
}

.team-members h3 {
  margin-bottom: 0.8rem;
  color: #9cff00;
  text-align: center;
}

.member-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.member-list li {
  background-color: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-left: 4px solid #9cff00;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  color: #fff;
  font-weight: 500;
}

.error {
  color: #ff5c5c;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.1rem;
}

#teamContent {
  animation: fadeIn 0.5s ease-in-out;
}

.team-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: capitalize;
  background-color: #f2f2f2;
  color: #333;
}

/* Status-specific colors — adjust to your palette */
.team-status.approved {
  background-color: #d4f4e1;
  color: #2e7d32;
}

.team-status.pending {
  background-color: #fff8e1;
  color: #f9a825;
}

.team-status.rejected {
  background-color: #ffe5e5;
  color: #d32f2f;
}

.team-status.unknown {
  background-color: #e0e0e0;
  color: #555;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo-bg-image {
  position: absolute; /* or fixed */
  top: -20px;
  left: 20px;
  height: 120px;
  width: 120pX;
  background-image: url("./assets/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1000;
}