/* Omarmu Mods.

   Soft pink paper with white cards floating on it, the way Slime Rancher's
   site is put together, in Omarmu's own colours: the logo's magenta and
   pink, the husky's dark brown for words, and his yellow star. The star is
   Omar's rounded one from the coins site (static/img/star.svg, traced from
   his 2000px drawing), always leaning the way it sits on his bandana. On
   every button it grows out of a corner and fills the button.

   Motion plays for everyone, whatever the system's reduced-motion setting
   says: Omar's own Windows has animation effects off, and the coins site
   made the same call. Only the slow endless drifts (the painting, the
   clouds) stop for it. */

@font-face {
  font-family: Baloo;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/baloo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: Baloo;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/baloo-latin.woff2") format("woff2");
}
@font-face {
  font-family: Rubik;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: Rubik;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #fdf0f6;          /* the page */
  --paper-2: #f8e0ed;
  --veil: 253, 240, 246;     /* the page again, as numbers, for the hero's fade */
  --card: #ffffff;
  --card-2: #fbf1f6;
  --ink: #3a1830;            /* headings */
  --ink-2: #6b4a60;          /* reading text */
  --ink-3: #8a6c80;          /* small print */
  --accent: #ac2a8b;         /* the logo's outline */
  --pink: #e96aa9;
  --pink-soft: #f6d3e7;
  --star: #ffd33c;           /* the coins site's star */
  --teal: #1593b6;           /* his eyes */
  --teal-ink: #0e7799;
  --rim: #ffffff;
  --ok: #2f8f4e;
  --bad: #c93c3c;
  --glow: rgba(255, 255, 255, .7);
  --shadow: 0 1px 2px rgba(110, 30, 85, .06), 0 12px 30px -14px rgba(110, 30, 85, .32);
  --shadow-up: 0 2px 6px rgba(110, 30, 85, .08), 0 28px 50px -20px rgba(110, 30, 85, .48);
  --footer: #3a1830;
  --footer-ink: #f7e4ef;
  --tag-fabric: #fde1f0;
  --tag-fabric-ink: #9c2479;
  --tag-bedrock: #d8f0f9;
  --tag-bedrock-ink: #0c6787;
  --tag-client: #fff0c4;
  --tag-client-ink: #765000;

  --grad-pink: linear-gradient(165deg, #f677b8 0%, #d6489f 55%, #ac2a8b 100%);
  --grad-teal: linear-gradient(165deg, #4ac8e5 0%, #1c9dc1 55%, #0d7597 100%);
  /* The star's own fill: deep at the corner it grows from, pale at the far
     end, so a filled button still shows which way the star came in. */
  --grad-star: radial-gradient(closest-side, #ffa51f 0%, #ffc12e 12%, #ffd33c 24%, #ffe57a 36%, #fff0b0 48%);
  --grad-star-flat: linear-gradient(160deg, #ffe57a 0%, #ffd33c 50%, #ffb321 100%);
  --on-star: #4a1d16;

  --radius: 22px;
  --radius-sm: 14px;
  --pill: 999px;
  --tilt: -15deg;            /* the star leans like the one on his bandana */
  --lean: 1;                 /* which way the huskies tip; flips for Arabic */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --smooth: cubic-bezier(.22, 1, .36, 1);
  --heading: Baloo, "Segoe UI", Tahoma, sans-serif;
  --text: Rubik, "Segoe UI", Tahoma, sans-serif;
  --star-mask: url("/static/img/star.svg") center / contain no-repeat;
  --cloud-mask: url("/static/img/clouds.svg");
}
[dir="rtl"] { --lean: -1; }

/* Night: deep plum under the same pinks. Follows the system unless the moon
   button says otherwise. */
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1c1120;
  --paper-2: #26172b;
  --veil: 28, 17, 32;
  --card: #2c1b33;
  --card-2: #37243f;
  --ink: #fdeef6;
  --ink-2: #dcc2d3;
  --ink-3: #b39aab;
  --accent: #f497cf;
  --pink-soft: #4b2645;
  --teal-ink: #7fd3ee;
  --rim: #f6dcea;
  --glow: rgba(255, 255, 255, .1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 32px -14px rgba(0, 0, 0, .75);
  --shadow-up: 0 2px 6px rgba(0, 0, 0, .35), 0 30px 54px -20px rgba(0, 0, 0, .85);
  --footer: #120a15;
  --tag-fabric: #4b2645;
  --tag-fabric-ink: #f7bde0;
  --tag-bedrock: #163746;
  --tag-bedrock-ink: #9edcf1;
  --tag-client: #3d3216;
  --tag-client-ink: #ffd877;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1c1120;
    --paper-2: #26172b;
    --veil: 28, 17, 32;
    --card: #2c1b33;
    --card-2: #37243f;
    --ink: #fdeef6;
    --ink-2: #dcc2d3;
    --ink-3: #b39aab;
    --accent: #f497cf;
    --pink-soft: #4b2645;
    --teal-ink: #7fd3ee;
    --rim: #f6dcea;
    --glow: rgba(255, 255, 255, .1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 32px -14px rgba(0, 0, 0, .75);
    --shadow-up: 0 2px 6px rgba(0, 0, 0, .35), 0 30px 54px -20px rgba(0, 0, 0, .85);
    --footer: #120a15;
    --tag-fabric: #4b2645;
    --tag-fabric-ink: #f7bde0;
    --tag-bedrock: #163746;
    --tag-bedrock-ink: #9edcf1;
    --tag-client: #3d3216;
    --tag-client-ink: #ffd877;
  }
}

/* ---- base ------------------------------------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: hidden;
  overflow-x: clip;
}
html:lang(ar) body { line-height: 1.8; }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: 1.05; color: var(--ink); margin: 0 0 .35em; }
html:lang(ar) :is(h1, h2, h3) { line-height: 1.35; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
p { margin: 0 0 1em; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
code { font-family: Consolas, "Courier New", monospace; font-size: .9em; background: var(--card-2); color: var(--ink); padding: 2px 7px; border-radius: 7px; }
::selection { background: var(--pink-soft); color: var(--ink); }
[hidden] { display: none !important; }
.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; }
.lead { font-size: 1.15rem; color: var(--ink-2); }

/* English headings, buttons and labels go in capitals, the way the video
   thumbnails do. Arabic has no capitals and stays as written. */
html:lang(en) :is(h1, h2, .button, .chip, .topnav a, .card-title, .card-date, .door-label, .door-title, .section-link) { text-transform: uppercase; }
html:lang(en) :is(h1, h2, .card-title, .door-title) { letter-spacing: .01em; }

/* The star on its own, for badges. */
.star {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  background: var(--grad-star-flat);
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  rotate: var(--tilt);
}

/* ---- buttons ----------------------------------------------------------
   A gradient pill in a white rim. Hover, focus or press, and Omar's star
   grows out of the bottom corner on the reading side, turning a fifth of a
   turn as it comes (a five-pointed star looks the same again after a
   fifth), until it covers the whole button. Its centre sits on the corner
   and its narrowest radius is about 54% of its widest, so at 480% of the
   button's width even the star's inner corners reach past the far end. */
.button {
  --b-bg: var(--grad-pink);
  --b-ink: #fff;
  --b-fill: var(--grad-star);
  --b-fill-ink: var(--on-star);
  --b-glow: rgba(172, 42, 139, .55);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 54px;
  padding: 0 28px;
  font: 800 1.05rem/1.1 var(--heading);
  letter-spacing: .03em;
  color: var(--b-ink);
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(80, 10, 60, .22);
  background: var(--b-bg);
  border: 4px solid var(--rim);
  border-radius: var(--pill);
  box-shadow: 0 12px 22px -12px var(--b-glow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s, text-shadow .15s, transform .45s var(--spring), box-shadow .45s var(--smooth);
}
html:lang(ar) .button { font-size: 1.1rem; letter-spacing: 0; padding-top: 3px; }
.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 480%;
  aspect-ratio: 1;
  translate: -50% 50%;
  background: var(--b-fill);
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  transform: rotate(calc(var(--tilt) - 72deg)) scale(0);
  transition: transform .4s cubic-bezier(.55, 0, .8, .3);
  pointer-events: none;
}
[dir="rtl"] .button::before { left: auto; right: 0; translate: 50% 50%; }
.button:hover::before, .button:focus-visible::before, .button:active::before,
.door:hover .button::before, .door:focus-visible .button::before {
  transform: rotate(var(--tilt)) scale(1);
  transition: transform .85s cubic-bezier(.5, .05, .25, 1);
}
.button:hover, .button:focus-visible, .button:active,
.door:hover .button, .door:focus-visible .button {
  color: var(--b-fill-ink);
  text-shadow: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 28px -14px var(--b-glow);
  transition: color .25s .22s, text-shadow .25s .22s, transform .45s var(--spring), box-shadow .45s var(--smooth);
}
.button:active { transform: translateY(1px) scale(.98); }
.button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.button-teal { --b-bg: var(--grad-teal); --b-glow: rgba(13, 117, 151, .55); }
.button-secondary {
  --b-bg: var(--card);
  --b-ink: var(--accent);
  --b-fill: radial-gradient(closest-side, #ac2a8b 0%, #d6489f 20%, #f07ab8 42%);
  --b-fill-ink: #fff;
  --b-glow: rgba(110, 30, 85, .35);
  text-shadow: none;
  border-color: var(--card);
}
.button-big { min-height: 64px; padding: 0 36px; font-size: 1.25rem; }
html:lang(ar) .button-big { font-size: 1.3rem; }
.button-small { min-height: 44px; padding: 0 18px; font-size: .95rem; border-width: 3px; }
html:lang(ar) .button-small { font-size: 1rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

/* ---- the bar ------------------------------------------------------------
   Up top it is the logo on the painting and a white pill of links with the
   big button hanging off its end. Scroll down and a white strip slides in
   behind them, the logo shrinks into it, and the big button hops once. */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 18px 24px;
  transition: padding .5s var(--smooth);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card);
  box-shadow: var(--shadow);
  translate: 0 -110%;
  transition: translate .5s var(--smooth);
}
.header.scrolled { padding-block: 8px; }
.header.scrolled::before { translate: 0 0; }
.header-inner { position: relative; max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.site-logo { display: block; flex: none; margin-inline-end: auto; transition: transform .5s var(--spring); }
.site-logo img { display: block; width: auto; height: 60px; filter: drop-shadow(0 8px 12px rgba(110, 30, 85, .3)); transition: height .5s var(--smooth), filter .5s; }
.scrolled .site-logo img { height: 42px; filter: none; }
.site-logo:hover { transform: rotate(calc(-3deg * var(--lean))) scale(1.04); }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-block: 6px;
  padding-inline: 10px 44px;
  background: var(--card);
  border-radius: var(--pill);
  box-shadow: var(--shadow);
  transition: background .5s, box-shadow .5s;
}
.scrolled .nav-pill { background: var(--card-2); box-shadow: none; }
.topnav { display: flex; align-items: center; gap: 2px; }
.topnav a:not(.button) {
  position: relative;
  padding: 11px 14px;
  font: 800 .95rem/1 var(--heading);
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--pill);
  transition: color .2s;
}
html:lang(ar) .topnav a:not(.button) { font-size: 1.05rem; letter-spacing: 0; }
.topnav a:not(.button):hover, .topnav a[aria-current] { color: var(--accent); }
.topnav a:not(.button):not(.lang-toggle)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  background: var(--grad-star-flat);
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  rotate: var(--tilt);
  transform: scale(0) rotate(-72deg);
  transition: transform .45s var(--spring);
}
.topnav a:not(.button):hover::after, .topnav a[aria-current]::after { transform: none; }
.topnav .lang-toggle { display: inline-flex; align-items: center; gap: 7px; margin-inline-start: 6px; padding: 8px 12px; background: var(--card-2); }
.scrolled .topnav .lang-toggle { background: var(--card); }
.lang-toggle img { width: 20px; height: 20px; border-radius: 50%; }
.lang-toggle:hover img { animation: hop .6s var(--spring); }
.menu-cta { display: none; }

.theme-toggle, .menu-btn {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--card-2);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.scrolled :is(.theme-toggle, .menu-btn) { background: var(--card); }
.theme-toggle svg { width: 20px; height: 20px; transition: transform .6s var(--spring); }
.theme-toggle:hover svg { transform: rotate(35deg) scale(1.1); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.menu-btn { display: none; gap: 4px; align-content: center; }
.menu-btn span { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .4s var(--spring), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.header-cta { position: relative; z-index: 2; margin-inline-start: -52px; }
.scrolled .header-cta { animation: cta-hop .7s var(--spring); }
@keyframes cta-hop {
  40% { transform: translateY(-5px) rotate(calc(-3deg * var(--lean))); }
}

/* ---- the page frame -------------------------------------------------------- */
.content { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 130px 24px 0; }
.home .content { padding-top: 0; }

.section { margin-top: 110px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 30px; }
.section-head p { margin: 0; color: var(--ink-3); font-weight: 600; }
.section-title { display: flex; align-items: center; gap: .3em; margin: 0; }
.section-title::before {
  content: "";
  width: .8em;
  height: .8em;
  flex: none;
  background: var(--grad-star-flat);
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  rotate: var(--tilt);
}
html.js .reveal.in .section-title::before { animation: star-in .9s var(--spring) .15s both; }
.section-link { font: 800 1rem/1 var(--heading); letter-spacing: .04em; color: var(--accent); text-decoration: none; padding: 6px 0; }
.section-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Things step in as they scroll into view. Without script they are simply
   there. */
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--smooth), transform .9s var(--spring); transition-delay: calc(var(--i, 0) * 80ms); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---- the painting up top ------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(540px, min(94vh, 900px));
  background: var(--paper-2);
}
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
[dir="rtl"] .hero-art { transform: scaleX(-1); }
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 42%;
  transform-origin: 72% 55%;
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translateX(-1%); }
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(var(--veil), .97) 0%, rgba(var(--veil), .86) 30%, rgba(var(--veil), .35) 50%, rgba(var(--veil), 0) 64%);
}
.hero-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 150px 24px 170px; }
.hero-text { max-width: 600px; }
.hero h1 { font-size: clamp(2.8rem, 5.8vw, 4.8rem); line-height: .95; margin-bottom: .32em; }
html:lang(ar) .hero h1 { line-height: 1.3; }
.hero .lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 30em; margin-bottom: 30px; }
.hero-text > * { animation: rise 1s var(--smooth) both; }
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-text > :nth-child(3) { animation-delay: .2s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
}

