.profile-btn {
  display: none !important;
}
@media (min-width: 601px) {
  .footer-label-arrow {
    display: none !important;
  }
}
@keyframes footerLabelUnderline {
  0% {
    text-decoration: none;
    text-decoration-color: transparent;
  }
  10% {
    text-decoration: underline;
    text-decoration-color: #bbb;
  }
  80% {
    text-decoration: underline;
    text-decoration-color: #bbb;
  }
  100% {
    text-decoration: underline;
    text-decoration-color: transparent;
  }
}
@media (max-width: 600px) {
  .footer-label.underline-animate {
    animation: footerLabelUnderline 0.2s;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    text-decoration-color: #bbb;
  }
}
@media (max-width: 600px) {
  .profile-btn {
    position: fixed !important;
    left: 5vw !important;
    top: 5vw !important;
    z-index: 1100 !important;
    margin: 0 !important;
  }
}
/* Flip arrow when links are visible */
.footer-label-arrow {
  width: 20px !important;
  height: 10px !important;
  animation: shufflo-bob 3s infinite;
  transform: rotate(0deg) !important;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1) !important;
}
#footer-toggle.move-up .footer-label-arrow {
  transform: rotate(180deg) !important;
}
/* Make footer arrow half size */
.footer-label-arrow {
  width: 20px !important;
  height: 10px !important;
  animation: shufflo-bob 3s infinite;
  transform: rotate(180deg);
  transition: transform 0.25s;
}
@media (max-width: 600px) {
  #footer-arrow {
    transition: opacity 0.2s;
    opacity: 1;
  }
  #footer-toggle.move-up #footer-arrow {
    opacity: 0;
    transition: opacity 0.1s;
    transition-delay: 0s;
  }
  #footer-toggle:not(.move-up) #footer-arrow {
    opacity: 1;
    transition: opacity 0.2s;
    transition-delay: 0.2s;
  }
}
/* --- Footer slide animation for mobile (translateY) --- */
.footer-links-mobile {
  transform: translateY(50%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.footer-links-mobile.show {
  transform: translateY(0);
}
/* =============================
   FOOTER STYLES (all footer-related)
   ============================= */
/* --- Desktop (default) --- */
.footer-links-mobile {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 8px !important;
  z-index: 1001 !important;
  font-size: 13px !important;
  background: none !important;
  gap: 2px !important;
  pointer-events: auto !important;
}
#footer-links-list {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100%;
}
.footer-links-mobile #footer-links-list a {
  color: #fff !important;
}
.footer-links-mobile .footer-main {
  margin-bottom: 2px;
  text-align: center;
  width: 100%;
  font-size: 12px;
  color: #bbb;
}
.footer-links-mobile > div:last-child {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
#footer-arrow {
  display: none !important;
}
@media (max-width: 600px) {
  #footer-arrow {
    display: block !important;
  }
}
@media (max-width: 600px) {
  #footer-arrow,
  .footer-label-arrow {
    display: block !important;
  }
}
/* ===== END FOOTER STYLES ===== */

@keyframes shufflo-bob {
  0% { transform: translateY(-1px); }
  50% { transform: translateY(1px); }
  100% { transform: translateY(-1px); }
}

/* === HOMEPAGE DESKTOP STYLES === */
.homepage-bg {
  overflow: hidden;
  height: 100vh;
}
.logo-container {
  text-align: center;
  margin: 12px 0 8px 0;
}
.profile-btn {
  width: 70px;
  height: 70px;
  padding: 0;
  display: flex; /* flex */
  flex: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  overflow: hidden;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.profile-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  position: relative;
  top: 10px;
  clip-path: circle(36px at 36px 36px);
}
.play-btn-svg {
  display: block;
}

