/* IfestioGate – shared theme for ALL pages (index + subpages).
   Colours sampled from the reference screenshots (dark glass UI, sage-to-teal accents).
   Loaded after each page's own <style>, so it overrides page-local colours only;
   layout, sizes and behaviour stay in the pages. */
:root {
  /* base */
  --bg: #030909;            /* near-black page background */
  --bg-glow: #0d201e;       /* dark teal/green glow */
  --bg-glow-2: #112325;
  --card: #050a0a;          /* near-black card */
  --card-2: #0e1414;        /* inner card / input */
  --chip: #1f2626;          /* icon chips, small tags */
  --border: #1c2122;        /* thin subtle border */
  --border-2: #272d2d;      /* inner border */
  --border-hi: #4a5f62;     /* highlighted border (hover / active) */
  /* text */
  --ink: #ffffff;           /* headings, button text */
  --text: #d9dcdc;          /* main body text */
  --muted: #9b9c9d;         /* paragraph text */
  --muted-2: #6e7171;       /* secondary notes */
  --link: #9ab9bb;          /* links / small accents (pale sage) */
  --link-hi: #cdf2f1;       /* hover (pale mint) */
  /* gradients */
  --title-grad: linear-gradient(90deg, #6fa3a6 0%, #a9cfcf 45%, #cdf2f1 100%);  /* lifted start for readability (7:1 on black) */
  --primary: linear-gradient(115deg, #9ab9bb 0%, #628587 45%, #133c42 100%);
  --secondary: linear-gradient(100deg, #09242d 0%, #132323 50%, #1e2a20 100%);
  --toggle: linear-gradient(90deg, #326368, #5d8a8f);
  --page-bg:
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(17,35,37,.75), transparent 70%),
    radial-gradient(circle at 15% 0%, rgba(13,32,30,.85), transparent 45%),
    radial-gradient(circle at 90% 35%, rgba(10,22,20,.6), transparent 40%);
  /* shape */
  --r-card: 28px;
  --r-btn: 14px;
  --r-chip: 14px;
  --font: "Avenir Next", "Montserrat", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* ---------- page ---------- */
html { background: var(--bg); }
body {
  color: var(--text);
  background: var(--bg) !important;
  background-image: var(--page-bg) !important;
  background-attachment: fixed !important;
  font-family: var(--font);
}
a { color: var(--link); }
a:hover { color: var(--link-hi); }
p, li, .lead { color: var(--muted); }
strong { color: var(--ink); }

/* headings: gradient title, white bold subheads */
h1 {
  font-weight: 800;
  background: var(--title-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
h2 { color: var(--ink); font-weight: 700; }

/* ---------- buttons ---------- */
.btn, .enter, .pick button {
  border-radius: var(--r-btn) !important;
  font-weight: 700;
  color: var(--ink) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  background: var(--secondary) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.btn.solid, .enter, .pick button.on {
  background: var(--primary) !important;
  border-color: rgba(205,242,241,.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px rgba(0,0,0,.35);
}
.btn:hover, .enter:hover, .pick button:hover { filter: brightness(1.12); color: var(--ink) !important; }

/* ---------- cards ---------- */
article, .note, .card, .hero-card, .faq-panel {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-card) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.03) !important;
}
.hero-card { background: rgba(5,10,10,.86) !important; }
article.on, article:hover, article:focus-within {
  border-color: var(--border-hi) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(154,185,187,.12) !important;
}
article span { color: var(--link); }
article strong { color: var(--ink); font-weight: 700; }
/* stones page card keeps its soft light spot behind the gem */
.card { background: radial-gradient(circle at 70% 20%, rgba(255,244,210,.08), transparent 30%), var(--card) !important; }
.kicker { color: var(--link) !important; }

/* inner panels, frames, inputs */
details.note summary { color: var(--ink); font-weight: 700; cursor: pointer; }
.moon, .find, model-viewer { border: 1px solid var(--border-2) !important; }
model-viewer { background: var(--card-2) !important; border-radius: var(--r-card); }

/* chips (homepage city tags) */
.city-words strong, .city-words span {
  background: rgba(31,38,38,.88) !important;
  border: 1px solid var(--border-2) !important;
  border-radius: var(--r-chip) !important;
  color: var(--ink);
}

/* ---------- homepage specifics ---------- */
nav { background: rgba(3,9,9,.92) !important; border-bottom: 1px solid var(--border) !important; }
.sitemap { background: transparent !important; border: 0 !important; }
.brand { color: var(--link) !important; font-weight: 700; }
nav a:hover { color: var(--link-hi) !important; }
.hero, #map, .mapboxgl-map, .mapboxgl-canvas { background: var(--bg) !important; }
.hero:after { background: linear-gradient(to bottom, rgba(3,9,9,0), var(--bg) 78%) !important; }
.pull, .show-card { color: var(--link) !important; }
footer { color: var(--muted-2); }
.mine { background: var(--bg) !important; }
.mine h2 { color: var(--ink) !important; }
.mine p { color: var(--text) !important; }
.mine a { color: var(--link) !important; }
.mine button { color: var(--ink) !important; font-weight: 700; }
.mapboxgl-popup-content { background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--border-hi) !important; border-radius: 22px !important; }
.mapboxgl-popup-tip { border-top-color: var(--card) !important; border-bottom-color: var(--card) !important; }
.mapboxgl-popup-content a { color: var(--link); }

/* ring (open band) popup on the homepage map keeps its original look */
.popup-classic .mapboxgl-popup-content { background: #172228 !important; color: #f7fbfb !important; border: 1px solid #e4d2a8 !important; border-radius: 22px !important; }
.popup-classic .mapboxgl-popup-tip { border-top-color: #172228 !important; border-bottom-color: #172228 !important; }
.popup-classic .mapboxgl-popup-content a { color: inherit !important; }

/* Detector page: the ring photo keeps its original frame (same as before the restyle) */
img.find { border: 1px solid rgba(62, 198, 192, 0.28) !important; box-shadow: none !important; border-radius: 28px !important; background: transparent !important; }

/* "Back to IfestioGate" button at the end of subpages (secondary style) */
.back-wrap { margin: 36px 0 0; }
.btn.back-home { display: inline-block; padding: 10px 18px; text-decoration: none; line-height: 1.3; }
/* homepage footer "Back to top" */
.to-top { margin: 14px 0 0; font-size: 14px; }
.to-top a { color: var(--link); }
/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--link-hi); outline-offset: 3px; border-radius: 10px;
}

/* Collaborate: "Contact me" button as a proper block-level button with breathing room */
#collaborate .note > p:last-child { margin: 24px 0 4px; }
#collaborate .note .btn.solid {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 24px; line-height: 1.3;
  text-align: center; text-decoration: none; max-width: 100%;
}
@media (max-width: 640px) {
  #collaborate .note .btn.solid { display: flex; width: 100%; padding: 12px 14px; }
}

/* All buttons: never split the background across lines when the text wraps */
.btn, .enter { display: inline-flex; align-items: center; justify-content: center; text-align: center; max-width: 100%; box-sizing: border-box; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* About me (homepage): small round photo left, text right; stacked and centered on mobile */
.note.about-me { display: flex; align-items: center; gap: 36px; padding: 30px 34px; }
.about-photo {
  flex: 0 0 auto; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid var(--link); box-shadow: 0 0 0 4px rgba(98,133,135,.18), 0 8px 22px rgba(0,0,0,.45);
  background: var(--card-2);
}
.about-text { flex: 1 1 auto; min-width: 0; }
.about-text p { margin: 0 0 12px; line-height: 1.65; font-size: 1.12rem; }
.about-text p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .note.about-me { flex-direction: column; text-align: center; gap: 16px; padding: 22px 18px; }
  .about-photo { width: 96px; height: 96px; }
  .about-text p { font-size: 1rem; }
}

/* "Night sky here" (homepage map popups + Mirnyy sheet) → Stellarium Web in a modal */
.sky-row { margin: 10px 0 0; }
.btn.sky-btn { padding: 8px 14px; font: inherit; font-size: 14px; line-height: 1.25; cursor: pointer; min-height: 36px; }
.mine .btn.sky-btn { padding: 10px 18px; font-size: 15px; color: var(--ink) !important; }
.sky-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(3,9,9,.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sky-modal[hidden] { display: none; }
.sky-dialog { display: flex; flex-direction: column; width: min(1100px, 100%); height: min(760px, 100%); background: var(--card); border: 1px solid var(--border-hi); border-radius: var(--r-card); box-shadow: 0 20px 60px rgba(0,0,0,.6); overflow: hidden; }
.sky-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.sky-head h2 { margin: 0; font-size: 18px; line-height: 1.3; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.btn.sky-close { flex: 0 0 auto; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.sky-frame { position: relative; flex: 1 1 auto; min-height: 0; background: #000; }
.sky-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.sky-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 10px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); }
.sky-foot a { color: var(--link); }
html.sky-open, html.sky-open body { overflow: hidden; }
@media (max-width: 640px) {
  .sky-modal { padding: 0; }
  .sky-dialog { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .sky-head { padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
  .sky-head h2 { font-size: 16px; }
  .sky-foot { padding: 8px 12px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}

/* "Night sky here" – night-sky button (own look, distinct from the sage/teal theme) */
.btn.solid.sky-btn, .mine .btn.solid.sky-btn {
  position: relative; overflow: hidden; isolation: isolate; gap: 8px;
  color: #ffffff !important;
  background: linear-gradient(120deg, rgba(27,31,75,.42) 0%, rgba(75,42,122,.42) 52%, rgba(15,42,90,.42) 100%) !important; /* v61: was solid #1b1f4b→#4b2a7a→#0f2a5a (alpha 1) */
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border: 1px solid rgba(190,170,255,.45) !important;
  box-shadow: 0 0 0 1px rgba(124,92,214,.18), 0 4px 16px rgba(110,72,200,.45), 0 0 22px rgba(140,100,255,.28), inset 0 1px 0 rgba(255,255,255,.16) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  letter-spacing: .02em;
  transition: box-shadow .25s ease, filter .25s ease, transform .2s ease;
}
.btn.solid.sky-btn::before {
  content: "✦"; position: relative; z-index: 1; font-size: 1.05em; line-height: 1;
  color: #ffe9a8; text-shadow: 0 0 6px rgba(255,226,150,.9);
}
/* tiny twinkling stars */
.btn.solid.sky-btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 28%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 28% 76%, rgba(255,255,255,.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 46% 18%, rgba(220,210,255,.95) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 63% 70%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 78% 30%, rgba(255,240,200,.95) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 90% 64%, rgba(255,255,255,.85) 50%, transparent 52%),
    radial-gradient(1px 1px at 36% 46%, rgba(255,255,255,.6) 50%, transparent 52%);
  opacity: .55;
  animation: sky-twinkle 3.6s ease-in-out infinite alternate;
}
@keyframes sky-twinkle {
  0% { opacity: .35; transform: translateY(0); }
  50% { opacity: .9; }
  100% { opacity: .5; transform: translateY(-1px); }
}
.btn.solid.sky-btn:hover, .btn.solid.sky-btn:focus-visible {
  filter: brightness(1.15);
  box-shadow: 0 0 0 1px rgba(170,140,255,.35), 0 6px 22px rgba(120,80,220,.6), 0 0 32px rgba(160,120,255,.45), inset 0 1px 0 rgba(255,255,255,.2) !important;
}
.btn.solid.sky-btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  .btn.solid.sky-btn::after { animation: none; opacity: .6; }
  .btn.solid.sky-btn { transition: none; }
}
/* modal header: subtle violet echo */
.sky-dialog { border-color: rgba(150,120,230,.45); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(110,72,200,.18); }
.sky-head { background: linear-gradient(100deg, rgba(27,31,75,.85) 0%, rgba(75,42,122,.45) 55%, rgba(15,42,90,.35) 100%); border-bottom-color: rgba(150,120,230,.3); }
.sky-head h2::before { content: "✦ "; color: #ffe9a8; text-shadow: 0 0 6px rgba(255,226,150,.8); }

/* ---------- hero intro v2 (Oct 2026): small brand line + readable headline ---------- */
.hero-card { width: min(600px, calc(100% - 32px)); }
.hero-card .eyebrow { margin: 0 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, #5ec8d4); line-height: 1.5; }
.hero-card .eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hero-card h1.hero-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.01em; }
.hero-card .lead { font-size: 17px; margin: 0; }
.hero-card.away h1.hero-title { display: none; }
@media (max-width: 640px) {
  .hero-card { padding: 18px; }
  .hero-card .eyebrow { font-size: 11.5px; }
  .hero-card h1.hero-title { font-size: 30px; }
  .hero-card .lead { font-size: 16px; }
}

/* ---------- FAQ (floating "? FAQ" button + accordion panel) ---------- */
.faq { position: fixed; z-index: 9; right: max(16px, calc(env(safe-area-inset-right) + 12px)); bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.btn.faq-toggle { gap: 6px; padding: 8px 14px; font: inherit; font-size: 14px; line-height: 1; cursor: pointer; min-height: 38px; box-shadow: 0 6px 18px rgba(0,0,0,.45) !important; }
.faq-toggle .faq-q { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--link); color: var(--link-hi); font-size: 12px; }
.faq.open .btn.faq-toggle { border-color: var(--border-hi) !important; }
.faq-panel { width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto; padding: 16px 16px 10px; overscroll-behavior: contain; }
.faq-panel[hidden] { display: none !important; }
.faq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.faq-head h2 { margin: 0; font-size: 19px; }
.btn.faq-close { padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.faq-item { border-top: 1px solid var(--border-2); }
.faq-item summary { cursor: pointer; list-style: none; padding: 11px 26px 11px 0; position: relative; color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 9px; color: var(--link); font-size: 18px; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible, .btn.faq-toggle:focus-visible, .btn.faq-close:focus-visible { outline: 2px solid var(--link-hi); outline-offset: 2px; border-radius: 8px; }
.faq-item p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; }
@media (max-width: 640px) {
  .faq { right: max(12px, calc(env(safe-area-inset-right) + 8px)); bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px)); }
  .btn.faq-toggle { width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50% !important; }
  .faq-toggle .faq-label { display: none; }
  .faq-toggle .faq-q { width: auto; height: auto; border: 0; font-size: 18px; }
  .faq-panel { width: calc(100vw - 24px); max-height: 72vh; }
}

/* ---------- Next Starship launch card (night.html) – violet night-sky accent ---------- */
.launch-card {
  position: relative; overflow: hidden; box-sizing: border-box; margin: 32px auto 0; width: min(100%, 620px); padding: 22px 22px 18px;
  border-radius: var(--r-card); color: var(--ink);
  background: linear-gradient(140deg, rgba(27,31,75,.92) 0%, rgba(55,32,96,.88) 52%, rgba(15,32,70,.92) 100%);
  border: 1px solid rgba(190,170,255,.38);
  box-shadow: 0 0 0 1px rgba(124,92,214,.14), 0 14px 40px rgba(0,0,0,.5), 0 0 36px rgba(110,72,200,.22);
}
.launch-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(1px 1px at 8% 20%, #fff 50%, transparent 52%), radial-gradient(1.3px 1.3px at 22% 82%, rgba(255,255,255,.8) 50%, transparent 52%),
    radial-gradient(1px 1px at 41% 12%, rgba(220,210,255,.9) 50%, transparent 52%), radial-gradient(1.2px 1.2px at 67% 26%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 84% 14%, rgba(255,240,200,.9) 50%, transparent 52%), radial-gradient(1.4px 1.4px at 93% 58%, rgba(255,255,255,.8) 50%, transparent 52%);
}
.launch-card > * { position: relative; z-index: 1; }
.launch-card *, .launch-card *::before { box-sizing: border-box; }
.launch-kicker { margin: 0 0 4px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #cfc2ff; }
.launch-kicker::before { content: "✦ "; color: #ffe9a8; text-shadow: 0 0 6px rgba(255,226,150,.8); }
.launch-card h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; color: var(--ink); }
.launch-row { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0 0 6px; color: #e6e1fb; font-size: 15px; line-height: 1.45; }
.launch-label { flex: 0 0 96px; color: #b8acec; font-size: 13px; letter-spacing: .03em; padding-top: 1px; }
.launch-val { flex: 1 1 220px; min-width: 0; }
.launch-loading { margin: 0 0 6px; color: #d9d2f7; }
.launch-countdown { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.launch-countdown .cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 10px; border-radius: 14px; background: rgba(10,12,34,.55); border: 1px solid rgba(190,170,255,.28); }
.launch-countdown .cd-unit strong { font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; color: #fff; }
.launch-countdown .cd-unit small { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #b8acec; }
.launch-countdown.is-note, .launch-countdown.is-done { display: block; padding: 10px 12px; border-radius: 14px; background: rgba(10,12,34,.45); border: 1px solid rgba(190,170,255,.22); color: #e6e1fb; font-size: 14.5px; }
.launch-countdown.is-done { font-weight: 700; color: #ffe9a8; }
.launch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; }
.launch-actions .btn.sky-btn { text-decoration: none; }
.launch-more { color: #cfc2ff !important; font-size: 14px; }
.launch-note { margin: 14px 0 0; font-size: 12.5px; color: #a99fd6; }
.launch-note a { color: #cfc2ff; }
@media (max-width: 640px) {
  .launch-card { padding: 18px 16px 14px; }
  .launch-card h2 { font-size: 20px; }
  .launch-label { flex-basis: 100%; }
  .launch-countdown { gap: 8px; }
  .launch-countdown .cd-unit { min-width: 0; flex: 1 1 0; padding: 7px 4px; }
  .launch-countdown .cd-unit strong { font-size: 22px; }
}

/* ---------- My lands on EarthMeta (index) ---------- */
.lands-intro { padding: 22px 24px; }
.lands-intro > p:first-child { margin-top: 0; }
.lands-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.lands-stats[hidden] { display: none; }
.lands-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
.lands-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7fe0c4; box-shadow: 0 0 0 3px rgba(127,224,196,.18); }
.lands-stat { padding: 8px 14px; border-radius: var(--r-chip); background: rgba(31,38,38,.88); border: 1px solid var(--border-2); color: var(--text); font-size: 15px; }
.lands-stat strong { font-size: 20px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.lands-grid { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; }
.lands-grid[hidden], #lands-all[hidden] { display: none; }
.land-card { display: flex; flex-direction: column; gap: 4px; padding: 14px !important; }
.land-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; margin-bottom: 8px; background: var(--card-2); border: 1px solid var(--border-2); }
.land-card strong { font-size: 17px !important; line-height: 1.3; overflow-wrap: anywhere; }
.land-card .btn.land-btn { margin-top: auto; padding: 10px 14px; font-size: 14px; text-decoration: none; width: 100%; }
.land-card strong { margin-bottom: 12px !important; }
.land-card.no-img { justify-content: flex-end; min-height: 160px; }
.lands-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.lands-actions .btn { padding: 12px 18px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.lands-actions .btn[hidden] { display: none; }
.lands-note { margin-top: 14px; font-size: 13px; color: var(--muted-2); }
@media (max-width: 640px) {
  .lands-intro { padding: 18px 16px; }
  .lands-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .land-card { padding: 10px !important; }
  .land-card img { border-radius: 14px; }
  .land-card strong { font-size: 15px !important; }
  .land-card .btn.land-btn { padding: 8px 8px; font-size: 12.5px; }
  .lands-actions .btn { flex: 1 1 100%; }
}
/* land status badges */
.land-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
article .land-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; line-height: 1.5; }
article .land-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
article .land-badge.is-available { color: #8ff0c9; background: rgba(46,160,110,.16); border: 1px solid rgba(127,224,196,.45); }
article .land-badge.is-minted { color: #f1dc9c; background: linear-gradient(100deg, rgba(110,72,200,.32), rgba(160,120,40,.22)); border: 1px solid rgba(214,190,255,.45); }
@media (max-width: 640px) { article .land-badge { font-size: 11px; padding: 2px 8px; } }
/* 3D models (index) */
.models-intro { padding: 22px 24px; }
.models-intro > p:first-child { margin-top: 0; }
.models-tip { font-size: 13.5px; color: var(--muted-2) !important; margin-bottom: 0 !important; }
.land-card .btn.model-btn { width: 100%; padding: 10px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: auto; margin-bottom: 8px; }
.land-card .btn.model-btn + .btn.land-btn { margin-top: 0; }
.model-dialog, .model-modal .sky-dialog { height: min(720px, 100%); }
.model-frame { background: radial-gradient(circle at 50% 40%, #13262a, #030909 70%); }
.model-frame model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 !important; border-radius: 0; background: transparent !important; --poster-color: transparent; }
.model-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 20px; text-align: center; color: var(--text); }
.model-picks { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.model-picks[hidden] { display: none; }
.btn.model-pick { padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.btn.model-pick[aria-pressed="true"] { background: var(--primary) !important; }
.btn.model-btn:focus-visible, .btn.model-pick:focus-visible { outline: 2px solid var(--link-hi); outline-offset: 2px; }
@media (max-width: 640px) {
  .models-intro { padding: 18px 16px; }
  .land-card .btn.model-btn { padding: 8px; font-size: 12.5px; }
  .model-picks { padding: 8px 12px; }
}
/* About these 3D models */
.models-about { margin-top: 14px; padding: 20px 24px; }
.models-about h3 { margin: 0 0 10px; font-size: 18px; color: var(--ink); }
.models-about ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.models-about li { color: var(--muted); line-height: 1.55; }
.models-about li::marker { color: var(--link); }
.models-about .models-source { margin: 14px 0 0 !important; font-size: 12.5px; color: var(--muted-2); }
@media (max-width: 640px) { .models-about { padding: 16px; } .models-about li { font-size: 15px; } }
/* review fixes: anchors under sticky nav, mobile menu, arrows */
section[id] { scroll-margin-top: 72px; }
.nav-toggle { display: none; }
.btn { overflow-wrap: normal; }
@media (max-width: 640px) {
  section[id] { scroll-margin-top: 80px; }
  body > nav { flex-direction: row !important; align-items: center !important; flex-wrap: wrap; padding: 12px 16px !important; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: auto; padding: 0; border-radius: var(--r-btn); border: 1px solid var(--border-2); background: var(--secondary); cursor: pointer; }
  .nav-toggle:focus-visible { outline: 2px solid var(--link-hi); outline-offset: 2px; }
  .nav-bars, .nav-bars::before, .nav-bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .2s, opacity .2s; }
  .nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; }
  .nav-bars::before { top: -6px; } .nav-bars::after { top: 6px; }
  nav.nav-open .nav-bars { background: transparent; }
  nav.nav-open .nav-bars::before { transform: translateY(6px) rotate(45deg); }
  nav.nav-open .nav-bars::after { transform: translateY(-6px) rotate(-45deg); }
  body > nav > ul { display: none !important; flex-basis: 100%; flex-direction: column; gap: 0 !important; padding-top: 8px !important; }
  body > nav.nav-open > ul { display: flex !important; }
  body > nav > ul a { display: block; padding: 12px 4px; font-size: 17px; border-top: 1px solid var(--border); }
  .lands-profile, .land-btn { white-space: nowrap; }
}

/* v15: EN/FR language switcher */
.lang-li { display: flex; align-items: center; }
.lang-switch { display: inline-flex; border: 1px solid var(--border-2); border-radius: 999px; overflow: hidden; background: var(--secondary); }
.lang-switch button { font: inherit; font-size: 13px; letter-spacing: .04em; padding: 4px 10px; min-width: 38px; min-height: 30px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: #10161c; font-weight: bold; }
.lang-switch button:focus-visible { outline: 2px solid var(--link-hi); outline-offset: -2px; }
.lang-float { position: absolute; top: 14px; right: 14px; z-index: 50; }
@media (max-width: 640px) {
  .lang-li { padding: 12px 4px; border-top: 1px solid var(--border); }
  .lang-switch button { min-height: 40px; min-width: 52px; font-size: 15px; }
  .lang-float { top: 10px; right: 10px; }
}

/* v16: reusable social links row (X now; YouTube/LinkedIn later: add another <li>) */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 14px 0 0; padding: 0; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.social-ico { flex: none; display: block; }
.social-foot { margin: 0 0 14px; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--ink); background: var(--secondary); }
.social-icon:hover { color: var(--accent); }
.social-icon:focus-visible, .social-btn:focus-visible { outline: 2px solid var(--link-hi); outline-offset: 2px; }
@media (max-width: 640px) { .about-me .social-links { justify-content: center; } }

/* v17: Map / Satellite toggle on the globe */
.map-mode { position: absolute; left: 10px; bottom: 34px; z-index: 3; display: inline-flex; border: 1px solid var(--border-2); border-radius: 999px; overflow: hidden; background: rgba(16,22,28,.85); }
.map-mode button { font: inherit; font-size: 13px; padding: 6px 12px; min-height: 34px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.map-mode button[aria-pressed="true"] { background: var(--accent); color: #10161c; font-weight: bold; }
.map-mode button:focus-visible { outline: 2px solid var(--link-hi); outline-offset: -2px; }

/* pearl → petrol glass language switcher and map-style toggle (2026-10-13) */
.lang-switch,.map-mode{gap:3px;padding:3px;border-radius:999px;overflow:visible;border:1px solid rgba(242,240,234,.45);
  background:linear-gradient(115deg,rgba(242,240,234,.18) 0%,rgba(63,106,112,.35) 50%,rgba(12,30,36,.75) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 4px 14px rgba(0,0,0,.3);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.lang-switch button,.map-mode button{border-radius:999px;color:#e8f0ee;font-weight:600;letter-spacing:.06em;background:transparent;transition:background .25s,color .25s}
.lang-switch button:hover,.map-mode button:hover{background:rgba(242,240,234,.12)}
.lang-switch button[aria-pressed="true"],.map-mode button[aria-pressed="true"]{color:#0b1d21;font-weight:700;
  background:linear-gradient(115deg,#f2f0ea 0%,#c9dcda 40%,#6f9497 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 2px 8px rgba(0,0,0,.25)}
