
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: black;
  color: white;
  margin: 0;
  padding: 0;
  text-align: center;
}

h1 {
  font-size: 1.8rem;
  margin-top: 20px;
  color: orange;
  font-weight: bold;
  text-shadow: 1px 1px 2px #000;
}

.instructions {
  font-size: 1.1rem;
  margin: 10px 0;
  padding: 0 20px;
}

input[type="text"], input[type="tel"] {
  font-size: 16px;
}

#timer {
  font-weight: bold;
  color: #ef6c00;
  font-size: 1.2rem;
}
.banner {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
}
.game-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  max-width: 400px;
  gap: 10px;
  margin: 20px auto;
}
.tile {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ffa726;
  border: 2px solid #ef6c00;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
}
.tile img {
  width: 100%;
  height: 100%;
  display: none;
}
.tile.revealed img {
  display: block;
}
.hidden {
  display: none;
}
.video-wrapper {
  max-width: 90%;
  margin: 20px auto;
  aspect-ratio: 16/9;
}
.video-wrapper video {
  width: 100%;
  height: auto;
  border: 2px solid #ef6c00;
  border-radius: 8px;
}
#prize-check button {
  font-size: 1.1rem;
  padding: 12px 24px;
  margin-top: 20px;
  background-color: #ef6c00;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}
#prize-check button:hover {
  background-color: #d35400;
}
#prize-screen, #fail-screen {
  padding: 20px;
}
form input {
  margin: 8px;
  padding: 8px;
  width: 200px;
  max-width: 80%;
}
form button {
  padding: 10px 20px;
  background-color: #ef6c00;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
form button:hover {
  background-color: #d35400;
}
.share-buttons {
  margin-top: 10px;
}
.share-buttons a {
  text-decoration: none;
  color: #1565c0;
  font-weight: bold;
}
.redeem-text {
  margin-top: 12px;
  font-size: 1rem;
  color: #4a2e00;
}

.custom-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background: white;
  color: black;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  max-width: 300px;
}

.popup-content button {
  background-color: black;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  margin-top: 15px;
  cursor: pointer;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 5px;
  text-decoration: none;
  color: white !important;
  font-weight: bold;
}

.share-btn * {
  color: white !important;
  fill: white !important;
}

.share-btn.fb {
  background-color: #1877f2;
}

.share-btn.wa {
  background-color: #25d366;
}

.share-btn:hover {
  opacity: 0.9;
}

.popup-content button {
  margin-top: 20px;
  background-color: black;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: white; /* ✅ Make sure this line is here */
  font-weight: bold;
  font-size: 1rem;
}


.share-btn.fb {
  background-color: #1877f2;
}

.share-btn.wa {
  background-color: #25d366;
}

.share-btn:hover {
  opacity: 0.9;
}

.share-icon {
  width: 20px;
  height: 20px;
}

/* Ensure hidden always wins over custom-popup's display */
.custom-popup.hidden,
.hidden { display: none !important; }

.input-error {
  outline: 2px solid #e11d48; /* rose-600 */
  border-radius: 6px;
}

.title-2line {
  line-height: 1.1;
  margin: 12px 0 8px;
  text-align: center;
}
.title-2line > span {
  display: block;        /* forces two lines on all devices */
}

