@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  background: #0a1628;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

/* ── Background gradient layers ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 10%, #1a3a5c 0%, transparent 70%),
    linear-gradient(180deg, #0e2040 0%, #071220 40%, #030a14 100%);
  z-index: 0;
}

/* Top teal glow */
.glow-top {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 320px;
  background: radial-gradient(ellipse at 50% 30%, rgba(20, 80, 110, 0.75) 0%, transparent 70%);
  filter: blur(18px);
  z-index: 1;
  pointer-events: none;
}

/* Central golden/amber glow */
.glow-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 340px;
  background: radial-gradient(ellipse at 50% 45%, rgba(180, 110, 20, 0.55) 0%, rgba(120, 70, 10, 0.28) 50%, transparent 75%);
  filter: blur(30px);
  z-index: 1;
  pointer-events: none;
}

/* Bottom amber glow */
.glow-bottom {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 200px;
  background: radial-gradient(ellipse at 50% 70%, rgba(200, 130, 20, 0.42) 0%, transparent 70%);
  filter: blur(28px);
  z-index: 1;
  pointer-events: none;
}

/* ── AD Badge ── */
.ad-badge {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

/* ── Main Content Container ── */
.container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 28px;
  gap: 0;
  width: 100%;
  max-width: 420px;
}

/* ── Congratulations Title ── */
.title {
  font-size: clamp(30px, 9vw, 40px);
  font-weight: 800;
  color: #f5c842;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
  text-shadow:
    0 0 30px rgba(245, 200, 50, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.4);
  line-height: 1.1;
  animation: fadeSlideDown 0.6s ease both;
}

/* ── Subtitle ── */
.subtitle {
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin-bottom: 36px;
  letter-spacing: 0.1px;
  animation: fadeSlideDown 0.6s 0.15s ease both;
}

/* ── START Button ── */
.start-btn {
  display: block;
  width: 100%;
  max-width: 340px;
  padding: 18px 0;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(16px, 4.5vw, 20px);
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #ffffff;
  background: linear-gradient(135deg, #2ecc71 0%, #1ab860 40%, #17a654 100%);
  box-shadow:
    0 6px 24px rgba(39, 200, 100, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  animation: fadeSlideUp 0.6s 0.3s ease both;
}

.start-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}

.start-btn:hover::before {
  left: 150%;
}

.start-btn:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 10px 32px rgba(39, 200, 100, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.3);
  filter: brightness(1.07);
}

.start-btn:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    0 3px 12px rgba(39, 200, 100, 0.35),
    0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ── Pulse ring on button ── */
.start-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid rgba(46, 204, 113, 0.5);
  animation: pulseRing 2s 1s ease-in-out infinite;
  pointer-events: none;
}

/* ── Timer Overlay ── */
.timer-overlay {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  animation: fadeIn 0.4s ease both;
}

.timer-circle {
  position: relative;
  width: 52px;
  height: 52px;
}

.timer-svg {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.timer-track {
  fill: none;
  stroke: rgba(255,255,255,0.12);
  stroke-width: 6;
}

.timer-progress {
  fill: none;
  stroke: #f5c842;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-count {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  font-weight: 700;
  color: #f5c842;
}

/* ── Animations ── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulseRing {
  0%   { opacity: 0.8; transform: scale(1); }
  60%  { opacity: 0;   transform: scale(1.12); }
  100% { opacity: 0;   transform: scale(1.12); }
}

/* ── Responsive for very small screens ── */
@media (max-height: 600px) {
  .subtitle { margin-bottom: 24px; }
}
