/* Gamer Map, the presentation website (g4mermap.com).
   Plain CSS, no build step. The only scripts are the home page's guide
   dragon (assets/dragon-gl.js and assets/dragon.js); its look is the last
   section of this file, and without them nothing of it shows.

   The look comes from the owner's own drawing of the mascot: emerald, night,
   the white of its fangs, the lime of its eyes. Two devices carry it:
   - the jaw: two rows of white fangs, like the mascot's. The lower row rises
     out of the white page into the hero and bites the phones; the upper row
     hangs from every page into the black footer, which is the open mouth;
   - the black tag (.says): these are the app's own words, as on its screens.
   A second hue, warm, is kept for one thing only: the age signs (.age).

   Rules this file keeps (see .claude/rules/website.md):
   - fonts are hosted here (SIL OFL 1.1, licence beside each file); nothing is
     requested from another host; no data: URIs (the site's
     Content-Security-Policy allows pictures from this origin only);
   - text contrast is computed, never guessed: night on emerald 7.90:1, on lime
     15.47:1, on white 20.04:1, on the sun sign 12.96:1, on the coral sign
     7.29:1. White on emerald is 2.54:1 and is never used;
   - running text is 16 px or more; only the "Demo data" mark (14 px) and the
     names on the games chart (13 to 14 px) are smaller. The chart is a
     drawing (role="img"): its names are set in px so that a larger text size
     in the browser cannot push them off the sheet, and the list beside it
     carries the same names as real text;
   - every link is at least 44 x 44 px, and answers a finger over all of it
     (a link inside a sentence lies above the lines around it);
   - nothing can be scrolled inside itself: a box that cuts its content uses
     overflow: clip (with hidden as the older browsers' fallback);
   - buttons and tags have a transparent edge, which Windows' high-contrast
     mode draws, so they keep their shape there;
   - motion: one moment on load (the hero's phones come up), opacity and
     transform only, written as the transform property, and none at all under
     prefers-reduced-motion. The dragon moves only when the visitor asks
     (a tap, a tour step, a corner it has to leave), and never by itself. */

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/baloo-2/baloo-2-latin.woff2) format('woff2');
}
/* Inter, latin-ext: fetched only by a page that shows such a letter (the "ă"
   of "Română" on the home page). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --emerald: #10B981; /* header, hero, closing band */
  --night: #07080A;   /* type, phones, buttons, footer, the games panel */
  --fang: #FFFFFF;    /* reading ground, type on night */
  --eye: #C6F24E;     /* the "What else is inside" band, focus ring on night */
  --ash: #B9C4BE;     /* quiet text on night, 11.16:1 */
  --slate: #3D4742;   /* quiet text on white, 9.64:1 */
  --rule: #C5CCC8;    /* thin rules between list items on white */
  --sun: #FFC83D;     /* age sign: 13+ */
  --coral: #FF6B7A;   /* age signs: from 16, from 18 */
  --shade: rgba(7, 8, 10, 0.18); /* flat cast shadow, no blur */

  --display: 'Baloo 2', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: 16px;
  --band: clamp(56px, 9vw, 120px);
  --jaw: min(13.333vw, 96px); /* the footer's row of teeth: 7.5 times as wide as it is tall, 720 px at most */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fang);
  color: var(--night);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote, address { margin: 0; padding: 0; }
ol, ul { list-style: none; }
address { font-style: normal; }
img, svg { max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; overflow: clip; }

.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; border-radius: 6px; }
.on-night :focus-visible, .foot :focus-visible { outline-color: var(--eye); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 20;
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 10px;
  background: var(--night); color: var(--fang); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; outline-color: var(--eye); }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; overflow: clip; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- type ---------- */

h1, h2, h3, .wordmark, .btn, .term, .age, .step__n, .facts3 li, .numbered > li::before {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* The last value is a ceiling in screen widths: with a larger text size set
   in the browser the headline stops growing where its longest word would no
   longer fit (at the usual text size it changes nothing). */
h1 { font-size: min(clamp(2.75rem, 12.4vw, 3.6rem), 17vw); line-height: 0.88; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 0.92; text-wrap: balance; }
h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.02; text-wrap: balance; }

.lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.45; }

/* A black tag means: these are the app's own words, as written on its screens. */
.says {
  display: inline-block;
  padding: 0.14em 0.36em 0.02em;
  border-radius: 0.26em;
  background: var(--night);
  color: var(--fang);
  transform: rotate(-1.5deg);
  white-space: nowrap;
  outline: 2px solid transparent; outline-offset: -2px;
}
/* In a heading the tag is the widest thing on a phone: there it may break
   over two lines instead of pushing the page sideways (a larger text size,
   or the headline font not arriving). */
