/* Sea Pirate website: wooden panels with brass trim and yellow outlined titles, like the game's UI. */
@font-face {
  font-family: "Luckiest Guy";
  src: url("/assets/LuckiestGuy-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --sea-deep: #062256;
  --sea: #0f4f93;
  --sea-light: #1a6fb5;
  --foam: #96e4ff;
  --wood: #3b2516;
  --wood-light: #5a3a22;
  --brass: #d9a648;
  --yellow: #ffd23f;
  --cream: #fff0cd;
  --outline: #3a1a05;
  --ink: #fdf8ee;
  --muted: #c9d9ef;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sea-deep);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--yellow); }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* outlined cartoon title text */
.title {
  font-family: "Luckiest Guy", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--yellow);
  -webkit-text-stroke: 0.08em var(--outline);
  paint-order: stroke fill;
  text-shadow: 0 0.09em 0 rgba(0, 0, 0, 0.35);
  margin: 0;
}

.title.cream { color: var(--cream); }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  padding: 14px 0;
}

.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.brand img { width: 42px; height: 42px; border-radius: 10px; border: 2px solid var(--brass); }

.brand span { font-size: 22px; }

.topbar nav { display: flex; gap: 18px; }

.topbar nav a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 15px; }

.topbar nav a:hover { color: var(--yellow); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px 12px;
  border-radius: 10px;
  border: 3px solid var(--outline);
  background: linear-gradient(#ffe27a, var(--yellow) 55%, #e8a92a);
  color: var(--outline);
  font-family: "Luckiest Guy", system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--outline), 0 12px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--outline), 0 6px 12px rgba(0, 0, 0, 0.3); }

.btn svg { width: 26px; height: 26px; flex: none; }

.btn small { display: block; font: 600 11px/1 system-ui, sans-serif; letter-spacing: 0.08em; }

.btn.ghost {
  background: var(--wood);
  color: var(--cream);
  border-color: var(--brass);
  box-shadow: 0 6px 0 #1d1209, 0 12px 22px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px 0 140px;
  background:
    radial-gradient(ellipse at 70% 45%, rgba(150, 228, 255, 0.55), transparent 55%),
    url("/assets/sea.webp") center / cover,
    var(--sea);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(6, 34, 86, 0.75));
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 24px;
}

.hero .kicker { font-size: clamp(20px, 3vw, 30px); }

.hero h1 { font-size: clamp(56px, 9vw, 112px); margin: 4px 0 14px; }

.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 34em;
  margin: 0 0 28px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.cta .note { font-size: 14px; color: var(--muted); }

.hero-art { position: relative; }

.hero-art .island { width: 100%; filter: drop-shadow(0 26px 30px rgba(0, 20, 50, 0.55)); animation: bob 6s ease-in-out infinite; }

.hero-art .ship {
  position: absolute;
  width: 34%;
  right: -12%;
  top: -26%;
  filter: drop-shadow(0 16px 18px rgba(0, 20, 50, 0.45));
  animation: bob 5s ease-in-out -2s infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.waves { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 3; line-height: 0; }

.waves svg { width: 200%; height: 90px; animation: drift 14s linear infinite; }

@keyframes drift { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */
section { padding: 80px 0; }

.section-head { text-align: center; margin-bottom: 44px; }

.section-head h2 { font-size: clamp(38px, 6vw, 60px); }

.section-head p { color: var(--muted); max-width: 36em; margin: 12px auto 0; }

.panel {
  background: linear-gradient(var(--wood-light), var(--wood));
  border: 3px solid var(--brass);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.25), 0 14px 30px rgba(0, 0, 0, 0.35);
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.feature { padding: 18px 22px 24px; text-align: center; }

.feature img { height: 150px; width: auto; margin: 0 auto 6px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.4)); }

.feature .emoji { font-size: 64px; line-height: 150px; height: 150px; margin-bottom: 6px; }

.feature h3 { font-size: 26px; margin-bottom: 8px; }

.feature p { margin: 0; color: #f0e2c8; font-size: 16px; }

/* ---------------------------------------------------------------- bosses */
.bosses { background: linear-gradient(var(--sea-deep), #0a2f6b 50%, var(--sea-deep)); }

.boss-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.boss { padding: 16px 16px 20px; text-align: center; }

.boss img { height: 170px; width: auto; margin: 0 auto 10px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.45)); }

.boss h3 { font-size: 22px; }

.boss p { margin: 6px 0 0; font-size: 15px; color: #f0e2c8; }

.more-bosses { text-align: center; margin-top: 26px; color: var(--muted); }

/* ---------------------------------------------------------------- screenshots */
.shots {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 16px 26px;
  margin: 0 -16px;
  scrollbar-width: thin;
}

.shot { flex: 0 0 auto; width: min(260px, 70vw); scroll-snap-align: center; text-align: center; }

.phone {
  border-radius: 30px;
  padding: 10px;
  background: #111;
  border: 3px solid var(--brass);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
}

.phone img { border-radius: 20px; aspect-ratio: 9 / 16; width: 100%; object-fit: cover; }

.shot figcaption { margin-top: 12px; font-size: 20px; }

/* ---------------------------------------------------------------- final call */
.final { text-align: center; }

.final .panel { padding: 44px 24px; display: grid; justify-items: center; gap: 18px; }

.final img.app-icon { width: 120px; height: 120px; border-radius: 26px; border: 3px solid var(--brass); }

.final h2 { font-size: clamp(36px, 5.5vw, 56px); }

.final p { margin: 0; color: #f0e2c8; max-width: 32em; }

/* ---------------------------------------------------------------- footer */
footer { padding: 34px 0 44px; color: var(--muted); font-size: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }

footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

footer a { color: var(--cream); }

/* ---------------------------------------------------------------- document pages (privacy) */
.doc-hero {
  padding: 110px 0 60px;
  background: radial-gradient(ellipse at 60% 30%, rgba(150, 228, 255, 0.35), transparent 60%), url("/assets/sea.webp") center / cover, var(--sea);
  text-align: center;
}

.doc-hero h1 { font-size: clamp(44px, 7vw, 72px); }

.doc-hero p { margin: 10px 0 0; color: var(--cream); }

.doc { padding: 40px 0 70px; }

.doc .panel { padding: clamp(22px, 4vw, 44px); max-width: 820px; margin: -40px auto 0; position: relative; }

.doc h2 { font-family: "Luckiest Guy", system-ui, sans-serif; font-weight: 400; color: var(--yellow); font-size: 26px; letter-spacing: 0.02em; margin: 30px 0 6px; }

.doc h2:first-child { margin-top: 0; }

.doc p, .doc li { color: #f4e8d2; }

.doc ul { padding-left: 22px; }

.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }

.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(217, 166, 72, 0.35); vertical-align: top; }

.doc th { color: var(--cream); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-art { max-width: 460px; margin: 10px auto 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .boss-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .topbar nav { display: none; }
  .features, .boss-row { grid-template-columns: 1fr; }
  .boss img, .feature img { height: 130px; }
  section { padding: 60px 0; }
}

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