@import url('https://cdn.jsdelivr.net/gh/south-paw/typeface-minecraft@master/index.css');

:root {
  /* backgrounds */
  --bg-page:   #0b0f07;
  --bg-panel:  #131a0d;

  /* lime accent ramp */
  --lime-50:   #f2ffd6;
  --lime-200:  #d8fa6e;
  --lime-400:  #a6e22e;
  --lime-600:  #6e9c1f;
  --lime-900:  #1c2b0c;

  /* text */
  --text-heading: #f5f7ec;
  --text-value:   #eef2e3;
  --text-label:   #9a9d8f;
  --text-muted:   #767a6c;

  /* ink used ON TOP OF filled lime buttons */
  --ink-on-lime:  #16210a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

/* Screen reader only for SEO H1 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-page);
  background-image: 
    linear-gradient(rgba(11, 15, 7, 0.88), rgba(11, 15, 7, 0.88)),
    url('../assets/dark_prismarine.png');
  background-repeat: repeat;
  background-size: auto, 96px 96px;
  background-attachment: fixed;
  image-rendering: pixelated;
  color: var(--text-value);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--lime-400);
  text-decoration: none;
  transition: filter 150ms ease;
}
a:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}
a.muted-link {
  color: var(--text-muted);
}

/* Button & Tactile effects */
.btn {
  background: var(--lime-400);
  color: var(--ink-on-lime);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--lime-600);
  transform: translateY(0);
  transition: transform 130ms ease-out, box-shadow 130ms ease-out, background-color 150ms ease-out;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important; /* override global 'a' */
}

.btn:hover {
  background: var(--lime-200);
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--lime-600), 0 0 16px rgba(166, 226, 46, 0.45);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--lime-600);
  transition-duration: 70ms;
}

.btn svg {
  fill: currentColor;
  width: 18px;
  height: 18px;
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--lime-400);
  outline-offset: 2px;
}

/* Navigation */
.nav-overlay {
  position: absolute;
  top: 20px;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-item {
  color: var(--text-value);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 150ms ease;
}

.nav-item:hover {
  color: #fff;
  text-decoration: none;
}

.nav-item.active {
  background: var(--lime-400);
  color: var(--ink-on-lime);
  box-shadow: 0 4px 0 var(--lime-600);
  transform: translateY(0);
  transition: transform 130ms ease-out, box-shadow 130ms ease-out, background-color 150ms ease-out;
}
.nav-item.active:hover {
  background: var(--lime-200);
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--lime-600), 0 0 16px rgba(166, 226, 46, 0.45);
}
.nav-item.active:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--lime-600);
  transition-duration: 70ms;
}

.nav-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--lime-900);
  background-image: linear-gradient(rgba(28, 43, 12, 0.65), rgba(28, 43, 12, 0.65)), url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 0 40px;
  transform: translateY(-30px); /* Visually center considering the bottom overlap */
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hero-stat .stat-btn {
  background: var(--lime-400);
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-on-lime);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-btn .stat-btn {
  border-radius: 14px 14px 4px 14px;
}

.discord-btn .stat-btn::before {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -2px;
  border-width: 12px 12px 0 0;
  border-style: solid;
  border-color: var(--lime-400) transparent transparent transparent;
  transform: rotate(-15deg);
}

.hero-stat .stat-btn::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 4px;
  background: var(--lime-400);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--lime-400);
  opacity: 0;
  transition: opacity 0.2s ease, bottom 0.2s ease;
}

.hero-stat:hover .stat-btn {
  transform: scale(1.05);
}

.hero-stat:hover .stat-btn::after {
  opacity: 1;
  bottom: -10px;
}

.hero-stat .stat-btn svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-text .stat-num {
  color: var(--lime-400);
  font-weight: 800;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(166, 226, 46, 0.5);
  letter-spacing: 1px;
}

.hero-stat {
  cursor: pointer;
  text-decoration: none !important;
}
.hero-stat:hover {
  text-decoration: none !important;
}

.hero-stat .stat-sub {
  color: var(--text-value);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.8;
  display: grid;
}

.hero-stat .stat-sub > span {
  grid-area: 1 / 1;
  transition: opacity 0.2s ease;
}

.hero-stat .text-hover, 
.hero-stat .text-copied {
  opacity: 0;
  pointer-events: none;
}

.hero-stat:hover .text-default {
  opacity: 0;
}

.hero-stat:hover .text-hover {
  opacity: 1;
}

.hero-stat.copied .text-default,
.hero-stat.copied .text-hover {
  opacity: 0 !important;
}

.hero-stat.copied .text-copied {
  opacity: 1 !important;
  color: var(--lime-400);
}

/* Global copy-ip hover effect */
.copy-ip {
  transition: color 0.2s ease;
}
.copy-ip:hover {
  color: var(--lime-400);
}

.hero-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: float-logo 4s ease-in-out infinite;
}

