:root {
  --cobalt: #0030A7;
  --deep: #001D6E;
  --sun: #FDD916;
  --foam: #FBF6EC;
  --ink: #0B1640;
  --muted: #4B5578;
  --coral: #FF6B57;
  --display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--foam); }
body { margin: 0; font: 500 17px/1.6 var(--body); color: var(--ink); background: var(--foam); }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

.sea { position: relative; overflow: hidden; color: #fff; background: url(img/sea.webp) 70% 100% / cover no-repeat, var(--cobalt); }
.sea::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; background: var(--foam); clip-path: path("M0 60 C 240 10, 480 10, 720 50 S 1200 100, 1600 30 L 1600 90 L 0 90 Z"); }
nav.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 26px/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 44px; height: auto; }
.links { display: flex; gap: 26px; font-weight: 800; }
.links a { text-decoration: none; opacity: .86; }
.links a:hover { opacity: 1; color: var(--sun); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; padding-block: 36px 200px; position: relative; z-index: 1; }
.kicker { display: inline-block; font: 800 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.12); padding: 9px 14px; border-radius: 999px; margin: 0 0 22px; }
h1 { font: 700 clamp(46px, 7.4vw, 92px)/.96 var(--display); letter-spacing: -.02em; margin: 0 0 22px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--sun); }
.lede { font-size: clamp(18px, 2vw, 21px); max-width: 33em; margin: 0 0 30px; color: #DCE5FF; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 600 19px/1 var(--display); text-decoration: none; }
.btn.sun { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 #C9A900; }
.btn.ghost { border: 2px solid rgba(255,255,255,.45); }
.btn:hover { transform: translateY(-2px); }
.fish-stage { position: relative; aspect-ratio: 1; max-width: 100%; }
.fish-stage img { width: 100%; height: auto; animation: swim 6s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(0,10,60,.35)); }
.bubble { position: absolute; border-radius: 50%; border: 3px solid rgba(255,255,255,.55); animation: rise 7s linear infinite; }
.b1 { width: 26px; height: 26px; right: 4%; bottom: 30%; }
.b2 { width: 14px; height: 14px; right: 12%; bottom: 20%; animation-delay: -2.5s; }
.b3 { width: 20px; height: 20px; right: 0; bottom: 12%; animation-delay: -4.5s; }
@keyframes swim { 0%, 100% { transform: translate(0, 0) rotate(-3deg); } 50% { transform: translate(-14px, -16px) rotate(2deg); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-360px); opacity: 0; } }

.games { margin-top: -150px; position: relative; z-index: 3; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head h2 { font: 700 clamp(30px, 4vw, 44px)/1 var(--display); margin: 0; color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.card { background: #fff; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 0 rgba(11,22,64,.08), 0 24px 50px rgba(0,48,167,.14); }
.media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.media video, .media img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.media:hover .shot, .media:hover video { transform: scale(1.04); }
.media .logo { position: absolute; left: 16px; bottom: 16px; width: 46%; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.media .play { position: absolute; right: 14px; top: 14px; background: rgba(11,22,64,.78); color: #fff; font: 800 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.hp .media { background: linear-gradient(160deg, #FF9CC9, #FFC27A); }
.mgb .media { background: #2E5B2A; }
.mgb .media .wm { position: absolute; left: 16px; bottom: 16px; right: 16px; font: 700 30px/.92 var(--display); color: #fff; text-transform: uppercase; text-shadow: 0 3px 0 #3a2e1b, 0 8px 18px rgba(0,0,0,.4); }
.mgb .media .wm b { color: #FFD23F; display: block; font-weight: 700; }
.hm .media { background: #F2E2C6; }
.body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag { align-self: flex-start; font: 800 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; }
.hp .tag { background: #FFE1EF; color: #A0195E; }
.mgb .tag { background: #FFF2BF; color: #6B4E00; }
.hm .tag { background: #FFE2DC; color: #A33E2F; }
.card h3 { font: 700 30px/1.05 var(--display); margin: 0; }
.card h3 a { text-decoration: none; }
.card p { margin: 0; color: var(--muted); }
.cta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cta .store img { display: block; height: 46px; width: auto; }
.cta .web { font: 800 16px/1 var(--body); color: var(--cobalt); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 3px; }
.cta .beta { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border-radius: 12px; background: #E8237D; color: #fff; font: 600 18px/1 var(--display); text-decoration: none; box-shadow: 0 4px 0 #A0195E; }

.tank { margin-top: 34px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--cobalt); color: #fff; border-radius: 26px; padding: 22px 26px; }
.tank .dots { display: flex; gap: 10px; }
.tank .dots span { width: 54px; height: 54px; border-radius: 16px; border: 2px dashed rgba(255,255,255,.5); display: grid; place-items: center; font: 700 26px/1 var(--display); color: var(--sun); }
.tank p { margin: 0; font-size: 18px; }
.tank strong { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--sun); display: block; }

.studio { padding-block: 84px 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.studio h2 { font: 700 clamp(34px, 4.4vw, 52px)/1.02 var(--display); margin: 0 0 16px; text-wrap: balance; }
.studio h2 span { color: var(--cobalt); }
.studio p { margin: 0 0 14px; max-width: 34em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { background: #fff; border-radius: 22px; padding: 18px 20px; box-shadow: 0 4px 0 rgba(11,22,64,.07); }
.fact b { display: block; font: 700 30px/1.1 var(--display); color: var(--cobalt); }
.fact span { color: var(--muted); font-size: 15px; }
.star { display: inline-block; width: 18px; height: 18px; vertical-align: -2px; background: #D52B1E; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

footer { background: var(--deep); color: #B7C4F0; padding-block: 34px 40px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: 8px 180px; }
  .fish-stage { max-width: 260px; justify-self: end; margin-top: -10px; order: -1; }
  .grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .studio { grid-template-columns: 1fr; gap: 28px; padding-block: 60px; }
}
@media (max-width: 520px) {
  .links a:not(:last-child) { display: none; }
  .fish-stage { position: absolute; right: -24px; top: 58px; width: 150px; }
  .hero { padding-top: 196px; }
  .tank { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.sea.slim { padding-bottom: 70px; }
.doc { padding-block: 24px 80px; max-width: 760px; }
.doc h1 { color: var(--ink); font-size: clamp(36px, 5vw, 56px); }
.doc p { margin: 0 0 16px; }
.doc a { color: var(--cobalt); font-weight: 800; }
.doc .updated { color: var(--muted); font-size: 15px; }
