:root {
  --sky:#65cef1;
  --sky2:#8bdcf5;
  --blue:#0870b0;
  --ink:#16455f;
  --brand-red:#e83f42}

* {
  box-sizing:border-box}

html {
  scroll-behavior:smooth}

body {
  margin:0;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:linear-gradient(180deg,var(--sky2) 0%,var(--sky) 58%,#78d5f3 100%);
  min-height:100vh}

a {
  color:inherit;
  text-decoration:none}

header {
  height:64px;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(12px);
  display:flex;
  align-items:center;
  position:relative;
  z-index:20;
  box-shadow:0 1px 0 rgba(19,89,123,.08)}

.header {
  width:min(1120px,calc(100% - 40px));
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center}

.brand {
  font-size:25px;
  font-weight:850;
  color:var(--blue);
  letter-spacing:-.7px}

nav {
  display:flex;
  gap:36px;
  color:#346b87;
  font-size:14px;
  font-weight:600}

.sky-world {
  position:relative;
  overflow:hidden;
  min-height:calc(100vh - 64px);
  padding:24px 20px 64px}

.cloud-img {
  position:absolute;
  z-index:1;
  pointer-events:none;
  user-select:none;
  opacity:.78;
  object-fit:contain}

.cloud1 {
  width:310px;
  left:-70px;
  top:95px}

.cloud2 {
  width:250px;
  right:-45px;
  top:135px;
  opacity:.68}

.cloud3 {
  width:220px;
  left:10%;
  top:560px;
  opacity:.45}

.cloud4 {
  width:190px;
  right:14%;
  top:650px;
  opacity:.38}

.cloud5 {
  width:160px;
  left:42%;
  top:800px;
  opacity:.30}

.side-copy {
  position:absolute;
  z-index:7;
  left:max(28px,calc(50% - 600px));
  top:115px;
  transform:rotate(-7deg);
  transform-origin:left top}

.intro {
  margin:0}

.intro h1 {
  margin:0 0 14px;
  color:var(--brand-red);
  font-size:clamp(48px,5.8vw,78px);
  line-height:.9;
  font-weight:900;
  letter-spacing:-4px;
  text-shadow:0 3px 0 rgba(255,255,255,.28)}

.tagline-side {
  color:var(--brand-red);
  font-family:"Comic Sans MS","Bradley Hand",cursive;
  font-size:clamp(25px,2.5vw,38px);
  font-weight:700;
  line-height:1.05;
  text-align:left;
  text-shadow:0 2px 0 rgba(255,255,255,.18)}

.tagline-side span {
  display:block}

.scribble-side {
  width:150px;
  height:12px;
  margin:2px 0 0 12px;
  border-bottom:5px solid var(--brand-red);
  border-radius:50%;
  transform:rotate(-5deg)}

.hero-wrap {
  height:515px;
  position:relative;
  z-index:3;
  display:flex;
  justify-content:center;
  align-items:center;
  padding-top:46px}

.hero {
  display:block;
  width:min(1220px,108vw);
  height:535px;
  object-fit:contain;
  filter:drop-shadow(0 18px 18px rgba(21,100,136,.13));
  transform:translateY(18px)}

.games {
  position:relative;
  z-index:5;
  width:min(1040px,100%);
  margin:78px auto 0}

.games-title {
  text-align:left;
  color:#174C68;
  font-size:17px;
  font-weight:750;
  letter-spacing:.3px;
  margin:0 0 34px;
  opacity:.94;
  padding-left:2px}

.float-grid {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:30px 34px;
  align-items:start}

.game {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  transition:transform .18s ease}

.game:nth-child(3n+1) {
  transform:translateY(8px) rotate(-1.5deg)}

.game:nth-child(3n+2) {
  transform:translateY(-7px) rotate(1.4deg)}

.game:nth-child(3n) {
  transform:translateY(4px) rotate(-.5deg)}

.game:hover {
  transform:translateY(-8px) scale(1.06);
  z-index:6}

.game img {
  display:block;
  width:78px;
  max-width:100%;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:25%;
  box-shadow:0 12px 24px rgba(19,86,119,.2);
  border:3px solid rgba(255,255,255,.7)}

.game span {
  font-size:12px;
  font-weight:700;
  color:#fff;
  text-align:center;
  text-shadow:0 1px 3px rgba(13,85,119,.35);
  max-width:95px}

footer {
  text-align:center;
  background:rgba(255,255,255,.82);
  padding:18px;
  font-size:12px;
  color:#477287;
  position:relative;
  z-index:10}

@media(max-width:800px) {
  nav {
  gap:18px}

.sky-world {
  padding-top:28px}

.hero-wrap {
  height:360px;
  padding-top:34px}

.hero {
  width:104vw;
  height:350px;
  transform:translateY(12px)}

.float-grid {
  grid-template-columns:repeat(4,1fr);
  gap:24px 20px}

.game img {
  width:70px}

.intro h1 {
  letter-spacing:-2.5px}
}

@media(max-width:520px) {
  header {
  height:58px}

.header {
  width:calc(100% - 28px)}

nav a:not(:first-child) {
  display:none}

.sky-world {
  min-height:calc(100vh - 58px);
  padding:24px 14px 48px}

.side-copy {
  left:16px;
  top:92px;
  transform:rotate(-7deg)}

.intro h1 {
  font-size:42px;
  letter-spacing:-2px;
  margin-bottom:10px}

.tagline-side {
  font-size:23px}

.scribble-side {
  width:100px;
  border-bottom-width:4px}

.hero-wrap {
  height:350px;
  padding-top:30px}

.hero {
  width:138vw;
  height:350px;
  transform:translateY(10px)}

.games {
  margin-top:58px}

.games-title {
  text-align:left;
  margin-bottom:30px;
  padding-left:4px}

.float-grid {
  grid-template-columns:repeat(3,1fr);
  gap:22px 14px}

.game img {
  width:62px}

.game span {
  font-size:11px}

.cloud3,.cloud4,.cloud5 {
  display:none}

.cloud1 {
  width:190px;
  left:-65px;
  top:125px}

.cloud2 {
  width:165px;
  right:-55px;
  top:185px}
}
  
.bottom-clouds {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.games,
.hero-wrap,
.side-copy {
  position: relative;
  z-index: 5;
}


/* Contact modal */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 61, 84, 0.38);
  backdrop-filter: blur(5px);
}

.contact-modal.is-open {
  display: flex;
}

.contact-card {
  position: relative;
  width: min(520px, 100%);
  padding: 32px;
  background: #fffdf7;
  border-radius: 28px;
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, 0.95),
    inset 0 -5px 12px rgba(23, 76, 104, 0.08),
    0 24px 70px rgba(13, 61, 84, 0.28);
}

