*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Helvetica, Arial, sans-serif;
}

#screen-intro,
#screen-green,
#screen-permission {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
}

#screen-intro.active      { display: flex; }
#screen-green.active      { display: flex; }
#screen-permission.active { display: flex; }

#cloud-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#button {
  position: absolute;
  z-index: 10;
}

#button-fill {
  width:  clamp(140px, 28vw, 340px);
  height: clamp(90px,  18vw, 220px);
  background: #dc0000;
  color: #ffd900;
  border: 4px solid #ffd500;
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: bold;
  font-family: Helvetica, Arial, sans-serif;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  transition: .15s;
  -webkit-tap-highlight-color: transparent;
}

#button-fill:hover  { background: #8b0000; color: #ffee00; transform: scale(1.04); }
#button-fill:active { transform: scale(.95); }

#screen-green {
  background: rgb(0, 0, 0);
  cursor: pointer;
}
#spam-img {
  width: clamp(220px, 60vw, 520px);
  max-height: 70vh;
  object-fit: contain;
  border: 3px solid #000000;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  animation: pulseImg 1.6s infinite;
  -webkit-tap-highlight-color: transparent;
}

@keyframes pulseImg {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

#screen-permission {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.permission-dialog {
  width: clamp(260px, 88vw, 340px);
  background: #ffffff;
  border-radius: clamp(8px, 2vw, 14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  font-family: Helvetica, Arial, sans-serif;
  overflow: hidden;
  animation: popIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  0%   { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}
.dialog-body {
  padding: clamp(14px, 4vw, 24px) clamp(14px, 4vw, 22px) 12px;
}
.dialog-title {
  font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  font-weight: bold;
  color: #111;
  margin-bottom: 6px;
}
.dialog-message {
  font-size: clamp(0.85rem, 3vw, 0.98rem);
  color: #444;
}
.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: clamp(8px, 2vw, 13px) clamp(10px, 3vw, 16px);
  border-top: 1px solid #ddd;
  background: #f7f7f7;
}

.btn-allow {
  padding: clamp(6px, 1.5vw, 10px) clamp(12px, 3vw, 20px);
  border: none;
  border-radius: 6px;
  font-size: clamp(0.8rem, 2.5vw, 0.92rem);
  font-family: Helvetica, Arial, sans-serif;
  background-color: #555;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-allow:hover  { background-color: #333; }
.btn-allow:active { background-color: #111; }

@media (max-width: 480px) {
  #button-fill {
    width:  clamp(120px, 52vw, 200px);
    height: clamp(80px,  34vw, 130px);
    font-size: clamp(0.85rem, 5.5vw, 1.4rem);
    border-radius: 10px;
  }
}
@media (max-height: 420px) and (orientation: landscape) {
  #spam-img { max-height: 80vh; width: clamp(120px, 45vw, 320px); }
  .dialog-body { padding: 10px 14px 8px; }

}