h3 .says { max-width: 100%; white-space: normal; }
p .says, li .says { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; font-size: 1.1em; }
/* A whole sentence of the app: the tag may run over two lines, so it is not
   tilted and each line keeps its own rounded ends. */
.says--long { display: inline; padding: 0.2em 0.42em 0.08em; transform: none; white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
p .says--long { line-height: 1.75; }
.nb { white-space: nowrap; }

/* The age sign: the only place the warm hue is used. Same shape everywhere a
   feature with a minimum age is named. */
.age {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 1.75em; padding: 0.12em 0.55em 0;
  border: 2px solid var(--night); border-radius: 0.55em;
  background: var(--coral); color: var(--night);
  font-size: 1.0625rem; line-height: 1; white-space: nowrap;
  vertical-align: middle;
}
.age--13 { background: var(--sun); }
.age--big { font-size: 1.35rem; }

/* ---------- controls ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 3px 26px 0;
  border: 2px solid transparent; border-radius: 16px;
  background: var(--night); color: var(--fang);
  font-size: 1.4rem; line-height: 1; text-decoration: none; text-align: center;
}
.btn--small { min-height: 44px; padding-inline: 14px; border-radius: 12px; font-size: 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 0.12s ease-out; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(1px); }
}

/* A link that stands by itself on a line. A block of text, not a flex row:
   on a narrow phone a long one (an address, a German title with its English
   gloss) has to break over two lines. The padding makes it 44 px tall. */
.link {
  display: inline-block; min-width: 44px; padding-block: 11px;
  color: inherit; font-weight: 600; font-size: 1.0625rem; line-height: 1.4; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.link:hover { text-decoration-thickness: 4px; }
/* A link inside a sentence: the padding makes it 44 px tall to the finger, the
   negative margin keeps the lines and the words of the paragraph where they
   were. It lies above its paragraph (z-index), or the next line of text
   would be painted over its lower padding and take the finger there. */
.inl {
  position: relative; z-index: 1;
  display: inline-block; min-width: 44px; padding: 12px; margin: -12px;
  font-weight: 600; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.inl:hover { text-decoration-thickness: 4px; }
/* The focus ring hugs the words (3 px around them), not the padded box,
   which would draw it through the lines above and below. */
.inl:focus-visible { outline-offset: -9px; }
.newtab { font-weight: 500; white-space: nowrap; }
.links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 12px; }
.links--stack { flex-direction: column; align-items: flex-start; gap: 0; }

/* ---------- header (every page) ---------- */

.top { background: var(--emerald); }
.top__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; padding-block: 10px 2px; }
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px; padding-top: 4px;
  color: var(--night); font-size: 1.8rem; line-height: 1; text-decoration: none;
}
/* On a phone the two links take a row of their own under the wordmark. */
.top__nav { order: 3; flex-basis: 100%; display: flex; gap: 22px; }
.top__link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--night); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.top__link:hover, .top__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btn__long { display: none; }

/* ---------- pictures of the app: a real screen in a drawn frame ---------- */

.phone { position: relative; }
.phone__body {
  padding: 3.2%;
  border-radius: 13.5% / 6.46%;
  background: var(--night);
  box-shadow: 10px 12px 0 var(--shade);
}
.phone__screen {
  display: block; width: 100%; height: auto; aspect-ratio: 750 / 1624;
  border-radius: 11.2% / 5.18%;
  background: #0D0F12;
}
/* The mark sits on the frame's top edge: it hides nothing of the screen, and
   nothing on the page is allowed to cover it. Its size has a ceiling in
   screen widths (as the headline's has): with the browser's text size doubled
   on a 320 px phone the mark grew wider than its phone and the screen's edge
   cut its first letter (measured 2026-11-21). At the usual text size the
   ceiling changes nothing. */
.demo {
  position: absolute; right: 10%; top: -12px; z-index: 3;
  padding: 3px 10px; border-radius: 999px;
  background: var(--fang); color: var(--night); border: 2px solid var(--night);
  font-family: var(--text); font-size: min(0.875rem, 6.5vw); font-weight: 700; line-height: 1.3; letter-spacing: 0; white-space: nowrap;
  transform: rotate(-4deg);
}
.cap { margin-top: 18px; font-size: 1rem; line-height: 1.4; }