.hero-logo-container:hover .site-logo {
  transform: scale(1.05);
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.site-logo {
  width: 100%;
  max-width: 850px;
  height: auto;
  transition: transform 0.2s ease;
  filter: drop-shadow(0px 8px 10px rgba(0,0,0,0.5));
}

.particle {
  position: absolute;
  bottom: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lime-50) 0%, transparent 70%);
  animation: float-up linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes float-up {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: var(--p-opacity, 0.3); }
  85%  { opacity: var(--p-opacity, 0.3); }
  100% { transform: translateY(-115vh) translateX(var(--p-drift, 15px)); opacity: 0; }
}


/* Main Layout (Sidebar + Content) */
.main-layout {
  max-width: 1100px;
  width: 100%;
  margin: -80px auto 60px;
  padding: 0 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  z-index: 10;
  flex: 1;
}

/* Sidebar */
.sidebar {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box {
  display: flex;
  background: var(--bg-panel);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.search-box input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 10px 15px;
  color: var(--text-value);
  outline: none;
  font-family: inherit;
}
.search-box input::placeholder {
  color: var(--text-muted);
}
.search-box .search-btn {
  background: var(--lime-400);
  border: none;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-on-lime);
}
.search-box .search-btn:hover {
  background: var(--lime-200);
}
.search-box .search-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sidebar .btn {
  width: 100%;
  justify-content: flex-start;
  font-family: 'Minecraft', 'Courier New', Courier, monospace;
  font-weight: normal; /* Prevent faux-bold thickness variations */
  font-size: 1rem;
  font-synthesis: none;
}
.sidebar .btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.sidebar .btn.active {
  background: var(--lime-600); /* visibly muted */
  color: var(--text-value);
  box-shadow: 0 4px 0 var(--lime-900);
}
.sidebar .btn.active:hover {
  background: var(--lime-400);
  color: var(--ink-on-lime);
  box-shadow: 0 7px 0 var(--lime-900), 0 0 16px rgba(166, 226, 46, 0.45);
}

