/* Malta Life website. Self-hosted fonts, no external requests. */

@font-face { font-family: 'Playfair Display'; src: url('assets/fonts/PlayfairDisplay.woff') format('woff'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/Inter.woff') format('woff'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('assets/fonts/Oswald.woff') format('woff'); font-weight: 200 700; font-style: normal; font-display: swap; }

:root {
  --limestone: #f4ead6;
  --limestone-2: #eadbbd;
  --stone-line: #d6c19a;
  --sand: #c9a66b;
  --sea: #0d5c8c;
  --sea-deep: #07324f;
  --turq: #36b7c4;
  --foam: #e8f6f7;
  --red: #c8102e;
  --red-dark: #9c0c24;
  --gold: #f2a93b;
  --gold-soft: #f8cf83;
  --dusk: #e7744a;
  --ink: #221a12;
  --ink-soft: #5b4a36;
  --white: #fffdf8;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(52, 34, 10, .35);
  --wrap: 1180px;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --label: 'Oswald', 'Arial Narrow', Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: .18em; }
a:hover { color: var(--red); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font: 800 clamp(2rem, 4.4vw, 3.1rem)/1.08 var(--display); letter-spacing: -.01em; }
h3 { font: 700 1.25rem/1.25 var(--sans); }
p { margin: 0 0 1em; }
kbd { font: 600 .85em var(--sans); padding: .05em .45em; border: 1px solid var(--stone-line); border-bottom-width: 3px; border-radius: 5px; background: var(--white); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: var(--white); }

.eyebrow {
  font: 500 .82rem/1.2 var(--label);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-dark); margin: 0 0 .9em;
}
.eyebrow-light { color: var(--gold-soft); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--white); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .8em 1.25em; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  position: relative;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { font-size: 1.1rem; padding: 1em 1.5em; }
.btn-sm { font-size: .9rem; padding: .55em 1em; }
.btn-block { width: 100%; }
.btn-primary { --bg: var(--red); --fg: #fff; box-shadow: 0 6px 0 var(--red-dark); }
.btn-primary:hover { --bg: #d91a38; box-shadow: 0 8px 0 var(--red-dark), var(--shadow); }
.btn-glass { --bg: rgba(255, 253, 248, .14); --fg: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost { --bg: transparent; --fg: var(--sea); border-color: currentColor; }

.btn.is-disabled, .btn[aria-disabled='true'] {
  cursor: not-allowed; box-shadow: none; transform: none;
}
.btn.is-disabled > :not(.badge) { opacity: .6; }
.btn-glass.is-disabled { --bg: rgba(40, 32, 26, .35); --fg: #e9e2d8; border-color: rgba(255, 255, 255, .35); }
.btn.is-disabled:hover { transform: none; box-shadow: none; }
.btn-primary.is-disabled { --bg: #8a8178; box-shadow: 0 6px 0 #5f5850; }

.badge {
  display: inline-block; font: 600 .68rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase;
  padding: .45em .6em; border-radius: 6px; background: var(--gold); color: var(--ink);
  filter: none;
}
.btn .badge { position: absolute; top: -10px; right: -8px; transform: rotate(4deg); opacity: 1; }
.badge-dark { background: var(--ink); color: var(--gold-soft); vertical-align: middle; margin-left: .4em; }

.btn-ico { width: 1.15em; height: 1.15em; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; flex: none; }
.ico-download { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10l3.5-3.5 1.4 1.4L12 16.8 6.1 10.9l1.4-1.4L11 13zM4 18h16v2H4z'/%3E%3C/svg%3E"); }
.ico-play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12-7.5z'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(244, 234, 214, .94); box-shadow: 0 1px 0 var(--stone-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55em; font: 800 1.35rem/1 var(--display); color: #fff; text-decoration: none; }
.site-header.is-scrolled .brand { color: var(--ink); }
.brand:hover { color: var(--gold-soft); }
.brand-cross {
  width: 26px; height: 26px; flex: none; border-radius: 6px;
  background:
    linear-gradient(90deg, #fff 50%, var(--red) 50%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12);
  position: relative;
}
.brand-cross::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 8px; height: 8px;
  background: #b5b5b5;
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: #fff; text-decoration: none; font: 500 .95rem/1 var(--sans); padding: .6em .75em; border-radius: 8px; }
.site-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.site-header.is-scrolled .site-nav a { color: var(--ink); }
.site-header.is-scrolled .site-nav a:hover { background: var(--limestone-2); }
.site-nav .nav-cta, .site-header.is-scrolled .site-nav .nav-cta { background: var(--red); color: #fff; margin-left: 8px; padding: .7em 1.1em; border-radius: 999px; }
.site-nav .nav-cta:hover { background: var(--red-dark); color: #fff; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 920px); min-height: min(100vh, 920px);
  display: flex; align-items: center; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, #2a1d3d 0%, #9b4a4a 40%, #f2a93b 75%, #0d5c8c 100%);
  padding: 110px 0 150px;
}
.hero-sky { position: absolute; inset: -6% 0 -12% 0; will-change: transform; }
.hero-sky img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; image-rendering: pixelated; }
.hero-sky::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 75% 55%, rgba(242, 169, 59, .25), transparent 60%),
    linear-gradient(180deg, rgba(20, 12, 30, .55) 0%, rgba(20, 12, 30, .15) 35%, rgba(7, 50, 79, .25) 70%, rgba(7, 50, 79, .75) 100%),
    linear-gradient(90deg, rgba(20, 12, 30, .55) 0%, rgba(20, 12, 30, 0) 65%);
}
/* Pixel dither: an ordered 2x2 checker that fades in toward the sea, like a lo-fi sunset. */
.hero-dither {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background:
    repeating-conic-gradient(rgba(0, 0, 0, .55) 0 25%, rgba(255, 220, 160, .35) 0 50%) 0 0 / 4px 4px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .25) 45%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .25) 45%, #000 100%);
  animation: dither-shift 1.6s steps(2) infinite;
}
@keyframes dither-shift { to { background-position: 2px 0; } }
.hero-inner { position: relative; z-index: 2; }
.hero-title {
  font: 900 clamp(4rem, 13vw, 9.5rem)/.9 var(--display); letter-spacing: -.02em;
  margin: 0 0 .15em; text-shadow: 0 4px 0 rgba(0, 0, 0, .18), 0 18px 40px rgba(20, 8, 0, .45);
}
.hero-title span { color: var(--gold); font-style: italic; display: inline-block; }
.hero-tag { font: 600 clamp(1.25rem, 2.6vw, 1.75rem)/1.3 var(--sans); max-width: 34rem; margin-bottom: .6em; }
.hero-sub { font-size: 1.08rem; max-width: 36rem; color: rgba(255, 253, 248, .92); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 18px; margin: 30px 0 14px; }
.hero-note { font-size: .92rem; color: rgba(255, 253, 248, .85); }

/* Parallax waves */
.waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 120px; z-index: 3; pointer-events: none; }
.wave { position: absolute; left: -5%; width: 110%; height: 100%; bottom: 0; }
.wave path { fill: currentColor; }
.wave-back { color: rgba(54, 183, 196, .55); bottom: 18px; animation: drift 14s ease-in-out infinite alternate; }
.wave-mid { color: rgba(13, 92, 140, .85); bottom: 8px; animation: drift 10s ease-in-out infinite alternate-reverse; }
.wave-front { color: var(--sea); }
@keyframes drift { from { margin-left: -2.5%; } to { margin-left: 2.5%; } }

/* ---------- Strip ---------- */
.strip { background: var(--sea); color: #fff; padding: 8px 0 34px; position: relative; }
.strip-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip-list li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.strip-list strong { font: 600 clamp(1.6rem, 3.2vw, 2.2rem)/1 var(--label); color: var(--gold-soft); }
.strip-list span { font-size: .9rem; color: var(--foam); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section-head { margin-bottom: 44px; }
.limestone {
  background-color: var(--limestone);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 166, 107, .10) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 80%, rgba(201, 166, 107, .08) 0 1.5px, transparent 2.5px);
  background-size: 38px 38px, 27px 27px;
}
.sea { background: linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 100%); color: #fff; }
.sea .lede { color: var(--foam); }
.golden { background: linear-gradient(170deg, #fbe2b0 0%, var(--gold-soft) 45%, #f0a06a 100%); }
.golden .lede { color: var(--ink); font-weight: 500; }

/* Features */
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--white); border: 1px solid var(--stone-line); border-radius: var(--radius);
  padding: 26px 24px 22px; box-shadow: 0 1px 0 var(--stone-line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.f-ico, .path-ico, .acct-ico {
  display: block; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  background: var(--c, var(--sea)); position: relative;
}
.f-ico::after, .path-ico::after, .acct-ico::after {
  content: ''; position: absolute; inset: 10px; background: #fff;
  -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat;
}
.f-map   { --c: var(--sea);  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3 3 5v16l6-2 6 2 6-2V3l-6 2zm0 2.2 6 2v11.6l-6-2z'/%3E%3C/svg%3E"); }
.f-job   { --c: var(--red);  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6a2 2 0 0 1 2 2v2h4v12H3V7h4V5a2 2 0 0 1 2-2zm0 4h6V5H9z'/%3E%3C/svg%3E"); }
.f-skill { --c: #7a4bb5;     --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21V13h4v8zm7 0V8h4v13zm7 0V3h4v18z'/%3E%3C/svg%3E"); }
.f-paper { --c: #8a6a3a;     --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v15H6zm8 1.5V8h4.5zM8 12h10v1.6H8zm0 4h10v1.6H8z'/%3E%3C/svg%3E"); }
.f-ferry { --c: var(--turq); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4h8v4h3l-2 7H7L5 8h3zm2 2v2h4V6zM2 18c2 0 2-1.2 4-1.2s2 1.2 4 1.2 2-1.2 4-1.2 2 1.2 4 1.2 2-1.2 4-1.2V20c-2 0-2 1.2-4 1.2s-2-1.2-4-1.2-2 1.2-4 1.2-2-1.2-4-1.2-2 1.2-4 1.2z'/%3E%3C/svg%3E"); }
.f-meter { --c: var(--dusk); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1 4 5 5.5 5 10a5 5 0 0 1-10 0c0-2 1-3.5 2-4.5 0 2 1 3 2 3 0-3-1-5 1-8.5z'/%3E%3C/svg%3E"); }
.f-cat   { --c: #d07a2b;     --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3l4 4h8l4-4v9a8 8 0 0 1-16 0zm5 8a1.3 1.3 0 1 0 0 2.6A1.3 1.3 0 0 0 9 11zm6 0a1.3 1.3 0 1 0 0 2.6 1.3 1.3 0 0 0 0-2.6z'/%3E%3C/svg%3E"); }
.f-cop   { --c: #234a8a;     --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2 2.6 6.2 6.4.5-4.9 4.2 1.5 6.4L12 15.9l-5.6 3.4 1.5-6.4L3 8.7l6.4-.5z'/%3E%3C/svg%3E"); }
.f-shop  { --c: #3c8a4a;     --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18l-1.5 6H4.5zm2 8h14v8H5zm4 2v4h6v-4z'/%3E%3C/svg%3E"); }

/* Life paths */
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.path {
  background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); display: flex; flex-direction: column;
  border-top: 6px solid var(--c, var(--sea));
}
.path:nth-child(1) { --c: var(--dusk); }
.path:nth-child(2) { --c: var(--turq); }
.path:nth-child(3) { --c: var(--red); }
.path h3 { font: 800 1.6rem/1.15 var(--display); }
.path p { color: var(--ink-soft); }
.path-top { display: flex; justify-content: space-between; align-items: flex-start; }
.path-ico { --c: inherit; background: var(--c); }
.path:nth-child(1) .path-ico { background: var(--dusk); }
.path:nth-child(2) .path-ico { background: var(--turq); }
.path:nth-child(3) .path-ico { background: var(--red); }
.p-boat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 13h20c-1 4-4 6-10 6S3 17 2 13zm9-9v7H5zm2 2 5 5h-5z'/%3E%3C/svg%3E"); }
.p-pack { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v3h1a3 3 0 0 1 3 3v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a3 3 0 0 1 3-3h1zm2 2v1h2V4zm-3 9v2h8v-2z'/%3E%3C/svg%3E"); }
.p-home { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3 9 8h-3v9h-5v-6h-2v6H6v-9H3z'/%3E%3C/svg%3E"); }
.path-tag { font: italic 500 1.08rem/1.45 var(--display); color: var(--ink) !important; }
.path-facts { margin: 0 0 18px; padding: 14px 0; border-block: 1px dashed var(--stone-line); display: grid; gap: 6px; }
.path-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.path-facts dt { color: var(--ink-soft); }
.path-facts dd { margin: 0; font-weight: 600; text-align: right; }
.diff { font: 600 .74rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; padding: .5em .75em; border-radius: 999px; }
.diff-hard { background: #fde3d8; color: #8a2a0a; }
.diff-med { background: #fdeccc; color: #6e4700; }
.diff-easy { background: #d9f2ef; color: #0b5a54; }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery li:nth-child(1), .gallery li:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.shot {
  display: block; height: 100%; border-radius: 10px; overflow: hidden; position: relative;
  background: var(--limestone-2); box-shadow: 0 2px 0 var(--stone-line);
}
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .5s ease, filter .3s ease; }
.shot::after {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .25s ease;
  background: repeating-conic-gradient(rgba(13, 92, 140, .35) 0 25%, transparent 0 50%) 0 0 / 4px 4px;
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.shot:hover::after, .shot:focus-visible::after { opacity: .5; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent; color: #fff;
  max-width: min(96vw, 1440px); width: 100%; max-height: 96vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(10, 8, 6, .9); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; }
.lightbox figure { margin: 0; width: 100%; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox figcaption { text-align: center; margin-top: 12px; font-size: .98rem; color: #f5ecdc; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
#lb-count { font: 500 .9rem var(--label); letter-spacing: .1em; min-width: 4.5em; text-align: center; }
.lb-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.2rem; cursor: pointer;
}
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { margin-left: 16px; }

/* Download / play */
.get-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: stretch; }
.get-card { background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.get-card h3 { font: 800 1.7rem/1.1 var(--display); }
.get-card-web { background: rgba(255, 253, 248, .7); border: 2px dashed rgba(34, 26, 18, .25); box-shadow: none; }
.dl-list { display: grid; gap: 12px; margin: 18px 0 22px; }
.dl-card {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px;
  border: 2px solid var(--stone-line); background: var(--limestone); color: var(--ink); text-decoration: none;
  position: relative; transition: border-color .2s ease, transform .2s ease;
}
a.dl-card:hover { border-color: var(--red); color: var(--ink); transform: translateY(-2px); }
.dl-card.is-yours { border-color: var(--red); background: #fff4ef; box-shadow: 0 0 0 4px rgba(200, 16, 46, .12); }
.dl-card.is-pending { cursor: not-allowed; }
.dl-card.is-pending .dl-icon { background: #9b9289; }
.dl-card.is-pending strong { color: var(--ink-soft); }
.dl-text { display: flex; flex-direction: column; gap: 2px; }
.dl-text strong { font-size: 1.12rem; }
.dl-sub { font-size: .88rem; color: var(--ink-soft); }
.dl-yours { margin-left: auto; font: 600 .7rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; background: var(--red); color: #fff; padding: .5em .65em; border-radius: 6px; white-space: nowrap; }
.dl-icon { width: 38px; height: 38px; flex: none; background: var(--ink); -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.dl-icon-macos { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h18v12H3zm2 2v8h14V6zM8 18h8l1 2H7z'/%3E%3C/svg%3E"); }
.dl-icon-windows { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h8v6.5H3zm10 0h8v6.5h-8zM3 13.5h8V20H3zm10 0h8V20h-8z'/%3E%3C/svg%3E"); }
.dl-icon-linux { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v16H4zm3 4 3 3-3 3 1.2 1.2L12.4 11 8.2 6.8zm5 6h5v1.6h-5z'/%3E%3C/svg%3E"); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 7-7 1.4 1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.ticks-dim li::before { background-color: #9b9289; }
.web-note { margin: 18px 0 0; font-size: .97rem; }
.account-note {
  margin-top: 26px; display: flex; gap: 18px; align-items: flex-start;
  background: var(--sea-deep); color: #fff; border-radius: var(--radius); padding: 24px 26px;
}
.account-note h3 { margin-bottom: .3em; }
.account-note p { margin: 0; color: var(--foam); }
.acct-ico { flex: none; margin: 0; --c: var(--gold); background: var(--gold);
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9zm0 11c4.5 0 8 2.2 8 5v2H4v-2c0-2.8 3.5-5 8-5z'/%3E%3C/svg%3E"); }
.acct-ico::after { background: var(--ink); }

/* Multiplayer */
.steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--white); border-radius: var(--radius); padding: 28px 24px 22px; border: 1px solid var(--stone-line); position: relative; }
.step p { color: var(--ink-soft); margin: 0; }
.step-n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  font: 600 1.35rem/1 var(--label); color: #fff; background: var(--sea); border-radius: 10px;
  box-shadow: 4px 4px 0 var(--gold);
}
.mp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; }
.mp-box { border-radius: var(--radius); padding: 24px; background: var(--limestone-2); }
.mp-box-dim { background: transparent; border: 2px dashed var(--stone-line); }
.mp-box-dim h3, .mp-box-dim li { color: var(--ink-soft); }

/* Leaderboard */
.board { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 10px; }
.table-wrap { overflow-x: auto; }
.lb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lb-table th { text-align: left; font: 500 .78rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); padding: 14px 14px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.lb-table td { padding: 13px 14px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-rank { width: 3em; font: 600 1.05rem var(--label); }
.lb-name { font-weight: 600; overflow-wrap: anywhere; }
.lb-total { text-align: right !important; font: 600 1.05rem var(--label); color: var(--gold-soft); }
.lb-skill, .lb-updated { color: var(--foam); }
.lb-updated { white-space: nowrap; font-size: .9rem; }
.top-1 .lb-rank { color: var(--gold); }
.top-2 .lb-rank { color: #d9e2ea; }
.top-3 .lb-rank { color: #e8a36f; }
.lb-status { text-align: center; margin: 14px 0 6px; color: var(--foam); font-size: .95rem; }
.lb-placeholder { display: none; padding: 6px 8px; gap: 10px; }
.lb-placeholder span { display: block; height: 18px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.board[data-state='loading'] .lb-placeholder { display: grid; }
.board:not([data-state='ready']) table { display: none; }
.board[data-state='offline'] .lb-status, .board[data-state='empty'] .lb-status {
  padding: 34px 16px 30px; margin: 0; font-size: 1.1rem; color: #fff;
}
.board[data-state='offline'] .lb-status::before {
  content: ''; display: block; width: 46px; height: 46px; margin: 0 auto 12px; opacity: .8;
  background: var(--gold-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 8.5a15 15 0 0 1 20 0l-1.6 1.6a12.7 12.7 0 0 0-16.8 0zm3.4 3.4a10.2 10.2 0 0 1 13.2 0L17 13.5a8 8 0 0 0-10 0zM12 15a3 3 0 0 1 2.1.9L12 18l-2.1-2.1A3 3 0 0 1 12 15zM3.3 2 22 20.7 20.7 22 2 3.3z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 8.5a15 15 0 0 1 20 0l-1.6 1.6a12.7 12.7 0 0 0-16.8 0zm3.4 3.4a10.2 10.2 0 0 1 13.2 0L17 13.5a8 8 0 0 0-10 0zM12 15a3 3 0 0 1 2.1.9L12 18l-2.1-2.1A3 3 0 0 1 12 15zM3.3 2 22 20.7 20.7 22 2 3.3z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--stone-line); border-radius: 12px; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 1.06rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--limestone-2); color: var(--red-dark); font: 600 1.2rem/1 var(--sans); transition: transform .2s ease;
}
.faq details[open] summary::after { content: '\2212'; background: var(--red); color: #fff; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }

/* Footer */
.foot { background: var(--sea-deep); color: #e9eef1; position: relative; padding: 70px 0 26px; margin-top: 0; overflow-x: clip; }
.foot a { color: var(--gold-soft); }
.foot a:hover { color: #fff; }
.foot .muted { color: #b9cad6; }
.waves-foot { top: -118px; bottom: auto; transform: scaleY(1); }
.waves-foot .wave-mid { color: var(--sea-deep); bottom: 0; animation: none; }
.foot-grid { display: grid; grid-template-columns: 1.3fr .7fr 1.4fr; gap: 34px; }
.brand-foot { color: #fff; margin-bottom: 14px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.credits p { font-size: .92rem; margin-bottom: .7em; }
.copy { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; color: #b9cad6; }
.foot-slim { padding: 26px 0; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Sub pages (licences) ---------- */
.subhead { background: var(--sea-deep); padding: 14px 0; }
.subhead-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.subhead .btn-ghost { --fg: #fff; }
.lic { padding-top: 48px; padding-bottom: 60px; max-width: 980px; }
.lic h1 { font: 900 clamp(2.4rem, 6vw, 3.6rem)/1.05 var(--display); margin-bottom: .3em; }
.lic h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.4em; }
.lic h3 { margin-top: 1.4em; }
.lic h4, .lic h5 { font: 700 1.05rem var(--sans); margin-top: 1.2em; }
.lic-summary { background: var(--white); border: 1px solid var(--stone-line); border-radius: var(--radius); padding: 6px 26px 14px; margin: 24px 0; }
.lic-summary h2 { margin-top: .8em; }
.lic-toc ul { padding-left: 1.2em; }
.lic-source { border-top: 3px solid var(--stone-line); margin-top: 46px; padding-top: 10px; }
.lic-source > h2:first-of-type { margin-top: .3em; }
.lic table { border-collapse: collapse; width: 100%; font-size: .92rem; background: var(--white); }
.lic th, .lic td { border: 1px solid var(--stone-line); padding: 8px 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.lic th { background: var(--limestone-2); }
.lic code { font-size: .88em; background: var(--limestone-2); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
.lic pre { overflow-x: auto; background: var(--white); padding: 12px; border-radius: 8px; }
.lic a { overflow-wrap: anywhere; }

/* Play stub */
.page-play { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 100%); color: #fff; padding: 24px 0; }
.play-card { max-width: 620px; text-align: center; }
.play-card h1 { font: 900 clamp(2.4rem, 7vw, 4rem)/1 var(--display); }
.play-card p { color: var(--foam); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .path-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery li:nth-child(6) { grid-column: auto; grid-row: auto; }
  .get-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .35); cursor: pointer; color: #fff;
  }
  .site-header.is-scrolled .nav-toggle { background: var(--white); border-color: var(--stone-line); color: var(--ink); }
  .burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease; }
  .burger::before, .burger::after { content: ''; position: absolute; left: 0; }
  .burger::before { top: -6px; } .burger::after { top: 6px; }
  .nav-toggle[aria-expanded='true'] .burger { background: transparent; }
  .nav-toggle[aria-expanded='true'] .burger::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] .burger::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 68px; left: 12px; right: 12px; flex-direction: column; align-items: stretch;
    background: var(--white); border-radius: 14px; padding: 10px; box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a, .site-header.is-scrolled .site-nav a { color: var(--ink); padding: .9em 1em; }
  .site-nav a:hover { background: var(--limestone); color: var(--ink); }
  .site-nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .steps, .mp-split { grid-template-columns: 1fr; }
  .strip-list { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .hero { padding: 96px 0 130px; min-height: 0; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-ctas .btn { width: 100%; }
  .btn .badge { right: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery li:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .get-card { padding: 24px 18px; }
  .account-note { flex-direction: column; padding: 22px 18px; }
  .lb-skill, .lb-updated { display: none; }
  .lb-table th, .lb-table td { padding: 12px 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  .lb-close { margin-left: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-sky, [data-parallax] { transform: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
