:root {
  --bg: #f4f2ec; --surface: #ffffff; --fg: #17202a; --muted: #5a6470; --line: #d9d5ca;
  --blue: #1f5fbf; --yellow: #f2c230;
  --display: "Unbounded", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #10151b; --surface: #19212a; --fg: #e8ecf0; --muted: #98a3ae; --line: #2a3542; --blue: #6aa3ff; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); }
a { color: var(--blue); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.6em; text-wrap: balance; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 500; }

/* Top bar over the hero: the logo and section links. */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: linear-gradient(rgba(8, 14, 22, 0.7), rgba(8, 14, 22, 0)); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px 24px; }
.brand img { display: block; height: 22px; width: auto; }
.links { display: flex; gap: 20px; }
.links a { color: #fff; text-decoration: none; font-size: 15px; opacity: 0.85; }
.links a:hover { opacity: 1; text-decoration: underline; }

/* Hero: two views of the city from the game, crossfading, with the logo over their lower part. */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #10151b; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-img.alt { animation: crossfade 16s ease-in-out infinite; }
@keyframes crossfade { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 14, 22, 0.88), rgba(8, 14, 22, 0.25) 55%, rgba(8, 14, 22, 0) 80%); }
.hero-text { position: relative; padding-block: 48px 56px; }
.hero h1 { margin-bottom: 0.5em; }
.hero-logo { display: block; width: min(620px, 86vw); height: auto; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; opacity: 0.85; margin: 0 0 12px; }
.lead { font-size: clamp(18px, 2.2vw, 22px); max-width: 38em; margin: 0; }

/* Links with icons: on the hero (white on the picture) and in the footer (theme colours). */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; color: inherit; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(8, 14, 22, 0.35); }
.social svg { width: 18px; height: 18px; flex: none; }
a.social:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.7); }
.social.soon { opacity: 0.7; cursor: default; }
.credits .socials { margin: 0 0 20px; }
.credits .social { color: var(--fg); border-color: var(--line); background: var(--surface); font-size: 14px; }
.credits a.social:hover { border-color: var(--blue); background: var(--surface); }

