:root {
  --sky: #3aa4ee;
  --deep: #1e3fa8;
  --panel: rgba(12, 36, 104, .6);
  --ice: #e4f0ff;
  --gem: #f47fb8;
  --gem-dark: #c9558f;
  --sand: #e9cf9a;
}
* { box-sizing: border-box; }
html { background: var(--deep); }
body {
  display: flex; flex-direction: column;
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ice);
  background: linear-gradient(var(--sky), var(--deep)) fixed;
  overflow-x: hidden;
}
h2, .tagline, .btn, .features strong { font-family: "Fredoka", "Nunito", sans-serif; font-weight: 500; }
h2 { margin: 0 0 .6rem; color: #fff; font-size: 1.7rem; }
a { color: #fff; }

.hero { text-align: center; padding: 2rem 1rem 1rem; position: relative; }
.hero-img { width: min(920px, 100%); height: auto; border-radius: 18px; box-shadow: 0 10px 30px rgba(10, 25, 80, .35);  filter: drop-shadow(0 0 28px rgba(244,127,184,.35)); }
.tagline { font-size: clamp(1.25rem, 3vw, 1.75rem); margin: 1.5rem 0 1.2rem; color: #fff; text-shadow: 0 2px 8px rgba(10, 25, 80, .45); }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 2.6rem; font-size: 1.35rem;
  color: #fff; background: var(--gem); text-decoration: none; border-radius: 999px;
  box-shadow: 0 5px 0 var(--gem-dark), 0 12px 28px rgba(244, 127, 184, .45);
  transition: transform .15s, box-shadow .15s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--gem-dark), 0 16px 32px rgba(244, 127, 184, .55); }
.release { margin: 1rem 0 0; color: #fff; font-weight: 700; }

main { width: 100%; max-width: 920px; margin: 0 auto; padding: 1rem; display: grid; gap: 3rem; position: relative; }
.trailer video, .gallery img { width: 100%; display: block; border-radius: 18px; box-shadow: 0 10px 30px rgba(10, 25, 80, .35); background: #0b1d55; aspect-ratio: 16 / 9; object-fit: cover; }
.panel { background: var(--panel); border: 3px solid rgba(255,255,255,.85); border-radius: 10px; padding: 1.6rem 1.8rem; box-shadow: 5px 5px 0 rgba(10, 25, 80, .45); }
.panel p { margin: 0; }
.about { text-align: center; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.features div { display: grid; text-align: center; padding: 1rem .5rem; border-radius: 10px; background: var(--panel); border: 3px solid rgba(255,255,255,.85); box-shadow: 4px 4px 0 rgba(10, 25, 80, .45); }
.features strong { font-family: "Pixelify Sans", "Fredoka", sans-serif; font-weight: 600; font-size: 2.4rem; color: #fff; line-height: 1.1; white-space: nowrap; text-shadow: 2px 2px 0 var(--gem-dark); }
.features span { opacity: 1; font-weight: 600; }

.section-title { text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.gallery .wide { grid-column: 1 / -1; }
.gallery a { display: block; transition: transform .15s; }
.gallery a:hover { transform: translateY(-3px); }

.tags { max-width: 640px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.tags span { padding: .35rem 1.1rem; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-weight: 600; color: #fff; }

.cta-end { text-align: center; padding: 1rem 0; }

footer { position: relative; margin-top: auto; padding-top: 2rem; }
.seabed { height: 70px; background: var(--sand); clip-path: polygon(0 55%, 8% 35%, 20% 50%, 35% 25%, 50% 45%, 65% 20%, 80% 45%, 92% 30%, 100% 50%, 100% 100%, 0 100%); }
.foot { background: var(--sand); color: #6b4f1d; text-align: center; padding: 0 1rem 2rem; font-weight: 600; margin-top: -1px; }
.foot a { color: #6b4f1d; }

.fish { position: fixed; z-index: 0; width: 220px; height: 60px; background: #1b4fb8; opacity: .25; border-radius: 100% 0 100% 0 / 100% 0 100% 0; pointer-events: none; animation: swim 40s linear infinite; }
.f1 { top: 18%; }
.f2 { top: 62%; width: 160px; animation-duration: 55s; animation-delay: -20s; }
@keyframes swim { from { left: -250px; } to { left: 105%; } }
@media (prefers-reduced-motion: reduce) { .fish { display: none; } }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  main { padding: .75rem 16px; gap: 1.5rem; }
  .hero { padding: 1.25rem 16px .5rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { gap: .6rem; }
  .btn { width: 100%; justify-content: center; padding: .9rem 1rem; }
  .panel { padding: 1.2rem; }
}

.trailer { position: relative; }
.play { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border: 0; border-radius: 50%; cursor: pointer; background: var(--gem); box-shadow: 0 5px 0 var(--gem-dark), 0 12px 28px rgba(10, 25, 80, .45); transition: transform .15s; }
.play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 18px 0 18px 30px; border-color: transparent transparent transparent #fff; }
.play:hover { transform: scale(1.08); }
.play[hidden] { display: none; }
.gallery a { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 10; background: rgba(5, 15, 50, .9); display: grid; place-items: center; padding: 1rem; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
@media (max-width: 640px) { main { gap: 2.25rem; } .play { width: 64px; height: 64px; } .play::after { border-width: 13px 0 13px 22px; } }

a:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.play:focus-visible { outline-offset: 5px; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255,255,255,.18); color: #fff; font: 500 2rem/1 "Fredoka", sans-serif; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-nav:hover { background: var(--gem); }
.lightbox img { cursor: default; }
@media (max-width: 640px) { .gallery .wide { grid-column: 1 / -1; } .gallery { gap: .75rem; } }

.btn { font-size: 1.4rem; padding: 1.05rem 2.8rem; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 5px 0 var(--gem-dark), 0 12px 28px rgba(244,127,184,.45); } 50% { box-shadow: 0 5px 0 var(--gem-dark), 0 12px 42px rgba(244,127,184,.85); } }
.btn:hover { animation: none; }
@media (prefers-reduced-motion: reduce) { .btn { animation: none; } }
.badge { display: inline-block; padding: .25rem 1rem; border-radius: 999px; background: rgba(12,36,104,.6); border: 2px solid rgba(255,255,255,.85); font-weight: 700; }
.pitch { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .5rem; justify-items: center; font-weight: 600; }
.pitch span { margin-right: .4rem; }
.gallery a { overflow: hidden; border-radius: 18px; }
.gallery a img { transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a[href*="shot4"] img { filter: brightness(1.25) contrast(1.05); }
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: rgba(12,36,104,.92); transform: translateY(110%); transition: transform .25s; }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; justify-content: center; animation: none; padding: .8rem 1rem; font-size: 1.2rem; }
  body { padding-bottom: 4.5rem; }
  .btn { padding: 1rem; }
}

.features strong { font-family: "Fredoka", sans-serif; font-weight: 600; }
.pitch { grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; align-items: start; }
.pitch li { display: grid; justify-items: center; gap: .3rem; }
.pitch span { margin: 0; font-size: 2rem; line-height: 1; }
@media (max-width: 600px) { .pitch { grid-template-columns: 1fr; } .pitch li { grid-template-columns: auto 1fr; justify-items: start; text-align: left; align-items: center; gap: .8rem; } .pitch span { font-size: 1.6rem; } }
.hint { text-align: center; margin: -.2rem 0 1rem; font-size: .95rem; }
.gallery a { position: relative; display: block; border: 3px solid rgba(255,255,255,.85); box-shadow: 4px 4px 0 rgba(10,25,80,.45); border-radius: 12px; }
.gallery img { box-shadow: none; border-radius: 0; }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .5rem; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(8,24,78,.85)); }
.bubbles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bubbles i { position: absolute; bottom: -40px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: rgba(255,255,255,.12); animation: rise 14s linear infinite; }
.bubbles i:nth-child(1) { left: 8%; }
.bubbles i:nth-child(2) { left: 22%; width: 22px; height: 22px; animation-duration: 18s; animation-delay: -6s; }
.bubbles i:nth-child(3) { left: 38%; animation-duration: 12s; animation-delay: -3s; }
.bubbles i:nth-child(4) { left: 55%; width: 10px; height: 10px; animation-delay: -9s; }
.bubbles i:nth-child(5) { left: 70%; width: 18px; height: 18px; animation-duration: 16s; animation-delay: -1s; }
.bubbles i:nth-child(6) { left: 84%; animation-duration: 20s; animation-delay: -12s; }
.bubbles i:nth-child(7) { left: 94%; width: 12px; height: 12px; animation-delay: -5s; }
@keyframes rise { from { transform: translateY(0); } to { transform: translateY(-115vh); } }
@media (prefers-reduced-motion: reduce) { .bubbles { display: none; } }

/* hero: blend banner into the page, add drifting light rays */
.hero { overflow: hidden; padding-top: 2.5rem; }
.hero > * { position: relative; z-index: 1; }
.hero .rays { position: absolute; inset: -20% -10% 0; z-index: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(105deg, transparent 0 70px, rgba(255,255,255,.14) 70px 120px, transparent 120px 220px);
  -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%);
  animation: sway 16s ease-in-out infinite alternate; }
@keyframes sway { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.hero-img { border-radius: 0; box-shadow: none; filter: drop-shadow(0 0 32px rgba(244,127,184,.4));
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 66% at 50% 50%, #000 62%, transparent 100%); }
@media (prefers-reduced-motion: reduce) { .hero .rays { animation: none; } }

/* captions: stronger scrim */
.gallery .cap { padding: 2.2rem 1rem .6rem; background: linear-gradient(transparent, rgba(6,18,64,.92) 70%); text-shadow: 0 2px 4px rgba(0,0,0,.6); font-size: 1.05rem; }
@media (max-width: 640px) { .gallery .cap { font-size: .85rem; padding: 1.6rem .6rem .4rem; } }

/* pitch row: bigger icons + descriptions */
.pitch { text-align: center; }
.pitch span { font-size: 2.8rem; }
.pitch b { font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 1.2rem; color: #fff; }
.pitch small { font-size: .95rem; font-weight: 400; opacity: .95; line-height: 1.4; }
@media (max-width: 600px) { .pitch li { grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; text-align: left; } .pitch span { grid-row: 1 / 3; font-size: 2.2rem; } }

/* hover motion */
.features div { transition: transform .15s, box-shadow .15s; }
.features div:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 rgba(10,25,80,.45); }

/* lightbox counter */
.lb-count { position: absolute; top: 1.6rem; left: 50%; transform: translateX(-50%); font-weight: 700; color: #fff; }

/* round 7: livelier hero, trust, gallery tweaks */
.hero-img { width: min(1000px, 100%); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } }
.tagline { margin: .6rem 0 1.2rem; }
.btn .steam { width: 1.6rem; height: 1.6rem; flex: none; fill: currentColor; }
.notify { margin: .8rem 0 0; font-size: .95rem; opacity: .95; }
.release { margin-top: .9rem; }
.gallery a[href*="shot4"] img { transform: scale(1.3); transform-origin: 26% 78%; filter: brightness(1.2); }
.gallery a[href*="shot4"]:hover img { transform: scale(1.36); }
.gallery a[href*="shot1"] img { filter: brightness(1.7) saturate(1.2); }
.gallery .clip { position: relative; overflow: hidden; border: 3px solid rgba(255,255,255,.85); box-shadow: 4px 4px 0 rgba(10,25,80,.45); border-radius: 12px; }
.gallery .clip video { width: 100%; height: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.foot-cta { display: inline-block; margin: .2rem 0 .6rem; padding: .5rem 1.4rem; border-radius: 999px; background: var(--gem); color: #fff; text-decoration: none; font-family: "Fredoka", sans-serif; font-size: 1.1rem; box-shadow: 0 3px 0 var(--gem-dark); }
.foot a.foot-cta { color: #fff; }
@media (max-width: 640px) {
  .gallery a, .gallery .clip { overflow: hidden; }
  .gallery .cap { position: static; display: block; padding: .35rem .6rem; background: rgba(6,18,64,.92); font-size: .8rem; text-shadow: none; }
  .pitch li { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .3rem; }
  .pitch span { grid-row: auto; font-size: 2.4rem; }
  .btn .steam { width: 1.4rem; height: 1.4rem; }
}

/* round 8 */
.gallery .clip video { height: auto; }
.gallery a[href*="shot1"] img { filter: brightness(1.4) saturate(.8); }
.notify { font-size: 1rem; opacity: .95; }
.about { background: rgba(20, 84, 156, .55); }
.seabed { height: 90px; }
.foot-cta { margin: 0 0 1rem; padding: .6rem 1.6rem; }
@media (max-width: 640px) {
  .hero-img { width: 135%; max-width: none; margin-left: -17.5%; }
}

/* round 9 */
.gallery a[href*="shot1"] img { filter: none; }
.gallery a[href*="shot4"] img { transform: scale(3); transform-origin: 7% 82%; filter: brightness(1.2); }
.gallery a[href*="shot4"]:hover img { transform: scale(3.1); }
.notify { text-shadow: 0 1px 4px rgba(10, 25, 80, .6); }
.about { background: rgba(32, 124, 196, .62); border-color: #fff; }
.seabed { height: 64px; }
.foot-cta { margin: 0 0 .7rem; }
.foot { padding-bottom: 1.5rem; }
@media (max-width: 640px) {
  .hero-img { width: 120%; margin-left: -10%; }
}

/* round 10 */
.gallery a[href*="shot4"] img { transform: scale(3.4); transform-origin: 4% 84%; }
.gallery a[href*="shot4"]:hover img { transform: scale(3.5); }
.gallery a[href*="shot1"] img { transform: scale(1.15); transform-origin: 50% 100%; }
.gallery a[href*="shot1"]:hover img { transform: scale(1.2); }

/* round 11: skill tree is the original Steam screenshot again */
.gallery a[href*="shot1"] img { transform: none; transform-origin: 50% 50%; filter: brightness(1.3) saturate(.9); }
.gallery a[href*="shot1"]:hover img { transform: scale(1.04); }

/* round 12: frame Lutro fully (head to paws) */
.gallery a[href*="shot4"] img { transform: scale(2.25); transform-origin: 0% 100%; filter: brightness(1.2); }
.gallery a[href*="shot4"]:hover img { transform: scale(2.3); }

/* round 13: logo back in its rounded box (no fade) */
.hero-img { width: min(920px, 100%); max-width: 100%; margin-left: 0; border-radius: 18px; box-shadow: 0 10px 30px rgba(10, 25, 80, .35); filter: none; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 640px) { .hero-img { width: 100%; margin-left: 0; } }
