.game-info-dialog {
  position: absolute;
  left: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  transform: translate(-50%, 200%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2); /* light, elegant border */
  backdrop-filter: blur(6px); /* optional: for a "frosted glass" look */
  border-radius: 12px; /* smooth corners to match the soft shadow */
}

.mobile-info-size {
  width: 95ds;
  max-height: 90svh;
  max-width: 600px;
}

.desktop-info-size {
  width: clamp(300px, 70svw, 500px);
  max-height: 600px;
}

.game-info-content {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 0 20px 20px;
  font-size: clamp(1rem, 1.5svw, 1rem);
}

.game-info-content::-webkit-scrollbar {
  display: none;
}

.game-info-content h2 {
  font-size: clamp(1.4rem, 2.5svw, 1.3rem);
  margin-top: 15px;
  margin-bottom: 5px;
}

.game-info-content p,
.game-info-content li {
  font-size: clamp(1rem, 1.5svw, 1rem);
  line-height: 1.4;
}

.game-info-dialog.show,
.privacy-policy-dialog.show {
  transform: translate(-50%, -50%);
  top: 50%;
}

.game-info-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 100svw;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.3);
}

.close-overlay-wrapper {
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-sizing: border-box;
}

.close-overlay-wrapper:hover {
  background-color: rgba(249, 151, 124, 1);
  border-radius: 50%;
}

.mobile-buttons {
  position: absolute;
  bottom: 5px;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  width: 100%;
  padding: 0 30px;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.mobile-buttons-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mobile-buttons-stack button {
  cursor: pointer;
  outline: none;
  border: 3px solid transparent;
  border-radius: 50%;
  box-sizing: border-box;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.mobile-buttons-stack button:active {
  transform: scale(1.1);
  border: 3px solid rgba(251, 117, 79, 1);
}

.mobile-button-img {
  height: 40px;
  width: auto;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
  -webkit-user-select: none;
  touch-action: manipulation;
}

.mobile-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu img {
  height: 40px;
  width: auto;
  cursor: pointer;
}

.mobile-menu-element {
  border: none;
  background-color: transparent;
}

.mobile-menu-element-wrapper {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.mobile-menu-element-wrapper:hover {
  background-color: sandybrown;
  border-radius: 50%;
  box-sizing: border-box;
}

.mobile-menu-element-wrapper img {
  height: 28px;
  width: auto;
}

.privacy-policy-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin-top: 40px;
}

.privacy-policy {
  display: flex;
  align-items: center;
  justify-content: center;
}

.description-title {
  font-size: clamp(1.5rem, 3dvw, 2rem);
}

#rotateOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100svw;
  height: 100svh;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 1.5rem;
  font-family: sans-serif;
}

.rotate-message {
  max-width: 90%;
  line-height: 1.4;
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid rgba(251, 117, 79, 0.2);
  border-top: 6px solid rgba(251, 117, 79, 1);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.privacy-policy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 50;
  display: flex;
}

.privacy-policy-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.privacy-policy-info::-webkit-scrollbar {
  display: none;
}

.result-info {
  display: flex;
  align-items: center;
  overflow-y: auto;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.result-info::-webkit-scrollbar {
  display: none;
}