/* Content Card */
.content-card {
  flex-grow: 1;
  background: var(--bg-panel);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-title {
  color: var(--lime-400);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.meta-line {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.meta-line svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 20px 0;
  border: none;
}

.intro-text {
  color: var(--text-label);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.section-title {
  color: var(--text-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 25px;
}

.link-list {
  list-style: none;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.link-list li {
  margin-bottom: 8px;
}
.link-list .label {
  color: var(--text-muted);
}
.link-list .value {
  color: var(--text-value);
  font-weight: 600;
}

.voting-text {
  color: var(--text-label);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.voting-list {
  list-style: decimal inside;
  font-size: 0.9rem;
}
.voting-list li {
  margin-bottom: 5px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}
.view-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.view-count svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Footer Section */
.footer {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-col h4 {
  color: var(--text-heading);
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-col h4::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 6px;
  background: var(--lime-400);
  border-radius: 4px;
}

.footer-col p {
  color: var(--text-label);
  font-size: 0.85rem;
  margin-bottom: 15px;
}

/* Align second column to the right */
.footer-col:last-child {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-col:last-child h4 {
  justify-content: flex-end;
}

.ip-box {
  display: inline-flex;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-value);
  gap: 10px;
}
.ip-box svg {
  fill: var(--text-muted);
  width: 12px;
  height: 12px;
}

.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  font-size: 0.85rem;
}

/* Bottom Bar */
.bottom-bar {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255,255,255,0.02);
  padding: 20px 0;
}
.bottom-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bottom-text strong {
  color: var(--text-heading);
  font-size: 0.85rem;
  display: block;
}
.bottom-text span {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.bottom-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.bottom-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.bottom-icon[data-tooltip] {
  position: relative;
  cursor: pointer;
}

.bottom-icon[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime-400);
  color: var(--ink-on-lime);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.bottom-icon[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: var(--lime-400) transparent transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.bottom-icon:hover[data-tooltip]::before,
.bottom-icon:hover[data-tooltip]::after {
  opacity: 1;
}

/* MOTD Maker Styles */
.motd-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.motd-panel {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 15px;
}
.motd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.motd-header h3 {
  font-size: 1.1rem;
  color: var(--text-heading);
}
.motd-input-panel input {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-value);
  padding: 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 20px;
}
.motd-input-panel input:focus {
  outline: 2px solid var(--lime-600);
}
.motd-toolbar {
  display: flex;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 15px;
}
.motd-format-btn {
  background: var(--bg-page);
  color: var(--text-value);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.motd-format-btn:hover {
  background: var(--lime-900);
}
.motd-format-btn.active {
  background: var(--lime-600);
  color: var(--ink-on-lime);
}
.motd-preview-box {
  background: #111;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
}
.motd-preview-text {
  font-family: 'Minecraft', 'Courier New', Courier, monospace;
  font-size: 3.5rem;
  text-shadow: 4px 4px 0px #000;
  letter-spacing: 3px;
  line-height: 1.2;
  font-weight: normal;
}
.motd-slider-container {
  margin-top: 15px;
  padding: 10px 0;
  position: relative;
}
.motd-slider-track {
  height: 8px;
  background: linear-gradient(to right, #54daf4, #545eb6);
  border-radius: 4px;
  position: relative;
}
.motd-slider-thumb {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime-400);
  border: 2px solid #111;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.1s;
}
.motd-slider-thumb:hover, .motd-slider-thumb.dragging {
  transform: translate(-50%, -50%) scale(1.3);
}
.motd-bottom-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.color-count-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.motd-icon-btn {
  background: var(--bg-page);
  color: var(--lime-400);
  border: 1px solid rgba(255,255,255,0.1);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.motd-icon-btn:hover {
  background: rgba(255,255,255,0.1);
}
.motd-colors-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.motd-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border 0.1s;
}
.motd-color-row.dragging-row {
  opacity: 0.5;
}
.motd-color-row.drag-over {
  border-top: 2px solid var(--lime-400);
}
.motd-color-drag-handle {
  cursor: grab;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}
.motd-color-drag-handle:active {
  cursor: grabbing;
}
.motd-color-delete-btn {
  background: #7a1d1d;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.motd-color-delete-btn:hover {
  background: #a32222;
}
.motd-color-row span {
  width: 20px;
  text-align: center;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.motd-color-picker {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
}
.motd-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}
.motd-color-picker::-webkit-color-swatch {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
}
.motd-color-hex {
  flex-grow: 1;
  background: var(--bg-page);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-value);
  padding: 8px;
  border-radius: 4px;
  font-family: monospace;
}
.motd-output-panel textarea {
  width: 100%;
  height: calc(100% - 45px);
  min-height: 120px;
  background: var(--bg-page);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--lime-400);
  padding: 12px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9rem;
  resize: none;
  word-break: break-all;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    gap: 25px;
    text-align: center;
    padding: 0 15px;
  }
  .site-title {
    font-size: 3rem;
  }
  
  .main-layout {
    flex-direction: column;
    padding: 0 15px; /* Reduce horizontal padding to fit screen */
  }
  
  .content-card {
    padding: 20px 15px; /* Reduce massive 30px padding on small screens */
  }
  
  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 10px;
  }
  .sidebar .btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
  .search-box {
    width: 100%;
  }
  
  .motd-toolbar {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  #motd-input {
    padding: 10px;
    font-size: 0.95rem;
  }

  .motd-preview-box {
    padding: 15px 10px;
    min-height: 60px;
  }

  .motd-bottom-split {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .motd-color-row {
    gap: 8px;
  }
  
  .motd-color-hex {
    padding: 6px;
    font-size: 0.8rem;
  }
  
  .motd-output-panel textarea {
    min-height: 80px;
    font-size: 0.8rem;
  }
  
  .motd-preview-text {
    font-size: 1.8rem;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-col:last-child {
    text-align: left;
    align-items: flex-start;
  }
  
  .footer-col:last-child h4 {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particle {
    animation: none !important;
    display: none !important;
  }
  .btn {
    transition: none !important;
  }
  .btn:hover, .btn:active {
    transform: none !important;
    box-shadow: none !important;
  }
  .content-section {
    animation: none !important;
  }
}

.content-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.content-section.active {
  display: block;
}

/* Server Status Checker */
.status-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  align-items: center;
}
.status-input-group input {
  flex-grow: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-heading);
  padding: 12px 15px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
.status-input-group input:focus {
  outline: none;
  border-color: var(--lime-400);
}

/* Custom clear X for search inputs on dark backgrounds */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  width: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23AAAAAA'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>") no-repeat;
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--lime-400);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.spinner.hidden {
  display: none;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-result-container.hidden {
  display: none;
}

.mc-server-item {
  background: #000000;
  padding: 6px;
  display: flex;
  gap: 12px;
  font-family: 'Minecraft', 'Courier New', monospace;
  color: #AAAAAA;
  image-rendering: pixelated;
  width: 100%;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}
.mc-server-icon {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
}
.mc-server-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  line-height: 1.1;
}
.mc-server-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2px;
}
.mc-server-name {
  color: #FFFFFF;
  font-size: 1.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-server-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
}
.mc-server-players {
  color: #AAAAAA;
}
.mc-server-ping {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.mc-server-ping svg {
  width: 20px;
  height: 16px;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.8));
}
.mc-server-motd {
  font-size: 1.15rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.15;
  font-synthesis: none; /* Prevent faux-bold from distorting space widths */
}
.mc-server-motd span {
  /* Inherit colors from API HTML */
}
/* Disable synthetic bold on spans to fix space distortion */
.mc-server-motd span[style*="font-weight: bold"] {
  font-weight: normal !important;
  /* The drop-shadow already makes it look bold enough */
}

@media (max-width: 600px) {
  .status-input-group {
    flex-direction: column;
    align-items: stretch;
  }
  .status-input-group .spinner {
    align-self: center;
  }
  .mc-server-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .mc-server-top {
    flex-direction: column;
    align-items: center;
  }
}

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