/* The puffy edge between a painting and the page: two rows of cloud, a pale
   one behind drifting one way, the page colour in front drifting the other. */
.clouds { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; height: 90px; pointer-events: none; }
.clouds::before, .clouds::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: var(--cloud-mask) repeat-x 0 100% / 1440px 90px;
  mask: var(--cloud-mask) repeat-x 0 100% / 1440px 90px;
}
.clouds::before { background: var(--glow); bottom: 14px; top: -14px; animation: clouds-back 110s linear infinite; }
.clouds::after { background: var(--paper); animation: clouds 140s linear infinite; }
@keyframes clouds {
  from { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  to { -webkit-mask-position: -1440px 100%; mask-position: -1440px 100%; }
}
@keyframes clouds-back {
  from { -webkit-mask-position: -520px 100%; mask-position: -520px 100%; }
  to { -webkit-mask-position: 920px 100%; mask-position: 920px 100%; }
}

/* ---- where do you play ----------------------------------------------------
   Two big cards that sit over the clouds, a husky perched on each. */
.doors { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: -64px; }
.door { position: relative; display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; animation: rise 1s var(--smooth) .25s both; }
.door + .door { animation-delay: .35s; }
.door-face {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 32px 32px;
  padding-inline-end: 180px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-up);
  transition: transform .5s var(--spring), box-shadow .5s var(--smooth);
}
.door:hover .door-face { transform: translateY(-6px); }
.door:focus-visible { outline: none; }
.door:focus-visible .door-face { outline: 3px solid var(--accent); outline-offset: 4px; }
.door-label { font: 800 .82rem/1 var(--heading); letter-spacing: .1em; color: var(--accent); margin-bottom: 10px; }
.door-bedrock .door-label { color: var(--teal-ink); }
.door-title { font: 800 clamp(1.4rem, 2.2vw, 1.75rem)/1.1 var(--heading); color: var(--ink); margin-bottom: 8px; }
html:lang(ar) .door-title { line-height: 1.4; }
.door-text { margin: 0 0 20px; color: var(--ink-2); }
.door .button { margin-top: auto; }
.door .perch {
  position: absolute;
  z-index: 2;
  top: -48px;
  inset-inline-end: 26px;
  width: 140px;
  height: auto;
  filter: drop-shadow(0 10px 12px rgba(110, 30, 85, .25));
  transition: transform .6s var(--spring);
  pointer-events: none;
}
.door:hover .perch { transform: translateY(-10px) rotate(calc(-6deg * var(--lean))) scale(1.04); }

