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

:root {
  --primary-color: #ee7959;
  --secondary-color: #ffb88c;
  background: linear-gradient(135deg, #ee7959 0%, #fff6f2 100%);
}

html, body {
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  background-color: linear-gradient(135deg, #ee7959 0%, #fff6f2 100%);
  background-image: linear-gradient(135deg, #ee7959 0%, #fff6f2 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

body {

  font-family: 'Inter', 'Arial Rounded MT Bold', Arial, sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

:lang(km) {
  font-family: 'Dangrek', 'Inter', Arial, sans-serif;
  margin: 0;
}

.container {
  max-width: 600px;
  width: 100%;
  margin: 48px 16px;
  padding: calc(40px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
  background: rgba(238, 121, 89, 0.18);
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(238, 121, 89, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  animation: fadeIn 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  box-sizing: border-box;
}

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

.logo {
  width: 40%;
  margin-bottom: 18px;
}

.banner {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(238,121,89,0.12);
}

.links {
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.btn {
  background: linear-gradient(90deg, #ee7959, #ffb88c);
  color: #fff;
  padding: 15px 0;
  border-radius: 40px;
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
  /* box-shadow: 0 4px 16px rgba(238,121,89,0.13),
              0 0 12px 2px rgba(238,121,89,0.18),
              0 0 0 2px rgba(255,255,255,0.10) inset; */
  transition: background 0.3s cubic-bezier(.4,0,.2,1), 
              transform 0.22s cubic-bezier(.4,0,.2,1), 
              box-shadow 0.22s cubic-bezier(.4,0,.2,1);
  letter-spacing: 0.01em;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  font-family: 'Arial Rounded MT Bold', sans-serif;
}

.btn:hover, .btn:focus {
  background: linear-gradient(90deg, #ffb88c, #ee7959);
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 8px 24px rgba(238,121,89,0.18),
              0 0 24px 4px #ee7959,
              0 0 0 2.5px rgba(255,255,255,0.18) inset;
}

.btn:active {
  background: linear-gradient(90deg, #ee7959, #ffb88c);
  box-shadow: 0 2px 8px rgba(238,121,89,0.10),
              0 0 0 1.5px rgba(255,255,255,0.10) inset;
  transform: scale(0.96);
}

.btn.bounce {
  animation: btn-bounce 0.38s cubic-bezier(.4,0,.2,1);
}

.socials {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.social-handle {
  color: #fff;
  opacity: 0.85;
  font-size: 1em;
  margin-top: 18px;
  text-align: center;
}

.socials a svg {
  width: 38px;
  height: 38px;
  transition: transform 0.18s, box-shadow 0.18s;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(238,121,89,0.10);
  background: rgba(238,121,89,0.15);
}

.socials a:hover svg, .socials a:focus svg {
  transform: scale(1.13) rotate(-6deg);
  box-shadow: 0 4px 16px rgba(238,121,89,0.13);
  background: rgba(238,121,89,0.25);
}

.privacy {
  color: #ee7959;
  opacity: 0.85;
  font-size: 1em;
  text-decoration: underline;
  display: inline-block;
  margin-top: 8px;
  transition: opacity 0.18s, color 0.18s;
}

.privacy:hover, .privacy:focus {
  opacity: 1;
  color: #ffb88c;
}

@media (max-width: 500px) {
  .container {
    max-width: 80vw;
    padding: calc(24px + env(safe-area-inset-top)) calc(2vw + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(2vw + env(safe-area-inset-left));
    border-radius: 16px;
    margin: 0 6px;
  }
  .logo {
    width: 40%;
    margin-bottom: 18px;
  }
  .banner {
    border-radius: 10px;
  }
  .btn {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 0.8em;
    padding: 12px 0;
    border-radius: 32px;
  }
  .socials a svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 400px) {
  .container {
    width: 95vw;
    padding: 16px 8px;
    border-radius: 18px;
  }
  .btn {
    font-size: 0.8rem;
    padding: 8px 0;
    margin: 5px 0;
    border-radius: 24px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .icon-row {
    gap: 16px;
    margin-top: 16px;
  }
}