main section { padding-block: 64px 0; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.videos iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
.about p { max-width: 44em; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 6px; }
.fact b { font-family: var(--display); font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 15px; line-height: 1.45; }

.news article { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding-block: 20px; border-top: 1px solid var(--line); }
.news article:last-child { border-bottom: 1px solid var(--line); }
.news time { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.news h3 { font-size: 19px; margin: 0 0 6px; line-height: 1.3; }
.news p { margin: 0; color: var(--muted); max-width: 44em; }

/* gallery slider */
.gs-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 12px; background: #10151b; }
.gs-track::-webkit-scrollbar { display: none; }
.gs-track:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.gs-track figure { position: relative; flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.gs-track img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.gs-track figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: rgba(8, 14, 22, 0.72); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 14px; line-height: 1.4; }
.gs-ui { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.gs-ui .sl-btn { background: #10151b; }
.gs-ui .sl-btn:hover { background: var(--blue); }
.gs-count { margin-left: auto; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }

.roadmap ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; }
.roadmap li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.roadmap li::before { content: counter(step); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); border: 1px solid var(--line); color: var(--muted); }
.roadmap li.now { border-color: var(--blue); }
.roadmap li.now::before { background: var(--blue); color: #fff; border-color: var(--blue); }
.roadmap li span { color: var(--muted); }
.roadmap em { font-style: normal; color: var(--fg); }

.credits { margin-top: 72px; padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
.credits p { margin: 0 0 8px; max-width: 70em; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .gs-track figcaption { position: static; max-width: none; border-radius: 0; padding: 8px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  main section { padding-block: 48px 0; }
  .news article { grid-template-columns: 1fr; gap: 4px; }
  .links { gap: 14px; }
  .links a { font-size: 14px; }
  .brand img { height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hero-img.alt { animation: none; opacity: 0; } }

/* donate: link to the game page in the hero */
.donate-btn { font-weight: 600; background: var(--yellow); color: #111 !important; border-color: var(--yellow); }
a.donate-btn:hover { background: var(--yellow); border-color: var(--yellow); filter: brightness(1.08); }

/* animated developer logo in the footer */
.joie:hover g circle { animation: rotate_alogo .5s linear infinite; }
.joie:hover g > :nth-child(2n) circle { animation: rotate_alogo .4s linear infinite; }
@keyframes rotate_alogo { 0% { transform: rotate(0) translate(8px) rotate(0); } to { transform: rotate(360deg) translate(8px) rotate(-360deg); } }
a.joie svg { width: 115px; height: auto; margin: -14px 7px; vertical-align: middle; }
a.joie svg > g > :nth-child(1), a.joie svg > g > :nth-child(3), a.joie svg > g > :nth-child(4), a.joie svg > g > :nth-child(5) { fill: #152c52; }
a.joie svg g { filter: none; }
a.joie svg path ~ g path { stroke-width: 24px; filter: brightness(0); }
a.joie { text-align: center; display: block; padding: 24px; background: transparent; letter-spacing: 1px; margin: 0 auto; box-sizing: border-box; position: relative; z-index: 2; width: fit-content; border-radius: 15px; color: #000; font-weight: 300; text-decoration: none; }
@media (prefers-color-scheme: dark) {
  a.joie { color: var(--fg); }
  a.joie svg > g > :nth-child(1), a.joie svg > g > :nth-child(3), a.joie svg > g > :nth-child(4), a.joie svg > g > :nth-child(5) { fill: var(--fg); }
  a.joie svg path ~ g path { filter: none; }
}

/* News: the link under each item on the home page, and the page of one item. */
.news h3 a { color: inherit; text-decoration: none; }
.news h3 a:hover { color: var(--blue); }
.news .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; font-weight: 600; text-decoration: none; }
.news .more span { transition: transform .15s; }
.news .more:hover span { transform: translateX(3px); }
.news-page .topbar { position: sticky; background: #10151b; }
.news-page .topbar-in { padding-block: 16px; }
.post { max-width: 820px; padding-top: 32px; }
.post .back { display: inline-block; font-size: 15px; text-decoration: none; margin-bottom: 28px; }
.post .back:hover { text-decoration: underline; }
.post time { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.post h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 700; margin: 8px 0 16px; }
.post-lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.post figure { margin: 0 0 28px; border-radius: 12px; overflow: hidden; background: var(--surface); }
.post figure img { display: block; width: 100%; height: auto; }
.post figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }
.post-body h2 { font-size: clamp(20px, 2.6vw, 24px); margin: 36px 0 10px; }
.post-body p, .post-body ul { margin: 0 0 16px; }
.post-body li { margin-bottom: 6px; }
.post-gallery { display: grid; gap: 16px; margin-top: 28px; }
.post-gallery figure { margin: 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 600; line-height: 1.35; }
.post-nav a:hover { border-color: var(--blue); }
.post-nav a span { color: var(--muted); font-size: 14px; font-weight: 400; }
.post-nav .newer { text-align: right; }
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .newer { text-align: left; }
  .post-lead { font-size: 17px; }
}

/* news list with a preview photo */
.news article { grid-template-columns: 260px 1fr; align-items: start; }
.news article time { display: block; margin-bottom: 4px; padding-top: 0; }
.news .thumb { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--line); }
.news .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.news article:hover .thumb img { transform: scale(1.04); }
.news article > * { min-width: 0; }
@media (max-width: 720px) { .news article { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.credits .donate-btn, .credits a.donate-btn:hover { background: var(--yellow); border-color: var(--yellow); }

/* Language menu in the top bar: a <details> list of the same page in every language. */
.links { align-items: center; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #fff; font-size: 14px; font-weight: 500; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; opacity: 0.9; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.lang summary:hover, .lang[open] summary { opacity: 1; border-color: rgba(255, 255, 255, 0.7); }
.lang summary svg { width: 16px; height: 16px; flex: none; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; margin: 0; padding: 6px; list-style: none; min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(8, 14, 22, 0.28); }
.lang li a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; font-size: 15px; opacity: 1; }
.lang li a:hover { background: var(--bg); text-decoration: none; }
.lang li a[aria-current] { color: var(--blue); font-weight: 600; }
@media (max-width: 640px) {
  .links { gap: 12px; }
  .lang summary { padding: 3px 8px; font-size: 13px; }
}

/* Chinese and Japanese: system CJK fonts after the Latin ones; no letter-spaced capitals. */
:lang(zh) { --body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; --display: "Unbounded", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(ja) { --body: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; --display: "Unbounded", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; }
:lang(zh) body, :lang(ja) body, body:lang(zh), body:lang(ja) { font-family: var(--body); line-break: strict; }
:lang(zh) .kicker, :lang(ja) .kicker { letter-spacing: 0.04em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { font-weight: 700; }

/* ---- Fixed top bar: see-through over the hero, solid once the page scrolls ---- */
:root { --bar-h: 62px; }
html { scroll-padding-top: calc(var(--bar-h) + 12px); }
html.no-scroll { overflow: hidden; }
.topbar, .news-page .topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: rgba(16, 21, 27, 0.94); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(8, 14, 22, 0.25); transition: background-color .25s, box-shadow .25s; }
@supports (backdrop-filter: blur(1px)) { .topbar, .news-page .topbar { background: rgba(16, 21, 27, 0.8); backdrop-filter: blur(14px) saturate(1.3); } }
.topbar.over-hero:not(.scrolled):not(.menu-open) { background: linear-gradient(rgba(8, 14, 22, 0.7), rgba(8, 14, 22, 0)); box-shadow: none; backdrop-filter: none; }
.topbar-in, .news-page .topbar-in { min-height: var(--bar-h); padding-block: 10px; }
.news-page { padding-top: var(--bar-h); }

/* burger: shown instead of the links on narrow screens */
.burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.burger span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.burger:focus-visible, .to-top:focus-visible, .sl-btn:focus-visible, .sl-dots button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* the phone menu panel, under the bar, over the page */
.mnav { position: fixed; top: var(--bar-h); left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain; background: #10151b; color: #fff; padding: 8px 0 calc(32px + env(safe-area-inset-bottom)); animation: mnav-in .22s ease-out; }
.mnav[hidden] { display: none; }
@keyframes mnav-in { from { opacity: 0; transform: translateY(-8px); } }
.mnav-links { display: grid; }
.mnav-links a { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; font-family: var(--display); font-size: 22px; font-weight: 500; }
.mnav-links a:active { color: var(--yellow); }
.mnav-h { display: flex; align-items: center; gap: 8px; margin: 28px 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); }
.mnav-h svg { width: 16px; height: 16px; }
.mnav-langs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mnav-langs a { display: block; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; color: #fff; text-decoration: none; font-size: 16px; }
.mnav-langs a[aria-current] { border-color: var(--yellow); color: var(--yellow); font-weight: 600; }
@media (max-width: 760px) {
  .links { display: none; }
  .burger { display: block; }
  .brand img { height: 20px; }
}

/* ---- "back to top" ---- */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 25; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(16, 21, 27, 0.88); color: #fff; cursor: pointer; box-shadow: 0 8px 24px rgba(8, 14, 22, 0.3); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility 0s .25s, background-color .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s, background-color .2s; }
.to-top:hover { background: var(--blue); border-color: var(--blue); }
.to-top svg { width: 22px; height: 22px; }

/* ---- hero slider ---- */
.hero-slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; }
.slide figcaption { display: none; }
.slide .hero-img { transform: scale(1.07); transition: transform calc(var(--slide-ms, 6500ms) + 1.5s) linear; }
.slide.is-active .hero-img { transform: scale(1); }
.hero.sl-ready .hero-text { padding-bottom: 96px; }
.slider-ui { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 3; display: none; align-items: center; justify-content: flex-end; gap: 16px; }
.hero.sl-ready .slider-ui { display: flex; }
.slide-cap { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; opacity: 0.85; }
.slide-cap::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; opacity: 0.7; }
.slider-ctrl { display: flex; align-items: center; gap: 6px; flex: none; }
.sl-btn { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(8, 14, 22, 0.35); color: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.sl-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.7); }
.sl-btn svg { width: 18px; height: 18px; }
.sl-play { margin-left: 6px; }
.sl-play .i-play, .sl-play.is-paused .i-pause { display: none; }
.sl-play.is-paused .i-play { display: block; }
.sl-dots { display: flex; }
.sl-dots button { position: relative; width: 26px; height: 38px; padding: 0; border: 0; background: none; cursor: pointer; }
.sl-dots button::before, .sl-dots button::after { content: ""; position: absolute; left: 4px; right: 4px; top: 18px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.sl-dots button::after { right: auto; width: 0; background: #fff; }
.sl-dots button:hover::before { background: rgba(255, 255, 255, 0.6); }
.sl-dots button[aria-current]::after { width: 18px; }
.hero.sl-running.sl-tick .sl-dots button[aria-current]::after { animation: sl-fill var(--slide-ms, 6500ms) linear both; }
@keyframes sl-fill { from { width: 0; } to { width: 18px; } }
@media (max-width: 640px) {
  .hero.sl-ready .hero-text { padding-bottom: 84px; }
  .slider-ui { bottom: 16px; justify-content: space-between; gap: 10px; }
  .sl-dots button { width: 18px; }
  .sl-dots button::before, .sl-dots button::after { left: 3px; right: 3px; }
  .sl-dots button[aria-current]::after { width: 12px; }
  @keyframes sl-fill { from { width: 0; } to { width: 12px; } }
  .sl-prev, .sl-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide .hero-img { transition: none; }
  .slide .hero-img { transform: none; }
  .mnav { animation: none; }
}
/* backdrop-filter would make the bar the containing block of the fixed menu panel */
.topbar.menu-open, .news-page .topbar.menu-open { backdrop-filter: none; background: #10151b; }
/* slider controls on the left, under the hero text; the caption follows them */
.slider-ui { justify-content: flex-start; }
.slider-ui .slide-cap { order: 2; }

/* ---- icons in the top bar: TikTok, Instagram and the heart (buy ammo) ---- */
.bar-icons { display: inline-flex; align-items: center; gap: 4px; margin-left: -4px; }
.bar-icon, .bar-donate { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; opacity: 1; transition: background-color .2s, transform .2s; }
.links .bar-icon { opacity: 0.85; }
.bar-icon:hover { background: rgba(255, 255, 255, 0.15); opacity: 1; }
.bar-icon svg { width: 18px; height: 18px; }
.bar-donate { background: var(--yellow); color: #111; margin-left: 4px; }
.links .bar-donate { opacity: 1; }
.bar-donate:hover { filter: brightness(1.08); transform: scale(1.06); }
.bar-donate svg { width: 18px; height: 18px; animation: heartbeat 2.4s ease-in-out infinite; }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 10%, 30% { transform: scale(1.16); } 20% { transform: scale(0.96); } }
.bar-donate-m { display: none; }
@media (max-width: 760px) {
  .bar-donate-m { display: grid; margin-left: auto; margin-right: 6px; width: 38px; height: 38px; }
  .topbar-in { gap: 8px; }
}
/* social links in the phone menu */
.mnav-socials { margin-top: 28px; }
.mnav-socials .social { color: #fff; font-size: 15px; padding: 10px 16px; }
@media (prefers-reduced-motion: reduce) { .bar-donate svg { animation: none; } }

/* the slider changes every 3 s: a shorter fade */
.slide { transition-duration: .8s; }

/* languages are shown as two-letter codes: a compact grid in both menus */
.lang ul { min-width: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.lang li a { padding: 7px 14px; text-align: center; font-weight: 600; letter-spacing: 0.04em; }
.mnav-langs { grid-template-columns: repeat(4, 1fr); }
.mnav-langs a { text-align: center; font-weight: 600; letter-spacing: 0.04em; }

/* five facts: one row on desktop */
.facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 196px), 1fr)); }
.fact b { white-space: nowrap; }
.fact b { font-size: clamp(22px, 2.3vw, 30px); }

/* ten slides on a phone: narrower dots leave room for the caption */
@media (max-width: 480px) {
  .sl-dots button { width: 11px; }
  .sl-dots button::before, .sl-dots button::after { left: 2px; right: 2px; }
  .sl-dots button::after { right: auto; }
  .sl-dots button[aria-current]::after { width: 7px; }
  @keyframes sl-fill { from { width: 0; } to { width: 7px; } }
}
