:root{
  --bg1:#1b2a3a;
  --bg2:#0f1720;
  --card1:#2b3f55;
  --card2:#1c2a3a;
  --text:#ffffff;
  --muted:rgba(255,255,255,0.75);
  --border:rgba(255,255,255,0.10);
  --shadow:0 8px 20px rgba(0,0,0,0.35);
  --shadow-hover:0 14px 28px rgba(0,0,0,0.45);
}





*,
*::before,
*::after{
  box-sizing:border-box;
}

html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

@supports (overflow: clip){
  html,
  body{
    overflow-x:clip;
  }
}

body{
  margin:0;
  font-family:"Segoe UI", Roboto, Arial, sans-serif;
  background:radial-gradient(circle at top, var(--bg1), var(--bg2));
  color:var(--text);
  line-height:1.5;
}

img,
svg,
video,
canvas{
  max-width:100%;
  height:auto;
}

/* Top bar */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 22px;
  background:linear-gradient(135deg, var(--card1), var(--card2));
  border-bottom:1px solid var(--border);
  box-shadow:var(--shadow);
  min-width:0;
}

header > *{
  min-width:0;
}

.logo{
  height:40px;
  width:auto;
}

.header-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
}

/* Buttons / links */
.join-link,
.info-link,
.download-btn{
  display:inline-block;
  font-size:0.95rem;
  font-weight:600;
  color:var(--text);
  text-decoration:none;
  padding:10px 14px;
  border-radius:10px;
  background:linear-gradient(135deg, var(--card1), var(--card2));
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  transition:transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.join-link:hover,
.info-link:hover,
.download-btn:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-hover);
  border-color:rgba(255,255,255,0.18);
}

/* Heading */
h1{
  text-align:center;
  margin:22px 0 10px;
  padding:0 14px;
  font-size:2.1rem;
  letter-spacing:1px;
  font-weight:650;
}

/* Title + counter */
.title-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  text-align:center;
}

.node-counter{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0.9rem;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--text);
  background:linear-gradient(135deg, var(--card1), var(--card2));
  box-shadow:var(--shadow);
  white-space:nowrap;
}

.node-counter.counter-error{
  opacity:0.75;
  border-style:dashed;
}

/* Main container */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Cards / nodes */
.node{
  display:flex;
  flex-direction:column;
  padding:14px;
  background:linear-gradient(135deg, var(--card1), var(--card2));
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:var(--shadow);
  transition:transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.node:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-hover);
  border-color:rgba(255,255,255,0.18);
}

.node.talking{
  border:2px solid #4f86f7;
  animation:nodeGlowFade 4.5s ease-in-out infinite;
}

.node-summary{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.node-name{
  font-weight:650;
}

.node-tgs,
.node-location{
  color:var(--muted);
}

.node-time{
  text-align:right;
}

.node-time p{
  margin:6px 0 0;
  font-size:0.9rem;
  color:var(--muted);
}

/* Downloads */
.downloads-table{
  width:100%;
  border-collapse:collapse;
}

.downloads-table th,
.downloads-table td{
  padding:12px 14px;
  border-bottom:1px solid var(--border);
}

.downloads-table td{
  color:var(--muted);
}

/* ===== UPDATED FOOTER ===== */
.footer,
footer{
  margin-top:40px;
  padding:24px 16px;
  text-align:center;
  color:var(--muted);
  border-top:1px solid var(--border);
  background:linear-gradient(135deg, var(--card1), var(--card2));
  box-shadow:var(--shadow);
  font-size:0.92rem;
}

.footer p,
footer p{
  margin:6px 0;
}

.footer a,
footer a{
  color:#93c5fd;
  text-decoration:none;
  font-weight:500;
}

.footer a:hover,
footer a:hover{
  text-decoration:underline;
}

.footer-content{
  max-width:1100px;
  margin:0 auto;
}

/* Animation */
@keyframes nodeGlowFade{
  0%{
    box-shadow:0 0 4px rgba(79,134,247,0.25);
  }
  50%{
    box-shadow:0 0 24px rgba(79,134,247,0.8);
  }
  100%{
    box-shadow:0 0 4px rgba(79,134,247,0.25);
  }
}

/* Mobile */
@media (max-width:768px){
  header{
    flex-direction:column;
    text-align:center;
  }

  .header-links{
    justify-content:center;
  }

  .container{
    padding:12px;
  }

  h1{
    font-size:1.7rem;
  }

  .node-summary{
    flex-direction:column;
    align-items:flex-start;
  }

  .node-time{
    text-align:left;
    width:100%;
  }

  .footer,
  footer{
    margin-top:28px;
    padding:20px 14px;
  }
}

.uk-map-container{
  display:flex;
  justify-content:center;
  margin:40px 0 10px;
}

.uk-map-img{
  max-width:400px;
  width:100%;
  height:auto;
  opacity:0.9;
}