/* A piece cut out of a screen, shown larger. */
.cut { position: relative; }
.cut__frame {
  padding: 6px; border-radius: 26px; background: var(--night);
  box-shadow: 10px 12px 0 var(--shade);
}
.cut__frame img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 900; border-radius: 20px; background: #0D0F12; }

/* ---------- mascot: the owner's drawing, once, on black, never above 160 px ---------- */

.mascot {
  display: block; width: 120px; height: 120px; border-radius: 50%;
  background: #000; border: 4px solid var(--fang); overflow: hidden; overflow: clip;
  box-shadow: 6px 8px 0 var(--shade);
  transform: rotate(-8deg);
}
.mascot img {
  display: block; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 80%, transparent 99%);
  mask-image: radial-gradient(circle closest-side, #000 80%, transparent 99%);
}

/* ---------- the jaw ---------- */

/* The upper row: first thing inside the footer. The 1 px lift closes the seam
   with the band above. */
.jaw {
  height: var(--jaw); margin-top: -1px;
  background: url(img/jaw-upper.svg) center top / min(100%, 720px) 100% no-repeat;
  pointer-events: none;
}

/* ---------- home: hero ---------- */

.hero { position: relative; background: var(--emerald); overflow: hidden; overflow: clip; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 18px 0; }
.hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.hero__lead { margin-top: 18px; max-width: 31em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.45; font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 24px; }
.hero__note { margin-top: 10px; max-width: 31em; font-size: 1rem; font-weight: 500; line-height: 1.45; }

/* The stage is shorter than its phones on purpose: the jaw bites their lower ends. */
.hero__stage { position: relative; width: min(100%, 372px); aspect-ratio: 372 / 340; margin-inline: auto; }
.hero__stage .phone { position: absolute; width: 47%; }
.hero__stage .phone--back { left: 3%; top: 10%; transform: rotate(-6deg); }
.hero__stage .phone--front { right: 3%; top: 0; transform: rotate(5deg); z-index: 2; }
.hero__stage .phone--back .demo { right: auto; left: 10%; transform: rotate(4deg); }
/* The mascot sits on the row of teeth, at the bitten corner of the back phone:
   it hides nothing of a screen that the teeth do not hide already, and it is
   far from both "Demo data" marks at every width. */
.hero__stage .mascot { position: absolute; z-index: 5; left: -1%; bottom: 3%; }
/* On a small phone the drawing is smaller: at 120 px it lay over almost half
   of the back phone's screen (46 % at 320 px, measured 2026-11-21), over the
   very things that picture's alt text names. */
@media (max-width: 479px) {
  .hero__stage .mascot { width: 84px; height: 84px; border-width: 3px; left: 0; bottom: 4%; }
}
/* The lower row of teeth. Its own element (not .jaw): six times as wide as it
   is tall, as wide as the screen on a phone. */
.bite {
  position: absolute; left: 50%; bottom: -1px; z-index: 4;
  width: 100vw; max-width: 720px; aspect-ratio: 6 / 1;
  background: url(img/jaw-lower.svg) center bottom / 100% 100% no-repeat;
  transform: translateX(-50%);
  pointer-events: none;
}

/* The one moment on load: the cards come up, as in a swipe up. */
@keyframes rise-back { from { opacity: 0; transform: translateY(56px) rotate(-6deg); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes rise-front { from { opacity: 0; transform: translateY(56px) rotate(5deg); } to { opacity: 1; transform: rotate(5deg); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } to { opacity: 1; transform: rotate(-8deg); } }
@media (prefers-reduced-motion: no-preference) {
  .hero__stage .phone--back { animation: rise-back 0.7s cubic-bezier(0.2, 0.9, 0.25, 1) 0.08s both; }
  .hero__stage .phone--front { animation: rise-front 0.7s cubic-bezier(0.2, 0.9, 0.25, 1) 0.2s both; }
  .hero__stage .mascot { animation: pop 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) 0.62s both; }
}

/* ---------- home: under the hero ---------- */

.under { padding-block: 14px 0; }
.under__cap { font-size: 1rem; color: var(--slate); }
.facts3 { margin-top: 22px; border-top: 3px solid var(--night); border-bottom: 3px solid var(--night); }
.facts3 li { padding: 14px 0 9px; font-size: 1.6rem; line-height: 1.05; }
.facts3 li + li { border-top: 1px solid var(--rule); }

/* ---------- home: how it works ---------- */

.how { padding-block: var(--band); }
.steps { position: relative; margin-top: 32px; border-bottom: 3px solid var(--night); }
.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding-block: 22px 26px; border-top: 3px solid var(--night); }
.step__n {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding-top: 4px; border-radius: 50%;
  background: var(--emerald); color: var(--night);
  font-size: 1.8rem; line-height: 1;
}
.step__body { padding-top: 6px; }
.step__body p { margin-top: 12px; max-width: 32em; }
.step .cut { grid-column: 1 / -1; width: min(76%, 290px); margin: 34px auto 4px; }
.cut--a .cut__frame { transform: rotate(-2.5deg); }
.cut--b .cut__frame { transform: rotate(2.5deg); }
.cut .cap { text-align: center; }

