:root {
  --green-light: #76C043;
  --green-acqua: #00A19B;
  --blue: #0047AB;
  --dark: #1A1A1B;
  --gray: #A7A9AC;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--white);
}

/* SOCIAL BADGE */
.social-badge {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
}

.social-badge a {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  padding: 10px;
  display: flex;
}

.social-badge img {
  width: 22px;
  height: 22px;
}

/* BACKGROUND */
.background-3d {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, var(--green-acqua), transparent 40%),
    radial-gradient(circle at bottom right, var(--blue), transparent 40%);
  z-index: -1;
}

/* LAYOUT */
.page {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* HEADER */
.header {
  text-align: center;
  margin: 60px 0 40px;
}

.logo {
  width: 90px;
}

.tagline {
  color: var(--gray);
}

/* GLASS */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* COUNTDOWN */
.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.countdown div {
  background: linear-gradient(145deg, var(--green-acqua), var(--blue));
  padding: 20px;
  border-radius: 14px;
  min-width: 90px;
  text-align: center;
}

.countdown span {
  font-size: 32px;
  font-weight: bold;
}

.subtitle {
  text-align: center;
  color: var(--gray);
}

/* GAME */
.game-area {
  position: relative;
  height: 220px;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(0,0,0,0.25);
}

.letter {
  position: absolute;
  bottom: -40px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  animation: float 4s linear forwards;
}

@keyframes float {
  to { bottom: 240px; }
}

.game-info,
.letters-collected,
.community-total {
  text-align: center;
  margin-top: 10px;
  color: var(--gray);
}

.letters-collected span {
  color: var(--white);
  font-weight: 600;
}

.community-total strong {
  color: var(--green-light);
  font-size: 18px;
}

/* GAME END */
.game-end {
  margin-top: 15px;
  text-align: center;
}

.game-end input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  width: 80%;
  margin-bottom: 10px;
}

.hidden {
  display: none;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
}

.footer a {
  color: var(--gray);
  margin: 0 10px;
  text-decoration: none;
}

/* MOBILE */
@media (max-width: 600px) {
  .countdown {
    flex-direction: column;
  }
}
