/* Crystal Connect - Stylish CSS for a sleek gaming experience */

@import url('https://fonts.googleapis.com/css2?family=Comfortaa&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #050611;
  color: #ececec;
  font-family: "Comfortaa";
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 24px); 
}

.mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 16px;
}

.dialog {
  width: min(480px, 95%); 
  padding: clamp(20px, 5vw, 32px); 
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 24, 58, 0.98), rgba(8, 12, 30, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6);
  text-align: center;
  max-height: 90vh;
  overflow-y: auto; 
}

.dialog h1 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 5vw, 2.4rem); 
  line-height: 1.2;
}

.dialog p {
  margin: 0 0 24px;
  color: #c2c6e6;
  line-height: 1.6;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
}

.dialog button {
  width: 100%;
  padding: clamp(12px, 3vw, 16px);
  margin: 8px 0;
  border: none;
  font-family: "Comfortaa";
  border-radius: 14px;
  background: #4c5cff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.dialog button:hover {
  background: #6d7bff;
  transform: translateY(-2px);
}

.dialog button:active {
  transform: translateY(0); 
}

.hidden { display: none; }

@media (max-width: 360px) {
  .dialog {
    padding: 16px;
    border-radius: 18px;
  }
  .dialog button {
    font-size: 0.9rem;
  }
}