/* ---------- home: what else is inside ---------- */

.inside { background: var(--eye); padding-block: var(--band); overflow: hidden; overflow: clip; }
.shelf { display: grid; gap: 64px; margin-top: 40px; }
.feat { display: grid; gap: 34px; }
.feat__text p { margin-top: 12px; max-width: 32em; }
.feat__text .quote-line { margin-top: 18px; }
.feat .phone { width: min(64%, 230px); }
.feat__pic { display: grid; justify-items: center; }
.feat__pic .cap { text-align: center; max-width: 18em; }

/* Lobbies: the list and the chat of one lobby, as a pair. */
.pair { display: grid; justify-items: center; }
.pair__phones { display: flex; justify-content: center; width: 100%; padding-top: 6px; }
.pair__phones .phone { width: min(50%, 220px); }
.pair__phones .phone:first-child { transform: rotate(-4deg); z-index: 1; }
.pair__phones .phone:last-child { margin-left: -9%; margin-top: 12%; transform: rotate(4deg); z-index: 2; }
.pair .cap { margin-top: 26px; }

.feat--friends .phone { transform: rotate(3deg); }

/* The map is the one dark thing in this band: it is off until you choose it. */
.feat--map { background: var(--night); color: var(--fang); border-radius: 28px; padding: 26px 20px 30px; }
.feat--map .phone { transform: rotate(-3deg); }
.feat--map .phone__body { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28); }
.feat--map .signline { margin-bottom: 14px; }

.feat--profile { border-top: 3px solid var(--night); padding-top: 26px; }

/* ---------- ruled lists (home strip and every text page) ---------- */

.ruled > li { padding-block: 16px; }
.ruled > li + li { border-top: 1px solid var(--rule); }
.ruled .age { margin-top: 10px; }
.term { display: block; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.02; }

.know { padding-block: var(--band); }
.strip { margin-top: 32px; border-bottom: 3px solid var(--night); }
.strip > li { display: grid; gap: 8px; padding-block: 18px 20px; border-top: 3px solid var(--night); }
.strip .signs { display: flex; flex-wrap: wrap; gap: 8px; }
.know .link { margin-top: 14px; }

/* ---------- home: the games ---------- */

.games { padding-block: 0 var(--band); }
.games__intro { margin-top: 16px; max-width: 34em; }
.board {
  display: grid; gap: 22px;
  margin-top: 28px; padding: 10px 10px 22px;
  border-radius: 26px; background: var(--night); color: var(--fang);
  box-shadow: 10px 12px 0 var(--shade);
}
.chart__face { position: relative; width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 600 / 920; border-radius: 18px; overflow: hidden; overflow: clip; background: var(--night); }
.chart__face img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.chart figcaption { margin-top: 14px; padding-inline: 8px; font-size: 1rem; line-height: 1.45; text-align: center; }

.pin { position: absolute; width: 0; height: 0; }
.pin svg { position: absolute; left: -11px; top: -28px; width: 22px; height: 28px; max-width: none; overflow: visible; }
.pin__name {
  position: absolute; left: 14px; top: -27px;
  padding: 2px 7px; border-radius: 7px;
  background: var(--night); color: var(--fang);
  font-size: 13px; font-weight: 600; line-height: 1.35; white-space: nowrap;
}
.pin--tl .pin__name { left: auto; right: 14px; }

