* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Anek Bangla', Inter, system-ui, -apple-system, sans-serif;
  background: #000;
  overflow: hidden;
}

.app {
  width: 100%;
  height: 100svh;
  height: 100dvh;
}

.entry-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  height: 100dvh;
  background: #000;
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.route-hidden {
  display: none !important;
}

.entry-frame {
  position: relative;
  width: 100vw;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.banner-frame {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100vw, calc(100vh * 1080 / 1920));
  width: min(100vw, calc(100svh * 1080 / 1920));
  height: min(100vh, calc(100vw * 1920 / 1080));
  height: min(100svh, calc(100vw * 1920 / 1080));
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100svh;
  z-index: 1;
}

.top-badge-frame {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100vw, calc(100vh * 1080 / 1920));
  width: min(100vw, calc(100svh * 1080 / 1920));
  height: min(100vh, calc(100vw * 1920 / 1080));
  height: min(100svh, calc(100vw * 1920 / 1080));
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100svh;
  z-index: 8;
  pointer-events: none;
}

.entry-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  pointer-events: none;
}


.top-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  z-index: 6;
  pointer-events: none;
}

.entry-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.entry-hint {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.entry-overlay,
.entry-hint { display: none; }

.image-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  pointer-events: none;
  z-index: 5;
}

.modal {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  display: grid;
  place-items: end center;
  z-index: 30;
  padding: 0 14px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  pointer-events: none;
}

.modal.show { display: grid; }

.modal.is-hidden {
  display: none;
}

.modal-card {
  width: min(95vw, 400px);
  max-height: fit-content;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  position: relative;
  overflow-y: visible;
  animation: none;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
}

@keyframes modalPop {
  from { transform: scale(0.86); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.close-btn { display: none; }

.modal-title {
  display: none;
}

.form-top-title {
  margin: 12px 0 0;
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffd95a;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 214, 0, 0.28);
}

.form-top-subtitle {
  margin: -2px 0 8px;
  color: #ffd95a;
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 214, 0, 0.28);
}

.form-intro {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
}

.prize-banner {
  background: linear-gradient(90deg, #ff3c8e, #8e24aa 50%, #00acc1);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 0.7px;
  box-shadow: 0 6px 24px rgba(142, 36, 170, 0.45);
}

form { display: grid; gap: 10px; padding: 0 14px; }
.field { display: grid; gap: 3px; }

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.2px;
  padding-left: 0;
  display: block;
}

.method-label { margin-bottom: 2px; }

.required {
  color: #ffd45c;
  font-weight: 800;
}

.help-text {
  margin: 0;
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.78);
}

.method-options {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.method-options .choice {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 6px 2px;
  cursor: pointer;
  transition: color 0.15s;
  user-select: none;
  position: relative;
  line-height: 1.2;
}

.method-options .choice::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  background: transparent;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.method-options .choice:has(input:checked) {
  color: #FFD600;
}

.method-options .choice:has(input:checked)::before {
  content: '✓';
  background: #FFD600;
  border-color: #FFD600;
  color: #1a0030;
  font-weight: 900;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-options .choice input[type="radio"] {
  display: none;
}

.field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  backdrop-filter: blur(6px);
}

.field input::placeholder { color: rgba(255, 255, 255, 0.3); }

.field input:focus {
  border-color: rgba(255, 60, 142, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 60, 142, 0.12);
}

.error {
  min-height: 15px;
  font-size: 0.77rem;
  color: #ff6a8f;
  font-weight: 600;
  padding-left: 2px;
}

.warning-text {
  margin: 2px 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.claim-btn {
  margin-top: 8px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 900;
  color: #1a0030;
  font-family: inherit;
  background: #ffd95a;
  box-shadow: 0 4px 12px rgba(255, 217, 90, 0.3);
  transition: filter 0.15s;
}

.claim-btn:hover { filter: brightness(1.08); }

.claim-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}

.success-popup {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 40;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
}

.success-popup.show {
  display: grid;
}

.success-card {
  width: min(90vw, 360px);
  padding: 24px 20px 22px;
  border-radius: 18px;
  background: rgba(18, 3, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.success-timer {
  display: block;
  margin: 0 auto 14px;
  padding: 0;
}

.success-timer-value {
  color: #ffd95a;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px rgba(255, 214, 0, 0.2);
}

.success-title {
  margin: 0 0 12px;
  color: #ffd95a;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(255, 214, 0, 0.2);
}

.success-text {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.93rem;
  line-height: 1.5;
}

.success-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.98rem;
  color: #1a0030;
  background: #ffd95a;
  box-shadow: 0 4px 12px rgba(255, 217, 90, 0.3);
}

.bonus-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  pointer-events: none;
}

.bonus-tap-catcher {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bonus-tap-catcher:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: -2px;
}
