* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .page-shell {
    padding: 20px 15px; /* Slightly tighter padding for mobile */
  }

  .brand h1 {
    font-size: 1.5rem; /* Shrink the header text so it doesn't wrap weirdly */
  }
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #1e90ff, #0b1b3a 60%);
  color: #f4f7fb;
  min-height: 100vh;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  margin-bottom: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.brand p {
  color: #d7e6ff;
  margin-top: 6px;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #f4f7fb;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 10px;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero {
  text-align: center;
  padding: 60px 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  margin-bottom: 40px;
}

.hero h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 18px;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 28px auto;
  color: rgba(244, 247, 251, 0.88);
  line-height: 1.8;
  font-size: 1.05rem;
}

.cta-button {
  display: inline-block;
  padding: 16px 32px;
  color: #0b2142;
  background: #ffd500;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.features-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.feature-card p {
  color: rgba(244, 247, 251, 0.84);
  line-height: 1.75;
}

footer {
  margin-top: 50px;
  text-align: center;
  color: rgba(244, 247, 251, 0.72);
}

/* Steps Section */
.steps {
  text-align: center;
  margin-bottom: 40px;
}

.steps h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.steps-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.step-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
}

.step-number {
  font-size: 2rem;
  font-weight: bold;
  color: #ffd500;
  margin-bottom: 10px;
}

.step-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.step-card p {
  color: rgba(244, 247, 251, 0.84);
  line-height: 1.75;
  margin-bottom: 15px;
}

.step-link {
  display: inline-block;
  padding: 10px 20px;
  color: #0b2142;
  background: #ffd500;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.step-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.step-status {
  margin-top: 10px;
  font-weight: bold;
  color: red;
}

.step-status.joined {
  color: green;
}

/* Games Section */
.games-section {
  margin-bottom: 40px;
}

.games-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.games-grid {
  display: flex;
  flex-wrap: wrap; /* This allows cards to drop to the next line */
  justify-content: center; /* This centers the cards on EVERY line, including the bottom */
  gap: 24px;
}

.game-card {
  width: 100%; /* Makes sure it can shrink on very small phones */
  max-width: 320px; /* This stops it from stretching on large PC screens */
  flex: 1 1 280px; /* This allows the card to grow and shrink, but start at 280px */

  /* Keep your existing styles below this! */
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(30, 144, 255, 0.5);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
}

.game-image {
  width: 100%;
  height: 200px;
  object-fit: cover; /* This prevents the image from squishing */
  border-radius: 10px;
  margin-bottom: 15px;
}

.game-card h3 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.game-card p {
  color: rgba(244, 247, 251, 0.84);
  line-height: 1.75;
  margin-bottom: 20px;
}

.game-button {
  display: inline-block;
  padding: 12px 24px;
  color: #0b2142;
  background: #ffd500;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.game-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.game-screenshots {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.game-screenshots img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 10;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.72);
}

.modal-content {
  background: linear-gradient(
    180deg,
    rgba(14, 27, 51, 0.98),
    rgba(9, 23, 44, 0.96)
  );
  margin: 8% auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  width: 90%;
  max-width: 620px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  color: #f4f7fb;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.close {
  position: absolute; /* Take it out of the flow so it doesn't 'float' */
  top: 15px;
  right: 20px;
  z-index: 2000; /* Force it to the very top layer */
  padding: 15px; /* Make it much easier to hit on mobile */
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
  font-size: 35px;
  cursor: pointer;
}

.close:hover {
  color: #ffffff;
}

.join-card,
.form-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 24px;
  margin: 22px 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 40px rgba(0, 0, 0, 0.12);
}

.join-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.join-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: #ffd500;
}

.join-card p {
  margin-bottom: 16px;
  color: rgba(244, 247, 251, 0.82);
  line-height: 1.7;
}

.join-button,
.submit-button {
  width: fit-content;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.join-button {
  color: #0b2142;
  background: #ffd500;
  box-shadow: 0 18px 30px rgba(255, 213, 0, 0.25);
}

.join-button:hover {
  transform: translateY(-2px);
  background: #ffde48;
}

.join-button.joined {
  background: #4caf50;
  color: #ffffff;
}

.submit-button {
  background: #ffd500;
  color: #0b2142;
  width: 100%;
  margin-top: 12px;
  box-shadow: 0 18px 30px rgba(255, 213, 0, 0.25);
}

.submit-button:hover {
  transform: translateY(-2px);
  background: #ffdf5f;
}

.confirmation-text {
  color: rgba(244, 247, 251, 0.74);
  margin: 10px 0 18px;
  line-height: 1.65;
}

.confirmation-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.confirm-button,
.reject-button {
  flex: 1;
  min-width: 140px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  color: white;
}

.confirm-button {
  background: #4caf50;
}

.reject-button {
  background: #f44336;
}

.result-success {
  text-align: center;
  padding: 26px 16px;
}

.result-icon {
  font-size: 3.5rem;
  color: #4caf50;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #f4f7fb;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f7fb;
  outline: none;
}

.form-group select option {
  background: rgba(14, 27, 51, 0.98);
  color: #f4f7fb;
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(255, 213, 0, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 213, 0, 0.12);
}

.screenshot-section {
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.screenshot-section img {
  width: 100%;
  display: block;
}

.payment-info {
  margin-top: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  color: rgba(244, 247, 251, 0.88);
}

#freeMessage {
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
}

/* Access Options */
.access-options {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.access-button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.free-trial {
  background: #4caf50;
  color: white;
}

.paid {
  background: #2196f3;
  color: white;
}

#submitButton {
  width: 100%;
  padding: 12px;
  background: #ffd500;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 20px;
  background: #f0f0f0;
  border-radius: 10px;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: #4caf50;
  border-radius: 10px;
  width: 0%;
  transition: width 1s;
}

#countdown {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
}
/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  z-index: 10000;
  display: none;
  max-width: 300px;
  word-wrap: break-word;
}

.toast.success {
  background: #4caf50;
}

.toast.error {
  background: #f44336;
}

.toast.info {
  background: #2196f3;
}

/* Steps in Modal */
.steps-in-modal {
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.steps-in-modal h3 {
  margin-bottom: 10px;
  color: #ffd500;
}

.steps-in-modal ol {
  padding-left: 20px;
}

.steps-in-modal li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.steps-in-modal a {
  color: #ffd500;
  text-decoration: underline;
}

/* Games Section */
.games-description {
  text-align: center;
  color: rgba(244, 247, 251, 0.84);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
