body {
  background-image: url('images/cmcbg2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
  padding-top: 40px; /* Space for announcement banner */
  padding-bottom: 10px; /* Space for nav button */
  scroll-behavior: smooth;
}

/* Announcement Banner */
.announcement-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #FF9DB5 0%, #FFB6C1 100%);
  color: white;
  text-align: center;
  padding: 10px 44px 10px 20px;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  animation: slide-down 0.5s ease;
  margin: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.announcement-banner[data-dismissed="true"] {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.announcement-dismiss {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.announcement-dismiss:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

@keyframes slide-down {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.announcement-banner p {
  margin: 0;
  font-size: 14px;
}

.announcement-link {
  color: white;
  text-decoration: underline;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.announcement-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

body.banner-dismissed {
  padding-top: 10px;
}

/* Footer (Debug link for admins) */
.site-footer {
  text-align: center;
  padding: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 10;
}

.footer-debug-link {
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  color: rgba(84, 76, 74, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-debug-link:hover {
  color: rgba(84, 76, 74, 0.7);
}

/* ========== Floating Nav (hamburger trigger + fan-out links, no blur) ========== */
.nav-wrap {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  width: 100%;
  max-width: 360px;
  height: 150px;
  pointer-events: none;
}

.nav-wrap > * {
  pointer-events: auto;
}

/* Trigger: hamburger icon only (same when open/closed, no morph) */
.nav-trigger {
  position: absolute;
  left: 50%;
  bottom: env(safe-area-inset-bottom, 12px);
  transform: translateX(-50%);
  z-index: 10001;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid rgba(255, 182, 193, 0.9);
  background: rgba(255, 196, 209, 0.95);
  color: #544c4a;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-trigger:hover {
  background: rgba(255, 182, 193, 0.95);
  transform: translateX(-50%) scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.nav-trigger:active {
  transform: translateX(-50%) scale(0.98);
}

.nav-trigger-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-trigger-line {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.nav-back {
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.nav-back-text {
  display: block;
  line-height: 1.2;
}

/* Fan-out menu (hidden until open); circles ~25% larger */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  bottom: 68px;
  transform: translateX(-50%);
  width: 100%;
  height: 82px;
  pointer-events: none;
}

.nav-menu[aria-expanded="true"] {
  pointer-events: auto;
}

.nav-menu-item {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 0) scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-menu[aria-expanded="true"] .nav-menu-item {
  pointer-events: auto;
}

.nav-menu[aria-expanded="true"] .nav-menu-item:nth-child(1) {
  transform: translate(-50%, 0) translate(-92px, 0) scale(1);
  opacity: 1;
  transition-delay: 0.03s;
}

.nav-menu[aria-expanded="true"] .nav-menu-item:nth-child(2) {
  transform: translate(-50%, 0) translate(92px, 0) scale(1);
  opacity: 1;
  transition-delay: 0.06s;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 65px;
  height: 65px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 196, 209, 0.95);
  color: #544c4a;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 182, 193, 0.9);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a.nav-link {
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.1);
  outline: none;
}

.nav-link:active {
  transform: scale(0.98);
}

.nav-link-icon {
  font-size: 26px;
  line-height: 1;
}

.nav-link-label {
  line-height: 1.1;
  max-width: 72px;
  text-align: center;
}

@media (max-width: 400px) {
  .nav-trigger {
    width: 60px;
    height: 60px;
  }
  .nav-menu[aria-expanded="true"] .nav-menu-item:nth-child(1) {
    transform: translate(-50%, 0) translate(-78px, 0) scale(1);
  }
  .nav-menu[aria-expanded="true"] .nav-menu-item:nth-child(2) {
    transform: translate(-50%, 0) translate(78px, 0) scale(1);
  }
  .nav-link {
    width: 60px;
    height: 60px;
    font-size: 11px;
  }
  .nav-link-icon {
    font-size: 24px;
  }
}

.logo {
  display: block;
  margin: 0 auto;
  max-width: 150px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.created-by {
  font-size: 18px;
  font-family: 'Quicksand', sans-serif;
  text-align: center;
  color: #333;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(255, 192, 203, 0.8),
    0 0 30px rgba(255, 192, 203, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  margin: 20px 0;
}

.content-block {
  background-color: #FFC4D1;
  width: 60%;
  max-width: 800px;
  height: auto;
  overflow: hidden;
  padding: 20px;
  margin: 50px auto;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  opacity: 0.9;
  font-family: 'Quicksand', sans-serif;
  color: #333;
  box-sizing: border-box;
  display: block;
  position: relative;
  z-index: 10;
}

.meet-staff {
  background-color: #FFC4D1;
  width: 50%;
  max-width: 650px;
  padding: 20px;
  margin: 50px auto;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  opacity: 0.9;
  font-family: 'Quicksand', sans-serif;
  color: #333;
  position: relative;
  z-index: 10;
}

.staff-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.staff-member {
  text-align: center;
  position: relative;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
}

.staff-member:nth-child(1) {
  animation-delay: 0s;
}

.staff-member:nth-child(2) {
  animation-delay: 1s;
}

.staff-member:nth-child(3) {
  animation-delay: 2s;
}

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

.staff-member img {
  width: 80px;
  height: 100px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.staff-member:hover img {
  transform: scale(1.1);
}

.staff-member .name {
  font-weight: 600;
  margin: 5px 0;
}

.staff-member .role {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.staff-info {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFC4D1;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

.staff-member:hover .staff-info {
  opacity: 1;
  visibility: visible;
}

.staff-info h4 {
  margin: 0 0 8px;
  color: #544c4a;
  font-family: 'Quicksand', sans-serif;
}

.staff-info p {
  margin: 5px 0;
  font-size: 14px;
  color: #333;
  font-family: 'Quicksand', sans-serif;
}

.content-block ol {
  list-style: none;
  counter-reset: roman;
  padding-left: 0;
  text-align: center;
}

.content-block ol li {
  counter-increment: roman;
  margin: 10px 0;
}

.content-block ol li::before {
  content: counter(roman, upper-roman) ". ";
  margin-right: 5px;
}

#falling-leaves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.leaf {
  pointer-events: auto;
  position: absolute;
  width: 30px;
  height: 30px;
  background-image: url('images/cherryblossomleaf.png');
  background-size: 30px 30px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  animation: fall linear infinite;
  cursor: pointer;
  /* Invisible padding to increase clickable area */
  padding: 15px;
  margin: -15px;
}

@keyframes fall {
  from {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

.particle-container {
  position: absolute;
  pointer-events: none;
  width: 0;
  height: 0;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: particle-animation 1s ease-out;
  opacity: 1;
}

@keyframes particle-animation {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.flower-petal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

@keyframes pop-up {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 1;
  }
  50% {
    transform: translateY(-30px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateY(-60px) scale(1);
    opacity: 0;
  }
}

@keyframes simple-pop-up {
  0% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -80px) scale(1.2);
    opacity: 0;
  }
}

@keyframes milestone-bounce {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: 50px;
  color: #544c4a;
  margin: 10px 0;
  text-align: center;
}

h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 30px;
  text-align: center;
}

p {
  font-size: 16px;
  font-family: 'Quicksand', sans-serif;
  text-align: center;
}

hr {
  display: none;
}

.flower-counter {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: 10px;
  color: rgba(211, 211, 211, 0.5);
  z-index: 1000;
  pointer-events: none;
  user-select: none;
}

.click-counter {
  position: fixed;
  bottom: 10px;
  left: 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: 12px;
  color: #FFB6C1;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  z-index: 1000;
  pointer-events: none;
  user-select: none;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.support-us {
  background-color: #FFC4D1;
  text-align: center;
  padding: 10px;
  margin: 30px auto;
  width: 60%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: 'Quicksand', sans-serif;
  color: #333;
  position: relative;
  z-index: 10;
}

.support-us h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #544c4a;
}

.support-us p {
  font-size: 14px;
  margin-bottom: 10px;
}

.kofi-link img {
  width: 40px;
  height: auto;
  cursor: pointer;
}

.kofi-link:hover img {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.content-block, .meet-staff, .support-us, .discord-section, .server-info {
  border: 2px dashed white;
}

/* Server Info Section */
.server-info {
  background: linear-gradient(145deg, #FFC4D1 0%, #FFB6C1 50%, #FFC4D1 100%);
  text-align: center;
  padding: 24px 20px;
  margin: 30px auto;
  width: 60%;
  max-width: 560px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(255, 150, 170, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Quicksand', sans-serif;
  color: #333;
  opacity: 0.95;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.server-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0.8;
}

.server-info-title {
  font-size: 26px;
  margin: 0 0 6px;
  color: #544c4a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.server-info-subtitle {
  font-size: 14px;
  margin: 0 0 18px;
  color: #666;
}

.server-loading {
  margin: 10px 0;
  color: #666;
  font-weight: 600;
}

.server-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

@keyframes server-card-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.server-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 100%);
  border: 2px dashed rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 18px;
  min-width: 200px;
  max-width: 280px;
  flex: 1 1 200px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  animation: server-card-in 0.45s ease backwards;
}

.server-card:nth-child(1) { animation-delay: 0.05s; }
.server-card:nth-child(2) { animation-delay: 0.15s; }
.server-card:nth-child(3) { animation-delay: 0.25s; }
.server-card:nth-child(4) { animation-delay: 0.35s; }

.server-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 24px rgba(255, 120, 150, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 1);
}

.server-card-name {
  font-family: 'Quicksand', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #544c4a;
  margin: 0 0 12px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.server-address-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.server-address {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  color: #544c4a;
  border: 2px solid #FFB6C1;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex: 1 1 auto;
  min-width: 0;
}

.server-address:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.02);
}

.copy-button {
  background-color: #FF9DB5;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
}

.copy-button:hover {
  transform: scale(1.06);
  background-color: #FF7A9D;
  box-shadow: 0 4px 12px rgba(255, 122, 157, 0.4);
}

.copy-button:active {
  transform: scale(0.95);
}

.copy-button.copied {
  background-color: #90EE90;
  color: #333;
}

.server-status {
  font-size: 13px;
  margin-top: 8px;
  font-weight: 600;
}

.player-count {
  font-size: 13px;
  margin-top: 4px;
  font-weight: 600;
  color: #544c4a;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.server-status-online {
  color: #00aa00;
  font-weight: bold;
  animation: status-pulse 2s ease-in-out infinite;
}

.server-status-offline {
  color: #cc0000;
  font-weight: bold;
}

.server-status-unknown {
  color: #666;
  font-weight: bold;
}

.server-players {
  color: #FF1493;
  font-weight: bold;
}

.ping-info {
  font-size: 14px;
  margin-top: 5px;
  font-weight: 600;
  color: #544c4a;
}

#ping-value {
  font-weight: bold;
  transition: color 0.3s ease;
}

.discord-section {
  background-color: #FFC4D1;
  text-align: center;
  padding: 20px;
  margin: 30px auto;
  width: 60%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-family: 'Quicksand', sans-serif;
  color: #333;
  opacity: 0.9;
  position: relative;
  z-index: 10;
}

.discord-section h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #544c4a;
}

.discord-section p {
  font-size: 14px;
  margin-bottom: 15px;
}

.discord-button {
  display: inline-block;
  background-color: #FF9DB5;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  border: none;
  user-select: none;
}

.discord-button:hover {
  background-color: #FF7A9D;
  transform: scale(1.05);
}

.rainbow-text {
  font-weight: 600;
  animation: rainbow-text-animation 6s ease-in-out infinite;
}

@keyframes rainbow-text-animation {
  0% {
    color: #ff0000;
  }
  16.66% {
    color: #ff7f00;
  }
  33.33% {
    color: #ffff00;
  }
  50% {
    color: #00ff00;
  }
  66.66% {
    color: #0000ff;
  }
  83.33% {
    color: #8b00ff;
  }
  100% {
    color: #ff0000;
  }
}

@keyframes rainbow-animation {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}
