/* ----- BASIC PAGE SETUP ----- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: url("images/bg.png") no-repeat center center fixed;
  background-size: cover;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-bg {
  width: 100%;
  max-width: 1360px;
  padding: 40px 24px 32px;
  position: relative;
}

/* Optional soft arcs */
.page-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 0 0, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.3), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

/* ----- GRID LAYOUT ----- */
.card-grid {
  margin: 0 auto;
  max-width: 1150px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px 220px;
  gap: 18px;
  grid-template-areas:
    "pool pool lobby"
    "living logo lobby"
    "living city city";
}

.tile-pool   { grid-area: pool; }
.tile-lobby  { grid-area: lobby; }
.tile-living { grid-area: living; }
.logo-tile   { grid-area: logo; }
.tile-city   { grid-area: city; }

/* ----- TILE STYLING ----- */
.tile {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: #d2b693;
}

.tile-button {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
  cursor: pointer;
  text-decoration: none;
}

/* Image should stay behind overlay */
.tile-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  z-index: 0;
  position: relative;
}

/* ----- BROWN GRADIENT + INNER GLOW (VISIBLE NOW) ----- */
.tile-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;  /* show above image */

  background:
    radial-gradient(
      circle at 50% 110%,
      rgba(243,193,153,0.95) 0%,
      rgba(165,96,58,0.75) 5%,
      rgba(165,96,58,0.25) 65%,
      rgba(165,96,58,0.0) 90%
    ),
    linear-gradient(
      to top,
      rgba(165,96,58,0.92) 0%,
      rgba(165,96,58,0.78) 0%,
      rgba(165,96,58,0.48) 0%,
      rgba(165,96,58,0.18) 5%,
      rgba(165,96,58,0.0) 92%
    );

  opacity: 0;
  transition: opacity 0.40s ease;
  pointer-events: none;
}

/* ----- TEXT + BUTTON (TOP LAYER) ----- */
.tile-content {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translate(-50%, 18px);
  width: 100%;
  max-width: 80%;
  text-align: center;
  color: #fff;
  z-index: 2; /* above overlay */
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.tile-content h3 {
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Button */
.enter-btn {
  display: inline-block;
  padding: 7px 24px;
  border-radius: 999px;
  background: #f6e7d5;
  color: #6b3f27;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease;
}

.tile-button:hover .enter-btn {
  background: #e6d2bb;
  transform: translateY(-2px);
}

/* ----- HOVER EFFECTS ----- */
.tile-button:hover img {
  transform: scale(1.06);
}

.tile-button:hover::before {
  opacity: 1;
}

.tile-button:hover .tile-content {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ----- LOGO TILE ----- */
.logo-tile {
  background: #b36d3c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.logo-tile img {
  width: 70%;
  max-width: 260px;
}

/* ----- FOOTER TEXT ----- */
.powered-text {
  margin-top: 18px;
  font-size: 12px;
  color: #9b7f5c;
  text-align: right;
}

/* ----- DISCLAIMER FULLSCREEN OVERLAY ----- */
#disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.disclaimer-box {
  background: #ffffff;
  padding: 28px 32px;
  width: 90%;
  max-width: 420px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.disclaimer-box h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.disclaimer-box p {
  font-size: 15px;
  margin-bottom: 20px;
  color: #555;
  line-height: 1.4;
}

.disclaimer-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.disclaimer-buttons button {
  padding: 9px 26px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#yes-btn {
  background: #6b3f27;
  color: #fff;
}

#no-btn {
  background: #d3d3d3;
  color: #333;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .page-bg {
    padding: 24px 16px 24px;
  }

  .card-grid {
    max-width: 480px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 220px);
    gap: 14px;
    grid-template-areas:
      "logo"
      "pool"
      "lobby"
      "living"
      "city";
  }

  .tile {
    border-radius: 18px;
  }

  .tile-content {
    left: 50%;
    transform: translate(-50%, 18px);
    text-align: center;
  }
}
