/* Fathom Station: the page gets deeper (and darker) as you scroll, like the station itself. */
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
	--navy: #1b2838;
	--ink: #24324a;
	--cream: #fff6e0;
	--paper: #fdf3dc;
	--gold: #ffd23f;
	--brass: #e0a943;
	--coral: #ff7a6b;
	--teal: #2fb2aa;
	--radius: 22px;
	--max: 1160px;
	--shadow: 0 10px 30px rgba(5, 12, 26, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
	margin: 0; color: var(--cream); background: #0b1f3d;
	font: 500 18px/1.6 "Nunito", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff0a6; }
h1, h2, h3 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; line-height: 1.12; letter-spacing: .2px; margin: 0 0 .5em; }
h1 em, h2 em { font-style: normal; color: var(--gold); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 8px; }
.center { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.small { font-size: 15px; opacity: .85; }

/* header */
.top {
	position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 12px max(20px, calc((100vw - var(--max)) / 2)); background: rgba(11, 31, 61, .72);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 2px solid rgba(224, 169, 67, .35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font: 700 21px "Fredoka", sans-serif; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px var(--brass); }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { color: var(--cream); text-decoration: none; font: 600 16px "Fredoka", sans-serif; padding: 6px 12px; border-radius: 99px; }
.top nav a:hover { background: rgba(255, 246, 224, .12); color: var(--gold); }
@media (max-width: 720px) { .top nav a:not(:last-child) { display: none; } .brand span { font-size: 18px; } }

/* zones: each section is one depth of the ocean */
section { position: relative; padding: 96px max(20px, calc((100vw - var(--max)) / 2)) 88px; overflow: hidden; }
section h2 { font-size: clamp(30px, 4.4vw, 48px); text-align: center; text-shadow: 0 3px 0 rgba(5, 12, 26, .45); }
.zone-sunlit { background: linear-gradient(180deg, #4fc7ee 0%, #2a9fd4 55%, #1f7fb8 100%); }
.zone-twilight { background: linear-gradient(180deg, #1f7fb8 0%, #1d5c9c 50%, #173f7a 100%); }
.zone-midnight { background: linear-gradient(180deg, #173f7a 0%, #122b5c 50%, #0d1a3d 100%); }
.zone-abyssal { background: linear-gradient(180deg, #0d1a3d 0%, #1d1650 55%, #23184d 100%); }
.zone-hadal { background: linear-gradient(180deg, #23184d 0%, #10303f 55%, #0b2f3b 100%); }
.zone-bedrock { background: linear-gradient(180deg, #0b2f3b 0%, #08202a 100%); text-align: center; }
section::before {
	/* drifting bubbles */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55) 0 2px, transparent 3px), radial-gradient(circle, rgba(230,248,255,.35) 0 1px, transparent 2px);
	background-size: 180px 220px, 90px 130px; background-position: 0 0, 40px 60px;
	animation: rise 24s linear infinite;
}
@keyframes rise { to { background-position: 0 -880px, 40px -460px; } }
section > * { position: relative; }
.depth-tag {
	position: absolute; top: 22px; right: max(20px, calc((100vw - var(--max)) / 2)); z-index: 2;
	font: 600 14px "Fredoka", sans-serif; letter-spacing: 1px; text-transform: uppercase;
	padding: 6px 14px; border-radius: 99px; background: rgba(5, 12, 26, .35); border: 1px solid rgba(255, 246, 224, .25);
}
.hero .depth-tag { top: auto; bottom: 22px; right: auto; left: max(20px, calc((100vw - var(--max)) / 2)); }

/* hero */
.hero { padding-top: 56px; padding-bottom: 72px; }
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: repeating-linear-gradient(105deg, rgba(255, 248, 220, .07) 0 60px, transparent 60px 180px);
	mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-logo { width: min(420px, 80%); height: auto; margin-bottom: 18px; filter: drop-shadow(0 6px 10px rgba(5, 12, 26, .3)); }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); text-shadow: 0 4px 0 rgba(5, 12, 26, .35); }
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 600px; }
.hero-phone { position: relative; justify-self: center; width: min(360px, 82vw); }
.phone {
	border-radius: 44px; padding: 12px; background: var(--navy); box-shadow: 0 0 0 4px var(--brass), 0 30px 60px rgba(5, 12, 26, .5);
	transform: rotate(3deg); animation: bob 6s ease-in-out infinite;
}
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 34px; background: #2a9fd4; }
@keyframes bob { 50% { transform: rotate(2deg) translateY(-10px); } }
.float { position: absolute; width: 34%; height: auto; filter: drop-shadow(0 10px 12px rgba(5, 12, 26, .35)); animation: swim 7s ease-in-out infinite; }
.f1 { left: -22%; top: 10%; }
.f2 { right: -20%; top: 34%; animation-delay: -2s; }
.f3 { left: -18%; bottom: 4%; width: 40%; animation-delay: -4s; }
@keyframes swim { 50% { transform: translate(8px, -14px) rotate(-4deg); } }
@media (max-width: 900px) {
	.hero-in { grid-template-columns: 1fr; text-align: center; }
	.hero-logo, .lead { margin-left: auto; margin-right: auto; }
	.stores { justify-content: center; }
}

/* store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 10px; }
.zone-bedrock .stores { justify-content: center; }
.store {
	display: inline-flex; align-items: center; gap: 12px; min-width: 210px; padding: 10px 22px 12px; border-radius: 16px;
	background: #0b0f17; color: #f4f4f4; text-decoration: none; border: 2px solid rgba(255, 255, 255, .25);
	box-shadow: 0 5px 0 rgba(5, 12, 26, .55); transition: transform .12s, box-shadow .12s;
}
a.store:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 7px 0 rgba(5, 12, 26, .55); }
.store svg { width: 30px; height: 30px; flex: none; }
.store small { display: block; font: 600 12px/1.2 "Nunito", sans-serif; opacity: .8; letter-spacing: .3px; }
.store b { display: block; font: 700 21px/1.1 "Fredoka", sans-serif; }
.store.soon { cursor: default; opacity: .92; }
.btn {
	display: inline-block; padding: 12px 26px 14px; border-radius: 99px; background: var(--coral); color: var(--cream); text-decoration: none;
	font: 700 19px "Fredoka", sans-serif; box-shadow: 0 0 0 3px var(--navy), 0 6px 0 3px var(--navy); margin: 6px 0 14px;
}
.btn:hover { color: #fff; filter: brightness(1.06); }
.btn.alt { background: var(--teal); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.feature { background: rgba(5, 12, 26, .28); border: 2px solid rgba(224, 169, 67, .45); border-radius: var(--radius); padding: 14px 14px 22px; box-shadow: var(--shadow); }
.feature h3 { font-size: 24px; margin: 16px 8px 6px; color: var(--gold); }
.feature p { margin: 0 8px; font-size: 17px; }
.clip { border-radius: 16px; overflow: hidden; background: var(--navy); aspect-ratio: 9 / 12; box-shadow: inset 0 0 0 3px var(--navy); }
.clip video, .clip img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.clip.wide video { object-position: 20% 50%; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } .clip { aspect-ratio: 4 / 5; } }

/* creatures */
.zone-group { margin: 34px 0 0; }
.zone-group h3 { font-size: 22px; text-align: center; color: var(--gold); margin-bottom: 10px; }
.zone-group h3 span { color: var(--cream); opacity: .7; font-size: 16px; font-weight: 500; }
.critters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.critters li { width: 132px; text-align: center; font: 600 14px/1.25 "Fredoka", sans-serif; }
.critters img { width: 112px; height: 112px; margin: 0 auto 4px; filter: drop-shadow(0 6px 6px rgba(5, 12, 26, .35)); transition: transform .25s; }
.critters li:hover img { transform: scale(1.12) rotate(-5deg); }
.rare { color: var(--gold); }

/* trailer and gallery */
.trailer { max-width: 900px; margin: 36px auto 40px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 4px var(--brass), var(--shadow); background: var(--navy); }
.trailer video { width: 100%; aspect-ratio: 16 / 9; }
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px; scrollbar-color: var(--brass) transparent; }
.gallery button { flex: none; width: 240px; padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: center; border-radius: 30px; }
.gallery img { width: 100%; height: auto; filter: drop-shadow(0 12px 16px rgba(5, 12, 26, .45)); transition: transform .2s; }
.gallery button:hover img, .gallery button:focus-visible img { transform: translateY(-6px); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(5, 12, 26, .85); }
.lightbox img { max-height: 90vh; width: auto; border-radius: 18px; box-shadow: 0 0 0 4px var(--brass); }
.lightbox .close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--coral); color: var(--cream); font: 700 28px/1 "Fredoka"; cursor: pointer; }

/* FAQ */
.faq { max-width: 780px; margin: 30px auto 0; display: grid; gap: 12px; }
.faq details { background: rgba(5, 12, 26, .3); border: 2px solid rgba(224, 169, 67, .4); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font: 600 19px "Fredoka", sans-serif; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; }

.cta { padding-top: 80px; padding-bottom: 90px; }
.cta-icon { margin: 0 auto 18px; border-radius: 28px; box-shadow: 0 0 0 3px var(--navy), 0 0 0 7px var(--brass), var(--shadow); }

/* documents (privacy, terms, support, press) */
.doc {
	max-width: 820px; margin: 48px auto 80px; padding: 44px clamp(22px, 5vw, 56px); background: var(--paper); color: var(--ink);
	border-radius: 28px; box-shadow: 0 0 0 4px var(--brass), 0 0 0 8px var(--navy), var(--shadow);
}
.doc.wide { max-width: 1000px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); color: var(--navy); }
.doc h2 { font-size: 25px; color: #1f5a96; margin-top: 1.7em; text-align: left; text-shadow: none; }
.doc a { color: #c24d3f; }
.doc .meta { color: #7a6a52; margin-top: -8px; }
.doc li { margin-bottom: .35em; }
.doc .faq details { background: #fff9ea; border-color: #e7cf9a; }
.doc .faq summary { color: var(--navy); }
.doc .btn { color: var(--cream); }
.lost { text-align: center; }
.lost img { margin: 0 auto 10px; }
.factsheet dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; background: #fff9ea; border: 2px solid #e7cf9a; border-radius: 16px; padding: 18px 24px; }
.factsheet dt { font-weight: 800; color: var(--navy); }
.factsheet dd { margin: 0; }
.presslogos, .pressgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; align-items: center; }
.presslogos a { background: #1d5c9c; border-radius: 16px; padding: 14px; display: grid; place-items: center; min-height: 150px; }
.pressgrid a img { border-radius: 14px; box-shadow: 0 0 0 3px var(--navy); }
@media (max-width: 560px) { .factsheet dl { grid-template-columns: 1fr; } .factsheet dt { margin-top: 8px; } }

/* footer */
.foot { background: #061820; padding: 46px max(20px, calc((100vw - var(--max)) / 2)) 30px; border-top: 3px solid var(--brass); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.foot-brand img { width: 220px; height: auto; }
.foot-brand p { max-width: 340px; opacity: .8; }
.foot nav { display: grid; gap: 8px; }
.foot nav a { color: var(--cream); text-decoration: none; }
.foot nav a:hover { color: var(--gold); }
.legal { font-size: 13px; opacity: .55; margin-top: 30px; }

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