:root {
  --bg-overlay: rgba(20, 20, 20, 0.65);
  --card-bg: #2f2f2f;
  --card-bg-hover: #343434;
  --text: #ffffff;
  --muted: #c9c9c9;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --transition: 180ms ease;
}

body {
  font-family: system-ui, sans-serif;
  color: var(--text);
  margin: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.55)),
              url('https://vintagestory.hu/servqback.jpg') no-repeat center/cover fixed;
  padding: 24px;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 18px;
  border-radius: var(--radius);
  background-color: var(--bg-overlay);
  box-shadow: var(--shadow);
}

#players {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.info {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.06);
}

.coords {
  font-family: monospace;
  color: #eaeaea;
}

.status-bar, .bodytemp-bar, .wetness-bar, .tempbuffer-bar {
  background: #1b1b1b;
  border-radius: 999px;
  position: relative;
  height: 14px;
  margin: 6px 0;
}

.health-fill {
  background: linear-gradient(90deg, #e74c3c, #ff7b6e);
  height: 100%;
}
.hunger-fill {
  background: linear-gradient(90deg, #2ecc71, #66e697);
  height: 100%;
}
.bodytemp-fill {
  background: linear-gradient(90deg, #00c3ff, #ffd200, #ff5733);
  height: 100%;
}
.wetness-fill {
  background: linear-gradient(90deg, #3399ff, #66ccff);
  height: 100%;
}

.bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.6);
  pointer-events: none;
}

.bodytemp-marker {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: #fff;
  opacity: 0.8;
}

/* Intro szekció stílusok */
#intro {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 20px;
}

#intro h2 {
  margin-top: 0;
  font-size: 1.6rem;
  color: var(--text);
}

#intro h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
  color: var(--text);
}

#intro p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0;
}

#intro ul {
  list-style: none;
  padding-left: 0;
  margin: 12px 0;
}

#intro ul li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
  color: var(--muted);
}

#intro ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #66e697;
}

#intro hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 16px 0;
}


.server-ip {
  display: inline-block;
  background: linear-gradient(135deg, #111, #333);
  color: #00ff99;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: monospace;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.6);
  border: 1px solid #00ff99;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer; /* kattintható */
}

.server-ip:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(0, 255, 153, 0.9);
}

/* másolás utáni effekt */
.server-ip.copied {
  color: #fff;
  background: #00cc66;
  box-shadow: 0 0 14px rgba(0, 255, 102, 0.9);
}
.rules-button {
  display: inline-block;
  padding: 10px 18px;
  margin-top: 10px;
  background-color: #66e697;
  color: #000;
  font-weight: bold;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.rules-button:hover {
  background-color: #57cc84;
  transform: translateY(-2px);
}

.tempbuffer-fill {
  background: #ff8c00;
  height: 100%;
}
.discord-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  background-color: #5865F2; /* Discord kék */
  color: white;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.discord-button:hover {
  background-color: #4752C4;
}
.webmap-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 1.05em;
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(135deg, #222, #333);
  color: #00ff99;
  border: 1px solid #00ff99;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.4);
  transition: all 0.2s ease;
}

.webmap-button:hover {
  background: #00cc66;
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 255, 153, 0.8);
  transform: translateY(-2px);
}

.wind-icon {
  font-size: inherit;
  line-height: inherit;
  opacity: 0.9;
}


.wind-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, #222, #2a2a2a);
  font-size: inherit;
  line-height: inherit;
  color: var(--text);
  box-shadow: var(--shadow);
}

.wind-icon {
  font-size: inherit;
  line-height: inherit;
  opacity: 0.9;
}

.muted { color: var(--muted); }

/* Ingot mennyiség jelvény az imagen */
.ingot .pic{position:relative; width:90px; height:90px}
.ingot .pic img{width:90px; height:90px; object-fit:contain}
.ingot .countBadge{
  position:absolute; bottom:4px; right:4px;
  padding:3px 8px; border-radius:999px;
  font-weight:800; font-size:14px; letter-spacing:.2px;
  color:#e8ffe7; background:linear-gradient(180deg, rgba(16,19,25,.85), rgba(16,19,25,.55));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 2px 8px rgba(0,0,0,.35);
}