/* === HOMEPAGE MOBILE STYLES === */
@media (max-width: 600px) {
  .homepage-bg {
    overflow: hidden;
    height: 100vh;
  }
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px !important;
    bottom: 12px !important;
  }
  .logo-container {
    text-align: center;
    margin: 8px 0 4px 0;
  }
  .profile-btn {
    width: 15vw;
    height: 15vw;
    padding: 0;
    display: flex;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  }
  .profile-img {
    width: 15vw;
    height: 15vw;
    top: 2vw;
    clip-path: circle(15vw at 10vw 10vw);
  }
  .main-center-group {
    margin-top: 8vh !important;
  }
  .center-buttons {
    margin-bottom: 0;
    gap: 8px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
  }
  .center-btn {
    font-size: 13px !important;
    padding: 8px 0 !important;
    width: 80vw !important;
    min-width: 120px !important;
    max-width: 260px !important;
    border-radius: 6px !important;
  }
  .play-btn-svg {
    width: 40px !important;
    height: 40px !important;
    margin-right: 4px;
  }
  body .play-btn.play-btn-mobile {
    /* position: static !important; */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 38px auto 0 auto !important;
    width: 80vw !important;
    min-width: 200px !important;
    max-width: 260px !important;
    height: 10vh !important;
    border-radius: 16px !important;
    background: #388e3c !important;
    font-size: 1.2em !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22) !important;
    z-index: 1002 !important;
  }
  .homepage-footer {
    position: static;
    left: unset;
    transform: none;
    bottom: unset;
    margin-top: 18vw;
    font-size: 12px;
    padding-bottom: 10vw;
  }
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: repeating-conic-gradient(from 0deg, #2e8b57 0deg 90deg, #2c8854 90deg 180deg) -20px -20px / 140px 140px !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #fff;
}
.homepage-container {
  max-width: 600px;
  margin: 60px auto 0 auto;
  background: rgba(34, 34, 34, 0.95);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  padding: 40px 30px 30px 30px;
  color: #fff;
  text-align: center;
}
.homepage-title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 10px;
  color: #ffd700;
  letter-spacing: 2px;
}
.homepage-desc {
  font-size: 20px;
  margin-bottom: 30px;
  color: #e0e0e0;
}
.game-link-btn {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  font-size: 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  padding: 16px 36px;
  border-radius: 10px;
  text-decoration: none;
  margin: 18px 0 30px 0;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.game-link-btn:hover {
  background: #388e3c;
  transform: scale(1.04);
}
.homepage-section {
  margin-bottom: 28px;
  text-align: left;
}
.homepage-section h2 {
  color: #ffd700;
  font-size: 24px;
  margin-bottom: 8px;
}
.homepage-section ul {
  margin: 0 0 0 18px;
  padding: 0;
  color: #fff;
}
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-content {
  background: #232323;
  border-radius: 12px;
  padding: 32px 24px 24px 24px;
  max-width: 400px;
  width: 75vw;
  color: #fff;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 32px;
  color: #ffd700;
  cursor: pointer;
}
#modal-body {
  margin-top: 18px;
  font-size: 16px;
  color: #fff;
}
/* Homepage Layout Redesign */
.homepage-layout {
  position: relative;
  min-height: 100vh;
  /* background removed to allow body background to show */
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 32px 0 32px;
}
.chips-box {
  background-color: #1a5231;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 30px;
  font-weight: bold;
  display: none;
  align-items: center;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  margin-right: 16px;
  height: 36px;
  width: 300px;
  color: white;
  white-space: nowrap;
  box-shadow: inset 0 4px 4px rgba(5, 23, 3, 0.6);
  transition: margin-left 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}
.chips-box:hover {
  transform: scale(1.02);
}
.chips-box:active {
  transform: scale(0.98);
}
.site-label {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.center-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto 40px auto;
}
.center-btn {
  background: #232323 !important;
  color: #fff !important;
  /* border: 2px solid #2e8b57 !important;  */
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  width: 15vw;
  max-width: 300px;
  min-width: 200px;
  text-align: center;
  margin-bottom: 0;
}
.center-btn:hover {
  background: #2d2d2d;
  color: #ffffff;
  transform: scale(1.04);
}
.about-box {
  position: absolute;
  left: 32px;
  bottom: 32px;
  width: 320px;
  background: #232323;
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.about-title {
  font-size: 22px;
  color: #ffd700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  margin-bottom: 8px;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 4px;
}
.about-desc {
  font-size: 16px;
  color: #e0e0e0;
}
.play-btn {
  background: #388e3c;
  color: #fff;
  border-radius: 15px;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  margin: 38px auto 0 auto;
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: left;
  height: 10vh !important;
  width: 20vw !important;
  min-width: 250px !important;
  font-size: 1.2em !important;
}
.play-btn:hover {
  background: #2e8b57;
  transform: scale(1.04);
}
.play-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 0;
  height: 0;
  border-left: 36px solid #fff;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  margin-left: 8px;
}
/* SVG Logo Styles */
.svg-logo {
  display: inline-block;
  width: 600px;
  height: 200px;
  margin: 0 auto;
  vertical-align: top;
}
.homepage-logo-container {
  width: 100vw;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  padding-top: 24px;
  margin-bottom: 12px;
}
.svg-logo text.subtitle {
  /* Move subtitle down by 10px for extra spacing */
  dominant-baseline: middle;
  /* If needed, add a small vertical offset for fine-tuning */
  /* transform: translateY(10px); */
}
@media (max-width: 600px) {
  .svg-logo {
    margin-top: 60px !important;
    width: 90vw;
    height: 40vw;
    display: block;
    margin: 0 auto;
  }
  .logo-container {
    margin-top: -80px !important;
    margin-bottom: 8px !important;
  }
  .homepage-logo-container {
    padding-top: 18px;
  }
}
@media (max-width: 600px) {
  .homepage-container {
    max-width: 98vw;
    margin: 10vw 1vw 0 1vw;
    padding: 18px 6vw 18px 6vw;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  }
  .homepage-title {
    font-size: 32px;
    margin-bottom: 8px;
  }
  .homepage-desc {
    font-size: 15px;
    margin-bottom: 18px;
  }
  .game-link-btn {
    font-size: 18px;
    padding: 12px 0;
    width: 100%;
    margin: 14px 0 22px 0;
    border-radius: 8px;
  }
  .homepage-section {
    margin-bottom: 18px;
    padding: 0;
    text-align: left;
  }
  .homepage-section h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .homepage-section ul {
    margin-left: 12px;
    font-size: 14px;
  }
}
@media (max-width: 900px) {
  .about-box {
    position: static;
    width: 90vw;
    margin: 0 auto 18px auto;
    left: unset;
    bottom: unset;
  }
  .play-btn {
    position: static;
    right: unset;
    bottom: unset;
    margin: 32px auto 0 auto;
    display: block;
  }
}
