@font-face {
  font-family: 'Coiny';
  src: url('images/Coiny-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

:root {
  --blue-light: #7fd3f0;
  --blue-mid: #3a8bbf;
  --blue-deep: #1b3f6a;
  --blue-darkest: #0d2240;
  --white: #ffffff;
  --white-90: rgba(255,255,255,0.9);
  --white-60: rgba(255,255,255,0.6);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --glass-bg: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Coiny', system-ui, sans-serif;
  color: var(--white);
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue-mid) 30%, var(--blue-deep) 70%, var(--blue-darkest) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(13, 34, 64, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-logo span {
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav ul a {
  text-decoration: none;
  color: var(--white-90);
  font-size: 1rem;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--blue-light);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/gradient_background.png') center/cover no-repeat;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  margin-bottom: 28px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.35);
  margin-bottom: 16px;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--white-90);
  margin-bottom: 36px;
  line-height: 1.5;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--blue-darkest);
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-family: 'Coiny', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.btn-appstore:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}

.btn-appstore svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Floating bubbles in hero */
.bubbles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.bubble {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.55), rgba(180,220,255,0.15) 60%, transparent 80%);
  border: 1px solid rgba(255,255,255,0.3);
  animation: rise linear infinite;
  opacity: 0;
}

@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(1);   opacity: 0; }
  5%   { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-110vh) translateX(30px) scale(0.85); opacity: 0; }
}

.bubble:nth-child(1)  { left: 8%;  width: 60px;  height: 60px;  animation-duration: 9s;  animation-delay: 0s; }
.bubble:nth-child(2)  { left: 18%; width: 40px;  height: 40px;  animation-duration: 11s; animation-delay: 2s; }
.bubble:nth-child(3)  { left: 30%; width: 80px;  height: 80px;  animation-duration: 14s; animation-delay: 5s; }
.bubble:nth-child(4)  { left: 45%; width: 30px;  height: 30px;  animation-duration: 8s;  animation-delay: 1s; }
.bubble:nth-child(5)  { left: 58%; width: 50px;  height: 50px;  animation-duration: 12s; animation-delay: 4s; }
.bubble:nth-child(6)  { left: 70%; width: 70px;  height: 70px;  animation-duration: 15s; animation-delay: 0s; }
.bubble:nth-child(7)  { left: 80%; width: 35px;  height: 35px;  animation-duration: 10s; animation-delay: 7s; }
.bubble:nth-child(8)  { left: 90%; width: 55px;  height: 55px;  animation-duration: 13s; animation-delay: 3s; }
.bubble:nth-child(9)  { left: 5%;  width: 45px;  height: 45px;  animation-duration: 16s; animation-delay: 8s; }
.bubble:nth-child(10) { left: 60%; width: 90px;  height: 90px;  animation-duration: 18s; animation-delay: 6s; }

/* ── Sections ── */
section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 48px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* ── Game Modes ── */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.mode-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s, box-shadow 0.25s;
}

.mode-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.mode-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
}

.mode-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.mode-card p {
  font-size: 1rem;
  color: var(--white-90);
  line-height: 1.55;
  font-family: system-ui, sans-serif;
}

/* ── Daily Challenges ── */
.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.challenge-card {
  background: var(--white-10);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 22px 20px;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}

.challenge-card:hover {
  background: var(--white-20);
  transform: translateY(-4px);
}

.challenge-card .ch-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.challenge-card h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.challenge-card p {
  font-size: 0.88rem;
  color: var(--white-90);
  line-height: 1.5;
  font-family: system-ui, sans-serif;
}

/* ── Worlds ── */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.world-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/16;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  transition: transform 0.25s;
}

.world-card:hover {
  transform: scale(1.03);
}

.world-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.world-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  padding: 28px 16px 16px;
  font-size: 1.3rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* ── Achievements ── */
.achievements-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.achievement {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(6px);
}

.achievement-badge {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.achievement h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.achievement p {
  font-size: 0.85rem;
  color: var(--white-90);
  line-height: 1.4;
  font-family: system-ui, sans-serif;
}

/* ── Footer ── */
footer {
  background: rgba(13,34,64,0.8);
  border-top: 1px solid var(--glass-border);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.9rem;
  color: var(--white-60);
  font-family: system-ui, sans-serif;
}

footer a {
  color: var(--blue-light);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .footer-links {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── Level Mechanics ── */
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--white-90);
  margin-top: -32px;
  margin-bottom: 40px;
  font-family: system-ui, sans-serif;
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.mechanic-card {
  background: var(--white-10);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 22px 20px;
  transition: background 0.2s, transform 0.2s;
}

.mechanic-card:hover {
  background: var(--white-20);
  transform: translateY(-4px);
}

.mech-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.mechanic-card h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.mechanic-card p {
  font-size: 0.88rem;
  color: var(--white-90);
  line-height: 1.5;
  font-family: system-ui, sans-serif;
}

/* ── Bubble Skins ── */
.skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.skin-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 12px 14px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform 0.2s, background 0.2s;
}

.skin-card:hover {
  transform: translateY(-5px) scale(1.04);
  background: var(--white-20);
}

.skin-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.skin-card span {
  font-size: 1rem;
  color: var(--white-90);
}

/* ── Soundtrack ── */
.soundcloud-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav ul {
    gap: 16px;
  }
  nav ul li:not(:last-child) a {
    display: none;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
}
