.gm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100vw;
  height: 100dvh;
  background: rgba(20, 10, 0, 0.75);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
  overflow: hidden;
  pointer-events: all;
  padding: 0;
  margin: 0;
  touch-action: none;
  -webkit-user-select: none;
}

.gm-content {
  position: relative;
  background: linear-gradient(145deg, #4d3221 0%, #3a2719 100%);
  border: 3px solid #e0c097;
  border-radius: 18px;
  color: #fdf7e4;
  text-align: center;
  max-width: 420px;
  width: 90%;
  padding: 25px 20px 30px;
  font-family: 'Georgia', 'Times New Roman', serif;
  animation: gmFadeIn 0.5s ease-out;
  pointer-events: auto;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05), 0 0 25px rgba(0, 0, 0, 0.7);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 3px,
    transparent 3px,
    transparent 5px
  );
}

.gm-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  padding-top: 8px;
}

.gm-header h3 {
  flex-grow: 1;
  text-align: center;
  color: #f1d9a9;
  font-size: 1.6rem;
  margin: 0;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

.gm-close {
  position: absolute;
  top: -20px;
  right: -15px;
  border: none;
  background: none;
  color: #e0c097;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.gm-close:hover {
  transform: scale(1.2);
  color: #fff4d4;
}

.gm-content h3 {
  font-size: 1.6rem;
  color: #f1d9a9;
  margin-bottom: 10px;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}

.gm-content p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  color: #fdf7e4;
}

.gm-btn {
  background: linear-gradient(180deg, #d9b36c 0%, #b9924a 100%);
  border: 2px solid #e0c097;
  border-radius: 10px;
  color: #3a2719;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 10px 22px;
  margin-top: 18px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
.gm-btn:hover {
  background: linear-gradient(180deg, #f0cc86 0%, #c9a154 100%);
  transform: scale(1.05);
}

@keyframes gmFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gm-content .jux {
	text-align:right;
	font-size:11px;
	text-decoration: none;
	margin:0px:
	padding:0px;
	color: aquamarine;
}

#gameModalContent a {
  text-decoration: none;
  color: #e8c874;
  font-weight: bold;
}
#gameModalContent a:hover {
  color: #fff2bf;
  text-decoration: underline;
}

@media (max-width: 500px) {
  .gm-content {
    max-width: 90%;
    padding: 20px 15px;
  }
  .gm-content h3 {
    font-size: 1.3rem;
  }
  .gm-content p {
    font-size: 0.95rem;
  }
}