/* the app's own colour of each game: pins and dots, never text */
.g-lol { color: #0AC8B9; }
.g-dota { color: #C84040; }
.g-fortnite { color: #00D9FF; }
.g-valorant { color: #FF4655; }
.g-cs2 { color: #F5A623; }
.g-apex { color: #DA292A; }
.g-ow2 { color: #F99E1A; }
.g-rl { color: #0074E4; }
.g-r6 { color: #7C8EA0; }
.g-mc { color: #62B549; }
.g-roblox { color: #E2231A; }
.g-cod { color: #B4D330; }

/* pin positions: tall sheet (phones). Written by assets-prep/gen-island.cjs,
   which checks that each pin stands on land. */
.pin--lol { left: 40%; top: 10.5%; }
.pin--dota { left: 62%; top: 17.7%; }
.pin--fortnite { left: 36%; top: 24.9%; }
.pin--valorant { left: 64%; top: 32.1%; }
.pin--cs2 { left: 32%; top: 39.3%; }
.pin--apex { left: 66%; top: 46.5%; }
.pin--ow2 { left: 30%; top: 53.7%; }
.pin--rl { left: 66%; top: 60.9%; }
.pin--r6 { left: 32%; top: 68.1%; }
.pin--mc { left: 64%; top: 75.3%; }
.pin--roblox { left: 36%; top: 82.5%; }
.pin--cod { left: 60%; top: 89.7%; }

.legend { display: grid; gap: 2px 18px; padding-inline: 10px; }
.legend li { display: flex; align-items: center; gap: 12px; min-height: 34px; color: var(--fang); font-weight: 500; }
.dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: currentColor; }
.legend__name { color: var(--fang); }

.games__more { margin-top: 30px; max-width: 34em; display: grid; gap: 14px; }
.games__note { font-size: 1rem; color: var(--slate); }

/* ---------- home: last band ---------- */

.last { background: var(--emerald); padding-block: var(--band); }
.last__grid { display: grid; gap: 48px; }
.last p { margin-top: 14px; max-width: 32em; font-weight: 500; }
.last__start { border-top: 3px solid var(--night); padding-top: 28px; }
.last__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 24px; }

/* ---------- footer (every page) ---------- */

.foot { background: var(--night); color: var(--fang); padding-bottom: 40px; }
.foot__grid { display: grid; gap: 34px; padding-top: 30px; }
.wordmark--foot { color: var(--fang); font-size: 2.2rem; }
.foot__note { margin-top: 8px; max-width: 26em; color: var(--ash); font-size: 1rem; line-height: 1.5; }
.foot__h { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.01em; color: var(--eye); margin-bottom: 4px; }
.foot__nav a {
  display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 0.4em; min-height: 44px; min-width: 44px;
  color: var(--fang); font-weight: 500; text-decoration: none;
}
.foot__nav a:hover { color: var(--eye); text-decoration: underline; text-underline-offset: 5px; }
.foot__nav .newtab { color: var(--ash); font-size: 1rem; }

/* ---------- text pages ---------- */

.doc__head { background: var(--emerald); padding-block: clamp(20px, 5vw, 56px) clamp(32px, 6vw, 72px); }
.doc__head h1 { font-size: clamp(2.6rem, 8.4vw, 5rem); line-height: 0.9; max-width: 13em; }
.doc__lead { margin-top: 20px; max-width: 34em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; font-weight: 500; }
.doc__meta { margin-top: 16px; max-width: 34em; font-size: 1rem; font-weight: 500; }

.doc__body { padding-block: clamp(28px, 5vw, 64px) var(--band); }
.sec { display: grid; gap: 14px; padding-block: 22px 40px; border-top: 3px solid var(--night); }
/* a grid item is as wide as its longest word unless told otherwise: a web
   address in a sentence must break instead of widening the page */
.sec > * { min-width: 0; }
.sec > h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 0.96; }
.sec__body { max-width: 30em; }
.sec__body > * + * { margin-top: 16px; }
.sec__body > h3 { margin-top: 34px; font-size: 1.6rem; }
.sec__body > h3:first-child { margin-top: 4px; }
.sec__body > h3 + * { margin-top: 10px; }
.sec__body > .ruled { margin-top: 2px; }
.sec__body > h3 + .ruled { margin-top: 0; }

.numbered { counter-reset: n; }
.numbered > li { counter-increment: n; position: relative; padding: 14px 0 14px 54px; min-height: 66px; }
.numbered > li + li { border-top: 1px solid var(--rule); }
.numbered > li::before {
  content: counter(n);
  position: absolute; left: 0; top: 13px;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding-top: 3px; border-radius: 50%;
  background: var(--emerald); color: var(--night); font-size: 1.35rem; line-height: 1;
}

.dotted > li { position: relative; padding: 12px 0 12px 22px; }
.dotted > li + li { border-top: 1px solid var(--rule); }
.dotted > li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 8px; height: 8px; border-radius: 50%; background: var(--night); }

.quote { padding: 2px 0 2px 18px; border-left: 3px solid var(--night); }
.addr { padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); line-height: 1.7; }
.gloss { display: block; color: var(--slate); }
h2 .gloss { display: inline; font-size: 0.62em; letter-spacing: -0.01em; }
.doc__end { border-top: 3px solid var(--night); padding-top: 18px; }

.lost { background: var(--emerald); padding-block: clamp(40px, 9vw, 110px) clamp(56px, 10vw, 130px); }
.lost .btn { margin-top: 28px; }

/* ---------- from 600 px: rows get a second column ---------- */

@media (min-width: 600px) {
  .facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts3 li { padding: 18px 16px 12px 0; font-size: clamp(1.5rem, 3.1vw, 2.3rem); }
  .facts3 li + li { border-top: 0; border-left: 1px solid var(--rule); padding-left: 20px; }

  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 16px; }
  .board { padding: 14px 14px 26px; }

  .ruled > li.gated { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: start; }
  .ruled > li.gated .age { margin-top: 2px; }
}

/* ---------- from 720 px ---------- */

@media (min-width: 720px) {
  :root { --gutter: 40px; }
  h1 { font-size: min(clamp(3.3rem, 7.4vw, 7rem), 9vw); line-height: 0.86; }

  .top__in { padding-block: 14px; }
  .top__nav { order: 0; flex-basis: auto; margin-left: auto; gap: 26px; }
  .top__open { margin-left: 14px; }
  .btn__long { display: inline; white-space: pre; }
  .btn--small { padding-inline: 16px; }
  .wordmark { font-size: 2.1rem; }
  /* the mark's ceiling for these widths (see .demo): the phones are narrower
     here, for the screen's width, than on a phone */
  .demo { font-size: min(0.875rem, 2.4vw); }

  .hero__in { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: end; gap: 28px; padding-top: 28px; }
  .hero__text { padding-bottom: clamp(48px, 7vw, 96px); align-self: center; }
  .hero__stage { width: 100%; max-width: 372px; margin-inline: auto 0; }
  .hero__stage .phone { width: 52%; }
  .hero__stage .phone--back { left: 0; }
  .hero__stage .phone--front { right: 0; }
  .bite { width: 150%; }
  .hero__stage .mascot { left: -52px; bottom: 10px; }

  .under { padding-top: 18px; }
  .under__cap { text-align: right; }

  .step { grid-template-columns: 60px minmax(0, 1fr) 250px; column-gap: 22px; padding-block: 26px 30px; }
  .step__n { width: 60px; height: 60px; font-size: 2.2rem; }
  .step__body { padding-top: 10px; }
  .step .cut { grid-column: 3; grid-row: 1 / span 2; width: 100%; margin: 6px 0 0; }

  .shelf { gap: 88px; margin-top: 56px; }
  .feat { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
  .feat__text { grid-column: 1 / span 6; }
  .feat__pic, .feat .pair { grid-column: 7 / span 6; }
  .feat .phone { width: min(78%, 250px); }
  .pair__phones .phone { width: min(52%, 240px); }
  .feat--lobbies { align-items: start; }
  .feat--lobbies .feat__text { padding-top: 12px; }
  .feat--friends .feat__text { grid-column: 6 / span 7; grid-row: 1; }
  .feat--friends .feat__pic { grid-column: 1 / span 4; grid-row: 1; }
  .feat--friends .phone { width: min(100%, 250px); }
  .feat--map { padding: 44px 40px 48px; border-radius: 36px; }
  .feat--map .feat__text { grid-column: 1 / span 7; }
  .feat--map .feat__pic { grid-column: 9 / span 4; }
  .feat--map .phone { width: min(100%, 240px); }
  .feat--profile .feat__text { grid-column: 1 / span 8; }

  .strip > li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 36px; padding-block: 24px 26px; }
  .strip .rest { padding-top: 6px; font-size: 1.125rem; max-width: 30em; }

  /* the games chart turns to its wide sheet */
  .chart__face { max-width: none; aspect-ratio: 1000 / 800; border-radius: 22px; }
  .pin svg { left: -12px; top: -31px; width: 24px; height: 31px; }
  .pin__name { left: 15px; top: -30px; font-size: 14px; }
  .pin--tl .pin__name { left: 15px; right: auto; }
  .pin--wl .pin__name { left: auto; right: 15px; }
  .pin--lol { left: 29%; top: 34%; }
  .pin--dota { left: 45%; top: 17%; }
  .pin--fortnite { left: 63%; top: 27%; }
  .pin--valorant { left: 36%; top: 61%; }
  .pin--cs2 { left: 70%; top: 47%; }
  .pin--apex { left: 24%; top: 72%; }
  .pin--ow2 { left: 50%; top: 49%; }
  .pin--rl { left: 78%; top: 36%; }
  .pin--r6 { left: 50%; top: 71%; }
  .pin--mc { left: 53%; top: 85%; }
  .pin--roblox { left: 66%; top: 78%; }
  .pin--cod { left: 74%; top: 62%; }
  .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart figcaption { text-align: left; padding-inline: 16px; }

  .foot__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); padding-top: 36px; }
  .foot { padding-bottom: 56px; }
}

/* ---------- from 1000 px ---------- */

@media (min-width: 1000px) {
  .hero__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; }
  .hero__stage { max-width: 470px; aspect-ratio: auto; height: 600px; }
  .hero__stage .phone { width: 61%; }
  .hero__stage .phone--back { top: 64px; }
  .hero__stage .mascot { width: 148px; height: 148px; border-width: 5px; left: -118px; bottom: 14px; }
  .phone__body, .cut__frame { box-shadow: 16px 18px 0 var(--shade); }
  .feat--map .phone__body { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28); }

  .sec { grid-template-columns: 340px minmax(0, 1fr); column-gap: 56px; padding-block: 28px 56px; }
  /* Capped so the longest single word of a heading ("Verantwortlich", on the
     Impressum) fits the 340 px column and is never cut inside the word. */
  .sec > h2 { padding-top: 4px; font-size: clamp(2rem, 2.9vw, 2.5rem); }

  .board { grid-template-columns: minmax(0, 1fr) 270px; align-items: center; gap: 20px; padding: 16px 16px 16px 16px; }
  .legend { grid-template-columns: 1fr; padding-inline: 14px 10px; }
  .legend li { min-height: 40px; }

  .last__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; align-items: start; }
  .last__start { border-top: 0; padding-top: 0; }
}

/* ---------- from 1180 px: room for the steps and both cut-outs side by side ---------- */

@media (min-width: 1180px) {
  /* steps on the left, the two cut-outs staggered on the right */
  .steps { display: grid; grid-template-columns: minmax(0, 1fr) 600px; column-gap: 40px; margin-top: 44px; }
  .step { grid-column: 1; grid-template-columns: 68px minmax(0, 1fr); }
  .step__n { width: 68px; height: 68px; font-size: 2.5rem; }
  .step__body { padding-top: 12px; }
  .step__body p { font-size: 1.125rem; }
  .step .cut { position: absolute; grid-column: auto; grid-row: auto; width: 280px; margin: 0; }
  /* each beside its own step: the card by step 2, the match by steps 3 and 4 */
  .cut--a { right: 304px; top: 96px; }
  .cut--b { right: 0; top: 470px; }
}

/* ---------- the guide dragon (home page only) ----------
   assets/dragon.js removes the hidden attribute of aside.pet; without the
   script none of this applies and the page is the page above. The aside is
   a fixed square in the bottom right corner, placed by this stylesheet. The
   script moves the dragon and its bubble only with transform, through the
   custom properties --pet-x, --pet-y and --pet-bx (and --pet-walk, the time
   a move takes), and only under prefers-reduced-motion: no-preference does
   anything slide. On a narrow screen the bubble is docked along the bottom
   and the dragon stands on it, so its controls keep their place from stop
   to stop; from 600 px the bubble stands beside the dragon. The dragon is
   80 px, 112 px from 1000 px. The script reads --pet-m, --pet-gap and
   --pet-dock. */

:root { --pet-size: 80px; --pet-m: 12px; --pet-gap: 8px; --pet-dock: 1; }
@media (min-width: 600px) { :root { --pet-m: 16px; --pet-gap: 10px; --pet-dock: 0; } }
@media (min-width: 1000px) { :root { --pet-size: 112px; --pet-m: 20px; } }

.pet {
  position: fixed; z-index: 30;
  right: var(--pet-m); bottom: calc(var(--pet-m) + env(safe-area-inset-bottom, 0px));
  width: var(--pet-size); height: var(--pet-size);
  pointer-events: none;
}
/* Without the script the aside keeps its hidden attribute, and these two
   rules keep it, and every hidden part inside it, out of the page whatever
   another rule says (tests/website.test.mjs, "pet-hidden"). */
.pet[hidden] { display: none !important; }
.pet [hidden] { display: none !important; }
/* Laid out, not yet shown: the script waits for the fonts and the hero's load
   moment before it chooses a place. */
.pet[data-wait] { visibility: hidden; }

/* The dragon itself, the control a visitor taps. */
.pet__body {
  position: absolute; inset: 0; z-index: 2;
  border-radius: 28%;
  pointer-events: auto; cursor: pointer;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transform: translate(var(--pet-x, 0px), var(--pet-y, 0px));
}
/* It floats over every ground (emerald, white, lime, night): a white halo
   inside the site's dark ring keeps the ring visible on the night footer. */
.pet__body:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; box-shadow: 0 0 0 3px var(--fang); }
.pet__gl, .pet__still { display: block; width: 100%; height: 100%; }
/* The still pictures face left; facing right is their mirror image. */
.pet[data-facing="right"] .pet__still { transform: scaleX(-1); }
/* Inside the dragon's own square (above the drooping head, beside the horns),
   so the place the script keeps clear holds it too. */
