@font-face {
  font-family: "Merienda";
  src: url("assets/Merienda-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Merienda", Georgia, serif;
  background: #020914;
  color: #fff7dc;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body { background: #020914; }

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 44px);
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(2, 10, 24, .18), rgba(1, 9, 19, .38) 52%, #020914 100%),
    url("assets/harbor-background.png") center 43% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 34%, rgba(255, 224, 141, .12), transparent 23%);
}

.mist {
  position: absolute;
  inset: 48% -15% auto;
  height: 20%;
  z-index: -1;
  opacity: .35;
  filter: blur(24px);
  background: linear-gradient(180deg, transparent, rgba(190, 218, 225, .5), transparent);
}

.content {
  width: min(760px, calc(100% - 36px));
  margin-top: -4vh;
  padding: 30px 30px 34px;
  text-align: center;
  border: 1px solid rgba(225, 189, 104, .32);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(4, 20, 37, .72), rgba(2, 12, 24, .86));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .48), inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}

.game-logo {
  width: clamp(116px, 19vw, 164px);
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,.58));
}

h1 {
  margin: 2px 0 10px;
  color: #ffdf8d;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  text-shadow: 0 5px 0 #4d2a12, 0 10px 22px rgba(0,0,0,.62);
}

h1 span {
  display: block;
  margin-bottom: .28em;
  font-size: .36em;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.tagline {
  margin: 0 auto 28px;
  color: #d5e3e7;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  letter-spacing: .025em;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.store-button {
  display: flex;
  align-items: center;
  width: 218px;
  min-height: 68px;
  padding: 10px 17px;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 15px;
  background: linear-gradient(180deg, #17202a, #05080c 66%);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.05;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.12);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-3px);
  border-color: #ffe29a;
  box-shadow: 0 13px 30px rgba(0,0,0,.48), 0 0 0 3px rgba(255, 220, 130, .14);
}

.store-button svg { width: 36px; height: 42px; margin-right: 12px; fill: #fff; flex: 0 0 auto; }
.store-button span { text-align: left; }
.store-button small { display: block; margin-bottom: 3px; font-size: .62rem; font-weight: 500; letter-spacing: .04em; }
.store-button .play-icon { width: 38px; }
.play-blue { fill: #3f9cf4; }
.play-green { fill: #36c875; }
.play-red { fill: #f04c4c; }
.play-yellow { fill: #ffd152; }

.ocean {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 16%;
  background: linear-gradient(180deg, rgba(3, 31, 51, .3), #010711);
}

.ocean span {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 2px;
  border-radius: 50%;
  background: rgba(104, 171, 184, .25);
  animation: swell 6s ease-in-out infinite alternate;
}
.ocean span:nth-child(1) { top: 18%; }
.ocean span:nth-child(2) { top: 41%; animation-delay: -2s; animation-duration: 7.5s; }
.ocean span:nth-child(3) { top: 66%; animation-delay: -4s; animation-duration: 9s; }

footer {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #6f8792;
  background: #020914;
  font-family: Georgia, serif;
  font-size: .78rem;
}

footer a { color: #a9bdc5; text-underline-offset: 3px; }
footer a:hover { color: #ffe29a; }

@keyframes swell {
  from { transform: translateX(-2%) scaleY(1); }
  to { transform: translateX(2%) scaleY(2.2); }
}

@media (max-width: 540px) {
  .content { padding: 24px 16px 28px; border-radius: 22px; }
  .store-button { width: min(242px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