/* ---- cards ----------------------------------------------------------------
   White cards. A husky hides behind each one and pops up over its top edge
   when the card is hovered or pressed. */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 28px; padding-top: 30px; }
.news-grid .featured { grid-column: span 2; grid-row: span 2; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: 64px 26px; padding-top: 30px; }
.card { position: relative; display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.card:hover, .card:focus-visible { z-index: 4; }
.card:focus-visible { outline: none; }
.card-face {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .5s var(--spring), box-shadow .5s var(--smooth);
}
.card:hover .card-face, .card:focus-visible .card-face { transform: translateY(-6px); box-shadow: var(--shadow-up); }
.card:focus-visible .card-face { outline: 3px solid var(--accent); outline-offset: 3px; }
.card .character {
  position: absolute;
  z-index: 0;
  top: 0;
  inset-inline-end: 28px;
  width: 96px;
  height: auto;
  transform: translateY(30%) rotate(calc(10deg * var(--lean))) scale(.9);
  transition: transform .55s var(--spring);
  pointer-events: none;
}
.card:hover .character, .card:focus-visible .character, .card:active .character { transform: translateY(-74%) rotate(calc(-4deg * var(--lean))); }
.card.featured .character { width: 140px; inset-inline-end: 48px; }
/* Phones have no hover, so there the huskies peek out a little all along
   and jump the rest of the way when the card is pressed. */
@media (hover: none) {
  .card .character { transform: translateY(-34%) rotate(calc(8deg * var(--lean))) scale(.92); }
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ground);
}
.thumb-pink { --ground: linear-gradient(150deg, #ffd6ea 0%, #f59ccb 100%); }
.thumb-lav { --ground: linear-gradient(150deg, #ecdcff 0%, #bf98ef 100%); }
.thumb-sky { --ground: linear-gradient(150deg, #d2f0fd 0%, #86cbef 100%); }
.thumb-peach { --ground: linear-gradient(150deg, #ffe6c9 0%, #ffae79 100%); }
.thumb::before {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  inset-inline-end: -14%;
  bottom: -30%;
  background: rgba(255, 255, 255, .45);
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  rotate: var(--tilt);
  transition: transform .9s var(--spring);
}
.thumb-img::before { display: none; }
.card:hover .thumb::before { transform: rotate(72deg) scale(1.08); }
.thumb-img > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--smooth); }
.card:hover .thumb-img > img:first-child { transform: scale(1.05); }
.thumb-title {
  position: relative;
  padding: 0 8%;
  font: 800 clamp(1.6rem, 2.4vw, 2.1rem)/1 var(--heading);
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 8px #ac2a8b;
  paint-order: stroke fill;
  filter: drop-shadow(0 5px 0 rgba(90, 20, 70, .22));
  transition: transform .55s var(--spring);
}
.card:hover .thumb-title { transform: scale(1.06) rotate(calc(-2deg * var(--lean))); }
.thumb-mark { position: absolute; top: 10px; inset-inline-start: 12px; width: 74px; height: auto; }

.card-body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; }
.card-date { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font: 800 .82rem/1.2 var(--heading); letter-spacing: .05em; color: var(--accent); }
html:lang(ar) .card-date { font-size: .92rem; letter-spacing: 0; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 3px; color: #fff; background: var(--grad-pink); border-radius: var(--pill); }
.badge .star { width: 12px; height: 12px; background: #fff; }
.card-title { font: 800 1.3rem/1.1 var(--heading); color: var(--ink); }
html:lang(ar) .card-title { line-height: 1.35; }
.card-line { margin: 0; font-size: .98rem; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; padding-inline-end: 52px; }
.tag { font: 600 .76rem/1 var(--text); padding: 6px 10px; border-radius: var(--pill); background: var(--card-2); color: var(--ink-2); }
html:lang(ar) .tag { font-size: .82rem; padding-block: 5px 6px; }
.tag-fabric { background: var(--tag-fabric); color: var(--tag-fabric-ink); }
.tag-bedrock { background: var(--tag-bedrock); color: var(--tag-bedrock-ink); }
.tag-client { background: var(--tag-client); color: var(--tag-client-ink); }
.tag-soon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pink-soft); color: var(--ink-3); }

/* The big one: the newest mod gets two columns and a taller picture. */
.featured .thumb { flex: 1 0 auto; }
.featured .card-body { flex: none; padding: 22px 28px 26px; }
.featured .thumb-title { font-size: clamp(2rem, 4vw, 3.4rem); -webkit-text-stroke-width: 11px; }
.featured .thumb-mark { width: 104px; top: 14px; inset-inline-start: 16px; }
.featured .card-title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.featured .card-line { font-size: 1.08rem; }

/* The folded corner, with the star in it. */
.corner { position: absolute; bottom: 0; inset-inline-end: 0; width: 60px; height: 60px; background: var(--grad-pink); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
[dir="rtl"] .corner { clip-path: polygon(0 0, 100% 100%, 0 100%); }
.corner::after {
  content: "";
  position: absolute;
  bottom: 9px;
  inset-inline-end: 9px;
  width: 20px;
  height: 20px;
  background: #fff;
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  rotate: var(--tilt);
  transition: transform .7s var(--spring);
}
.card:hover .corner::after { transform: rotate(144deg) scale(1.2); }

/* ---- filter chips ----------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px 10px;
  font: 800 .92rem/1 var(--heading);
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border-radius: var(--pill);
  box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
  transition: transform .4s var(--spring), color .2s;
}
html:lang(ar) .chip { font-size: 1rem; letter-spacing: 0; }
.chip::before {
  content: "";
  width: 0;
  height: 14px;
  background: #fff;
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  rotate: var(--tilt);
  transition: width .35s var(--spring), margin .35s var(--spring);
}
.chip:hover { transform: translateY(-2px); color: var(--accent); }
.chip[aria-pressed="true"] { color: #fff; background: var(--grad-pink); }
.chip[aria-pressed="true"]::before { width: 14px; margin-inline-end: 7px; }

/* ---- new here ----------------------------------------------------------------
   One wide card. The waving husky leans in from its bottom corner. */
.welcome { margin-top: 130px; }
.welcome-face {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  padding: 46px 52px;
  padding-inline-end: 280px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-up);
}
.welcome-face::before, .welcome-face::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--grad-star-flat);
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  rotate: var(--tilt);
  opacity: .3;
}
.welcome-face::before { width: 360px; height: 360px; inset-inline-end: -40px; top: -90px; }
.welcome-face::after { width: 64px; height: 64px; inset-inline-end: 300px; bottom: 26px; opacity: .55; rotate: 14deg; }
.welcome h2 { margin-bottom: 10px; }
.welcome .lead { max-width: 34em; margin-bottom: 24px; }
.welcome-husky {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 200px;
  height: auto;
  pointer-events: none;
}
[dir="rtl"] .welcome-husky { transform: scaleX(-1); }
html.js .welcome.reveal .welcome-husky { translate: 0 40%; transition: translate .9s var(--spring) .25s; }
html.js .welcome.reveal.in .welcome-husky { translate: 0 0; }

/* ---- find Omarmu -------------------------------------------------------------- */
.social { text-align: center; }
.social .section-title { justify-content: center; }
.social .lead { margin: 10px 0 0; }
.social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.social-card {
  width: 220px;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 18px 20px;
  font: 800 1.15rem/1 var(--heading);
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .5s var(--spring), box-shadow .5s var(--smooth);
}
.social-card img { height: 112px; width: auto; transition: transform .6s var(--spring); }
.social-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); }
.social-card:hover img { transform: rotate(-6deg) scale(1.08); }
.social-card:nth-child(2n):hover img { transform: rotate(6deg) scale(1.08); }

.ad-box { margin: 44px auto 0; min-height: 90px; border-radius: var(--radius-sm); background: var(--card-2); }
.ad-box:empty { display: none; }

/* ---- a mod's page ------------------------------------------------------------- */
.crumbs { font: 700 .95rem/1.4 var(--heading); color: var(--ink-3); margin-bottom: 16px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.mod-head { max-width: 760px; margin-bottom: 34px; }
.mod-head h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1; }
html:lang(ar) .mod-head h1 { line-height: 1.3; }
.mod-head .lead { font-size: 1.2rem; margin: 8px 0 12px; }
.mod-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; }
.thumb.cover, .video { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 34px; }
.thumb.cover .thumb-title { font-size: clamp(2.4rem, 6vw, 4.4rem); -webkit-text-stroke-width: 12px; }
.thumb.cover .thumb-mark { width: 120px; top: 16px; inset-inline-start: 18px; }
.video { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.prose h2 { display: flex; align-items: center; gap: .35em; font-size: 1.65rem; margin: 40px 0 12px; }
.prose h2::before {
  content: "";
  width: .75em;
  height: .75em;
  flex: none;
  background: var(--grad-star-flat);
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  rotate: var(--tilt);
}
.prose > h2:first-of-type { margin-top: 0; }
.prose ul { list-style: none; padding: 0; margin: 0 0 14px; }
.prose li { position: relative; padding-inline-start: 28px; margin: 9px 0; }
.prose li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: .4em;
  width: 15px;
  height: 15px;
  background: var(--grad-star-flat);
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  rotate: var(--tilt);
}
html:lang(ar) .prose li::before { top: .55em; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 20px; overflow: hidden; background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.prose th, .prose td { text-align: start; padding: 12px 16px; vertical-align: top; border-bottom: 1px solid var(--pink-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font: 800 .92rem/1.2 var(--heading); color: var(--ink); background: var(--card-2); }

.mod-side { display: grid; gap: 22px; }
.panel { position: relative; padding: 24px 24px 22px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel h2 { font-size: 1.4rem; margin-bottom: 10px; }
.panel h3 { font: 800 .78rem/1.2 var(--heading); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 18px 0 8px; }
html:lang(ar) .panel h3 { font-size: .95rem; letter-spacing: 0; }
.panel h3:first-of-type { margin-top: 4px; }
.panel p { margin: 0 0 8px; }
/* The mod's husky peeks over the top of the download box. */
.perched { position: relative; margin-top: 70px; }
.perched .perch {
  position: absolute;
  bottom: 100%;
  inset-inline-end: 30px;
  width: 112px;
  height: auto;
  margin-bottom: -30px;
  animation: peek 1s var(--spring) .3s both;
  pointer-events: none;
}
.perched .panel { z-index: 1; }
.dl-list { display: grid; gap: 10px; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; padding-inline-start: 16px; background: var(--card-2); border-radius: var(--radius-sm); }
.dl-meta { min-width: 0; }
.dl-meta strong { display: block; font: 800 1.05rem/1.2 var(--heading); color: var(--ink); }
.dl-meta span { display: block; font-size: .84rem; color: var(--ink-3); overflow-wrap: anywhere; }
.dl-row .button { flex: none; }
.dl-soon { margin: 0; color: var(--ink-3); font-style: italic; }
.gate-small { font-size: .86rem; color: var(--ink-3); margin: 12px 0 0; }
.needs { list-style: none; padding: 0; margin: 0; }
.needs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--pink-soft); }
.needs li:last-child { border-bottom: 0; }
.needs a { font-weight: 600; }
.needs span { color: var(--ink-3); font-size: .9rem; text-align: end; }

/* ---- the guides --------------------------------------------------------------- */
.guide-head { max-width: 760px; margin-bottom: 34px; }
.steps { list-style: none; display: grid; gap: 16px; padding: 0; margin: 0 0 24px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 66px 1fr;
  column-gap: 20px;
  align-items: center;
  padding: 22px 26px;
  padding-inline-start: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  grid-row: 1 / 3;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  padding-top: 7px;
  font: 800 1.55rem/1 var(--heading);
  color: var(--on-star);
  background: var(--grad-star-flat);
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  rotate: var(--tilt);
}
html.js .steps li.reveal.in::before { animation: star-in .9s var(--spring) both; animation-delay: calc(var(--i, 0) * 80ms + .1s); }
.steps strong, .steps p { grid-column: 2; }
.steps strong { display: block; font: 800 1.25rem/1.2 var(--heading); color: var(--ink); }
html:lang(ar) .steps strong { line-height: 1.5; }
.steps p { margin: 4px 0 0; color: var(--ink-2); }
.note { padding: 16px 20px; color: var(--ink-2); background: var(--card-2); border-radius: var(--radius-sm); border-inline-start: 5px solid var(--teal); }

/* ---- the download gate ---------------------------------------------------------- */
.gate-page .content { max-width: 760px; }
.gate-card { position: relative; margin-top: 90px; padding: 0 30px 30px; text-align: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-up); }
.gate-card h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
.gate-sticker { display: block; width: 150px; height: 150px; object-fit: contain; margin: -84px auto 14px; animation: peek 1s var(--spring) both; }
.gate-file { color: var(--ink-3); font-size: .95rem; margin: 6px 0 14px; }
.ad-slot { margin: 18px 0; }
.ad-fake { aspect-ratio: 16 / 9; display: grid; place-content: center; gap: 6px; color: var(--ink-2); background: var(--card-2); border-radius: var(--radius-sm); }
.ad-fake strong { font: 800 3rem/1 var(--heading); color: var(--accent); }
.gate-bar { position: relative; height: 18px; margin: 24px 14px 12px; background: var(--card-2); border-radius: var(--pill); }
.gate-bar span { position: relative; display: block; width: 0; height: 100%; background: var(--grad-pink); border-radius: var(--pill); transition: width .9s linear; }
.gate-bar span::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: -16px;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  background: var(--grad-star-flat);
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  rotate: var(--tilt);
  animation: spin 3s linear infinite;
}
.gate-status { min-height: 1.6em; font-weight: 600; color: var(--ink-2); margin: 0 0 16px; }
.gate-status.ok { color: var(--ok); }
.gate-status.bad { color: var(--bad); }
.gate-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gate-actions .button-big { min-width: min(100%, 360px); }