.pet__zzz { position: absolute; right: 1%; top: 1%; width: 32%; height: auto; opacity: 0; pointer-events: none; }
.pet[data-mode="asleep"] .pet__zzz { opacity: 1; }

/* The speech bubble: the dragon's words and its controls. */
.pet__bubble {
  position: fixed; z-index: 1;
  left: var(--pet-m); right: var(--pet-m);
  bottom: calc(var(--pet-m) + env(safe-area-inset-bottom, 0px));
  padding: 12px 12px 12px 14px;
  border: 3px solid var(--night); border-radius: 18px;
  background: var(--fang); color: var(--night);
  box-shadow: 6px 8px 0 var(--shade);
  font-size: 1rem; line-height: 1.45; font-weight: 500;
  pointer-events: auto;
  transform: translateX(var(--pet-bx, 0px));
  /* With a large text size the bubble would fill the screen and hide what
     the stop shows: it stops at a little over half the screen's height, its
     controls stay whole and the sentence scrolls inside it (the live region
     says it whole). */
  display: flex; flex-direction: column;
  max-height: 55vh; max-height: 55dvh;
}
.pet__say { margin-bottom: 10px; overflow-y: auto; }
.pet__row { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
/* The tour's controls in three fixed places: Back keeps its place while it
   is not needed, and Next and Done share the last one. */
.pet__row--tour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pet__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 4px 12px;
  border: 2px solid var(--night); border-radius: 12px;
  background: var(--fang); color: var(--night);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.pet__row--tour .pet__btn { padding-inline: 6px; }
.pet__btn--go { background: var(--night); color: var(--fang); }
.pet__btn:active { background: var(--rule); color: var(--night); }
.pet__btn[data-off] { visibility: hidden; }

/* From 600 px the bubble stands beside the dragon, its tail toward it. */
@media (min-width: 600px) {
  .pet__bubble {
    left: auto; right: calc(var(--pet-m) + var(--pet-size) + var(--pet-gap));
    width: min(360px, 100vw - 3 * var(--pet-m) - var(--pet-size) - var(--pet-gap));
  }
  .pet__bubble::after {
    content: ""; position: absolute; right: -11px; bottom: calc(var(--pet-size) * 0.32);
    width: 16px; height: 16px;
    border: solid var(--night); border-width: 3px 3px 0 0;
    background: var(--fang);
    transform: rotate(45deg);
  }
  .pet[data-corner="left"] .pet__bubble::after { right: auto; left: -11px; transform: rotate(-135deg); }
}

/* The ring around what the dragon shows: an outline, so nothing moves, dark
   on the light ground around it (on the lime band, inside its edge). */
.pet-ring { outline: 4px solid var(--night); outline-offset: 6px; }
#inside.pet-ring { outline-offset: -12px; }

/* Room for the dragon, only while it is shown: the end of the page can be
   scrolled clear of it, and a stop lands a little below the top. */
@media screen {
  :root:has(.pet:not([hidden])) .foot { padding-bottom: calc(var(--pet-size) + 2 * var(--pet-m) + env(safe-area-inset-bottom, 0px)); }
  :root:has(.pet:not([hidden])) :is(#how-it-works, #inside, #map, #good-to-know, #games, #open-app) { scroll-margin-top: 8px; }
}
@media print { .pet { display: none !important; } }

@media (prefers-reduced-motion: no-preference) {
  .pet__body, .pet__bubble {
    transition-property: transform;
    transition-duration: var(--pet-walk, 320ms);
    transition-timing-function: cubic-bezier(0.45, 0.05, 0.3, 1);
  }
  /* Its first place is taken before it is shown, without a slide: no entrance. */
  .pet[data-wait] .pet__body, .pet[data-wait] .pet__bubble { transition: none; }
  .pet__zzz { transition: opacity 0.3s ease-out; }
  .pet__btn { transition: transform 0.12s ease-out; }
  .pet__btn:active { transform: translateY(1px); }
}
