/* Global box-sizing so padding doesn't cause overflow */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Core */

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #140f1c;
  font-family: "DM Sans", sans-serif;
  color: #fff;
  overflow-x: hidden;
}

.wrapper {
  display: flex;
  min-height: 100vh;          /* full viewport height on desktop */
  padding: 40px 20px;
  justify-content: center;
  align-items: center;
}

.card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  max-width: 480px;
  width: 100%;
}

/* Title */

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 2.6rem);
  font-weight: 700;
  white-space: nowrap;
}

.title-accent {
  background: linear-gradient(90deg, #ff3b3b, #ff7a2f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtitle */

.subtitle {
  margin-top: 12px;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.45;
}

/* Updates section */

.updates {
  margin-top: 32px;
  padding: 18px 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.updates h2 {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ff4d4d, #ff8c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.updates p {
  margin: 0;
  line-height: 1.55;
  font-size: 1rem;
}

.updates a {
  color: #ffae4d; /* warm gold */
  text-decoration: none;
}

/* Buttons */

.links {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s ease;
}

/* Add your display — festive gradient */
.btn-primary {
  background: linear-gradient(90deg, #ffb347, #ff5f3b);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #ffc46b, #ff7454);
}

/* Facebook button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Snow */

.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10vh;
  font-size: 1.1rem;
  opacity: 0.75;
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.snowflake:nth-child(1) { left: 5%;  animation-duration: 14s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 18%; animation-duration: 18s; animation-delay: -3s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 16s; animation-delay: -6s; }
.snowflake:nth-child(4) { left: 42%; animation-duration: 20s; animation-delay: -1s; }
.snowflake:nth-child(5) { left: 55%; animation-duration: 19s; animation-delay: -4s; }
.snowflake:nth-child(6) { left: 67%; animation-duration: 21s; animation-delay: -7s; }
.snowflake:nth-child(7) { left: 78%; animation-duration: 17s; animation-delay: -2s; }
.snowflake:nth-child(8) { left: 88%; animation-duration: 23s; animation-delay: -5s; }
.snowflake:nth-child(9) { left: 50%; animation-duration: 25s; animation-delay: -8s; }
.snowflake:nth-child(10){ left: 12%; animation-duration: 22s; animation-delay: -10s; }

@keyframes snowfall {
  0%   { transform: translate3d(0, -10vh, 0); }
  100% { transform: translate3d(0, 110vh, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .snowflake {
    animation: none;
    opacity: 0.4;
  }
}

/* Mobile layout + title tweaks */

@media (max-width: 640px) {

  .wrapper {
    min-height: 100svh;    /* use small viewport height on mobile */
    padding: 20px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .card {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(1.7rem, 6vw, 2.1rem);
    letter-spacing: -0.5px;
  }

  .card {
    padding: 32px 22px;
  }
}
