* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, sans-serif;
  background: #050914;
  color: white;
  overflow: hidden;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
}

.logo-box {
  width: 128px;
  height: 128px;
  border-radius: 32px;
  background: linear-gradient(145deg, #0a84ff, #0057d9);
  box-shadow: 0 18px 45px rgba(10, 132, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.logo-core {
  color: white;
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -2px;
}

.title {
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 16px;
  text-align: center;
  letter-spacing: -1px;
}

.tagline {
  color: #8fbfff;
  font-size: 18px;
  margin: -6px 0 32px;
  text-align: center;
}

.button {
  width: 85%;
  background: #0a84ff;
  color: white;
  border: none;
  border-radius: 16px;
  padding: 16px 24px;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.button:active {
  transform: scale(0.98);
}

.back-button {
  background: transparent;
  color: #8fbfff;
  border: none;
  margin-top: 18px;
  padding: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.card {
  width: 100%;
  background: #101827;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #1e3a5f;
  margin-top: 12px;
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.card-text {
  color: #d8e6ff;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.35;
}

.countdown {
  font-size: 110px;
  font-weight: 900;
  margin-bottom: 24px;
}

.camera-screen {
  height: 100vh;
  height: 100dvh;
  background: black;
  position: relative;
  overflow: hidden;
}

#camera {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: black;
  transform: scaleX(-1);
}

.overlay-top {
  position: absolute;
  top: max(60px, env(safe-area-inset-top));
  left: 20px;
  right: 20px;
  background: rgba(5, 9, 20, 0.75);
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.overlay-title {
  font-size: 28px;
  font-weight: 900;
}

.overlay-sub {
  color: #8fbfff;
  font-size: 14px;
  margin-top: 4px;
}

.rep-box {
  position: absolute;
  bottom: 145px;
  left: 20px;
  background: rgba(5, 9, 20, 0.85);
  padding: 16px 24px;
  border-radius: 18px;
  text-align: center;
  z-index: 5;
  backdrop-filter: blur(8px);
}

.rep-number {
  font-size: 52px;
  font-weight: 900;
}

.rep-label {
  color: #8fbfff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
}

.ai-notice {
  position: absolute;
  bottom: 115px;
  right: 20px;
  max-width: 210px;
  background: rgba(5, 9, 20, 0.75);
  padding: 10px 14px;
  border-radius: 14px;
  color: #8fbfff;
  font-size: 12px;
  font-weight: 700;
  z-index: 5;
  text-align: center;
  backdrop-filter: blur(8px);
}

.end-button {
  position: absolute;
  bottom: max(40px, env(safe-area-inset-bottom));
  left: 24px;
  right: 24px;
  background: #0a84ff;
  color: white;
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-size: 18px;
  font-weight: 800;
  z-index: 5;
  cursor: pointer;
}

.end-button:active {
  transform: scale(0.98);
}

.summary-card {
  width: 100%;
  background: #101827;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid #1e3a5f;
  margin-bottom: 24px;
}

.summary-label {
  color: #8fbfff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 10px;
}

.summary-value {
  color: white;
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 8px;
}

@media (max-width: 420px) {
  .screen {
    padding: 20px;
  }

  .title {
    font-size: 36px;
  }

  .button {
    width: 100%;
  }

  .logo-box {
    width: 112px;
    height: 112px;
    border-radius: 28px;
  }

  .logo-core {
    font-size: 38px;
  }

  .card-text {
    font-size: 15px;
  }
  
}.ad-box {
  width: 100%;
  background: #0c1322;
  border: 1px dashed #2f4d78;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.ad-label {
  color: #8fbfff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.ad-placeholder {
  color: #d8e6ff;
  font-size: 16px;
  padding: 20px;
}