.contact-card h2 {
  margin: 0 0 8px;
  color: #174c68;
  font-size: 30px;
}

.contact-card p {
  margin: 0 0 24px;
  color: #55717f;
  line-height: 1.5;
}

.contact-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #174c68;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 7px;
}

.contact-field label {
  color: #174c68;
  font-size: 13px;
  font-weight: 800;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(23, 76, 104, 0.18);
  border-radius: 14px;
  padding: 13px 14px;
  background: #ffffff;
  color: #173d50;
  font: inherit;
  outline: none;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10);
}

.contact-field textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-send {
  margin-top: 4px;
  border: 0;
  border-radius: 15px;
  padding: 14px 20px;
  background: #ef4444;
  color: white;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(239, 68, 68, 0.22);
}

.contact-note {
  margin: 0 !important;
  text-align: center;
  font-size: 12px;
  color: #78909b !important;
}


.contact-email-copy {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #55717f;
}

.contact-email-copy button {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #174c68;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.contact-copy-status {
  display: inline-block;
  min-width: 48px;
  margin-left: 7px;
  color: #55717f;
  font-size: 12px;
}

/* Mobile navigation */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 102;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #174c68;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 720px) {
  header .header {
    position: relative;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  header nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    min-width: 190px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 14px 40px rgba(20,72,95,.18);
    flex-direction: column;
    align-items: stretch;
    z-index: 101;
  }

  header nav.is-open {
    display: flex;
  }

  header nav a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    white-space: nowrap;
  }

  header nav a:hover {
    background: rgba(101,206,241,.14);
  }
}
