/* iamsax.com/reefrumble: the game's pages. Built into site/reefrumble/assets by scripts/site/build.mjs */
@font-face { font-family: "Lilita One"; src: url(fonts/lilita-one.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Fredoka; font-weight: 400; src: url(fonts/fredoka-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Fredoka; font-weight: 600; src: url(fonts/fredoka-600.woff2) format("woff2"); font-display: swap; }

:root {
  --navy: #0d2447; --ink: #17253f; --soft: #51607c; --paper: #f1f8ff; --line: #cfe4f8; --yellow: #ffd23f; --link: #0b6fc2;
  --sea: linear-gradient(115deg, #1b8fe6 0%, #3f6fe3 34%, #8b4fd9 60%, #e2569f 82%, #f7a23e 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 Fredoka, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: "Lilita One", Fredoka, sans-serif; font-weight: 400; line-height: 1.1; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.small { font-size: 14px; }

/* the bar on top */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 400 21px "Lilita One", sans-serif; text-shadow: 0 2px 0 rgba(13, 36, 71, .55); white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 3px 0 rgba(13, 36, 71, .35); }
.nav { display: flex; gap: 6px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 10px; text-shadow: 0 1px 0 rgba(13, 36, 71, .5); }
.nav a:hover, .nav a:focus-visible { background: rgba(255, 255, 255, .18); }

/* the landing page */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 92px 0 44px;
  background: radial-gradient(90% 70% at 12% 0%, rgba(74, 205, 255, .85) 0%, transparent 60%), var(--sea); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 8% 30%, rgba(255, 255, 255, .5) 0 5px, transparent 6px), radial-gradient(circle at 16% 62%, rgba(255, 255, 255, .35) 0 9px, transparent 10px),
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, .4) 0 7px, transparent 8px), radial-gradient(circle at 78% 54%, rgba(255, 255, 255, .3) 0 4px, transparent 5px), radial-gradient(circle at 94% 70%, rgba(255, 255, 255, .35) 0 10px, transparent 11px); }
.hero .wrap { position: relative; }
.hero .logo { width: min(74vw, 400px); margin: 0 auto; filter: drop-shadow(0 10px 0 rgba(13, 36, 71, .22)); }
.hero h1 { font-size: clamp(30px, 5.6vw, 58px); margin: 14px 0 10px; letter-spacing: .5px; text-shadow: 0 3px 0 var(--navy), 0 8px 18px rgba(13, 36, 71, .35); }
.hero h1 em { font-style: normal; color: var(--yellow); display: block; }
.lead { max-width: 620px; margin: 0 auto 22px; font-size: clamp(17px, 2.2vw, 20px); text-shadow: 0 1px 0 rgba(13, 36, 71, .45); }
.meta { margin: 14px 0 0; font-size: 15px; font-weight: 600; text-shadow: 0 1px 0 rgba(13, 36, 71, .45); }
.cta { display: inline-flex; align-items: center; gap: 12px; text-align: left; background: var(--navy); color: #fff; border: 3px solid #fff; border-radius: 18px; padding: 10px 22px 10px 16px; text-decoration: none; box-shadow: 0 6px 0 rgba(13, 36, 71, .45); }
a.cta:hover, a.cta:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(13, 36, 71, .45); }
.cta svg { width: 30px; height: 30px; fill: #fff; flex: none; }
.cta small { display: block; font-size: 12px; line-height: 1.1; opacity: .85; }
.cta b { display: block; font: 400 23px/1.1 "Lilita One", sans-serif; letter-spacing: .3px; }

/* the six App Store pictures, side by side: one long scene to swipe through */
.pano { position: relative; margin-top: 34px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 20px 12px; }
.pano::-webkit-scrollbar { display: none; }
.pano:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.strip { display: flex; width: max-content; margin: 0 auto; border: 5px solid #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 10px 0 rgba(13, 36, 71, .28), 0 24px 40px rgba(13, 36, 71, .3); }
.strip img { height: min(66vh, 560px); width: auto; max-width: none; flex: none; scroll-snap-align: center; }

section h2 { font-size: clamp(26px, 4vw, 40px); text-align: center; color: var(--navy); }
.features { padding: 64px 0 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 30px; }
.card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 18px 18px 16px; box-shadow: 0 6px 0 var(--line); }
.card img { width: 84px; height: 84px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(13, 36, 71, .15)); }
.card h3 { font-size: 22px; color: var(--navy); margin: 4px 0 6px; }
.card p { margin: 0; color: var(--soft); }

.play { padding: 44px 0 64px; }
.play .sub { text-align: center; max-width: 640px; margin: 12px auto 0; color: var(--soft); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 28px; }
.two figure { margin: 0; border: 5px solid #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 6px 0 var(--line), 0 16px 30px rgba(13, 36, 71, .14); background: var(--navy); }

.band { background: var(--sea); color: #fff; text-align: center; padding: 56px 0 52px; }
.band img { width: 112px; height: 112px; margin: 0 auto 14px; border-radius: 26px; border: 4px solid #fff; box-shadow: 0 8px 0 rgba(13, 36, 71, .3); }
.band h2 { color: #fff; text-shadow: 0 3px 0 var(--navy); margin-bottom: 20px; }
.band .small { max-width: 640px; margin: 22px auto 0; opacity: .92; }

.foot { background: var(--navy); color: #c9d8ee; text-align: center; padding: 26px 0 30px; }
.foot p { margin: 0 0 8px; }
.foot a { color: #fff; }
.foot .small { opacity: .8; margin: 0; }

/* privacy, terms, support */
.doc { background: var(--paper); }
.doc .top { position: static; background: var(--sea); }
.doc main { padding-top: 28px; padding-bottom: 56px; }
.paper { max-width: 780px; margin: 0 auto; background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 30px 30px 22px; box-shadow: 0 6px 0 var(--line); }
.paper h1 { font-size: clamp(28px, 5vw, 38px); color: var(--navy); margin-bottom: 4px; }
.paper h2 { font-size: 22px; text-align: left; color: var(--navy); margin: 30px 0 8px; }
.paper p, .paper li { margin: 0 0 10px; }
.paper .date { color: var(--soft); margin-bottom: 22px; }

/* wide screens: all six fit side by side, nothing to scroll */
@media (min-width: 1000px) { .strip img { height: min(560px, calc((min(100vw, 1560px) - 70px) / 6 * 2.1667)); } }
@media (max-width: 560px) {
  .nav a { padding: 6px 7px; font-size: 15px; }
  .brand { font-size: 0; gap: 0; }            /* the icon alone: the name is in the logo right below */
  .doc .brand { font-size: 19px; gap: 8px; }
  .doc .top .wrap { flex-wrap: wrap; justify-content: center; }
  .hero { padding-top: 78px; }
  .card { padding: 14px; }
  .card img { width: 68px; height: 68px; }
  .paper { padding: 22px 18px 14px; }
  .strip img { height: min(62vh, 500px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.cta:hover { transform: none; } }
