@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito: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;
  background: #87ceeb;
  font-family: "Nunito", sans-serif;
}

#c {
  display: block;
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 3vw, 40px);
}

.card {
  pointer-events: all;
  background: rgba(255, 251, 242, 0.92);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: clamp(16px, 2.5vw, 30px) clamp(20px, 3.5vw, 40px);
  max-width: 480px;
  box-shadow:
    0 12px 48px rgba(80, 50, 20, 0.18),
    0 0 0 1.5px rgba(255, 255, 255, 0.7) inset;
  animation: cardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #3ecfb2;
  color: #fff;
  border-radius: 99px;
  padding: 4px 14px;
  margin-bottom: 10px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

h1 {
  font-family: "Fredoka One", cursive;
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.05;
  color: #2d2318;
  margin-bottom: 8px;
}

h1 em {
  color: #f4a535;
  font-style: normal;
}

.sub {
  font-size: clamp(12px, 1.4vw, 15px);
  color: #6b5b47;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 360px;
}

.btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.btn {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: clamp(12px, 1.3vw, 14px);
  border: none;
  border-radius: 99px;
  cursor: pointer;
  padding: clamp(9px, 1.1vw, 13px) clamp(18px, 2.2vw, 26px);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-a {
  background: #f4685c;
  color: #fff;
  box-shadow: 0 4px 16px rgba(244, 104, 92, 0.35);
}

.btn-b {
  background: #2d2318;
  color: #fff3e0;
}

.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-val {
  font-family: "Fredoka One", cursive;
  font-size: clamp(20px, 2.8vw, 28px);
  color: #f4a535;
}

.stat-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a8878;
}

.ui-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
}

#badge {
  position: fixed;
  top: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 24px);
  z-index: 20;
  background: rgba(255, 251, 242, 0.9);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 9px 18px;
  font-weight: 800;
  font-size: clamp(10px, 1.2vw, 13px);
  color: #2d2318;
  box-shadow: 0 4px 20px rgba(80, 50, 20, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: badgeIn 0.8s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes badgeIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.live {
  width: 7px;
  height: 7px;
  background: #3ecfb2;
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 207, 178, 0.5); }
  70%       { box-shadow: 0 0 0 5px rgba(62, 207, 178, 0); }
}

@media (max-width: 560px) {
  .card { max-width: 100%; border-radius: 18px; }
}