/* ---- the lock, the lost page ------------------------------------------------------ */
.lock-page { padding: 24px 16px; }
.lock-state { flex: 1; display: grid; place-items: center; padding: 100px 0 24px; }
.content .lock-state { min-height: 50vh; padding-top: 50px; }
.lock-card {
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px 30px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-up);
}
.lock-sticker { order: -1; display: block; width: 140px; height: 140px; object-fit: contain; margin: -78px auto 14px; animation: peek 1s var(--spring) both; }
.lock-site { font: 800 .85rem/1 var(--heading); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.lock-card h1 { font-size: 2rem; }
.lock-note { color: var(--ink-2); font-size: .95rem; }
.lock-card label { align-self: stretch; display: block; font-weight: 700; color: var(--ink); margin: 14px 0 6px; text-align: start; }
.lock-input { align-self: stretch; width: 100%; font: inherit; padding: 12px 16px; color: var(--ink); background: var(--card-2); border: 2px solid var(--pink-soft); border-radius: var(--radius-sm); margin-bottom: 16px; }
.lock-input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(233, 106, 169, .22); }
.lock-input[aria-invalid="true"] { border-color: var(--bad); }
.lock-wrong { color: var(--bad); font-weight: 600; margin: -6px 0 12px; }

/* ---- footer -------------------------------------------------------------------- */
.footer { position: relative; margin-top: 150px; color: var(--footer-ink); background: var(--footer); }
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: 70px;
  background: var(--footer);
  -webkit-mask: var(--cloud-mask) repeat-x 0 100% / 1120px 70px;
  mask: var(--cloud-mask) repeat-x 0 100% / 1120px 70px;
}
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 26px 24px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.footer-brand img { height: 46px; width: auto; }
.footer p { margin: 0; font: 700 .95rem/1.3 var(--heading); opacity: .85; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; }
.footer-links a { color: var(--footer-ink); font-weight: 600; text-decoration: none; padding: 4px 0; }
.footer-links a + a::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 14px;
  background: var(--star);
  -webkit-mask: var(--star-mask);
  mask: var(--star-mask);
  rotate: var(--tilt);
}
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---- small motions ------------------------------------------------------------------- */
@keyframes star-in {
  from { transform: scale(0) rotate(-144deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes hop {
  40% { transform: translateY(-5px) rotate(-8deg); }
}
@keyframes peek {
  from { opacity: 0; transform: translateY(40px) scale(.9); }
}

/* ---- narrower screens ------------------------------------------------------------------
   Below this the links fold into a menu behind the round button, and the
   big button moves into that menu. */
@media (max-width: 1040px) {
  .header { padding: 12px 16px; }
  .header.scrolled { padding-block: 6px; }
  .site-logo img { height: 50px; }
  .scrolled .site-logo img { height: 38px; }
  .nav-pill { padding: 5px; gap: 6px; }
  .header-inner > .header-cta { display: none; }
  .menu-btn { display: grid; }
  .topnav {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    width: min(100%, 360px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-up);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.95);
    transition: opacity .2s, transform .35s var(--smooth), visibility 0s .35s;
  }
  [dir="rtl"] .topnav { transform-origin: top left; }
  .menu-open .topnav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .5s var(--spring); }
  .topnav a:not(.button) { padding: 15px 16px; font-size: 1.2rem; }
  html:lang(ar) .topnav a:not(.button) { font-size: 1.25rem; }
  .topnav a:not(.button):not(.lang-toggle)::after { left: auto; bottom: auto; top: 50%; inset-inline-end: 16px; width: 16px; height: 16px; margin: -8px 0 0; }
  .topnav .lang-toggle { align-self: flex-start; margin: 4px 0 8px; font-size: 1rem; }
  .menu-cta { display: flex; }

  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid .featured { grid-column: 1 / -1; grid-row: auto; }
  .news-grid .featured .thumb { aspect-ratio: 2.2; }
  .door-face { padding-inline-end: 140px; }
  .door .perch { width: 116px; }
  .welcome-face { padding-inline-end: 230px; }
  .welcome-face::after { inset-inline-end: 240px; }
  .welcome-husky { width: 180px; }
}
@media (max-width: 900px) {
  .mod-layout { grid-template-columns: 1fr; }
  .mod-side { order: -1; }
}

/* ---- phones ------------------------------------------------------------------------ */
@media (max-width: 700px) {
  .content { padding: 100px 16px 0; }
  .home .content { padding-top: 0; }
  .section { margin-top: 76px; }
  .section-head { margin-bottom: 22px; }

  /* The painting becomes a picture across the top with the words under it,
     so the husky is never behind the text. */
  .hero { display: block; min-height: 0; background: var(--paper); }
  .hero-art { position: relative; inset: auto; height: clamp(260px, 74vw, 440px); max-height: 85vh; }
  .hero-art::before { display: none; }
  .hero-scene { object-position: 76% 45%; }
  .clouds { height: 54px; }
  .clouds::before, .clouds::after { -webkit-mask-size: 860px 54px; mask-size: 860px 54px; }
  .clouds::before { bottom: 8px; top: -8px; }
  .hero-inner { padding: 6px 16px 0; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero .lead { margin-bottom: 22px; }
  .hero .button-row { flex-direction: column; align-items: stretch; }

  .doors { grid-template-columns: 1fr; gap: 58px; margin-top: 70px; }
  .door-face { padding: 24px 22px; }
  .door-title { padding-inline-end: 104px; }
  .door .perch { width: 100px; top: -44px; inset-inline-end: 12px; }
  .door .button { align-self: stretch; }

  .news-grid { grid-template-columns: 1fr; gap: 58px; }
  .news-grid .featured .thumb { aspect-ratio: 16 / 9; }
  .featured .thumb-title { font-size: clamp(1.8rem, 9vw, 2.4rem); -webkit-text-stroke-width: 9px; }
  .featured .card-body { padding: 18px 22px 22px; }
  .card.featured .character { width: 110px; inset-inline-end: 28px; }
  .mod-grid { gap: 58px 18px; }

  .welcome { margin-top: 90px; }
  .welcome-face { min-height: 0; padding: 30px 22px 28px; }
  .welcome-face::before { width: 260px; height: 260px; top: -70px; inset-inline-end: -70px; }
  .welcome-face::after { display: none; }
  .welcome .button-row { flex-direction: column; align-items: flex-start; padding-inline-end: 112px; }
  .welcome-husky { width: 140px; }

  .social-row { gap: 14px; }
  .social-card { width: calc(50% - 7px); padding: 18px 12px 16px; font-size: 1.05rem; }
  .social-card img { height: 84px; }

  .mod-layout { gap: 30px; }
  .steps li { grid-template-columns: 54px 1fr; column-gap: 14px; padding: 18px 18px 18px 14px; }
  .steps li::before { width: 54px; height: 54px; font-size: 1.3rem; }
  .gate-card { padding: 0 18px 24px; }
  .footer { margin-top: 120px; }
  .footer-inner { padding: 20px 16px 36px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .site-logo img, .scrolled .site-logo img { height: 38px; }
}

/* Phones on their side: short and wide, so the painting stays beside the
   words like on a computer, just tighter. */
@media (orientation: landscape) and (max-height: 520px) and (min-width: 701px) {
  .hero { min-height: 100vh; }
  .hero-inner { padding: 90px 24px 100px; }
  .hero h1 { font-size: clamp(2rem, 6vh + 2vw, 3rem); }
  .doors { margin-top: -40px; }
}

/* The slow endless drifts stop for anyone who asks for less motion. The rest
   is small and stays, see the note at the top. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scene, .clouds::before, .clouds::after { animation: none; }
}
