@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/fonts/cinzel-variable.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; }
@font-face { font-family: 'Crimson Text'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/crimson-text-400-italic.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; }
@font-face { font-family: 'Crimson Text'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/crimson-text-400-normal.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; }
@font-face { font-family: 'Crimson Text'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/crimson-text-600-normal.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; }
/* TabTibia public site. Layout: dusk illustration fixed behind the page; sticky dark nav; hero over the sky;
   dark bands holding parchment cards. Built mobile first, then widened for tablets and desktops. */
:root {
  --night: #0c0a10;
  --gold: #e0a93b;
  --gold-hi: #ffd36b;
  --gem: #9c1c1c;
  --ink: #3a2414;
  --ink-soft: #6a4a2e;
  --text: #efe2c6;
  --text-dim: #c2ae88;
  /* the lines of help in the menu panels (6.2:1 on the panel) */
  --text-faint: #a8956f;
  --line: rgba(224, 169, 59, 0.38);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Crimson Text", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--gold-hi); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
/* our pictures and sprites cannot be dragged out of the page (site.js does the same for Firefox) */
img { -webkit-user-drag: none; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; }

/* the illustration, fixed behind the page (a fixed element, not background-attachment, so it also works on iPhone) */
.scenery { position: fixed; inset: 0; z-index: 0; background: var(--night) url(/img/bg-market-mobile-1080.webp) center top / cover no-repeat; }
/* phones held upright: the vertical picture (sharper on dense screens); held sideways: the wide one */
@media (min-resolution: 2.5dppx) { .scenery { background-image: url(/img/bg-market-mobile-1440.webp); } }
@media (orientation: landscape) { .scenery { background-image: url(/img/bg-market-1920.webp?v=2); } }
.scenery::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 12, 0.2) 0%, rgba(8, 6, 12, 0.08) 30%, rgba(8, 6, 12, 0.55) 70%, rgba(8, 6, 12, 0.82) 100%); }
.site { position: relative; z-index: 1; }

/* navigation */
.nav { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: linear-gradient(180deg, rgba(14, 10, 8, 0.94), rgba(14, 10, 8, 0.86)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); }
.nav-in { position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-hi); font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.04em; }
.brand img { width: 40px; height: 40px; }
.menu { display: none; position: absolute; top: 100%; left: -16px; right: -16px; flex-direction: column; gap: 4px; padding: 10px 16px 18px; background: rgba(14, 10, 8, 0.98); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.5); }
.menu.open { display: flex; }
.menu > a:not(.btn), .menu-group > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; color: var(--text); font: 600 0.92rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border-radius: 6px; }
.menu > a:not(.btn):hover, .menu-group > summary:hover, .menu-group[open] > summary { color: var(--gold-hi); background: rgba(224, 169, 59, 0.1); }
.menu img { width: 22px; height: 22px; object-fit: contain; }
.menu .menu-play { margin-top: 8px; min-height: 48px; }
/* web150: the groups of the menu (Community, Mechanics), <details> that open on a click, a touch or the keyboard. On a
   phone, an accordion inside the menu; on a desktop, a dark panel under its title (below) */
.menu-group > summary { gap: 8px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.menu-group > summary::-webkit-details-marker { display: none; }
.menu-group > summary::after { content: "\25BE"; margin-left: auto; font-size: 0.8em; line-height: 1; transition: transform 0.15s; }
.menu-group[open] > summary::after { transform: rotate(180deg); }
.menu-group.is-current > summary { color: var(--gold-hi); }
.menu-panel { margin: 0 0 6px 12px; padding: 2px 0 4px 12px; border-left: 1px solid var(--line); }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu-list a { display: grid; align-content: center; min-height: 44px; padding: 6px 12px; border-radius: 6px; color: var(--text-dim); text-decoration: none; }
.menu-list a:hover, .menu-list a[aria-current] { color: var(--gold-hi); background: rgba(224, 169, 59, 0.1); }
.menu-list a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--gold); }
.menu-title { font: 600 0.82rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.menu-hint { display: none; }
.menu-label { margin: 10px 0 2px; padding: 0 12px; font: 700 0.68rem var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.menu-head { display: contents; }
.menu-head span { display: none; }
.menu-head a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 6px; color: var(--gold-hi); font: 700 0.8rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.menu-head a:hover, .menu-head a[aria-current] { background: rgba(224, 169, 59, 0.1); }
.menu-cols { display: grid; }
.menu-cols > div { min-width: 0; }
/* the phone menu never runs off the screen (held sideways, its last entries could not be reached) */
.menu.open { max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-right .nav-play { display: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.burger { display: grid; place-content: center; gap: 5px; width: 46px; height: 42px; border: 1px solid var(--line); background: rgba(20, 14, 8, 0.6); border-radius: 7px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--gold-hi); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; font-family: var(--display); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; border-radius: 7px; padding: 12px 24px; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, filter 0.2s; -webkit-tap-highlight-color: transparent; }
.btn-gold { color: #2b1a06; background: linear-gradient(180deg, #ffe596 0%, #f4c457 46%, #d9a02f 54%, #b87e1d 100%); border: 1px solid #6b4610; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(90, 55, 10, 0.35), 0 6px 18px rgba(0, 0, 0, 0.45); text-shadow: 0 1px 0 rgba(255, 238, 180, 0.6); }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(90, 55, 10, 0.35), 0 0 0 1px rgba(255, 214, 120, 0.55), 0 0 30px rgba(255, 190, 80, 0.5), 0 8px 22px rgba(0, 0, 0, 0.5); }
.btn-gold:active { transform: translateY(1px); }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: 0.78rem; }
.btn-big { padding: 15px 34px; font-size: 1.02rem; }
.btn-ghost { color: var(--gold-hi); border: 1px solid rgba(255, 211, 107, 0.65); background: rgba(20, 14, 8, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 211, 107, 0.12); }

/* hero */
.hero { position: relative; text-align: center; padding: 30px 16px 64px; display: grid; justify-items: center; gap: 12px; }
.hero-emblem { width: 150px; height: auto; filter: drop-shadow(0 0 24px rgba(255, 190, 90, 0.35)) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.6)); animation: float 6s ease-in-out infinite; }
.eyebrow { margin: 0; font: 700 0.74rem var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow-gem { color: var(--gem); }
/* over the picture behind the page (bright in places: the market square) the small headings keep a dark halo */
.hero .eyebrow, .page-head .eyebrow { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.8); }
.hero h1 { font-size: clamp(2rem, 8.4vw, 4rem); line-height: 1.08; color: #fff3d6; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 0 40px rgba(255, 170, 80, 0.35); max-width: 15ch; }
.lede { margin: 0; max-width: 58ch; font-size: 1.12rem; color: #f1e2c2; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75); }
.cta { display: grid; gap: 12px; width: min(100%, 340px); margin-top: 8px; }
.badge { margin: 4px 0 0; padding: 7px 16px; border-radius: 999px; background: rgba(12, 9, 7, 0.72); border: 1px solid var(--line); font: 700 0.74rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.embers i { position: absolute; bottom: -12px; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle, #ffe2a0 0%, rgba(255, 170, 60, 0) 70%); animation: rise linear infinite; }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(-520px) translateX(30px); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-8px); } }

/* bands and section heads */
.band { padding-block: 44px; background: linear-gradient(180deg, rgba(10, 8, 12, 0.55), rgba(10, 8, 12, 0.84)); border-top: 1px solid rgba(224, 169, 59, 0.18); }
.head { display: grid; justify-items: center; gap: 10px; text-align: center; margin-bottom: 26px; }
.head-left { justify-items: start; text-align: left; margin-bottom: 4px; }
.head h2 { font-size: clamp(1.55rem, 6vw, 2.5rem); color: #fbecc9; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }

/* parchment */
.parchment { position: relative; color: var(--ink); background: radial-gradient(ellipse at 50% 25%, #fdf4dc 0%, #f4e6c3 55%, #e6cf9f 100%); border: 1px solid #b8955a; border-radius: 9px; box-shadow: 0 0 0 4px rgba(42, 31, 22, 0.9), 0 0 0 5px rgba(224, 169, 59, 0.6), 0 20px 44px rgba(0, 0, 0, 0.55); }
.parchment h2, .parchment h3 { color: var(--ink); }

/* features */
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.feature { padding: 22px 18px 20px; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; }
.feature .icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #fff8e6 0%, #ecd8ad 70%); box-shadow: inset 0 0 0 1px #c9a86b, 0 3px 8px rgba(80, 50, 20, 0.25); }
.feature .icon img { width: auto; height: auto; max-width: 54px; max-height: 54px; }
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* news and side boxes */
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.news-list { display: grid; gap: 20px; min-width: 0; }
.news-card { overflow: hidden; }
.news-band { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 16px; background: linear-gradient(90deg, #6e1414, #9c1c1c 45%, #6e1414); color: #f7e3b0; font: 700 0.74rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid #4a0d0d; }
.news-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.news-body h3 { font-size: 1.24rem; }
.news-body p { margin: 0; color: #4a3220; }
.side { display: grid; gap: 20px; }
.box { padding: 18px 18px 20px; background: linear-gradient(180deg, rgba(36, 26, 18, 0.95), rgba(18, 13, 10, 0.95)); border: 1px solid var(--line); border-radius: 9px; box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.08), 0 14px 32px rgba(0, 0, 0, 0.5); display: grid; gap: 12px; }
.box h3 { font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); text-align: center; padding-bottom: 10px; border-bottom: 1px solid rgba(224, 169, 59, 0.28); }
.box p { margin: 0; color: var(--text-dim); text-align: center; }
.stat { display: flex; justify-content: space-between; gap: 10px; font-size: 1.02rem; }
.stat span { color: var(--text-dim); }
.stat b { font-family: var(--display); font-size: 0.92rem; color: var(--text); text-align: right; }

/* gallery */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.shot { margin: 0; display: grid; gap: 10px; }
.shot .frame { padding: 6px; border-radius: 8px; background: linear-gradient(180deg, #3a2a1a, #1d150e); border: 1px solid var(--line); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 970 / 708; object-fit: cover; border-radius: 4px; image-rendering: pixelated; }
.shot figcaption { text-align: center; font: 600 0.88rem var(--display); letter-spacing: 0.08em; color: var(--text-dim); }

/* final call to action */
.final { padding: 40px 20px 46px; display: grid; justify-items: center; gap: 12px; text-align: center; margin-top: 30px; }
.final h2 { font-size: clamp(1.5rem, 5.6vw, 2.2rem); }
.final p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.final .spider { position: absolute; left: 6px; bottom: -26px; width: 92px; height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }
/* a player standing on the top edge of the card */
.final .player { position: absolute; right: 18px; top: -58px; width: 72px; height: auto; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.45)); }

/* footer */
footer { border-top: 1px solid var(--line); background: rgba(8, 6, 10, 0.94); padding-block: 36px calc(26px + env(safe-area-inset-bottom, 0px)); }
.foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.foot h4 { margin: 0 0 10px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot ul a { display: inline-block; padding-block: 6px; color: var(--text-dim); text-decoration: none; }
.foot a:hover { color: var(--gold-hi); }
.foot p { margin: 10px 0 0; color: var(--text-dim); font-size: 0.98rem; max-width: 34ch; }
.legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(224, 169, 59, 0.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #8f7e62; font-size: 0.9rem; }

/* very narrow phones: the emblem alone in the bar */
@media (max-width: 379px) { .brand span { display: none; } }
/* wider phones and small tablets */
@media (min-width: 560px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { display: flex; flex-wrap: wrap; justify-content: center; width: auto; }
  .foot { grid-template-columns: 1.4fr 1fr 1fr; }
  .eyebrow::before, .eyebrow::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
  .eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
  .eyebrow-gem::before { background: linear-gradient(90deg, transparent, var(--gem)); }
  .eyebrow-gem::after { background: linear-gradient(90deg, var(--gem), transparent); }
  .final .spider { width: 120px; left: -14px; bottom: -34px; }
  .final .player { width: 84px; right: 26px; top: -68px; }
}
/* phones held sideways: keep the hero short */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-block: 18px 40px; }
  .hero-emblem { width: 96px; }
}
/* tablets and desktops */
@media (min-width: 900px) {
  body { font-size: 18px; }
  .scenery { background-image: url(/img/bg-market-1920.webp?v=2); background-position: center 38%; }
  .nav-in { gap: 18px; min-height: 66px; }
  .burger { display: none; }
  .menu { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; margin-inline: auto; background: none; border: 0; box-shadow: none; }
  .brand { flex-shrink: 0; }
  .menu > a:not(.btn), .menu-group > summary { min-height: 40px; font-size: 0.86rem; white-space: nowrap; }
  .menu .menu-play { display: none; }
  .nav-play { white-space: nowrap; }
  .menu-group, .menu-group > summary { position: relative; }
  /* the panel: the dark box of the site (.box) under its title */
  .menu-panel { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); z-index: 30; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(180deg, rgba(36, 26, 18, 0.98), rgba(18, 13, 10, 0.98)); box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.08), 0 16px 30px rgba(0, 0, 0, 0.55); max-height: calc(100vh - 96px); overflow-y: auto; }
  /* the little arrow joins the open panel to its title: drawn on the title, so the panel's own scroll never clips it */
  .menu-group[open] > summary::before { content: ""; position: absolute; top: calc(100% + 7px); left: 50%; z-index: 31; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: rgb(36, 26, 18); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .menu-group-community .menu-panel { width: 290px; }
  .menu-group-mechanics .menu-panel { width: 560px; }
  .menu-list a { min-height: 40px; padding: 7px 12px; }
  .menu-group-mechanics .menu-list a { min-height: 36px; padding: 6px 12px; }
  .menu-hint { display: block; margin-top: 1px; font: italic 400 0.92rem/1.25 var(--body); letter-spacing: 0; text-transform: none; color: var(--text-faint); }
  .menu-list a:hover .menu-hint, .menu-list a[aria-current] .menu-hint { color: var(--text-dim); }
  .menu-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 4px; padding: 6px 12px 10px; border-bottom: 1px solid rgba(224, 169, 59, 0.28); }
  .menu-head span { display: inline; font: 700 0.74rem var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-hi); }
  .menu-head a { min-height: 0; padding: 0; font-size: 0.74rem; }
  .menu-head a:hover, .menu-head a[aria-current] { background: none; text-decoration: underline; }
  .menu-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .nav-right { margin-left: 0; }
  .nav-right .nav-play { display: inline-flex; }
  .hero { padding: 56px 16px 96px; gap: 14px; }
  .hero-emblem { width: 200px; }
  .lede { font-size: 1.2rem; }
  .band { padding-block: 64px; }
  .head { margin-bottom: 34px; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .final { padding: 46px 28px; }
  .final .spider { width: 150px; left: -38px; bottom: -40px; }
  .final .player { width: 96px; right: 40px; top: -80px; }
  .foot { grid-template-columns: 1.6fr 1fr 1fr; }
}
/* 900-1023 px: without it the Spanish bar does not fit at 900 px (site-audit.md §6.8, measured again in design.md) */
@media (min-width: 900px) and (max-width: 1023px) {
  .nav-in { gap: 10px; }
  .nav-right { gap: 6px; }
  .menu > a:not(.btn), .menu-group > summary { padding-inline: 9px; letter-spacing: 0.08em; }
}
/* live online pill of the hero */
.online-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 7px 16px; border-radius: 999px; background: rgba(12, 9, 7, 0.72); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 1rem; }
.online-pill:hover { border-color: var(--gold); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #8f7e62; }
.is-online .dot { background: #5bd36b; box-shadow: 0 0 0 3px rgba(91, 211, 107, 0.22), 0 0 12px #5bd36b; }
.is-offline .dot { background: #c0533a; }
.status-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font: 700 0.95rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.status-line.is-online { color: #8de39a; }
.status-line.is-offline { color: #f09a7a; }
.top5 { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.top5 li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: rgba(255, 220, 150, 0.05); }
.top5 .rank { font: 700 0.95rem var(--display); color: var(--gold); text-align: center; }
.top5 .who { min-width: 0; display: grid; }
.top5 .who a { font-weight: 600; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top5 .who a:hover { color: var(--gold-hi); }
.top5 .who span { font-size: 0.85rem; color: var(--text-dim); }
.top5 .lvl { font: 700 0.9rem var(--display); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.box .link { text-align: center; text-decoration: none; font-weight: 600; }
/* inner pages */
.page-head { display: grid; justify-items: center; gap: 8px; padding: 36px 16px 26px; text-align: center; }
.page-head h1 { font-size: clamp(1.9rem, 7vw, 3rem); color: #fff3d6; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7); overflow-wrap: anywhere; }
.page { padding-bottom: 56px; }
.page-card { padding: 20px 16px; display: grid; gap: 16px; min-width: 0; }
.page-card a { color: var(--gem); }
.notice { margin: 0; padding: 12px 14px; border-radius: 6px; background: rgba(156, 28, 28, 0.08); border: 1px solid rgba(156, 28, 28, 0.25); color: var(--ink); }
.summary { margin: 0; font: 700 1rem var(--display); color: var(--ink); }
.summary span { display: block; margin-top: 4px; font: italic 400 0.95rem var(--body); color: var(--ink-soft); }
.note { margin: 0; font-style: italic; color: var(--ink-soft); font-size: 0.95rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid #b8955a; border-radius: 999px; background: rgba(255, 255, 255, 0.35); color: var(--ink); font: 700 0.74rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.page-card .pill { color: var(--ink); }
.pill:hover { border-color: var(--gold); background: rgba(255, 250, 234, 0.9); }
.pill[aria-current="true"], .page-card .pill[aria-current="true"], .pill[aria-current="page"], .page-card .pill[aria-current="page"] { background: linear-gradient(180deg, #a52323, #7a1515); color: #fbe8bd; border-color: #5a0f0f; }
.pill-small { min-height: 32px; font-size: 0.7rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1.02rem; color: var(--ink); }
th { text-align: left; font: 700 0.74rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); padding: 8px 10px; border-bottom: 2px solid #c9a86b; }
td { padding: 8px 10px; border-bottom: 1px solid rgba(160, 120, 60, 0.25); color: var(--ink); }
tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.28); }
td.r { width: 52px; font: 700 1rem var(--display); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
tbody tr:nth-child(-n+3) td.r b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink); }
tbody tr:nth-child(1) td.r b { background: radial-gradient(circle at 35% 30%, #fff1b0, #e0a93b 60%, #9c6d16); }
tbody tr:nth-child(2) td.r b { background: radial-gradient(circle at 35% 30%, #ffffff, #c7ccd4 60%, #7f8792); }
tbody tr:nth-child(3) td.r b { background: radial-gradient(circle at 35% 30%, #ffd9b0, #c88447 60%, #7c4a1d); }
/* the outfit of each character of the highscores, beside its place (user 2026-11-15) */
td.o, th.o { width: 48px; min-width: 48px; padding-left: 0; padding-right: 0; text-align: center; }
td.o img { display: block; width: 48px; max-width: none; height: 48px; margin: -6px auto; object-fit: contain; image-rendering: pixelated; }
@media (max-width: 520px) {
  td.r { width: 36px; }
  .table-wrap th, .table-wrap td { padding-left: 6px; padding-right: 6px; }
  td.o, th.o { width: 36px; min-width: 36px; }
  td.o img { width: 36px; height: 36px; margin: -4px auto; }
}
td.n a { color: var(--ink); font-weight: 600; text-decoration: none; }
td.n a:hover { color: var(--gem); text-decoration: underline; }
td.v, th.v { text-align: right; font-variant-numeric: tabular-nums; }
td.v { font: 700 1rem var(--display); }
.search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.search label { font: 700 0.8rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.search input { flex: 1 1 200px; min-height: 42px; font: 1.05rem var(--body); color: var(--ink); background: #fff8e8; border: 1px solid #b8955a; border-radius: 6px; padding: 8px 12px; }
.search input:focus-visible { outline: 2px solid var(--gem); outline-offset: 2px; }
.results-title { font-size: 1.1rem; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.results li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.3); }
.results li span { color: var(--ink-soft); }
.char { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; margin: 0; }
.char div { padding: 10px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.3); border: 1px solid rgba(160, 120, 60, 0.25); }
.char dt { font: 700 0.72rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.char dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.char dd.is-online { color: #2f7a3a; }
.char dd.is-offline { color: var(--gem); }
.char-skills { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
/* TabTibia r112: the head row of a character (portrait, vocation, premium and status, level), its deaths and quests */
.char-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.28); border: 1px solid rgba(160, 120, 60, 0.3); }
.char-portrait { width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fdf4dc 0%, #e6cf9f 70%, #c9a86a 100%); border: 2px solid #b8955a; box-shadow: 0 0 0 3px rgba(224, 169, 59, 0.45), inset 0 2px 8px rgba(58, 36, 20, 0.35); }
.char-portrait img { width: 96px; height: 96px; image-rendering: pixelated; }
.char-who { display: grid; gap: 8px; min-width: 0; }
.char-voc { margin: 0; font: 700 1.15rem var(--display); color: var(--ink); }
.char-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.char-pills .pill { cursor: default; }
.char-pills .pill.is-premium { background: linear-gradient(180deg, #ffe39a, #e0a93b); border-color: #a87a2a; }
.char-pills .pill .dot { width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; display: inline-block; }
.char-level { display: grid; justify-items: end; line-height: 1; }
.char-level span { font: 700 0.72rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.char-level strong { font: 800 clamp(2.2rem, 7vw, 3.2rem) var(--display); color: var(--ink); }
.char-sub { display: block; margin-top: 2px; font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); }
.char-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.char-deaths { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid rgba(160, 120, 60, 0.45); display: grid; gap: 12px; }
.char-deaths li { position: relative; }
.char-deaths li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #f4e6c3; border: 2px solid #b8955a; }
.char-deaths time { font-size: 0.82rem; color: var(--ink-soft); }
.char-deaths p { margin: 2px 0 0; font-size: 1.02rem; color: var(--ink); }
.char-quests { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
  .char-hero { grid-template-columns: auto 1fr; }
  .char-level { grid-column: 1 / -1; justify-items: start; justify-content: start; grid-auto-flow: column; align-items: baseline; gap: 10px; }
  .char-portrait { width: 88px; height: 88px; }
  .char-portrait img { width: 72px; height: 72px; }
}
.lang a { display: inline-grid; place-items: center; min-width: 40px; min-height: 34px; color: var(--text-dim); font: 700 0.76rem var(--display); letter-spacing: 0.1em; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--gold); color: #2b1a06; }
/* the current page, or the section of the page (a character page marks Characters) */
.menu > a[aria-current] { color: var(--gold-hi); }
@media (min-width: 900px) {
  .page-card { padding: 26px 28px; }
}
/* library */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.lib-card { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 24px 18px; text-align: center; text-decoration: none; transition: transform 0.15s; }
.lib-card:hover { transform: translateY(-2px); }
.lib-card img { width: 64px; height: 64px; object-fit: contain; }
.lib-card h2 { font-size: 1.3rem; }
.lib-card p { margin: 0; color: var(--ink-soft); }
.back { margin: 0; }
.back a { font: 700 0.8rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.filter-label { align-self: center; margin-right: 4px; font: 700 0.72rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.lib-table td { vertical-align: top; }
.lib-table .words { color: var(--gem); }
.lib-table small { color: var(--ink-soft); }
.teachers { min-width: 160px; }
.teacher { display: inline-block; margin: 0 8px 4px 0; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(160, 120, 60, 0.3); white-space: nowrap; }
.muted { color: var(--ink-soft); font-style: italic; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(156, 28, 28, 0.1); border: 1px solid rgba(156, 28, 28, 0.3); color: var(--gem); font: 700 0.68rem var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
/* inside a table cell: the cell itself stays a table cell, so it fills its row and the row lines meet */
.with-img { display: flex; align-items: center; gap: 10px; }
.item-img { flex: 0 0 32px; width: 32px; height: 32px; object-fit: contain; }
.monster-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.monster-grid a { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.32); border: 1px solid rgba(160, 120, 60, 0.25); text-align: center; text-decoration: none; height: 100%; }
.page-card .monster-grid a { color: var(--ink); }
.monster-grid a:hover { border-color: var(--gold); background: rgba(255, 250, 234, 0.85); }
.monster-grid img, .monster-grid .no-img { width: 64px; height: 64px; object-fit: contain; }
.monster-grid b { font-weight: 600; }
.monster-grid span { font-size: 0.85rem; color: var(--ink-soft); }
.monster-portrait { width: 128px; height: 128px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55)); }
.boost-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.boost-grid li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.32); border: 1px solid rgba(160, 120, 60, 0.25); }
.boost-grid p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
/* spells */
.voc-banner { display: flex; gap: 18px; align-items: center; margin: 4px 0 18px; padding: 14px 18px; border-radius: 10px; background: linear-gradient(180deg, rgba(255, 250, 234, 0.92), rgba(252, 238, 204, 0.6)); border: 1px solid rgba(160, 120, 60, 0.35); }
.voc-banner img { flex: none; width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35)); }
.voc-banner h2 { margin: 0 0 4px; font-size: 1.35rem; }
.voc-banner p { margin: 0; color: var(--ink-soft); }
.voc-banner .voc-count { margin-top: 8px; font: 700 0.75rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gem); }
.spell-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 12px; align-items: start; }
.spell { display: flex; gap: 14px; padding: 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.34); border: 1px solid rgba(160, 120, 60, 0.25); scroll-margin-top: 90px; }
.spell:target { border-color: var(--gold); background: rgba(255, 250, 234, 0.9); }
.spell-icon { flex: 0 0 72px; height: 72px; display: grid; place-items: center; border-radius: 10px; background: rgba(60, 36, 12, 0.1); border: 1px solid rgba(160, 120, 60, 0.35); }
.spell-icon img { width: 64px; height: 64px; object-fit: contain; }
.spell-icon .spell-none { opacity: 0.35; }
.spell-body { flex: 1; min-width: 0; }
.spell h3 { margin: 0; font-size: 1.15rem; }
.spell-tags { margin: 4px 0 0; }
.spell .words { margin: 6px 0 4px; color: var(--gem); font-style: italic; font-size: 1.05rem; }
.spell-facts, .spell-vocs, .spell-rune { margin: 0; font-size: 0.95rem; }
.spell-vocs, .spell-rune { color: var(--ink-soft); }
.tag-free { background: rgba(46, 125, 50, 0.1); border-color: rgba(46, 125, 50, 0.4); color: #2c662f; }
.tag-premium { background: rgba(224, 169, 59, 0.22); border-color: rgba(160, 110, 10, 0.5); color: #6e4a00; }
.tag-type { background: rgba(106, 74, 46, 0.08); border-color: rgba(106, 74, 46, 0.3); color: var(--ink-soft); }
.spell-teachers { margin-top: 10px; }
.spell-teachers summary { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(160, 120, 60, 0.5); background: rgba(255, 250, 234, 0.85); color: var(--ink); font: 700 0.7rem var(--display); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; list-style: none; }
.spell-teachers summary::-webkit-details-marker { display: none; }
.spell-teachers summary::after { content: "\25BE"; font-size: 0.9rem; transition: transform 0.15s; }
.spell-teachers[open] summary::after { transform: rotate(180deg); }
.spell-teachers summary:hover, .spell-teachers summary:focus-visible { border-color: var(--gold); background: #fffaea; }
.spell-teachers p { margin: 10px 0 0; }
.note { margin: 18px 0 0; color: var(--ink-soft); font-size: 0.95rem; font-style: italic; }
@media (max-width: 520px) {
  .voc-banner { gap: 12px; padding: 12px; }
  .voc-banner img { width: 64px; height: 64px; }
  .spell-icon { flex-basis: 56px; height: 56px; }
  .spell-icon img { width: 48px; height: 48px; }
}
/* items, NPCs and outfits */
.category-grid, .npc-grid, .outfit-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.category-grid a, .npc-grid a, .outfit-grid li { display: grid; justify-items: center; align-content: start; gap: 4px; height: 100%; padding: 12px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.32); border: 1px solid rgba(160, 120, 60, 0.25); text-align: center; text-decoration: none; }
.page-card .category-grid a, .page-card .npc-grid a { color: var(--ink); }
.category-grid a:hover, .npc-grid a:hover { border-color: var(--gold); background: rgba(255, 250, 234, 0.85); }
.category-grid img, .category-grid .no-img { width: 64px; height: 64px; object-fit: contain; }
.npc-grid img, .npc-grid .no-img, .outfit-grid img, .outfit-grid .no-img { width: 64px; height: 64px; object-fit: contain; }
.category-grid b, .npc-grid b, .outfit-grid b { font-weight: 600; }
.category-grid span, .npc-grid span { font-size: 0.85rem; color: var(--ink-soft); }
.npc-grid .npc-tags { font-size: 0.75rem; color: var(--gem); }
.item-portrait, .npc-portrait { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55)); }
.page-head .eyebrow a { color: inherit; text-decoration: none; }
.item-description { margin: 16px 0 0; font-style: italic; color: var(--ink-soft); }
.drop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.drop-list li { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(160, 120, 60, 0.3); }
.drop-list span { color: var(--ink-soft); font-size: 0.85rem; }
.npc-job { margin: 0 0 14px; padding: 10px 16px; border-left: 3px solid var(--gold); background: rgba(255, 250, 234, 0.6); font-style: italic; }
.results-title small { font-size: 0.8em; color: var(--ink-soft); }
/* custom monsters and items */
.custom-title { margin-top: 26px; }
.own-card a { border-color: var(--gold); background: rgba(255, 244, 214, 0.75); }
.looks-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.looks-grid li { padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.32); border: 1px solid rgba(160, 120, 60, 0.25); }
.looks-grid img { width: 64px; height: 64px; object-fit: contain; }
/* sharper backgrounds for bigger or denser screens: only the matching picture is downloaded */
@media (min-width: 1921px), (min-width: 900px) and (min-resolution: 1.5dppx) {
  .scenery { background-image: url(/img/bg-market-2560.webp?v=2); }
}
@media (min-width: 2561px), (min-width: 1700px) and (min-resolution: 2dppx) {
  .scenery { background-image: url(/img/bg-market-3840.webp?v=2); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-emblem { animation: none; }
  .embers { display: none; }
}
/* Mechanics (web150, design.md §2.4-2.5): the hub's group cards and their index, the steps, the tables that fit a phone */
.mx-lede { max-width: 60ch; margin: 2px auto 0; }
.mx-intro { margin: 0; font-size: 1.08rem; }
.mx-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
/* a group with fewer pages keeps its rows together */
.mx-groups > .page-card { align-content: start; }
.mx-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mx-index a { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 2px 12px; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.32); border: 1px solid rgba(160, 120, 60, 0.25); text-decoration: none; }
.page-card .mx-index a { color: var(--ink); }
.mx-index a:hover { border-color: var(--gold); background: rgba(255, 250, 234, 0.85); }
.mx-index img { grid-row: span 2; width: 40px; height: 40px; object-fit: contain; }
.mx-index b { font: 700 1rem var(--display); }
.mx-index span { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.3; }
.mx-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.mx-steps li::marker { font: 700 0.9rem var(--display); color: var(--gem); }
.mx-table td { white-space: nowrap; }
.mx-table td.mx-wrap { white-space: normal; }
.mx-table th { white-space: normal; vertical-align: bottom; }
.page-card [id] { scroll-margin-top: 90px; }
.mx-sub { margin: 4px 0 -6px; font-size: 0.95rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.mx-cards b { font-family: var(--display); }
.page-card kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid rgba(160, 120, 60, 0.55); border-bottom-width: 2px; border-radius: 4px; background: rgba(255, 255, 255, 0.55); font: 700 0.8rem var(--display); color: var(--ink); text-align: center; white-space: nowrap; }
.page-card code { font-size: 0.95em; color: var(--gem); }
@media (max-width: 559px) { .mx-table th, .mx-table td { padding: 7px 6px; } .mx-table th { font-size: 0.66rem; letter-spacing: 0.06em; } }
/* the narrowest phones: the values of a table may break too, so no table needs its own scroll */
@media (max-width: 379px) { .mx-table td { white-space: normal; } .mx-table th { font-size: 0.6rem; letter-spacing: 0.02em; } .mx-table .item-img { display: none; } }
/* on a system page the parts of the card are spaced by its grid alone */
.mx-page > p { margin: 0; }
/* the eight facts of the hub: two columns on a phone, four on a desktop (two full rows) */
.mx-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .mx-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mx-glance { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* TabTibia r113: the members of a guild by rank */
.guild-members { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.guild-members li { font-size: 1.05rem; }
/* ====================================================================================================================
   Mechanics, the redesign (web152, approved by the user on 2026-10-20): one set of pieces with the prefix mx- for the
   hub and the 16 pages (the hero, the key numbers, bands, pictures, steps, ladders, bars, sums, the fold, cards,
   galleries, chips, split cards, portraits, colour cards, posters, slots, boxes and the closing card). Mobile first,
   then 560 px and 900 px like the rest of this file. No inline style anywhere (the CSP and the tests forbid it): a value
   of one item is a class or an attribute (<meter value>, a sprite's width and height). The CSS never sizes a sprite
   (.mx-sprite): site/views/mechanics-common.js writes its width and height at a whole multiple of its own size, and a
   <picture> carries the bigger multiple from 900 px. The pieces and their helpers: webmx/COMPONENTS.md
   ==================================================================================================================== */
:root {
  /* one accent per theme: cold, radiation, quest (the gold of the site), new; the danger is the site's --gem */
  --mx-cold: #8fd6ff;
  --mx-cold-ink: #1b5d83;
  --mx-rad: #a8e363;
  --mx-rad-ink: #3b6b15;
  --mx-quest: #ffd36b;
  --mx-quest-ink: #7a5300;
  --mx-new: #f0c9a0;
  --mx-new-ink: #7a3e16;
  --mx-up: #ffd36b;
  --mx-down: #f09a7a;
  --mx-panel: linear-gradient(180deg, rgba(36, 26, 18, 0.96), rgba(18, 13, 10, 0.96));
}

/* ------------------------------------------------------------------ sprites: their size is their attributes */
.mx-sprite { flex: none; max-width: none; }
img.mx-sprite { vertical-align: middle; }
picture.mx-sprite { display: inline-block; line-height: 0; vertical-align: middle; }
picture.mx-sprite > img { display: block; max-width: none; }

/* ------------------------------------------------------------------ the hero: the page's picture behind its title */
.mx-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: end center; min-height: 400px; padding: 32px 16px 96px; text-align: center; }
/* the picture fades into the site's own background at the bottom, so the bands below join it without a seam */
.mx-hero-bg, .mx-hero-art img { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.55) 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.55) 80%, transparent 100%); }
/* a banner of the map at 1:1 (its pixels are never rescaled), from its top; .mx-focus-<n> is where a narrow screen cuts it */
.mx-hero-bg { object-fit: none; object-position: 50% 0; image-rendering: pixelated; }
.mx-focus-0 { object-position: 0 0; } .mx-focus-5 { object-position: 5% 0; } .mx-focus-10 { object-position: 10% 0; }
.mx-focus-15 { object-position: 15% 0; } .mx-focus-20 { object-position: 20% 0; } .mx-focus-25 { object-position: 25% 0; }
.mx-focus-30 { object-position: 30% 0; } .mx-focus-35 { object-position: 35% 0; } .mx-focus-40 { object-position: 40% 0; }
.mx-focus-45 { object-position: 45% 0; } .mx-focus-50 { object-position: 50% 0; } .mx-focus-55 { object-position: 55% 0; }
.mx-focus-60 { object-position: 60% 0; } .mx-focus-65 { object-position: 65% 0; } .mx-focus-70 { object-position: 70% 0; }
.mx-focus-75 { object-position: 75% 0; } .mx-focus-80 { object-position: 80% 0; } .mx-focus-85 { object-position: 85% 0; }
.mx-focus-90 { object-position: 90% 0; } .mx-focus-95 { object-position: 95% 0; } .mx-focus-100 { object-position: 100% 0; }
/* wider than the banner (1920 px): it covers, slightly enlarged */
@media (min-width: 1921px) { .mx-hero-bg { object-fit: cover; } }
/* a dark veil behind the words, lighter at the edges so the picture still shows */
.mx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 62% 58% at 50% 66%, rgba(8, 6, 12, 0.74) 0%, rgba(8, 6, 12, 0.42) 58%, rgba(8, 6, 12, 0.12) 100%), linear-gradient(180deg, rgba(8, 6, 12, 0.5) 0%, rgba(8, 6, 12, 0) 26%); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.mx-hero-in { position: relative; display: grid; justify-items: center; gap: 10px; max-width: 780px; }
.mx-hero h1 { font-size: clamp(2.4rem, 10vw, 4.3rem); line-height: 1.04; color: #fff3d6; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 34px rgba(255, 170, 80, 0.42), 0 4px 18px rgba(0, 0, 0, 0.85); overflow-wrap: anywhere; }
.mx-hero .eyebrow { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.8); }
.mx-hero .eyebrow a { color: inherit; text-decoration: none; }
.mx-hero .eyebrow a:hover { color: var(--gold-hi); }
.mx-hero .lede { max-width: 50ch; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.8); }
/* the page's sprite floating over the title, like the home page's emblem */
.mx-hero-emblem { filter: drop-shadow(0 0 18px rgba(255, 190, 90, 0.6)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.75)); animation: float 6s ease-in-out infinite; }
/* small labels under the sentence (a quest page: "No level needed") */
.mx-hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 2px 0 0; }
.mx-hero-badges span { padding: 6px 14px; border-radius: 999px; background: rgba(12, 9, 7, 0.78); border: 1px solid var(--line); font: 700 0.72rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.mx-hero-badges .is-gold { color: #2b1a06; background: linear-gradient(180deg, #ffe596, #e0a93b); border-color: #6b4610; }
/* the hub: an illustration of the client, taller, with the links to its four groups */
.mx-hero-hub { min-height: 520px; padding-bottom: 100px; }
.mx-hero-hub .mx-hero-art img { object-position: 50% 72%; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.5) 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.5) 80%, transparent 100%); }
.mx-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.mx-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 211, 107, 0.55); background: rgba(14, 10, 8, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: var(--gold-hi); font: 700 0.72rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.mx-jump a:hover { background: rgba(255, 211, 107, 0.16); }
@media (min-width: 900px) {
  .mx-hero { min-height: 448px; padding: 48px 24px 112px; }
  .mx-hero-hub { min-height: 600px; }
  .mx-hero-hub .mx-hero-art img { object-position: 50% 40%; }
}

/* ------------------------------------------------------------------ the key numbers: tiles that overlap the hero */
.mx-under { position: relative; z-index: 3; margin-top: -78px; padding-bottom: 30px; background: linear-gradient(180deg, rgba(10, 8, 12, 0) 0, rgba(10, 8, 12, 0) 78px, rgba(10, 8, 12, 0.55) 100%); }
/* a page without key numbers: only its sibling pages, on the fading edge of the hero */
.mx-under.is-bare { margin-top: -64px; background: linear-gradient(180deg, rgba(10, 8, 12, 0) 0, rgba(10, 8, 12, 0.55) 100%); }
.mx-top { display: grid; gap: 18px; }
.mx-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* an odd count on a phone: the last one is wide */
.mx-stats-3 > :last-child, .mx-stats-5 > :last-child { grid-column: 1 / -1; }
.mx-stat { display: grid; align-content: center; justify-items: center; gap: 5px; min-height: 92px; padding: 12px 8px 11px; border-radius: 10px; text-align: center; background: linear-gradient(180deg, rgba(46, 33, 21, 0.97), rgba(19, 14, 10, 0.98)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.12), 0 16px 32px rgba(0, 0, 0, 0.55); }
.mx-stat b { font: 800 clamp(1.7rem, 8vw, 2.4rem)/1 var(--display); letter-spacing: 0.01em; color: var(--gold-hi); background: linear-gradient(180deg, #fff3cc 0%, #ffd36b 46%, #d39628 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* a word instead of a number (Open PvP, Never) */
.mx-stat b.is-word { font-size: clamp(1.35rem, 6vw, 1.75rem); }
.mx-stat span { font-size: 0.95rem; line-height: 1.25; color: var(--text-dim); text-wrap: balance; }
@media (min-width: 640px) {
  .mx-stats-3 > :last-child, .mx-stats-5 > :last-child { grid-column: auto; }
  .mx-stats-3, .mx-stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mx-stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .mx-stats { gap: 14px; } .mx-stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .mx-stats-3, .mx-stats-4 { gap: 18px; } .mx-stat { min-height: 118px; } }

/* the sibling pages: the site's pills (the same markup as everywhere), dark over the bands; 2 a row on a phone */
.mx-tabs { justify-content: center; }
@media (max-width: 559px) { .mx-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .mx-tabs .pill { justify-content: center; text-align: center; } }
.mx-tabs .pill { min-height: 40px; padding: 8px 16px; color: var(--text); background: rgba(20, 14, 9, 0.8); border-color: var(--line); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mx-tabs .pill:hover { color: var(--gold-hi); background: rgba(224, 169, 59, 0.16); border-color: var(--gold); }
.mx-tabs .pill[aria-current="page"] { background: linear-gradient(180deg, #a52323, #7a1515); color: #fbe8bd; border-color: #5a0f0f; }

/* ------------------------------------------------------------------ bands: tighter than the home page's */
.mx-band { padding-block: 34px; }
.mx-band .head { gap: 8px; margin-bottom: 18px; }
.mx-band .head h2 { font-size: clamp(1.7rem, 7vw, 2.6rem); }
.mx-head-p { margin: 0; max-width: 58ch; color: var(--text-dim); font-size: 1.05rem; }
.mx-band [id], .mx-band[id] { scroll-margin-top: 80px; }
.mx-band > .wrap { position: relative; }
/* a creature beside the title of a band, on a desktop only */
.mx-band-peek { display: none; }
.mx-label { margin: 0 0 14px; justify-content: center; display: flex; }
.mx-band-end { padding-top: 34px; }
/* a page not redesigned yet: its old body on parchment inside the new frame */
.mx-legacy { padding-top: 26px; }
@media (min-width: 900px) {
  .mx-band { padding-block: 58px; }
  .mx-band .head { margin-bottom: 30px; }
  .mx-band-peek { display: block; position: absolute; right: 40px; top: -30px; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.6)); pointer-events: none; }
  .mx-legacy { padding-top: 34px; }
}

/* ------------------------------------------------------------------ a framed picture (the gallery's frame) */
.mx-pic { position: relative; margin: 0; padding: 4px; border-radius: 8px; background: linear-gradient(180deg, #3a2a1a, #1d150e); border: 1px solid var(--line); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45); }
.mx-pic > img { display: block; width: 100%; height: auto; aspect-ratio: 10 / 7; object-fit: cover; border-radius: 4px; }
.mx-pic figcaption { margin-top: 6px; text-align: center; font-size: 0.9rem; font-style: italic; color: var(--text-faint); }
/* a well for sprites or slots (the dark inside of the game's windows), and a picture of the client's interface */
.mx-well { display: grid; place-items: center; aspect-ratio: 10 / 7; border-radius: 4px; background: radial-gradient(ellipse at 50% 42%, #3a332d 0%, #1b1714 78%); }
.mx-ui { display: grid; place-items: center; aspect-ratio: 10 / 7; border-radius: 4px; background: #16120f; }
.mx-ui img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------ steps with pictures */
.mx-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mx-flow > li { position: relative; display: grid; grid-template-columns: 136px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 14px 10px 10px; }
.mx-flow-n { position: absolute; z-index: 2; top: -9px; left: -9px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font: 800 1rem/1 var(--display); color: #2b1a06; background: radial-gradient(circle at 35% 30%, #fff1b0, #e0a93b 60%, #9c6d16); box-shadow: 0 0 0 2px rgba(42, 31, 22, 0.92), 0 4px 10px rgba(0, 0, 0, 0.45); }
.mx-flow h3 { font-size: 1.1rem; line-height: 1.2; }
.mx-flow p { margin: 4px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.4; }
.mx-flow a { color: var(--gem); font-weight: 600; text-decoration: none; white-space: nowrap; }
.mx-flow a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .mx-flow { gap: 30px; }
  .mx-flow-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-flow-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* four or five steps: two or three a row until 1200 px, all in a row from there */
  .mx-flow-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-flow-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-flow > li { grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; gap: 12px; padding: 12px 12px 18px; }
  .mx-flow > li > div { padding-inline: 4px; }
  .mx-flow-n { top: -12px; left: -12px; width: 40px; height: 40px; font-size: 1.15rem; }
  /* a golden arrow in the gap between two steps (not before the first step of a row) */
  .mx-flow > li + li::before { content: ""; position: absolute; left: -24px; top: 84px; width: 14px; height: 14px; border-top: 3px solid var(--gold-hi); border-right: 3px solid var(--gold-hi); transform: rotate(45deg); filter: drop-shadow(0 0 6px rgba(255, 190, 90, 0.7)); }
  .mx-flow-4 > li:nth-child(2n+1)::before, .mx-flow-5 > li:nth-child(3n+1)::before { display: none; }
}
@media (min-width: 1200px) {
  .mx-flow-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mx-flow-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mx-flow-4 > li:nth-child(2n+1)::before, .mx-flow-5 > li:nth-child(3n+1)::before { display: block; }
  .mx-flow-4 > li:first-child::before, .mx-flow-5 > li:first-child::before { display: none; }
}

/* ------------------------------------------------------------------ the game's slots, a backpack */
/* a slot is the game's cell (32 px) at the sprite's multiple (is-s<n>; from 900 px is-w<n>), with the count in its corner */
.mx-slots { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 6px; }
.mx-slots-2 { grid-template-columns: repeat(2, auto); } .mx-slots-3 { grid-template-columns: repeat(3, auto); }
.mx-slots-4 { grid-template-columns: repeat(4, auto); } .mx-slots-5 { grid-template-columns: repeat(5, auto); }
.mx-slots-6 { grid-template-columns: repeat(6, auto); } .mx-slots-7 { grid-template-columns: repeat(7, auto); }
.mx-slots-8 { grid-template-columns: repeat(8, auto); }
.mx-slot { --cell: 32px; position: relative; flex: none; display: grid; place-items: center; width: calc(var(--cell) + 2px); height: calc(var(--cell) + 2px); background: #3b3632; border: 1px solid #14110e; box-shadow: inset 1px 1px 0 #5f5850, inset -1px -1px 0 #221e1a; }
.mx-slot.is-s2 { --cell: 64px; } .mx-slot.is-s3 { --cell: 96px; } .mx-slot.is-s4 { --cell: 128px; }
.mx-slot.is-empty { opacity: 0.45; }
.mx-slot i { position: absolute; right: 1px; bottom: 0; font: 700 0.62rem/1 Verdana, Tahoma, sans-serif; font-style: normal; color: #f2f2f2; text-shadow: 1px 1px 0 #000, -1px 0 0 #000; }
.mx-slot.is-s2 i, .mx-slot.is-s3 i, .mx-slot.is-s4 i { right: 3px; bottom: 2px; font-size: 0.8rem; }
@media (min-width: 900px) {
  .mx-slots { gap: 10px; }
  .mx-slot.is-w2 { --cell: 64px; } .mx-slot.is-w3 { --cell: 96px; } .mx-slot.is-w4 { --cell: 128px; }
  .mx-slot.is-w2 i, .mx-slot.is-w3 i, .mx-slot.is-w4 i { right: 3px; bottom: 2px; font-size: 0.8rem; }
}
/* a backpack as the client draws its window: a title bar and its slots */
.mx-backpack { display: inline-block; max-width: 100%; border-radius: 6px; background: #241b13; border: 1px solid #0f0b08; box-shadow: inset 0 0 0 1px rgba(255, 220, 150, 0.1), 0 16px 30px rgba(0, 0, 0, 0.55); overflow: hidden; }
.mx-backpack header { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: linear-gradient(180deg, #4a3a2a, #2e2318); border-bottom: 1px solid #0f0b08; font: 700 0.72rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.mx-backpack-grid { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; }

/* ------------------------------------------------------------------ a warning on parchment, with the red of the site's ribbons */
.mx-callout { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 18px; padding: 12px 16px 12px 12px; border-left: 6px solid var(--gem); }
.mx-callout p { margin: 0; color: var(--ink); line-height: 1.45; }
.mx-callout b { color: var(--gem); }
.mx-callout a { color: var(--gem); }

/* ------------------------------------------------------------------ a ladder of tiers (the rocks, the trees, the stones) */
.mx-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mx-rung { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; padding: 8px 16px 8px 14px; overflow: hidden; }
.mx-rung::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--tier, var(--gold)); }
.mx-rung > .mx-sprite { grid-row: span 2; filter: drop-shadow(0 6px 5px rgba(60, 36, 12, 0.35)); }
.mx-rung h3 { font-size: 1.08rem; line-height: 1.2; }
.mx-rung p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.35; }
.mx-rung-lvl { grid-row: 1 / span 2; grid-column: 3; display: grid; justify-items: center; line-height: 1; }
.mx-rung-lvl small { font: 700 0.62rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.mx-rung-lvl b { font: 800 2rem/1.05 var(--display); color: var(--ink); }
/* the colour of a tier: --tier for a rung (top to bottom), --tier-band for a level's band (left to right) */
.tier-copper { --tier: linear-gradient(180deg, #e7955a, #9c5326); --tier-band: linear-gradient(90deg, #a8693a, #e3a066 50%, #a8693a); }
.tier-platinum { --tier: linear-gradient(180deg, #e9eef2, #8d9aa5); --tier-band: linear-gradient(90deg, #9aa3ae, #f1f4f7 50%, #9aa3ae); }
.tier-gold { --tier: linear-gradient(180deg, #ffe08a, #c08a1e); --tier-band: linear-gradient(90deg, #c08a1e, #ffe596 50%, #c08a1e); }
.tier-diamond { --tier: linear-gradient(180deg, #c8f2ff, #4fb3d9); --tier-band: linear-gradient(90deg, #4fb3d9, #c8f2ff 50%, #4fb3d9); }
.tier-emerald { --tier: linear-gradient(180deg, #8ff0a8, #22955a); --tier-band: linear-gradient(90deg, #22955a, #8ff0a8 50%, #22955a); }
.tier-basic { --tier: linear-gradient(180deg, #e3a066, #a8693a); --tier-band: linear-gradient(90deg, #a8693a, #e3a066 50%, #a8693a); }
.tier-intricate { --tier: linear-gradient(180deg, #f1f4f7, #9aa3ae); --tier-band: linear-gradient(90deg, #9aa3ae, #f1f4f7 50%, #9aa3ae); }
.tier-powerful { --tier: linear-gradient(180deg, #ffe596, #c08a1e); --tier-band: linear-gradient(90deg, #c08a1e, #ffe596 50%, #c08a1e); }
@media (min-width: 900px) {
  /* a staircase that climbs to the right, the lowest tier first */
  .mx-ladder { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 18px; }
  .mx-rung { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; padding: 20px 14px 18px; text-align: center; }
  .mx-rung::before { inset: 0 0 auto 0; width: auto; height: 6px; }
  .mx-rung > .mx-sprite { grid-row: auto; }
  .mx-rung-lvl { grid-row: auto; grid-column: auto; grid-auto-flow: column; align-items: baseline; gap: 8px; margin-top: 4px; }
  .mx-rung-lvl b { font-size: 2.2rem; }
  .mx-rung:nth-child(2) { margin-bottom: 20px; }
  .mx-rung:nth-child(3) { margin-bottom: 40px; }
  .mx-rung:nth-child(4) { margin-bottom: 60px; }
  .mx-rung:nth-child(5) { margin-bottom: 80px; }
  .mx-rung:nth-child(6) { margin-bottom: 100px; }
}

/* ------------------------------------------------------------------ two panels, the bars of the tools, a sum */
.mx-split { display: grid; gap: 18px; }
@media (min-width: 900px) { .mx-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; } }
.mx-panel { padding: 18px 16px; display: grid; gap: 12px; }
.mx-panel > h3 { font-size: 1.15rem; }
.mx-panel > p { margin: 0; color: var(--ink-soft); }
.mx-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mx-tools li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pic name val" "pic bar brk"; align-items: center; gap: 2px 12px; padding: 4px 12px 6px 4px; border-radius: 8px; background: rgba(255, 255, 255, 0.3); border: 1px solid rgba(160, 120, 60, 0.25); }
.mx-tools .mx-sprite { grid-area: pic; }
.mx-tools b { grid-area: name; align-self: end; font: 700 1rem/1.2 var(--display); }
.mx-tools .mx-brk { grid-area: brk; align-self: start; font-size: 0.85rem; line-height: 1; color: var(--ink-soft); white-space: nowrap; }
.mx-tools .mx-x { grid-area: val; align-self: end; font: 800 1.15rem var(--display); color: var(--ink); }
.mx-tools meter { grid-area: bar; align-self: start; margin-top: 2px; }
/* the bar: the fill in gold, its track a lighter step of the same gold (Chromium, Safari and Firefox) */
.mx-meter, .mx-tools meter { display: block; width: 100%; height: 12px; -webkit-appearance: none; -moz-appearance: none; appearance: none; border: 0; border-radius: 4px; background: rgba(201, 141, 34, 0.18); }
.mx-meter::-webkit-meter-bar, .mx-tools meter::-webkit-meter-bar { height: 12px; border: 0; border-radius: 4px; background: rgba(201, 141, 34, 0.18); }
.mx-meter::-webkit-meter-optimum-value, .mx-meter::-webkit-meter-suboptimum-value, .mx-meter::-webkit-meter-even-less-good-value,
.mx-tools meter::-webkit-meter-optimum-value, .mx-tools meter::-webkit-meter-suboptimum-value, .mx-tools meter::-webkit-meter-even-less-good-value { border-radius: 4px; background: linear-gradient(90deg, #c98d22, #f4c457); }
.mx-meter::-moz-meter-bar, .mx-tools meter::-moz-meter-bar { border-radius: 4px; background: linear-gradient(90deg, #c98d22, #f4c457); }
/* a sum written with big numbers: base + tool = chance */
.mx-calc { padding: 18px 16px 20px; display: grid; gap: 14px; }
.mx-calc .eyebrow { color: var(--gem); }
.mx-calc h3 { font-size: 1.12rem; }
.mx-calc > p { margin: 0; color: var(--ink-soft); }
/* the numbers follow the width of the sum itself (a container), and each term is as wide as its number */
.mx-sum { container-type: inline-size; display: flex; align-items: stretch; justify-content: center; gap: 4px; }
.mx-term { flex: 1 1 auto; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 10px 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.42); border: 1px solid rgba(160, 120, 60, 0.32); text-align: center; }
.mx-term b { font: 800 clamp(0.95rem, 6cqi, 1.6rem)/1.05 var(--display); color: var(--ink); white-space: nowrap; }
.mx-term small { font-size: 0.82rem; line-height: 1.2; color: var(--ink-soft); }
.mx-term.is-total { background: linear-gradient(180deg, #ffe596 0%, #f4c457 50%, #d9a02f 100%); border-color: #8a5c12; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.mx-term.is-total small { color: #4a3008; }
.mx-op { align-self: center; font: 800 1.3rem var(--display); color: var(--gem); }
@media (min-width: 900px) { .mx-sum { gap: 8px; } .mx-term { padding: 12px 8px; } .mx-op { font-size: 1.6rem; } }

/* ------------------------------------------------------------------ everything else, folded: "All the numbers ▾" */
.mx-drawer { margin-top: 18px; }
.mx-drawer > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 56px; padding: 12px 18px; border-radius: 9px; cursor: pointer; list-style: none; background: linear-gradient(180deg, rgba(46, 33, 21, 0.97), rgba(19, 14, 10, 0.98)); border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); color: var(--gold-hi); font: 700 0.86rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; -webkit-tap-highlight-color: transparent; }
.mx-drawer > summary::-webkit-details-marker { display: none; }
.mx-drawer > summary small { flex: 1 1 200px; font: italic 400 0.98rem var(--body); letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.mx-drawer > summary::after { content: "\25BE"; margin-left: auto; font-size: 1.05rem; transition: transform 0.15s; }
.mx-drawer[open] > summary::after { transform: rotate(180deg); }
.mx-drawer > summary:hover { border-color: var(--gold); }
.mx-drawer-body { margin-top: 10px; padding: 18px 14px; display: grid; gap: 14px; min-width: 0; }
.mx-drawer-body h3 { font-size: 1.02rem; scroll-margin-top: 90px; }
.mx-drawer-body p { margin: 0; color: var(--ink-soft); }
.mx-drawer-body a { color: var(--gem); }
.mx-drawer-body .mx-table td { white-space: normal; }
.mx-drawer-body .mx-table td.v { white-space: nowrap; }
@media (min-width: 900px) { .mx-drawer-body { padding: 22px 26px; } }
/* a name with its sprite at 1:1 (a table cell), and names with their sprites in a row of chips */
.mx-named { display: flex; align-items: center; gap: 10px; }
.mx-named-pic { flex: none; display: grid; place-items: center; width: 32px; min-height: 32px; }
.mx-named a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px dotted rgba(106, 74, 46, 0.6); }
.mx-named a:hover { color: var(--gem); border-bottom-color: var(--gem); }
.mx-sprite-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mx-sprite-list li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(160, 120, 60, 0.3); font-size: 0.95rem; }

/* ------------------------------------------------------------------ picture cards (the hub, and "Keep reading") */
.mx-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mx-tiles > li { min-width: 0; }
.mx-tile { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform 0.15s, box-shadow 0.2s; }
.mx-tile:hover, .mx-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(42, 31, 22, 0.9), 0 0 0 5px var(--gold-hi), 0 0 30px rgba(255, 190, 80, 0.35), 0 20px 44px rgba(0, 0, 0, 0.55); }
.mx-tile-pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #1d150e; border-bottom: 1px solid #b8955a; }
.mx-tile-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.mx-tile:hover .mx-tile-pic img { transform: scale(1.05); }
.mx-tile-badge { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 3px 9px; border-radius: 999px; font: 700 0.66rem/1.4 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #2b1a06; background: linear-gradient(180deg, #ffe596, #e0a93b); border: 1px solid #6b4610; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.mx-tile-body { display: grid; align-content: start; gap: 3px; padding: 10px 12px 12px; }
.mx-tile-body b { font: 700 0.98rem/1.2 var(--display); }
.mx-tile-body span { display: none; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.3; }
/* an odd number of cards: on a phone the first one is wide */
.mx-tiles-odd > li:first-child { grid-column: 1 / -1; }
.mx-tiles-odd > li:first-child .mx-tile-pic { aspect-ratio: 2 / 1; }
@media (min-width: 560px) { .mx-tile-body span { display: block; } }
@media (min-width: 900px) {
  .mx-tiles { gap: 22px; }
  .mx-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mx-tiles-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-tiles-odd > li:first-child { grid-column: auto; }
  .mx-tiles-odd > li:first-child .mx-tile-pic { aspect-ratio: 16 / 10; }
  /* five cards: two big ones and three below */
  .mx-tiles-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mx-tiles-5 > li, .mx-tiles-5.mx-tiles-odd > li:first-child { grid-column: span 2; }
  .mx-tiles-5 > li:nth-child(-n+2), .mx-tiles-5.mx-tiles-odd > li:nth-child(-n+2) { grid-column: span 3; }
  .mx-tiles-5 > li:nth-child(-n+2) .mx-tile-pic { aspect-ratio: 2 / 1; }
  .mx-tile-body { padding: 12px 16px 16px; }
  .mx-tile-body b { font-size: 1.1rem; }
  .mx-tile-badge { top: 10px; left: 10px; font-size: 0.7rem; }
}
/* small cards, 3 a row (on a desktop the picture on the left) */
.mx-tiles-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mx-tiles-mini .mx-tile-badge, .mx-tiles-mini .mx-tile-body span { display: none; }
.mx-tiles-mini .mx-tile-body { padding: 7px 6px 9px; }
.mx-tiles-mini .mx-tile-body b { font-size: 0.76rem; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
@media (min-width: 900px) {
  .mx-tiles-mini { gap: 22px; }
  .mx-tiles-mini .mx-tile-body { padding: 10px 14px; }
  .mx-tiles-mini .mx-tile-body b { font-size: 1.05rem; }
  .mx-tiles-mini .mx-tile-body span { display: block; }
}
@media (min-width: 1100px) {
  .mx-tiles-mini .mx-tile { grid-template-rows: none; grid-template-columns: 168px minmax(0, 1fr); align-items: center; }
  .mx-tiles-mini .mx-tile-pic { aspect-ratio: 10 / 7; border-bottom: 0; border-right: 1px solid #b8955a; }
}

/* ------------------------------------------------------------------ a sliding gallery of photo cards (collections only) */
.mx-gallery { list-style: none; margin: 0; padding: 4px 2px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 310px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-color: rgba(224, 169, 59, 0.5) transparent; }
.mx-gallery > li { scroll-snap-align: start; min-width: 0; scroll-margin-top: 90px; }
/* the hint that the row slides: on a phone only */
.mx-swipe { margin: 0 0 10px; font: 700 0.7rem var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); text-align: right; }
.mx-card { height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.mx-card-photo { position: relative; margin: 0; aspect-ratio: 10 / 7; background: #1d150e; border-bottom: 1px solid #b8955a; }
.mx-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mx-card-photo .mx-chips { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.mx-card-photo .mx-dot { position: absolute; top: 9px; right: 10px; }
.mx-card-body { padding: 12px 14px 14px; display: grid; gap: 6px; align-content: start; }
.mx-card h3 { font-size: 1.12rem; line-height: 1.15; }
.mx-card p { margin: 0; font-size: 0.96rem; line-height: 1.35; color: var(--ink-soft); }
.mx-card .mx-names { font-size: 0.9rem; color: var(--ink); }
.mx-card .mx-go { margin-top: 2px; font: 700 0.74rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.mx-card a { color: var(--gem); }
.mx-sprites { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px 6px; min-height: 34px; }
/* the card of a place a quest opens: the golden edge */
.mx-card.is-quest { box-shadow: 0 0 0 4px rgba(42, 31, 22, 0.9), 0 0 0 5px var(--gold-hi), 0 0 30px rgba(255, 200, 90, 0.25), 0 20px 44px rgba(0, 0, 0, 0.55); }
@media (min-width: 900px) {
  /* from here the rows are grids: nothing slides */
  .mx-swipe { display: none; }
  .mx-gallery { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; padding: 0; gap: 20px; }
  .mx-gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ chips and dots of a theme (cold, radiation, quest, boss, new) */
.mx-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.mx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 700 0.66rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; text-decoration: none; border: 1px solid rgba(0, 0, 0, 0.35); }
.mx-chip.is-cold { background: #d5efff; color: var(--mx-cold-ink); border-color: #7fb7d9; }
.mx-chip.is-rad { background: #e3f6c9; color: var(--mx-rad-ink); border-color: #9ccb6a; }
.mx-chip.is-quest { background: linear-gradient(180deg, #ffe596, #e0a93b); color: #3b2706; border-color: #8a5d14; }
.mx-chip.is-boss { background: linear-gradient(180deg, #a52323, #7a1515); color: #fbe8bd; border-color: #5a0f0f; }
.mx-chip.is-new { background: #fbe7d2; color: var(--mx-new-ink); border-color: #d6a77a; }
a.mx-chip:hover { filter: brightness(1.06); }
.mx-dot { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 800 0.72rem var(--display); color: #140e08; background: var(--mx-new); box-shadow: 0 0 0 2px #140e08, 0 0 0 3px rgba(224, 169, 59, 0.35); }
.mx-dot.is-cold { background: var(--mx-cold); }
.mx-dot.is-rad { background: var(--mx-rad); }
.mx-dot.is-quest { background: var(--mx-quest); }

/* ------------------------------------------------------------------ a split card: two things compared (cold | radiation) */
.mx-halves { overflow: hidden; }
.mx-ribbon { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 9px 16px; background: linear-gradient(90deg, #6e1414, #9c1c1c 45%, #6e1414); color: #f7e3b0; font: 700 0.74rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; text-align: center; border-bottom: 1px solid #4a0d0d; }
.mx-halves-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
.mx-half { display: grid; gap: 12px; align-content: start; padding: 0 0 16px; border-top: 4px solid var(--accent, var(--gold)); }
.mx-half + .mx-half { border-left: 0; }
.mx-half > :not(.mx-half-photo) { margin-inline: 12px; }
.mx-half > :first-child:not(.mx-half-photo), .mx-half-photo + * { margin-top: 12px; }
.mx-half-photo { display: none; margin: 0; aspect-ratio: 4 / 1; overflow: hidden; border-bottom: 3px solid var(--accent, var(--gold)); }
.mx-half-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mx-half h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 1.12rem; }
.mx-half h3 b { margin-left: auto; font: 800 1.6rem/1 var(--display); color: var(--accent-ink, var(--ink)); }
.mx-half h3 b small { font: 600 0.8rem var(--body); color: var(--ink-soft); }
.mx-half p { margin: 0; color: var(--ink-soft); line-height: 1.35; }
.mx-half.is-cold { --accent: var(--mx-cold); --accent-ink: var(--mx-cold-ink); }
.mx-half.is-rad { --accent: var(--mx-rad); --accent-ink: var(--mx-rad-ink); }
.mx-half.is-gold { --accent: var(--gold); --accent-ink: var(--mx-quest-ink); }
.mx-half.is-gem { --accent: var(--gem); --accent-ink: var(--gem); }
.mx-halves-foot { margin: 0; padding: 14px 16px 16px; border-top: 1px solid rgba(160, 120, 60, 0.35); text-align: center; color: var(--ink-soft); }
.mx-halves-foot a { color: var(--gem); font-weight: 600; }
/* a numbered list of places, with the dots of the map */
.mx-places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 12px; }
.mx-places li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 4px; border-radius: 6px; font-size: 0.95rem; line-height: 1.2; color: var(--ink); scroll-margin-top: 90px; }
.mx-places li:target { background: rgba(255, 211, 107, 0.45); box-shadow: 0 0 0 2px rgba(224, 169, 59, 0.6); }
.mx-places .mx-dot { width: 22px; height: 22px; font-size: 0.68rem; }
/* what saves you: its slot, its name and a line */
.mx-save { display: grid; justify-items: start; gap: 6px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(160, 120, 60, 0.3); }
.mx-save b { display: block; font-family: var(--display); font-size: 0.92rem; line-height: 1.2; color: var(--ink); }
.mx-save span { display: block; font-size: 0.86rem; line-height: 1.25; color: var(--ink-soft); }
@media (min-width: 560px) {
  .mx-save { display: flex; align-items: center; gap: 10px; }
  .mx-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-half-photo { display: block; }
  .mx-half > :first-child:not(.mx-half-photo), .mx-half-photo + * { margin-top: 0; }
}
@media (min-width: 760px) {
  .mx-halves-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mx-half + .mx-half { border-left: 1px solid rgba(160, 120, 60, 0.35); }
  .mx-half-photo { aspect-ratio: 5 / 1; }
}
@media (max-width: 559px) { .mx-ribbon { font-size: 0.64rem; letter-spacing: 0.08em; padding: 8px 10px; } }

/* ------------------------------------------------------------------ portraits: medallions and a bestiary row */
/* the round frame of a portrait: the sprite (at a whole multiple) centred in it */
.mx-portrait { display: grid; place-items: center; overflow: hidden; }
.mx-medals { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mx-medals-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mx-medals-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mx-medal { display: grid; justify-items: center; align-content: start; gap: 4px; height: 100%; padding: 12px 6px 14px; text-align: center; text-decoration: none; color: var(--ink); transition: transform 0.15s; }
.mx-medal .mx-portrait { width: 88px; height: 88px; margin-bottom: 4px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #5a3c22 0%, #2a1c10 70%); box-shadow: 0 0 0 2px #b8955a, 0 0 0 5px rgba(224, 169, 59, 0.35), inset 0 0 18px rgba(0, 0, 0, 0.6); }
.mx-medal .mx-portrait .mx-sprite { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6)); }
.mx-medal h3 { font-size: 0.92rem; line-height: 1.15; }
.mx-medal .mx-chip { margin-top: 2px; }
.mx-medal-sub { font-size: 0.8rem; line-height: 1.2; color: var(--ink-soft); }
a.mx-medal:hover { transform: translateY(-2px); }
.mx-medal.is-boss .mx-portrait { background: radial-gradient(circle at 50% 45%, #6e1414 0%, #2a0c0c 72%); box-shadow: 0 0 0 2px #e0a93b, 0 0 0 5px rgba(156, 28, 28, 0.55), 0 0 26px rgba(255, 80, 60, 0.35), inset 0 0 18px rgba(0, 0, 0, 0.6); }
.mx-bestiary { list-style: none; margin: 0; padding: 4px 4px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: 108px; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-color: rgba(224, 169, 59, 0.5) transparent; }
.mx-bestiary > li { scroll-snap-align: start; }
.mx-bestiary a { display: grid; justify-items: center; align-content: start; gap: 2px; height: 100%; padding: 10px 6px 12px; text-align: center; text-decoration: none; color: var(--ink); border-radius: 10px; background: radial-gradient(ellipse at 50% 28%, #fdf4dc 0%, #f1e1bb 62%, #e2c995 100%); border: 1px solid #b8955a; box-shadow: 0 0 0 3px rgba(42, 31, 22, 0.9), 0 0 0 4px rgba(224, 169, 59, 0.42), 0 10px 22px rgba(0, 0, 0, 0.45); transition: transform 0.15s; }
.mx-bestiary a:hover { transform: translateY(-2px); }
.mx-bestiary .mx-portrait { height: 66px; place-items: end center; }
.mx-bestiary b { font-weight: 600; font-size: 0.95rem; line-height: 1.12; }
.mx-bestiary small { font-size: 0.8rem; line-height: 1.2; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .mx-medals { gap: 18px; margin-bottom: 18px; }
  .mx-medals-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mx-medal { padding: 18px 12px 18px; }
  .mx-medal .mx-portrait { width: 136px; height: 136px; }
  .mx-medal h3 { font-size: 1.15rem; }
  .mx-medal-sub { font-size: 0.92rem; }
  .mx-bestiary { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); grid-auto-columns: auto; overflow: visible; padding: 0; }
  .mx-bestiary a { padding: 10px 4px 12px; }
}

/* ------------------------------------------------------------------ colour cards: variants and what they gain and lose */
.mx-colours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mx-colour { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 12px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--mx-panel); border: 1px solid var(--line-c, var(--line)); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 22px var(--soft-c, transparent), inset 0 0 26px var(--faint-c, transparent); }
.mx-colour .mx-portrait { grid-row: span 3; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle, var(--faint-c, transparent) 0%, rgba(0, 0, 0, 0.35) 70%); border: 1px solid var(--line-c, var(--line)); }
.mx-colour h3 { font-size: 1.2rem; color: var(--c, var(--gold-hi)); text-shadow: 0 0 14px var(--soft-c, transparent); }
.mx-colour-tag { font: 700 0.68rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.mx-colour ul { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 2px; font-size: 0.98rem; line-height: 1.25; }
.mx-up { color: var(--text); }
.mx-up::before { content: "\25B2"; display: inline-block; width: 1.3em; font-size: 0.8em; color: var(--mx-up); }
.mx-down { color: var(--text-dim); }
.mx-down::before { content: "\25BC"; display: inline-block; width: 1.3em; font-size: 0.8em; color: var(--mx-down); }
/* the colours (the five auras of the client's mutants, canvas.js; and the hazards) */
.mx-colour.is-red { --c: #ff5a4a; --line-c: rgba(160, 0, 0, 0.9); --soft-c: rgba(200, 0, 0, 0.35); --faint-c: rgba(160, 0, 0, 0.18); }
.mx-colour.is-purple { --c: #c38bff; --line-c: rgba(155, 48, 255, 0.85); --soft-c: rgba(155, 48, 255, 0.32); --faint-c: rgba(155, 48, 255, 0.16); }
.mx-colour.is-gold { --c: #ffd24d; --line-c: rgba(255, 191, 0, 0.85); --soft-c: rgba(255, 191, 0, 0.3); --faint-c: rgba(255, 191, 0, 0.14); }
.mx-colour.is-orange { --c: #ff9a4d; --line-c: rgba(255, 106, 0, 0.85); --soft-c: rgba(255, 106, 0, 0.32); --faint-c: rgba(255, 106, 0, 0.15); }
.mx-colour.is-blue { --c: #6fe0ff; --line-c: rgba(0, 200, 255, 0.85); --soft-c: rgba(0, 200, 255, 0.3); --faint-c: rgba(0, 200, 255, 0.14); }
.mx-colour.is-cold { --c: var(--mx-cold); --line-c: rgba(143, 214, 255, 0.8); --soft-c: rgba(143, 214, 255, 0.28); --faint-c: rgba(143, 214, 255, 0.12); }
.mx-colour.is-rad { --c: var(--mx-rad); --line-c: rgba(168, 227, 99, 0.8); --soft-c: rgba(168, 227, 99, 0.28); --faint-c: rgba(168, 227, 99, 0.12); }
@media (min-width: 560px) { .mx-colours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .mx-colours-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mx-colours-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mx-colours-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mx-colours { gap: 14px; }
  .mx-colour { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 18px 12px; }
  .mx-colour .mx-portrait { grid-row: auto; width: 100px; height: 100px; margin-bottom: 6px; }
  .mx-colour ul { justify-items: center; }
}

/* ------------------------------------------------------------------ posters: a quest or an NPC with its reward */
.mx-group-title { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; font: 700 0.8rem var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.mx-group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.mx-group-title:first-child { margin-top: 0; }
.mx-posters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.mx-poster { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 2px 12px; align-items: start; padding: 12px 14px 14px; scroll-margin-top: 80px; }
/* the NPC in its medallion: room for a sprite of 64 px (a 32 px NPC at x2) inside the border */
.mx-npc { grid-row: span 3; width: 68px; height: 68px; overflow: hidden; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fdf4dc 0%, #e6cf9f 70%, #c9a86a 100%); border: 2px solid #b8955a; box-shadow: 0 0 0 3px rgba(224, 169, 59, 0.45), inset 0 2px 8px rgba(58, 36, 20, 0.35); }
.mx-poster .mx-who { margin: 0; font: 700 0.7rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gem); }
.mx-poster h4 { margin: 0; font-size: 1.14rem; line-height: 1.15; color: var(--ink); }
.mx-poster .mx-hook { margin: 2px 0 0; font-style: italic; line-height: 1.35; color: var(--ink-soft); }
.mx-poster a { color: var(--gem); }
.mx-reward { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(160, 120, 60, 0.5); }
.mx-reward-label { font: 700 0.68rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.mx-reward-name { font-weight: 600; color: var(--ink); line-height: 1.2; }
.mx-reward .mx-chip { margin-left: auto; }
/* the quest that opens a place: the golden edge, and what it opens with its picture */
.mx-poster.is-feature { box-shadow: 0 0 0 4px rgba(42, 31, 22, 0.9), 0 0 0 5px var(--gold-hi), 0 0 30px rgba(255, 200, 90, 0.22), 0 20px 44px rgba(0, 0, 0, 0.55); }
.mx-opens { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: linear-gradient(180deg, rgba(255, 229, 150, 0.55), rgba(224, 169, 59, 0.28)); border: 1px solid rgba(160, 110, 10, 0.5); color: var(--ink); }
.mx-opens b { font-family: var(--display); }
.mx-opens span { line-height: 1.3; }
.mx-thumb { flex: none; width: 96px; height: 67px; border-radius: 5px; border: 2px solid #8a5d14; box-shadow: 0 4px 10px rgba(58, 36, 20, 0.35); object-fit: cover; }
@media (min-width: 900px) {
  .mx-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .mx-poster { grid-template-columns: 76px minmax(0, 1fr); gap: 2px 14px; padding: 14px 16px 16px; }
  .mx-npc { width: 76px; height: 76px; }
  .mx-thumb { width: 120px; height: 84px; }
}

/* ------------------------------------------------------------------ boxes: a fact apart, the number that rules, a rule */
.mx-aside { margin-top: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 14px 16px; border-radius: 9px; background: var(--mx-panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.08), 0 12px 26px rgba(0, 0, 0, 0.45); }
.mx-aside > .mx-sprite { grid-row: span 2; justify-self: center; }
.mx-aside h3 { font-size: 1.05rem; color: var(--gold-hi); }
.mx-aside p { margin: 0; color: var(--text-dim); line-height: 1.4; }
.mx-aside p b { color: var(--text); font-family: var(--display); font-size: 0.92rem; }
/* the one number that rules, huge (like the level of a character page) */
.mx-bignum { display: grid; justify-items: center; gap: 4px; margin: 0; text-align: center; }
.mx-bignum b { font: 800 clamp(2.8rem, 13vw, 5rem)/0.95 var(--display); color: var(--gold-hi); text-shadow: 0 0 30px rgba(255, 190, 90, 0.35), 0 4px 18px rgba(0, 0, 0, 0.7); }
.mx-bignum span { max-width: 36ch; color: var(--text-dim); font-size: 1.08rem; }
/* a rule as a card: its picture in a red medallion, when it happens, its effects and what never happens */
.mx-rule { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 14px; }
.mx-rule > .mx-effects, .mx-rule > .mx-never { grid-column: 1 / -1; }
.mx-rule-art { position: relative; justify-self: center; width: 128px; height: 128px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #5c1a12 0%, #2a0c0a 64%, #170707 100%); box-shadow: 0 0 0 3px #b8955a, 0 0 0 7px rgba(156, 28, 28, 0.5), 0 0 40px rgba(255, 70, 50, 0.35), inset 0 0 26px rgba(0, 0, 0, 0.7); }
.mx-rule-when { margin: 0; font-size: 1.06rem; line-height: 1.4; color: var(--ink); }
.mx-rule-when b { font-family: var(--display); color: var(--gem); }
.mx-effects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mx-effects li { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.36); border: 1px solid rgba(160, 120, 60, 0.3); }
.mx-effects b { font: 800 1.5rem/1.05 var(--display); color: var(--gem); }
.mx-effects b.is-word { font-size: 1.1rem; line-height: 1.35; }
.mx-effects span { font-size: 0.92rem; line-height: 1.25; color: var(--ink-soft); }
.mx-never { margin: 0; padding: 10px 14px; border-radius: 8px; background: rgba(156, 28, 28, 0.08); border: 1px solid rgba(156, 28, 28, 0.25); color: var(--ink); font-size: 0.98rem; }
.mx-never b { margin-right: 6px; font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gem); }
@media (min-width: 900px) {
  .mx-rule { grid-template-columns: 240px minmax(0, 1fr); gap: 18px 30px; padding: 26px 28px; }
  .mx-rule-art { grid-row: span 3; width: 220px; height: 220px; }
  .mx-rule > .mx-effects, .mx-rule > .mx-never { grid-column: auto; }
  .mx-effects { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ three levels side by side (copper, silver, gold) */
.mx-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mx-tier { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 0 3px 12px; overflow: hidden; text-align: center; }
/* three slots of the game fit a third of a phone with their gaps tight */
.mx-tier .mx-slots { gap: 2px; }
.mx-tier-band { justify-self: stretch; padding: 7px 4px; font: 700 0.7rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: #2b1a06; background: var(--tier-band, var(--gold)); border-bottom: 1px solid rgba(0, 0, 0, 0.25); }
.mx-tier-price { font: 800 clamp(0.95rem, 4.2vw, 2.2rem)/1 var(--display); color: var(--ink); white-space: nowrap; }
.mx-tier p { margin: 0; font-size: 0.9rem; line-height: 1.25; color: var(--ink-soft); }
.mx-tier p b { color: var(--ink); }
.mx-after { margin: 16px auto 0; max-width: 62ch; text-align: center; color: var(--text-dim); }
.mx-after b { color: var(--text); font-weight: 600; }
@media (min-width: 900px) {
  .mx-tiers { gap: 24px; }
  .mx-tier { gap: 12px; padding: 0 16px 20px; }
  .mx-tier .mx-slots { gap: 8px; }
  .mx-tier-band { font-size: 0.85rem; letter-spacing: 0.18em; padding: 10px; }
  .mx-tier p { font-size: 1rem; }
}

/* ------------------------------------------------------------------ families of things, one colour each (the imbuements) */
.mx-legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; margin: -6px 0 18px; color: var(--text-dim); font-size: 0.98rem; }
.mx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mx-legend i, .mx-v3 i::after { display: inline-block; width: 18px; height: 4px; border-radius: 2px; background: var(--dot); }
.mx-legend .k-basic, .mx-v3 i:nth-child(1) { --dot: #d38b52; }
.mx-legend .k-intricate, .mx-v3 i:nth-child(2) { --dot: #b9c2cc; }
.mx-legend .k-powerful, .mx-v3 i:nth-child(3) { --dot: #f0be45; }
.mx-fams { display: grid; gap: 16px; }
.mx-fam { overflow: hidden; }
.mx-fam > header { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 12px; padding: 10px 16px 10px 10px; background: var(--fam, linear-gradient(90deg, #5c3f0b, #a07322)); border-bottom: 1px solid rgba(0, 0, 0, 0.3); }
.mx-fam > header > .mx-sprite { grid-row: span 2; justify-self: center; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.45)); }
.mx-fam h3 { font-size: 1.22rem; color: #fff3d6; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.mx-fam > header p { margin: 0; font-size: 0.95rem; line-height: 1.3; color: rgba(255, 243, 214, 0.9); }
.fam-damage { --fam: linear-gradient(90deg, #6e1f0e, #b4431c); }
.fam-leech { --fam: linear-gradient(90deg, #4f0c1d, #962039); }
.fam-guard { --fam: linear-gradient(90deg, #1d3550, #3a6690); }
.fam-move { --fam: linear-gradient(90deg, #173f3b, #2b7568); }
.fam-skill { --fam: linear-gradient(90deg, #5c3f0b, #a07322); }
.mx-imbs { list-style: none; margin: 0; padding: 4px 12px 8px; }
.mx-imb { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid rgba(160, 120, 60, 0.22); }
.mx-imb:last-child { border-bottom: 0; }
.mx-imb-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #fff8e6 0%, #ecd8ad 62%, #d9bd85 100%); box-shadow: inset 0 0 0 1px #c9a86b, 0 3px 8px rgba(80, 50, 20, 0.22); }
.mx-imb-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; margin: 0; }
.mx-imb-top b { font: 700 1.05rem var(--display); }
.mx-imb-what { margin: 2px 0 0; font-size: 0.95rem; line-height: 1.35; color: var(--ink-soft); }
.mx-imb-what a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px dotted rgba(106, 74, 46, 0.6); }
.mx-imb-what a:hover { color: var(--gem); border-bottom-color: var(--gem); }
/* the three values of the levels, each over its colour */
.mx-v3 { display: inline-flex; align-items: baseline; gap: 4px; font: 800 1.08rem/1 var(--display); color: var(--ink); white-space: nowrap; }
.mx-v3 i { display: inline-grid; justify-items: center; gap: 3px; font-style: normal; }
.mx-v3 i::after { content: ""; }
.mx-off { margin: 0; padding: 10px 12px 12px; border-top: 1px dashed rgba(160, 120, 60, 0.45); color: var(--ink-soft); font-size: 0.95rem; }
.mx-off .tag { margin-right: 6px; }
@media (min-width: 900px) {
  .mx-fams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
  .mx-fam-wide { grid-column: 1 / -1; }
  .mx-fam-wide .mx-imbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .mx-fam-wide .mx-imb:nth-last-child(-n+2) { border-bottom: 0; }
  .mx-imbs { padding: 6px 18px 10px; }
  .mx-v3 { font-size: 1.18rem; }
}
@media (min-width: 1100px) { .mx-fams { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mx-fam-wide { grid-column: span 2; } }

/* ------------------------------------------------------------------ the closing card: the home page's .final, with a creature on its edge */
.mx-related { justify-content: center; margin-top: 18px; }
.mx-related .pill { color: var(--text); background: rgba(20, 14, 9, 0.8); border-color: var(--line); }
.mx-related .pill:hover { color: var(--gold-hi); background: rgba(224, 169, 59, 0.16); }
.mx-final { margin-top: 64px; padding: 30px 18px 32px; }
/* a creature taller than about 100 px needs more room above the card */
.mx-final.is-tall { margin-top: 110px; }
.mx-final .eyebrow { color: var(--gem); }
/* the creature stands on the top edge, at the right: its feet a little below the edge, whatever its size */
.final .mx-peek { position: absolute; right: 14px; top: 0; transform: translateY(calc(-100% + 10px)); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.45)); pointer-events: none; }
/* the note of where the numbers come from, on the dark of the last band (its markup stays <p class="note">) */
.mx-band-end > .wrap > .note { margin: 22px auto 0; max-width: 60ch; text-align: center; color: var(--text-faint); }
@media (min-width: 560px) { .final .mx-peek { right: 26px; } }
@media (min-width: 900px) { .mx-final { padding: 40px 28px 44px; } .final .mx-peek { right: 40px; } }
/* the hub's closing card is the home page's: between 900 and 1255 px its spider would stand past the screen's edge */
@media (min-width: 900px) and (max-width: 1255px) { .mx-final .spider { left: -14px; } }

/* ------------------------------------------------------------------ the narrowest phones, and less motion */
@media (max-width: 379px) {
  /* the picture keeps room for a well of three slots */
  .mx-flow > li { grid-template-columns: 124px minmax(0, 1fr); }
  .mx-slots { gap: 4px; }
  .mx-stat span { font-size: 0.9rem; }
  .mx-tile-body b { font-size: 0.86rem; overflow-wrap: anywhere; }

  .mx-medal .mx-portrait { width: 72px; height: 72px; }
  .mx-term b { white-space: normal; }
  .mx-medal h3 { font-size: 0.82rem; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
}
/* three levels one under the other below 390 px: their slots do not fit a third of the screen */
@media (max-width: 389px) { .mx-tiers { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .mx-hero-emblem { animation: none; }
  .mx-tile, .mx-tile-pic img, .mx-medal, .mx-bestiary a { transition: none; }
}

/* TabTibia shorts (2026-11-15, views/shorts.js + shorts.js): the feed is one short a screen, snapping like TikTok, on a
   phone (the video fills the screen, the actions on its right edge, the words over its foot) and on a desktop (the 9:16
   frame centred, the actions beside it); Explore, the chronicle and "more of" are grids of posters */
.is-shorts { --nav-h: 61px; --bar-h: 53px; }
@media (min-width: 900px) { .is-shorts { --nav-h: 67px; } }
.is-shorts footer { display: none; }
.is-shorts .scenery::after { background: rgba(8, 6, 12, 0.86); }
.shorts-bar { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 15; background: rgba(12, 9, 8, 0.92); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.shorts-bar-in { display: flex; align-items: center; gap: 14px; height: calc(var(--bar-h) - 1px); overflow-x: auto; scrollbar-width: none; }
.shorts-bar-in::-webkit-scrollbar { display: none; }
.shorts-tabs { display: flex; gap: 18px; flex: none; }
.shorts-tabs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-dim); font: 700 0.86rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent; }
.shorts-tabs a[aria-current="page"] { color: var(--gold-hi); border-bottom-color: var(--gold-hi); }
.shorts-tabs-page { justify-content: center; width: max-content; max-width: 100%; margin: 0 auto 12px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 10, 8, 0.86); }
.shorts-filters { flex-wrap: nowrap; margin: 0; }
.shorts-bar .pill { flex: none; color: var(--text); background: rgba(255, 255, 255, 0.06); border-color: var(--line); }
.shorts-bar .pill:hover { color: var(--ink); }
.shorts-explore .shorts-filters, .chronicle .shorts-filters { flex-wrap: wrap; justify-content: center; margin: 4px 0 18px; }
.shorts-explore .pill, .chronicle .pill { color: var(--text); background: rgba(20, 14, 8, 0.6); border-color: var(--line); }
.shorts-explore .pill:hover, .chronicle .pill:hover { color: var(--ink); }

.shorts-feed { --feed-h: calc(100vh - var(--nav-h) - var(--bar-h) - env(safe-area-inset-top, 0px)); height: var(--feed-h); overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
@supports (height: 100svh) { .shorts-feed { --feed-h: calc(100svh - var(--nav-h) - var(--bar-h) - env(safe-area-inset-top, 0px)); } }
.shorts-feed::-webkit-scrollbar { display: none; }
.shorts-feed > .short { position: relative; height: var(--feed-h); scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: center; }
.shorts-feed > .shorts-more { display: flex; margin: 24px auto; width: max-content; scroll-snap-align: end; }
.short-frame { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; }
.short-media { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
img.short-media { image-rendering: auto; }
/* the other view of a short while it gets ready under the one on screen (shorts.js toggleView) */
.short-next { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.is-switching .js-view svg { animation: short-view-busy 0.9s ease-in-out infinite; }
@keyframes short-view-busy { 50% { opacity: 0.35; } }
::view-transition-group(short-frame) { animation-duration: 0.28s; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
::view-transition-old(short-frame), ::view-transition-new(short-frame) { animation-duration: 0.28s; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
.short-tag { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 4px; font: 800 0.68rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: #fff4dc; background: var(--gem); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); pointer-events: none; }
.tag-level, .tag-picture { background: #2f5a24; }
.tag-fight { background: #8a5a12; }
.tag-death, .tag-death_pvp { background: #3a3440; }
.short-info { position: absolute; left: 0; right: 72px; bottom: 0; padding: 48px 14px calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.78) 45%); color: var(--text); text-shadow: 0 1px 3px #000; display: grid; gap: 2px; pointer-events: none; }
.short-info a { pointer-events: auto; }
.short-who { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.short-who a { font: 800 1.08rem var(--display); color: var(--gold-hi); text-decoration: none; }
.short-who span, .short-when, .short-detail { color: var(--text-dim); font-size: 0.95rem; margin: 0; }
.short-title { font: 700 1.18rem/1.25 var(--display); color: #fff3d6; }
.short-title a { color: inherit; text-decoration: none; }
.short-actions { position: absolute; right: 8px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 2; }
.short-avatar { display: block; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold-hi); background: #2a1d12; overflow: hidden; }
.short-avatar img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.short-act { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 56px; min-height: 56px; padding: 6px 4px; border: 0; border-radius: 12px; background: rgba(12, 10, 16, 0.74); color: var(--text); text-shadow: 0 1px 2px #000; font: 600 0.8rem var(--body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.short-act svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.short-act:hover { color: var(--gold-hi); }
.short-act .ico-on, .sound-on .short-act .ico-off, .short-act .ico-vertical, .is-wide .short-act .ico-wide { display: none; }
.sound-on .short-act .ico-on, .is-wide .short-act .ico-vertical { display: block; }
.js-sound[aria-pressed="true"], .js-view[aria-pressed="true"] { color: var(--gold-hi); }
.short-frame.is-paused::after { content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23ffd36b'/%3E%3C/svg%3E") center / 40px no-repeat; pointer-events: none; }
.shorts-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 8px; background: rgba(14, 10, 8, 0.96); border: 1px solid var(--line); color: var(--text); max-width: calc(100% - 32px); overflow-wrap: anywhere; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.shorts-more.is-loading { opacity: 0.7; pointer-events: none; }
.shorts-empty { margin-top: 28px; display: grid; gap: 10px; text-align: center; }
.shorts-empty p { margin: 0; }

@media (min-width: 900px) {
  .shorts-feed > .short { align-items: center; gap: 18px; padding: 14px 0; }
  .shorts-feed .short-frame { width: auto; height: 100%; aspect-ratio: 9 / 16; border-radius: 12px; box-shadow: 0 0 0 4px rgba(42, 31, 22, 0.9), 0 0 0 5px rgba(224, 169, 59, 0.6), 0 24px 50px rgba(0, 0, 0, 0.6); }
  .shorts-feed .is-wide .short-frame { aspect-ratio: 1440 / 1056; height: auto; width: min(100% - 120px, (var(--feed-h) - 28px) * 1440 / 1056); }
  .short-info { right: 0; }
  .short-actions { position: static; align-self: flex-end; margin-bottom: 18px; }
}

/* The feed, 2026-11-16 (user: "que se vea a pantalla completa y que al deslizar hacia abajo pases al siguiente ... como
   lo tiene minibia"): the tag goes with the time, the avatar with the name, a line shows how far the video has played,
   and the last screen says there is nothing older. On a phone the feed is the whole screen: the website's menu and the
   bar of filters give way to a bar over the video (emblem, tabs, filters, sound) and the video fills the screen. On a
   desktop the frame stays in the middle, with buttons and the wheel moving one short at a time */
.short-when .short-tag { position: static; display: inline-block; margin-right: 8px; padding: 3px 8px; font-size: 0.62rem; vertical-align: 1px; box-shadow: none; }
.shorts-feed .short-who { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 10px; }
.shorts-feed .short-who .short-avatar { grid-row: span 2; width: 42px; height: 42px; border-width: 1.5px; pointer-events: auto; }
.shorts-feed .short-who a:not(.short-avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shorts-feed .short-who span { font-size: 0.88rem; }
.short-info { transition: opacity 0.35s ease, transform 0.35s ease; }
.is-quiet .short-info { opacity: 0; transform: translateY(14px); transition-duration: 0.6s; }
.is-quiet .short-info a { pointer-events: none; }
@media (hover: hover) { .is-quiet:hover .short-info { opacity: 1; transform: none; } .is-quiet:hover .short-info a { pointer-events: auto; } }
.shorts-feed { transition: transform 0.18s ease-in, opacity 0.18s ease-in; }
.shorts-feed.is-leaving { transform: translateX(-28%); opacity: 0.4; }
@media (prefers-reduced-motion: reduce) { .short-info, .shorts-feed { transition: none; } }
.short-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.18); pointer-events: none; }
.short-progress span { display: block; height: 100%; width: 100%; background: var(--gold-hi); transform: scaleX(0); transform-origin: left center; }
.shorts-feed > .short-end { height: var(--feed-h); scroll-snap-align: start; display: grid; place-items: center; padding: 24px 16px; text-align: center; }
.short-end-in { display: grid; justify-items: center; gap: 12px; max-width: 26rem; }
.short-end-in h2 { margin: 0; color: #fff3d6; font-size: 1.5rem; }
.short-end-in p { margin: 0; color: var(--text-dim); }
.short-end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.shorts-top, .shorts-steps { display: none; }
.shorts-hint { position: fixed; left: 50%; top: 40%; z-index: 30; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 12px 18px; border-radius: 14px; background: rgba(10, 8, 12, 0.82); color: #fff3d6; font: 700 0.95rem var(--display); text-align: center; text-shadow: 0 1px 2px #000; pointer-events: none; animation: shorts-hint-in 0.3s ease-out; }
.shorts-hint[hidden] { display: none; }
.shorts-hint::before { content: ""; width: 28px; height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd36b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; animation: shorts-hint-bob 1.1s ease-in-out infinite; }
@keyframes shorts-hint-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.shorts-hint { max-width: min(16rem, calc(100% - 64px)); }
@keyframes shorts-hint-bob { 0%, 100% { transform: translateY(4px); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .shorts-hint, .shorts-hint::before { animation: none; } }

@media (max-width: 899px) {
  .is-feed { overflow: hidden; }
  .is-feed .nav, .is-feed .shorts-bar { display: none; }
  .is-feed .shorts-feed { --feed-h: 100vh; position: fixed; inset: 0; z-index: 10; height: var(--feed-h); background: #000; }
  @supports (height: 100dvh) { .is-feed .shorts-feed { --feed-h: 100dvh; } }
  .is-feed .short-media { object-fit: cover; }
  .is-feed .is-wide .short-media { object-fit: contain; }
  .is-feed .short-info { right: 76px; padding: 90px 14px calc(18px + env(safe-area-inset-bottom, 0px)); padding-left: max(14px, env(safe-area-inset-left, 0px)); background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62) 40%, rgba(0, 0, 0, 0.8)); }
  .is-feed .short-progress { bottom: env(safe-area-inset-bottom, 0px); }
  .is-feed .short-actions { right: max(10px, env(safe-area-inset-right, 0px)); bottom: calc(118px + env(safe-area-inset-bottom, 0px)); }
  .is-feed .short-actions .js-sound { display: none; }
  .is-feed .short-act { background: transparent; min-width: 54px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9)); }
  .is-feed .short-act svg { width: 32px; height: 32px; }
  .is-feed .shorts-top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 6px; padding: calc(8px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 28px max(10px, env(safe-area-inset-left, 0px)); background: linear-gradient(180deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0)); pointer-events: none; }
  .is-feed .shorts-top > * { pointer-events: auto; }
  .shorts-top-home { flex: none; display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; }
  .shorts-top-home img { width: 34px; height: 34px; filter: drop-shadow(0 1px 3px #000); }
  .shorts-top-tabs { flex: 1; display: flex; justify-content: center; gap: 18px; min-width: 0; }
  .shorts-top-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: rgba(255, 243, 214, 0.72); font: 700 0.9rem var(--display); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; text-shadow: 0 1px 3px #000; border-bottom: 2px solid transparent; }
  .shorts-top-tabs a[aria-current="page"] { color: #fff3d6; border-bottom-color: var(--gold-hi); }
  .shorts-top-btn { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff3d6; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9)); }
  .shorts-top-btn::-webkit-details-marker { display: none; }
  .shorts-top-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .shorts-top-btn span { display: none; }
  .shorts-top-btn .ico-on, .sound-on .shorts-top-btn .ico-off { display: none; }
  .sound-on .shorts-top-btn .ico-on { display: block; }
  .shorts-top-btn.is-on, .shorts-top-filter[open] .shorts-top-btn { color: var(--gold-hi); }
  .shorts-top-filter { position: relative; flex: none; }
  .shorts-top-menu { position: absolute; top: calc(100% + 6px); right: -44px; width: max-content; max-width: calc(100vw - 20px); padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 10, 8, 0.96); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6); }
  .shorts-top-menu .shorts-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .shorts-top-menu .pill { justify-content: center; min-height: 44px; color: var(--text); background: rgba(255, 255, 255, 0.06); border-color: var(--line); }
  .shorts-top-menu .pill[aria-current="true"] { color: var(--ink); background: var(--gold-hi); border-color: var(--gold-hi); }
}

@media (min-width: 900px) {
  .is-feed .shorts-steps { position: fixed; right: max(24px, env(safe-area-inset-right, 0px)); top: calc(50% + (var(--nav-h) + var(--bar-h)) / 2); z-index: 16; display: flex; flex-direction: column; gap: 12px; transform: translateY(-50%); }
  .shorts-step { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(14, 10, 8, 0.86); color: var(--text); cursor: pointer; transition: color 0.15s, border-color 0.15s, opacity 0.15s; }
  .shorts-step:hover:not(:disabled) { color: var(--gold-hi); border-color: var(--gold); }
  .shorts-step:disabled { opacity: 0.35; cursor: default; }
  .shorts-step svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .shorts-feed .short-info { padding-bottom: 18px; }
}

/* the grids: Explore, a chronicle, more of a character */
.short-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .short-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .short-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.short-card { display: flex; flex-direction: column; min-width: 0; border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text); background: linear-gradient(180deg, rgba(36, 26, 18, 0.94), rgba(18, 13, 10, 0.96)); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); transition: transform 0.15s, border-color 0.15s; }
.short-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.short-card-pic { position: relative; display: block; aspect-ratio: 9 / 16; background: #000; }
.short-card-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.short-card .short-tag { top: 8px; left: 8px; font-size: 0.6rem; }
.short-card-len { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 4px; background: rgba(0, 0, 0, 0.7); font-size: 0.85rem; }
.short-card-text { display: grid; gap: 2px; padding: 10px 12px 12px; }
.short-card-text strong { font: 700 0.95rem/1.25 var(--display); color: #fff3d6; overflow-wrap: anywhere; }
.short-card-text span { font-size: 0.88rem; color: var(--text-dim); }
.shorts-more:not(.shorts-feed > .shorts-more) { display: flex; width: max-content; margin: 22px auto 0; }
.shorts-h2 { margin: 30px 0 14px; color: #fff3d6; font-size: 1.3rem; text-align: center; }

/* the page of one short */
.short-back { display: inline-block; margin: 6px 0 14px; }
.short-layout { display: grid; gap: 22px; align-items: start; }
.short-single { position: relative; display: flex; justify-content: center; }
.short-single .short-frame { width: min(100%, 420px); height: auto; aspect-ratio: 9 / 16; border-radius: 12px; box-shadow: 0 0 0 4px rgba(42, 31, 22, 0.9), 0 0 0 5px rgba(224, 169, 59, 0.6), 0 24px 50px rgba(0, 0, 0, 0.6); }
.short-single.is-wide .short-frame { width: 100%; aspect-ratio: 1440 / 1056; }
.short-single .short-actions { right: 8px; bottom: 72px; }
.short-side { display: grid; gap: 18px; min-width: 0; }
.short-card-info .short-info { position: static; padding: 0; background: none; text-shadow: none; color: var(--ink); pointer-events: auto; }
.short-card-info .short-who a { color: #7a1414; }
.short-card-info .short-who span, .short-card-info .short-when, .short-card-info .short-detail { color: var(--ink-soft); }
.short-card-info .short-title { color: var(--ink); font-size: 1.4rem; }
.short-side-links { margin-top: 12px; }
.short-other h3, .short-how h3 { margin-bottom: 10px; }
.short-other .short-grid { grid-template-columns: minmax(0, 160px); }
.short-how p { margin: 0; }
@media (min-width: 900px) {
  .short-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .short-single .short-actions { position: absolute; right: -4px; }
  .short-single:not(.is-wide) { padding-right: 76px; }
}

/* the chronicle of a character */
.char-chronicle { margin: 4px 0 16px; }
.chronicle-head { margin-bottom: 18px; }
.chronicle-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 16px 0 0; }
.chronicle-stats div { min-width: 0; padding: 8px 2px; border: 1px solid #b8955a; border-radius: 8px; background: rgba(255, 255, 255, 0.3); text-align: center; }
.chronicle-stats dt { font: 700 0.56rem var(--display); letter-spacing: 0.04em; overflow-wrap: anywhere; text-transform: uppercase; color: var(--ink-soft); }
.chronicle-stats dd { margin: 2px 0 0; font: 800 1.3rem var(--display); color: var(--ink); }
@media (min-width: 640px) { .chronicle-stats { gap: 10px; } .chronicle-stats div { padding: 10px 8px; } .chronicle-stats dt { font-size: 0.7rem; letter-spacing: 0.08em; } .chronicle-stats dd { font-size: 1.6rem; } }
.page-card a.btn-gold { color: #2b1a06; }
.chronicle-empty { text-align: center; }

/* TabTibia account area (2026-11-16, views/account.js): the sign-in beside "new to TabTibia", the account (its summary
   on the left from 900 px, the characters and the security on parchment), the forms in one narrow card, the videos and
   pictures of a character in a grid with their state on each. Forms on parchment: the search box's inputs */
.nav-account { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 42px; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(20, 14, 8, 0.6); color: var(--gold-hi); font: 700 0.76rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.nav-account svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-account span { display: none; }
.nav-account:hover, .nav-account[aria-current] { background: rgba(224, 169, 59, 0.14); border-color: rgba(255, 211, 107, 0.65); }
@media (min-width: 1100px) { .nav-account span { display: inline; } }

.acct { display: grid; gap: 22px; padding-bottom: 56px; }
.acct-narrow { width: min(560px, 100% - 32px); }
.acct-card { display: grid; gap: 16px; padding: 24px 20px 26px; }
.acct-card > h2 { font-size: 1.35rem; text-align: center; }
.acct-lede { margin: 0; color: var(--ink-soft); text-align: center; }
.acct-auth { display: grid; gap: 22px; align-items: start; }
.acct-aside { justify-items: center; }
.acct-aside h3 { width: 100%; }
.acct-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--text); }
.acct-perks li { position: relative; padding-left: 24px; }
.acct-perks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); }

/* the forms */
.acct-form { display: grid; gap: 14px; }
.acct-field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.acct-field label, .acct-field legend { padding: 0; font: 700 0.76rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.acct-field input[type="text"], .acct-field input[type="password"], .acct-field input[type="email"] { width: 100%; min-height: 46px; font: 1.08rem var(--body); color: var(--ink); background: #fff8e8; border: 1px solid #b8955a; border-radius: 6px; padding: 8px 12px; }
.acct-field input:focus-visible { outline: 2px solid var(--gem); outline-offset: 2px; border-color: var(--gem); }
.acct-field input:user-invalid { border-color: var(--gem); box-shadow: 0 0 0 1px var(--gem); }
.acct-hint { margin: 0; font-size: 0.92rem; font-style: italic; color: var(--ink-soft); }
.acct-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.acct-options label { position: relative; display: block; cursor: pointer; }
.acct-options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.acct-options span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px; border: 1px solid #b8955a; border-radius: 6px; background: rgba(255, 255, 255, 0.35); font: 700 0.8rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.acct-options input:checked + span { color: #2b1a06; border-color: #6b4610; background: linear-gradient(180deg, #ffe596, #e3ad3d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.acct-options input:focus-visible + span { outline: 2px solid var(--gem); outline-offset: 2px; }
.acct-submit { width: 100%; margin-top: 4px; }
.acct-links { margin: 0; text-align: center; font-size: 0.98rem; color: var(--ink-soft); }
.acct-links a, .acct-card a:not(.btn), .acct-section a:not(.btn) { color: var(--gem); font-weight: 600; }
.acct-or { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font: 700 0.72rem var(--display); letter-spacing: 0.18em; text-transform: uppercase; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: rgba(106, 74, 46, 0.35); }
.acct-google { width: 100%; padding-inline: 14px; color: #2b2b2b; background: #fff; border: 1px solid #b8955a; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); font-size: 0.86rem; letter-spacing: 0.04em; white-space: nowrap; }
.acct-google:hover { background: #fffaf0; }
.acct-g { width: 20px; height: 20px; flex-shrink: 0; }
.btn-ghost-ink { color: var(--ink); border: 1px solid #a07c45; background: rgba(255, 255, 255, 0.4); }
.btn-ghost-ink:hover { background: rgba(255, 250, 234, 0.95); border-color: var(--gold); }
.btn-ghost-ink .acct-g { width: 16px; height: 16px; }
.btn[disabled] { opacity: 0.45; cursor: default; pointer-events: none; }
.acct-btn-danger { color: #fff4e6; background: linear-gradient(180deg, #b93a2a, #8a1d14); border: 1px solid #5a0f0a; box-shadow: inset 0 1px 0 rgba(255, 200, 180, 0.4), 0 6px 16px rgba(0, 0, 0, 0.35); }
.acct-btn-danger:hover { filter: brightness(1.1); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-actions .btn { flex: 1 1 180px; }
.acct-inline { padding-top: 14px; border-top: 1px dashed rgba(106, 74, 46, 0.35); }
.acct-current { margin: 0; text-align: center; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* the messages */
.acct-note { margin: 0; padding: 12px 14px 12px 40px; position: relative; border-radius: 6px; font-weight: 600; overflow-wrap: anywhere; }
.acct-note::before { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 800 0.75rem var(--body); color: #fff; }
.acct-note-ok { color: #1f4d22; background: rgba(46, 125, 50, 0.12); border: 1px solid rgba(46, 125, 50, 0.45); }
.acct-note-ok::before { content: "✓"; background: #2e7d32; }
.acct-note-error { color: #6e130f; background: rgba(156, 28, 28, 0.1); border: 1px solid rgba(156, 28, 28, 0.45); }
.acct-note-error::before { content: "!"; background: var(--gem); }
.acct-note-info { color: var(--ink); background: rgba(224, 169, 59, 0.18); border: 1px solid rgba(160, 110, 10, 0.45); }
.acct-note-info::before { content: "i"; background: #8a5a12; font-style: italic; }
.acct-main > .acct-note-ok, .acct-main > .acct-note-error, .acct-main > .acct-note-info, .acct > .acct-note { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.acct > .acct-note-ok, .acct-main > .acct-note-ok { background: #e4f1dd; }
.acct > .acct-note-error, .acct-main > .acct-note-error { background: #f6dcd6; }
.acct-main > .acct-note-info { background: #f6e6bf; }
.acct-back { justify-self: start; color: var(--gold-hi); font: 700 0.8rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.acct-back:hover { text-decoration: underline; }

/* the account */
.acct-grid { display: grid; gap: 22px; align-items: start; }
.acct-main { display: grid; gap: 22px; min-width: 0; }
.acct-summary dl { margin: 0; display: grid; gap: 10px; }
.acct-summary dl > div { display: grid; gap: 2px; min-width: 0; }
.acct-summary dt { font: 700 0.68rem var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.acct-summary dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.acct-summary .acct-premium { color: var(--gold-hi); font-weight: 600; }
.acct-summary form, .acct-summary .btn { width: 100%; }
.acct-logout { width: 100%; }
.acct-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.95em; }
.acct-section { display: grid; gap: 16px; padding: 22px 18px 24px; min-width: 0; }
.acct-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(106, 74, 46, 0.3); }
.acct-section-head h2 { font-size: 1.2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.acct-count { font: 700 0.72rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.acct-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font: 700 0.62rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 2px; color: #2c662f; background: rgba(46, 125, 50, 0.1); border: 1px solid rgba(46, 125, 50, 0.4); }
.acct-chars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.acct-char { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 12px; border: 1px solid #c9a96f; border-radius: 8px; background: rgba(255, 255, 255, 0.32); }
.acct-portrait { width: 64px; height: 64px; border-radius: 6px; background: radial-gradient(circle at 50% 60%, rgba(106, 74, 46, 0.22), rgba(106, 74, 46, 0.06)); border: 1px solid rgba(106, 74, 46, 0.3); }
.acct-char-info { display: grid; gap: 1px; min-width: 0; }
.acct-char-name { font: 800 1.08rem var(--display); color: var(--ink) !important; text-decoration: none; overflow-wrap: anywhere; }
.acct-char-name:hover { color: var(--gem) !important; }
.acct-char-line { color: var(--ink); font-weight: 600; }
.acct-char-meta { color: var(--ink-soft); font-size: 0.92rem; }
.acct-char-meta b { color: var(--gem); font-weight: 600; }
.acct-char-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.acct-char-actions .btn { flex: 1 1 auto; }
.acct-danger-link { color: var(--gem) !important; font: 700 0.76rem var(--display) !important; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 8px 4px; }
.acct-danger-link:hover { text-decoration: underline; }
.acct-sec-row { display: grid; gap: 10px; padding: 4px 0 14px; border-bottom: 1px dashed rgba(106, 74, 46, 0.3); }
.acct-sec-row:last-child { border-bottom: 0; padding-bottom: 0; }
.acct-sec-row h3 { font-size: 0.86rem; letter-spacing: 0.12em; text-transform: uppercase; }
.acct-sec-row p { margin: 4px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.acct-sec-row .acct-hint { font-size: 0.9rem; }
.acct-sec-action { display: flex; }
.acct-danger { display: grid; gap: 8px; padding: 14px 16px; border-left: 4px solid var(--gem); border-radius: 4px; background: rgba(156, 28, 28, 0.08); }
.acct-danger p { margin: 0; color: var(--ink); }
.acct-danger b { color: #6e130f; }

/* the videos and pictures of a character */
.acct-toolbar { display: grid; gap: 12px; }
.acct-optout { display: grid; gap: 6px 14px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 12px 14px; border: 1px solid #c9a96f; border-left: 4px solid #2e7d32; border-radius: 8px; background: rgba(255, 255, 255, 0.32); }
.acct-optout.is-off { border-left-color: var(--gem); }
.acct-optout-label { grid-column: 1; font: 700 0.74rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.acct-optout-text { grid-column: 1; color: var(--ink-soft); font-size: 0.95rem; }
.acct-optout form { grid-column: 2; grid-row: 1 / span 2; }
.acct-bulk { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-bulk form { flex: 1 1 140px; }
.acct-bulk .btn { width: 100%; }
.acct-shorts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.acct-short { display: grid; grid-template-rows: auto 1fr; min-width: 0; border: 1px solid #b8955a; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.35); transition: opacity 0.2s; }
.acct-short-pic { position: relative; aspect-ratio: 9 / 16; max-width: 100%; background: #1a120c; }
.acct-short-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.acct-short.is-hidden .acct-short-pic img { filter: grayscale(0.85) brightness(0.55); }
.acct-short-none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-dim); font-style: italic; }
.acct-short .short-tag { top: 8px; left: 8px; font-size: 0.6rem; }
.acct-state { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 4px; font: 800 0.6rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: #2e7d32; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.acct-state-hidden { background: #3a3530; color: #e8dcc6; }
.acct-short-body { display: grid; gap: 4px; align-content: start; padding: 10px; min-width: 0; }
.acct-short-title { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.acct-short-date { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.acct-short-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; }
.acct-short-actions form { flex: 1 1 auto; }
.acct-short-actions .btn { width: 100%; padding-inline: 10px; }
.acct-view { font: 700 0.72rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.acct-pager { display: flex; justify-content: space-between; gap: 12px; padding-top: 4px; font: 700 0.78rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.acct-pager a { text-decoration: none; }

@media (min-width: 560px) {
  .acct-card { padding: 30px 32px 32px; }
  .acct-section { padding: 26px 26px 28px; }
  .acct-char { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .acct-char-actions { grid-column: auto; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
  .acct-sec-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .acct-shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acct-toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .acct-bulk form { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .acct-auth { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); max-width: 940px; margin-inline: auto; width: 100%; }
  .acct-grid { grid-template-columns: 300px minmax(0, 1fr); }
  .acct-side { position: sticky; top: 90px; }
  .acct-shorts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .acct-shorts { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 379px) {
  .acct-optout { grid-template-columns: minmax(0, 1fr); }
  .acct-optout form { grid-column: 1; grid-row: auto; }
  .acct-short-body { padding: 8px; }
}

/* ====================================================================================================================
   The pages' own styles: one block per group, each written only by the work on that group (the shared pieces above
   stay as they are). A class of a page starts with mx-<page>- (mx-mining-...)
   ==================================================================================================================== */
/* mx-pages:server begin */
/* The group "The server" (web152): Server info, PvP & skulls, Death & blessings, Trade & money. Only what the shared
   pieces do not cover: the arrow links on parchment, the lines of the split cards, the questions, the colours of the
   skulls' ladder, the counters of the unjustified kills, the No-PvP rule in the green of its status icon, the equipment
   doll and the purse. No sprite size here: the views write them */
/* an arrow at the end of a line, on parchment (the site's red) */
.mx-server-go { color: var(--gem); font-weight: 600; text-decoration: none; white-space: nowrap; }
.mx-server-go:hover, .mx-server-go:focus-visible { text-decoration: underline; }
/* short lines with a mark in the colour of their card (free | premium, the rules of a panel, the market) */
.mx-server-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.mx-server-lines li { position: relative; padding-left: 20px; color: var(--ink); line-height: 1.35; }
.mx-server-lines li::before { content: ""; position: absolute; left: 3px; top: 0.45em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--accent, var(--gold)); box-shadow: 0 0 0 1px rgba(58, 36, 20, 0.35); }
.mx-server-lines b { font-family: var(--display); }

/* Server info: the experience and the promotion under the vocations' medals */
.mx-server-voc .mx-split { margin-top: 8px; }
/* the free account in the green of the site's "Free" tag */
.mx-server-premium .mx-half.is-free { --accent: #6fae55; --accent-ink: #2c662f; }
.mx-server-scrolls { display: inline-flex; align-items: flex-end; gap: 2px; margin-right: 8px; vertical-align: middle; }
/* the questions: one fold a question, on one parchment */
.mx-server-faq { max-width: 860px; margin: 0 auto; padding: 4px 18px; }
.mx-server-faq details + details { border-top: 1px solid rgba(160, 120, 60, 0.32); }
.mx-server-faq summary { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 0; cursor: pointer; list-style: none; font: 700 1.04rem/1.25 var(--display); color: var(--ink); -webkit-tap-highlight-color: transparent; }
.mx-server-faq summary::-webkit-details-marker { display: none; }
.mx-server-faq summary::after { content: "\25BE"; margin-left: auto; color: var(--gem); transition: transform 0.15s; }
.mx-server-faq details[open] > summary::after { transform: rotate(180deg); }
.mx-server-faq summary:hover { color: var(--gem); }
.mx-server-faq p { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.45; }

/* PvP: the colours of the skulls on their ladder */
.tier-pvp-green { --tier: linear-gradient(180deg, #9be37f, #2f8a2f); }
.tier-pvp-yellow { --tier: linear-gradient(180deg, #fff08a, #c7a20c); }
.tier-pvp-white { --tier: linear-gradient(180deg, #ffffff, #b3b3b3); }
.tier-pvp-red { --tier: linear-gradient(180deg, #ff7a66, #9c1c1c); }
/* on a phone a rung without a value keeps its text under its title (the ladder's third column is the value's) */
@media (max-width: 899px) { .mx-pvp-skulls .mx-rung > h3, .mx-pvp-skulls .mx-rung > p { grid-column: 2; } }
/* the length of a red skull in words ("15 days"): never broken, under its label in the narrow rungs of a desktop */
.mx-pvp-skulls .mx-rung-lvl b { white-space: nowrap; }
@media (min-width: 900px) { .mx-pvp-skulls .mx-rung-lvl { grid-auto-flow: row; gap: 2px; } .mx-pvp-skulls .mx-rung-lvl b { font-size: 1.9rem; } }
/* where nobody fights, and the rule for everywhere else */
.mx-pvp-safe { display: grid; gap: 8px; }
.mx-pvp-rest { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.mx-pvp-rest b { color: var(--gem); font-family: var(--display); }
/* the unjustified kills: banishment in the dark of the ink, and the counters of the day, the week and the month */
.mx-pvp-limits .mx-half.is-ban { --accent: #5b4330; --accent-ink: var(--ink); }
.mx-pvp-kills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mx-pvp-kills li { display: grid; justify-items: center; align-content: center; gap: 3px; min-width: 0; padding: 9px 4px; border-radius: 8px; text-align: center; background: rgba(255, 255, 255, 0.42); border: 1px solid rgba(160, 120, 60, 0.32); }
.mx-pvp-kills b { font: 800 1.8rem/1 var(--display); color: var(--accent-ink, var(--ink)); }
.mx-pvp-kills span { font-size: 0.86rem; line-height: 1.2; color: var(--ink-soft); }
/* the No-PvP Scroll protects: its rule in the green of its status icon instead of the red of a danger */
.mx-pvp-scroll .mx-rule-art { background: radial-gradient(circle at 50% 45%, #1f4d3c 0%, #0e2a20 64%, #07150f 100%); box-shadow: 0 0 0 3px #b8955a, 0 0 0 7px rgba(46, 125, 50, 0.45), 0 0 40px rgba(90, 200, 130, 0.3), inset 0 0 26px rgba(0, 0, 0, 0.7); }
.mx-pvp-scroll .mx-rule-when b, .mx-pvp-scroll .mx-effects b { color: #2c662f; }
/* paralysis and party, side by side from 760 px */
.mx-pvp-notes { display: grid; gap: 14px; margin-top: 22px; }
.mx-pvp-notes .mx-aside { margin-top: 0; height: 100%; }
@media (min-width: 760px) { .mx-pvp-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }

/* Death: where you wake up, the picture beside its text from 1100 px */
.mx-death-after { display: grid; gap: 12px; padding: 12px; }
.mx-death-after h3 { font-size: 1.15rem; }
.mx-death-after p { margin: 4px 0 0; color: var(--ink-soft); line-height: 1.45; }
@media (min-width: 1100px) { .mx-death-after { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px 16px 14px 14px; } }
/* the equipment doll, the client's inventory with the chance of each slot under it */
.mx-death-doll { display: grid; place-items: center; padding: 20px 12px 18px; background: radial-gradient(ellipse at 50% 42%, #3a332d 0%, #1b1714 78%); }
.mx-death-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 14px; }
.mx-death-cell { display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 40px; }
.mx-death-cell b { font: 700 0.78rem/1 var(--display); letter-spacing: 0.04em; color: #e8d8b4; white-space: nowrap; }
.mx-death-cell.is-all b { color: #ff8f7d; }
.mx-death-cell.is-safe b { color: var(--gold-hi); }
.mx-death-cell.is-safe .mx-slot { box-shadow: inset 1px 1px 0 #5f5850, inset -1px -1px 0 #221e1a, 0 0 0 2px var(--gold-hi), 0 0 14px rgba(255, 211, 107, 0.55); }
.mx-death-cell.is-gap { visibility: hidden; }
@media (min-width: 900px) {
  .mx-death-grid { gap: 14px 24px; }
  .mx-death-cell b { font-size: 0.9rem; }
  /* the doll as wide as itself, the rules beside it */
  .mx-death-items .mx-split { grid-template-columns: auto minmax(0, 1fr); }
  .mx-death-doll { padding: 24px 34px 22px; }
  /* the blessings, all in a row */
  .mx-death-bless .mx-medals-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Trade: the coins' wells as low as their row of stacks on a desktop */
@media (min-width: 900px) { .mx-trade-coins .mx-well { aspect-ratio: 5 / 2; } }
/* the offers of the shop across the whole width, the purse framed like a picture, its text and the kit */
@media (min-width: 900px) { .mx-trade-shop .mx-bestiary { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); } }
.mx-trade-shop .mx-split { margin-top: 26px; }
.mx-trade-purse { display: grid; place-items: center; padding: 18px 10px; background: radial-gradient(ellipse at 50% 42%, #3a332d 0%, #1b1714 78%); }
.mx-trade-side { display: grid; align-content: start; }
.mx-trade-side .mx-aside { margin-top: 18px; }
/* mx-pages:server end */
/* mx-pages:professions begin */
/* Woodcutting: the colour of each tree on its rung (its bark or its leaves: birch white, ash grey, chestnut brown,
   olive, cherry red) and the green of the three sizes of a tree (young to grown) */
.tier-woodcutting-birch { --tier: linear-gradient(180deg, #f1f0e2, #b9b597); }
.tier-woodcutting-ash { --tier: linear-gradient(180deg, #d3cdbb, #7f7766); }
.tier-woodcutting-chestnut { --tier: linear-gradient(180deg, #dda46a, #8a5428); }
.tier-woodcutting-olive { --tier: linear-gradient(180deg, #d0d47c, #7c8a32); }
.tier-woodcutting-cherry { --tier: linear-gradient(180deg, #f4a3ab, #b0303c); }
.tier-woodcutting-small { --tier-band: linear-gradient(90deg, #a9c98a, #e0f0cc 50%, #a9c98a); }
.tier-woodcutting-medium { --tier-band: linear-gradient(90deg, #86b85f, #c8e6a6 50%, #86b85f); }
.tier-woodcutting-large { --tier-band: linear-gradient(90deg, #5d9a45, #a9d987 50%, #5d9a45); }
/* the step of a felled tree: its stump, and the wood beside it */
.mx-woodcutting-felled { display: flex; align-items: flex-end; justify-content: center; gap: 8px; }

/* Crafting: a recipe as the anvil's window lists it, the slots in a row with + and → between them; a stack holds the
   things a recipe takes or makes one of (a pickaxe or an axe), framed together; one over the other on a phone */
.mx-crafting-recipe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.mx-crafting-recipe > b { font: 800 1.15rem/1 var(--display); color: var(--gem); }
.mx-crafting-stack { display: grid; gap: 4px; padding: 3px; border: 1px dashed rgba(106, 74, 46, 0.55); border-radius: 6px; }
.mx-poster .mx-crafting-recipe { flex: 1 1 100%; }
.mx-crafting-lost { margin: 0; }
.mx-crafting-lost b { color: var(--gem); font-weight: 600; }
/* the upgrades: one card for each tier, its colour on its left edge (the rocks' tiers), the metal and its bonus over
   the recipe; from 900 px the recipe beside the title */
.mx-crafting-chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mx-crafting-chain > li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 10px 14px 12px 20px; overflow: hidden; }
.mx-crafting-chain > li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--tier, var(--gold)); }
.mx-crafting-chain h3 { font-size: 1.12rem; line-height: 1.2; }
.mx-crafting-bonus { margin: 0; display: grid; justify-items: end; line-height: 1; }
.mx-crafting-bonus small { font: 700 0.62rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.mx-crafting-bonus b { font: 800 1.45rem/1.05 var(--display); color: var(--ink); }
.mx-crafting-chain .mx-crafting-recipe { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .mx-crafting-recipe { gap: 10px; }
  .mx-crafting-recipe > b { font-size: 1.5rem; }
  .mx-crafting-stack { gap: 6px; padding: 4px; }
  .mx-crafting-chain { gap: 16px; }
  .mx-crafting-chain > li { grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px 24px; padding: 12px 22px 12px 28px; }
  .mx-crafting-chain .mx-crafting-recipe { grid-column: 2; grid-row: 1; }
  .mx-crafting-chain h3 { font-size: 1.3rem; }
  .mx-crafting-bonus b { font-size: 1.8rem; }
}

/* the narrowest phones: a recipe keeps one line with tighter gaps, and the four terms of the sum of a tool from
   scratch go two by two */
@media (max-width: 379px) {
  .mx-crafting-recipe { gap: 3px; }
  .mx-crafting-stack { padding: 2px; }
  .mx-crafting-wear .mx-sum { flex-wrap: wrap; row-gap: 6px; }
  .mx-crafting-wear .mx-term { flex-basis: 40%; }
}
/* from 1100 px a recipe of the upgrades fits one line with its stacks side by side */
@media (min-width: 1100px) { .mx-crafting-stack { grid-auto-flow: column; } }

/* Imbuements: the five families where mockup A put them (damage, protection and boots on top; leech under damage and
   the skills across the rest), and their pictures in one column of the same width */
.mx-imbuements-list .fam-damage { grid-area: damage; }
.mx-imbuements-list .fam-leech { grid-area: leech; }
.mx-imbuements-list .fam-guard { grid-area: guard; }
.mx-imbuements-list .fam-move { grid-area: move; }
.mx-imbuements-list .fam-skill { grid-area: skill; }
.mx-imbuements-list .mx-fams { grid-template-areas: "damage" "leech" "guard" "move" "skill"; }
.mx-imbuements-list .mx-fam > header { grid-template-columns: 64px minmax(0, 1fr); }
@media (min-width: 900px) and (max-width: 1099px) { .mx-imbuements-list .mx-fams { grid-template-areas: "damage guard" "leech move" "skill skill"; } }
@media (min-width: 1100px) { .mx-imbuements-list .mx-fams { grid-template-areas: "damage guard move" "leech skill skill"; } }
/* mx-pages:professions end */
/* mx-pages:world begin */
/* The world (web152): what the shared pieces do not cover on Hunting grounds (the map of the caves, its key, five
   medallions, the Gnawer), Cold & radiation (the chart of the hit, the lines of each hazard), Fury & mutants (the sparks
   of the fury, the mutants' intro, the sums), Raids & tombs (the rules, the raid cards, the tomb of the day) and Quests
   (three posters a row, the classic quests, the treasures) */

/* ------------------------------------------------------------------ Hunting grounds: the map of the caves */
.mx-hunting-grounds-mapwrap { display: grid; gap: 22px; align-items: start; }
.mx-hunting-grounds-map { margin: 0; }
.mx-hunting-grounds-frame { padding: 6px; border-radius: 10px; background: linear-gradient(180deg, #3a2a1a, #1d150e); border: 1px solid var(--line); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55); }
.mx-hunting-grounds-svg { display: block; width: 100%; height: auto; border-radius: 5px; }
.mx-hunting-grounds-map figcaption { margin-top: 8px; text-align: center; font-size: 0.92rem; font-style: italic; color: var(--text-faint); }
.mx-hunting-grounds-town { font: 700 30px var(--display); letter-spacing: 0.08em; text-transform: uppercase; text-anchor: middle; fill: #f6e7c4; paint-order: stroke; stroke: rgba(8, 6, 10, 0.88); stroke-width: 7px; stroke-linejoin: round; }
.mx-hunting-grounds-town.is-minor { font-size: 24px; fill: #d9c79f; }
.mx-hunting-grounds-pin { cursor: pointer; }
.mx-hunting-grounds-pin:focus { outline: none; }
.mx-hunting-grounds-pin circle { stroke: #140e08; stroke-width: 5; transform-box: fill-box; transform-origin: center; transition: transform 0.15s; }
.mx-hunting-grounds-pin text { font: 800 30px var(--display); fill: #140e08; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.mx-hunting-grounds-pin:hover circle, .mx-hunting-grounds-pin:focus-visible circle { transform: scale(1.25); stroke: #fff3d6; }
.mx-hunting-grounds-pin.is-cold circle { fill: var(--mx-cold); }
.mx-hunting-grounds-pin.is-rad circle { fill: var(--mx-rad); }
.mx-hunting-grounds-pin.is-quest circle { fill: var(--mx-quest); }
.mx-hunting-grounds-pin.is-new circle { fill: var(--mx-new); }
/* what the colours mean: a card each, that leads to its caves */
.mx-hunting-grounds-side { display: grid; gap: 14px; align-content: start; }
.mx-hunting-grounds-key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mx-hunting-grounds-key a { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 10px; height: 100%; padding: 10px 12px; border-radius: 9px; background: var(--mx-panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.mx-hunting-grounds-key a:hover { border-color: var(--gold); }
.mx-hunting-grounds-key .mx-dot { grid-row: span 2; width: 26px; height: 26px; }
.mx-hunting-grounds-key b { font: 700 0.8rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.mx-hunting-grounds-key span { font-size: 0.92rem; line-height: 1.25; color: var(--text-dim); }
/* a phone: bigger marks without their numbers (they would not read), and only the big towns */
@media (max-width: 559px) {
  .mx-hunting-grounds-pin text { display: none; }
  .mx-hunting-grounds-pin circle { transform: scale(1.5); }
  .mx-hunting-grounds-pin:hover circle, .mx-hunting-grounds-pin:focus-visible circle { transform: scale(1.8); }
  .mx-hunting-grounds-town { font-size: 50px; stroke-width: 10px; }
  .mx-hunting-grounds-town.is-minor { display: none; }
}
@media (max-width: 379px) { .mx-hunting-grounds-key { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 900px) {
  .mx-hunting-grounds-mapwrap { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 32px; align-items: center; }
  .mx-hunting-grounds-key { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mx-hunting-grounds-key a { padding: 14px 16px; }
  .mx-hunting-grounds-key span { font-size: 0.98rem; }
}
/* the floor below a cave, on its card */
.mx-card .mx-hunting-grounds-lower { color: var(--ink); scroll-margin-top: 90px; }
.mx-hunting-grounds-lower:target { background: rgba(255, 211, 107, 0.45); border-radius: 6px; }

/* five medallions: three and two on a phone (their names a little smaller, so a long one fits), all in a row from 900 px */
.mx-hunting-grounds-new .mx-medals-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 559px) { .mx-hunting-grounds-new .mx-medal h3 { font-size: 0.82rem; overflow-wrap: anywhere; } }
.mx-hunting-grounds-new .mx-medals-5 > li { grid-column: span 2; }
.mx-hunting-grounds-new .mx-medals-5 > li:nth-child(4) { grid-column: 2 / span 2; }
@media (min-width: 900px) {
  .mx-hunting-grounds-new .mx-medals-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mx-hunting-grounds-new .mx-medals-5 > li, .mx-hunting-grounds-new .mx-medals-5 > li:nth-child(4) { grid-column: auto; }
}

/* the Gnawer: its animation beside what it does */
.mx-hunting-grounds-spot { display: grid; gap: 18px; align-items: center; margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(224, 169, 59, 0.2); scroll-margin-top: 80px; }
.mx-hunting-grounds-spot .eyebrow { margin: 0 0 6px; }
.mx-hunting-grounds-spot-title { margin: 0 0 14px; font-size: clamp(1.5rem, 6vw, 2.2rem); color: #fff3d6; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.mx-hunting-grounds-abilities { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mx-hunting-grounds-abilities li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: 9px; background: var(--mx-panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.08), 0 12px 26px rgba(0, 0, 0, 0.45); }
.mx-hunting-grounds-fx { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle, rgba(255, 220, 150, 0.12), rgba(0, 0, 0, 0.2)); border: 1px solid rgba(224, 169, 59, 0.3); }
.mx-hunting-grounds-abilities h4 { margin: 0; font-size: 1.08rem; color: var(--gold-hi); }
.mx-hunting-grounds-abilities p { margin: 4px 0 0; color: var(--text-dim); line-height: 1.4; }
.mx-hunting-grounds-abilities b { color: var(--text); }
@media (min-width: 900px) { .mx-hunting-grounds-spot { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; } }
.mx-hunting-grounds-tasks { scroll-margin-top: 80px; }
/* web180: the Isle of Hrim (the map and cards of the caves are the hunting grounds' own) */
.mx-hunting-grounds-hrim { margin-top: 28px; }
.mx-isle-of-hrim-jacket { padding: 10px; border-radius: 9px; }
.mx-isle-of-hrim-boats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.mx-isle-of-hrim-boats li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(60, 40, 20, 0.08); }
.mx-isle-of-hrim-boats li > span { min-width: 0; line-height: 1.25; }
.mx-isle-of-hrim-fare { white-space: nowrap; }

/* ------------------------------------------------------------------ Cold & radiation: the chart of the hit */
.mx-cold-and-radiation-chart { margin: 0 auto; max-width: 860px; padding: 16px 14px 18px; display: grid; gap: 10px; }
.mx-cold-and-radiation-chart h3 { font-size: 1.1rem; }
.mx-cold-and-radiation-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mx-cold-and-radiation-grid line { stroke: rgba(106, 74, 46, 0.25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mx-cold-and-radiation-svg text { font: 700 15px var(--display); fill: var(--ink-soft); }
.mx-cold-and-radiation-grid .is-y { text-anchor: start; }
.mx-cold-and-radiation-bars path { fill: var(--gem); }
.mx-cold-and-radiation-bars path:hover { fill: #c02626; }
.mx-cold-and-radiation-values text { font-size: 18px; font-weight: 800; text-anchor: middle; fill: var(--ink); }
.mx-cold-and-radiation-axis text { text-anchor: middle; }
.mx-cold-and-radiation-chart figcaption { color: var(--ink-soft); font-size: 1rem; line-height: 1.4; }
.mx-cold-and-radiation-chart figcaption b { color: var(--gem); font-family: var(--display); }
.mx-cold-and-radiation-reset { margin: 16px auto 0; max-width: 62ch; text-align: center; color: var(--text-dim); }
@media (max-width: 559px) {
  .mx-cold-and-radiation-svg text { font-size: 24px; }
  .mx-cold-and-radiation-values text { font-size: 26px; }
  .mx-cold-and-radiation-axis .is-odd { display: none; }
}
@media (min-width: 900px) { .mx-cold-and-radiation-chart { padding: 22px 26px 24px; } }
/* the lines of each hazard: what you read, its caves (links to their place on Hunting grounds), its quest, relief, gear */
.mx-cold-and-radiation-says { font-style: italic; }
.mx-cold-and-radiation-where .mx-places a { color: var(--ink); text-decoration: none; border-bottom: 1px dotted rgba(106, 74, 46, 0.6); }
.mx-cold-and-radiation-where .mx-places a:hover { color: var(--gem); border-bottom-color: var(--gem); }
.mx-cold-and-radiation-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mx-cold-and-radiation-facts li { display: flex; align-items: center; gap: 8px; line-height: 1.35; color: var(--ink-soft); scroll-margin-top: 90px; }
.mx-cold-and-radiation-facts li:target { background: rgba(255, 211, 107, 0.45); border-radius: 6px; }
.mx-cold-and-radiation-quest a { color: var(--gem); font-weight: 600; }

/* ------------------------------------------------------------------ Fury & mutants */
/* the red sparks of the fury over the head of the monster in its medallion */
.mx-fury-and-mutants-sparks { position: absolute; left: 26px; top: 40px; width: 64px; height: 64px; image-rendering: pixelated; pointer-events: none; }
@media (min-width: 900px) { .mx-fury-and-mutants-sparks { left: 50px; top: 72px; width: 96px; height: 96px; } }
/* the five auras in their scene beside how many are born so and what never changes */
.mx-fury-and-mutants-top { display: grid; gap: 18px; align-items: center; margin-bottom: 22px; }
.mx-fury-and-mutants-born { order: -1; display: grid; justify-items: center; gap: 14px; text-align: center; }
.mx-fury-and-mutants-same { list-style: none; margin: 0; padding: 0; display: grid; justify-content: center; gap: 6px; }
.mx-fury-and-mutants-same li { color: var(--text); font-size: 1rem; }
.mx-fury-and-mutants-same li::before { content: "\25C6"; margin-right: 8px; font-size: 0.7em; color: var(--gold); vertical-align: 0.15em; }
@media (min-width: 900px) {
  .mx-fury-and-mutants-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; }
  .mx-fury-and-mutants-born { order: 0; justify-items: start; text-align: left; }
  .mx-fury-and-mutants-born .mx-bignum { justify-items: start; text-align: left; }
  /* the number that rules on one line beside the scene, from the narrow desktop on */
  .mx-fury-and-mutants-born .mx-bignum b { font-size: clamp(2.8rem, 6.8vw, 5rem); white-space: nowrap; }
  .mx-fury-and-mutants-same { display: flex; flex-wrap: wrap; justify-content: start; gap: 8px; }
  .mx-fury-and-mutants-same li { padding: 7px 14px; border-radius: 999px; background: rgba(12, 9, 7, 0.8); border: 1px solid var(--line); }
}
/* both at once: the mutant + the claw = the sum */
.mx-fury-and-mutants-combo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mx-fury-and-mutants-combo li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--mx-panel); border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); }
.mx-fury-and-mutants-op { font: 700 1.5rem var(--display); color: var(--gold); }
.mx-fury-and-mutants-res { display: grid; line-height: 1.05; }
.mx-fury-and-mutants-res b { font: 800 clamp(2.1rem, 9vw, 2.9rem)/1 var(--display); color: var(--gold-hi); text-shadow: 0 0 24px rgba(255, 190, 90, 0.35); }
.mx-fury-and-mutants-res span { font-size: 0.95rem; color: var(--text-dim); }
.mx-fury-and-mutants-note { margin: 14px auto 0; max-width: 52ch; text-align: center; color: var(--text-dim); }
@media (min-width: 560px) { .mx-fury-and-mutants-combo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ Raids & tombs */
.mx-raids-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mx-raids-rules li { position: relative; padding-left: 22px; color: var(--ink); line-height: 1.4; }
.mx-raids-rules li::before { content: "\25C6"; position: absolute; left: 2px; top: 0.1em; font-size: 0.8em; color: var(--gem); }
/* the raids of a frequency: cards with what comes (sliding on a phone), the announced one with the golden edge */
.mx-raids-single { max-width: 420px; }
.mx-raids-card { height: 100%; display: grid; gap: 8px; align-content: start; padding: 12px 14px 14px; }
.mx-raids-card.is-announced { box-shadow: 0 0 0 4px rgba(42, 31, 22, 0.9), 0 0 0 5px var(--gold-hi), 0 0 30px rgba(255, 200, 90, 0.25), 0 20px 44px rgba(0, 0, 0, 0.55); }
.mx-raids-pics { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 4px 8px; min-height: 64px; padding: 6px 10px; border-radius: 8px; background: radial-gradient(ellipse at 50% 70%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12)); border: 1px solid rgba(160, 120, 60, 0.25); }
.mx-raids-text { display: grid; gap: 4px; justify-items: start; }
.mx-raids-card h4 { margin: 0; font-size: 1.12rem; line-height: 1.15; color: var(--ink); }
.mx-raids-card p { margin: 0; font-size: 0.96rem; line-height: 1.35; color: var(--ink-soft); }
.mx-raids-card .mx-raids-with { color: var(--ink); }
/* the places are written to sit inside a sentence: on their own line they start with a capital */
.mx-raids-place::first-letter { text-transform: uppercase; }
.mx-raids-groups .mx-group-title { margin-top: 30px; }
.mx-raids-groups .mx-group-title:first-of-type { margin-top: 0; }
/* from 900 px the cards of a row keep their own height: a raid with nothing to show is a short card */
@media (min-width: 900px) { .mx-raids-groups .mx-gallery { align-items: start; } .mx-raids-groups .mx-gallery .mx-raids-card { height: auto; } }
/* the tomb of the day: its number beside the scene, on the dark of the band */
.mx-raids-today { display: grid; gap: 12px; justify-items: center; text-align: center; }
.mx-raids-today p { margin: 0; max-width: 46ch; color: var(--text-dim); line-height: 1.45; }
.mx-raids-ask a { color: var(--gold-hi); font: 700 0.78rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.mx-raids-ask a:hover { text-decoration: underline; }
@media (min-width: 900px) { .mx-raids-today, .mx-raids-today .mx-bignum { justify-items: start; text-align: left; } }
#tombs .mx-group-title { margin-top: 30px; }
@media (min-width: 900px) { #tombs .mx-bestiary { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); } }

/* ------------------------------------------------------------------ Quests */
/* the posters a row: three from 1100 px when a group has three */
@media (min-width: 1100px) { .mx-quests-own .mx-posters { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); } }
/* the classic quests improved: a card each with what it gives */
.mx-quests-classic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.mx-quests-classic-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 14px 16px; border-radius: 10px; background: var(--mx-panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.08), 0 12px 26px rgba(0, 0, 0, 0.45); }
.mx-quests-classic-card > .mx-slots { grid-row: span 2; }
.mx-quests-classic-card h3 { font-size: 1.08rem; color: var(--gold-hi); }
.mx-quests-classic-card p { margin: 0; color: var(--text-dim); line-height: 1.4; }
.mx-quests-classic-card b { color: var(--text); font-weight: 600; }
@media (min-width: 900px) {
  .mx-quests-classic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .mx-quests-classic-card { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; padding: 18px 16px; text-align: center; }
  .mx-quests-classic-card > .mx-slots { grid-row: auto; }
}
/* the treasures of the map: the backpack and its line */
.mx-quests-treasure { display: grid; justify-items: center; gap: 18px; text-align: center; }
.mx-quests-treasure-text { margin: 0; max-width: 46ch; color: var(--text-dim); font-size: 1.05rem; line-height: 1.5; }
@media (min-width: 900px) { .mx-quests-treasure { grid-template-columns: auto minmax(0, 420px); justify-content: center; justify-items: start; align-items: center; gap: 40px; text-align: left; } }
/* mx-pages:world end */
/* mx-pages:play begin */
/* ---- How to play (web152): Controls (the keyboard and the mouse drawn with HTML and CSS, the devices in the frames of
   the client's own device selector, the Hub, the hotbar, the commands), Summon orders (the client's menus, the ways to
   give an order) and Training (the stones of a tier, the bed). No sprite is sized here */

/* Controls: the keyboard and the mouse, side by side from 1100 px */
.mx-controls-desk { display: grid; gap: 18px; }
@media (min-width: 1100px) { .mx-controls-desk { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 28px; align-items: start; } }
/* the keyboard follows its own width (a container): a key is --u wide, 15 keys a row on a grid of quarter keys; the
   arrows go under it on a phone and beside it on a wider one */
.mx-controls-kb { container-type: inline-size; margin: 0; }
.mx-controls-board { --u: 6.2cqi; display: grid; grid-template-columns: calc(var(--u) * 15); grid-template-areas: "f" "k" "a"; justify-content: center; gap: calc(var(--u) * 0.3); padding: 2.4cqi; border-radius: 14px; background: linear-gradient(180deg, #2b231c, #15110d); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.1), 0 18px 36px rgba(0, 0, 0, 0.55); }
.mx-controls-frow, .mx-controls-keys, .mx-controls-arrows { display: grid; grid-auto-rows: var(--u); }
.mx-controls-frow, .mx-controls-keys { grid-template-columns: repeat(60, minmax(0, 1fr)); }
.mx-controls-frow { grid-area: f; margin-bottom: calc(var(--u) * 0.18); }
.mx-controls-keys { grid-area: k; }
.mx-controls-arrows { grid-area: a; justify-self: end; width: calc(var(--u) * 3); grid-template-columns: repeat(12, minmax(0, 1fr)); }
@container (min-width: 520px) {
  .mx-controls-board { --u: 5.15cqi; grid-template-columns: calc(var(--u) * 15) calc(var(--u) * 3); grid-template-areas: "f ." "k a"; column-gap: calc(var(--u) * 0.35); }
  .mx-controls-arrows { align-self: end; }
}
.mx-controls-board kbd, .mx-controls-gap { grid-column: span 4; }
.mx-controls-board .s2 { grid-column: span 2; }
.mx-controls-board .s5 { grid-column: span 5; }
.mx-controls-board .s6 { grid-column: span 6; }
.mx-controls-board .s7 { grid-column: span 7; }
.mx-controls-board .s9 { grid-column: span 9; }
.mx-controls-board .s11 { grid-column: span 11; }
.mx-controls-board .s25 { grid-column: span 25; }
/* a key of the rest of the keyboard: dark and faded */
.mx-controls-board kbd { display: grid; place-content: center; justify-items: center; min-width: 0; margin: calc(var(--u) * 0.05); padding: 0; overflow: hidden; border-radius: calc(var(--u) * 0.14); font: 700 calc(var(--u) * 0.4)/1 Verdana, Tahoma, "DejaVu Sans", sans-serif; white-space: nowrap; color: rgba(239, 226, 198, 0.34); background: linear-gradient(180deg, #3e362f 0%, #2b251f 100%); border: 1px solid #110e0b; border-bottom-width: calc(var(--u) * 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.mx-controls-board kbd small { display: none; margin-top: calc(var(--u) * 0.05); font-size: calc(var(--u) * 0.27); line-height: 1; }
@container (min-width: 520px) { .mx-controls-board kbd small { display: block; } }
/* the keys TabTibia uses, a colour for what each does (the same on the legend and the small keys of the page) */
:is(.mx-controls-board, .mx-controls-legend, .mx-controls-combo) kbd.k-walk { color: #2b1a06; background: linear-gradient(180deg, #ffe9a6 0%, #e0a93b 100%); border-color: #6b4610; }
:is(.mx-controls-board, .mx-controls-legend, .mx-controls-combo) kbd.k-diag { color: #2e1705; background: linear-gradient(180deg, #f8cf98 0%, #c97b2c 100%); border-color: #6a3a10; }
:is(.mx-controls-board, .mx-controls-legend, .mx-controls-combo) kbd.k-hot { color: #10384f; background: linear-gradient(180deg, #dcf2ff 0%, #74b9e5 100%); border-color: #1b5d83; }
:is(.mx-controls-board, .mx-controls-legend, .mx-controls-combo) kbd.k-ctrl { color: #fbe8bd; background: linear-gradient(180deg, #c43b2c 0%, #7a1515 100%); border-color: #4a0d0d; }
:is(.mx-controls-board, .mx-controls-legend, .mx-controls-combo) kbd.k-chat { color: var(--ink); background: linear-gradient(180deg, #fdf4dc 0%, #e2c995 100%); border-color: #8a6a3a; }
.mx-controls-board kbd[class*="k-"] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 calc(var(--u) * 0.3) rgba(255, 200, 110, 0.18); }
/* the small keys of the legend, the boxes and the fold */
:is(.mx-controls-legend, .mx-controls-combo, .mx-controls-table) kbd { display: inline-grid; place-items: center; min-width: 1.95em; height: 1.95em; padding: 0 0.45em; border-radius: 5px; font: 700 0.74rem/1 Verdana, Tahoma, "DejaVu Sans", sans-serif; color: var(--text); white-space: nowrap; background: linear-gradient(180deg, #3e362f, #2b251f); border: 1px solid #110e0b; border-bottom-width: 3px; }
.mx-controls-table kbd { color: var(--ink); background: rgba(255, 255, 255, 0.6); border-color: rgba(160, 120, 60, 0.55); }
.mx-controls-legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.mx-controls-legend li { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 12px; line-height: 1.3; color: var(--text-dim); }
.mx-controls-legend-keys { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mx-controls-legend-keys i { padding: 0 2px; font-style: normal; color: var(--text-faint); }
.mx-controls-legend li > span:last-child { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.mx-controls-pair { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
@media (min-width: 900px) { .mx-controls-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; } .mx-controls-legend .is-wide { grid-column: 1 / -1; } }
/* the mouse: a button lit for each way of clicking */
.mx-controls-mouse ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mx-controls-mouse li { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-areas: "m b" "m s"; align-items: center; gap: 0 12px; }
.mx-controls-mouse li i { grid-area: m; position: relative; justify-self: center; width: 24px; height: 36px; border-radius: 12px 12px 11px 11px; background: linear-gradient(180deg, #fffaf0, #e6cf9f); border: 2px solid var(--ink-soft); box-shadow: 0 3px 6px rgba(58, 36, 20, 0.25); }
.mx-controls-mouse li i::before { content: ""; position: absolute; top: 0; width: 50%; height: 13px; background: var(--gem); }
.mx-controls-mouse li i.is-left::before { left: 0; border-radius: 10px 0 0 0; }
.mx-controls-mouse li i.is-right::before { right: 0; border-radius: 0 10px 0 0; }
.mx-controls-mouse li i::after { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 13px; margin-left: -1px; background: var(--ink-soft); }
.mx-controls-mouse li i.is-drag { box-shadow: -6px 2px 0 -3px rgba(156, 28, 28, 0.4), -12px 4px 0 -5px rgba(156, 28, 28, 0.25), 0 3px 6px rgba(58, 36, 20, 0.25); }
.mx-controls-mouse b { grid-area: b; font: 700 0.98rem/1.2 var(--display); color: var(--ink); }
.mx-controls-mouse li span { grid-area: s; line-height: 1.3; color: var(--ink-soft); }
/* under the keyboard on a tablet: the four ways of clicking two a row */
@media (min-width: 560px) and (max-width: 1099px) { .mx-controls-mouse ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; } }

/* the devices, in the frames of the client's device selector (client/css/device-select.css): a monitor, two phones, a
   tablet and a foldable on a stage */
.mx-controls-device { height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.mx-controls-stage { display: flex; align-items: center; justify-content: center; gap: 6%; aspect-ratio: 4 / 3; padding: 6%; background: radial-gradient(ellipse at 50% 30%, #4b3a28 0%, #241a11 62%, #140f0a 100%); border-bottom: 1px solid #b8955a; }
.mx-controls-screen { position: relative; flex: none; display: block; padding: 3px; background: linear-gradient(180deg, #2a2d36, #101116); box-shadow: 0 0 0 1.5px rgba(184, 149, 90, 0.9), 0 12px 22px rgba(0, 0, 0, 0.5); }
/* the glass over every screen */
.mx-controls-screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(130deg, rgba(255, 255, 255, 0.13), transparent 38%); pointer-events: none; }
.mx-controls-screen img { display: block; width: 100%; height: auto; border-radius: 3px; }
.mx-controls-pc { display: grid; justify-items: center; width: 86%; }
.mx-controls-screen.is-monitor { width: 100%; padding: 4px; border-radius: 7px; }
.mx-controls-stand { position: relative; width: 12%; height: 10px; background: linear-gradient(90deg, #17181d, #2f323b, #17181d); }
.mx-controls-stand::after { content: ""; position: absolute; left: 50%; top: 100%; width: 340%; height: 5px; transform: translateX(-50%); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #34373f, #15161b); box-shadow: 0 0 0 1px rgba(184, 149, 90, 0.8); }
.mx-controls-screen.is-phone { border-radius: 10px; }
.mx-controls-screen.is-phone img { border-radius: 7px; }
.mx-controls-screen.is-upright { width: 25%; }
.mx-controls-screen.is-sideways { width: 50%; }
/* the camera island */
.mx-controls-screen.is-phone::before { content: ""; position: absolute; z-index: 1; top: 6px; left: 50%; width: 26%; height: 3px; border-radius: 3px; background: #000; transform: translateX(-50%); }
.mx-controls-screen.is-sideways::before { top: 50%; left: 6px; width: 3px; height: 26%; transform: translateY(-50%); }
.mx-controls-screen.is-tablet { width: 84%; padding: 6px; border-radius: 12px; }
.mx-controls-screen.is-tablet img { border-radius: 6px; }
.mx-controls-screen.is-fold { width: 52%; padding: 4px; border-radius: 12px; }
.mx-controls-screen.is-fold img { border-radius: 8px; }
/* the fold of an unfolded phone */
.mx-controls-screen.is-fold::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(255, 255, 255, 0.16) 50%, rgba(0, 0, 0, 0.65)); }
.mx-controls-device-body { display: grid; gap: 6px; align-content: start; padding: 12px 14px 14px; }
.mx-controls-device h3 { font-size: 1.12rem; line-height: 1.15; }
.mx-controls-device p { margin: 0; font-size: 0.96rem; line-height: 1.35; color: var(--ink-soft); }

/* the Hub as the client draws it: its sections and their windows */
.mx-controls-hub { display: grid; gap: 12px; padding: 12px; border-radius: 8px; background: #23201d; border: 1px solid #0f0c0a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 10px 24px rgba(0, 0, 0, 0.45); }
.mx-controls-hub h4 { margin: 0 0 8px; text-align: center; font: 700 0.66rem var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.mx-controls-hub ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.mx-controls-hub li { display: grid; justify-items: center; align-content: start; gap: 4px; min-width: 0; padding: 8px 2px 7px; border-radius: 6px; text-align: center; background: linear-gradient(180deg, #3b3732, #2a2622); border: 1px solid #12100e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.mx-controls-hub li span { font: 600 0.72rem/1.12 var(--body); color: #e9ddc5; overflow-wrap: anywhere; }
@media (min-width: 560px) { .mx-controls-hub ul { gap: 6px; } .mx-controls-hub li span { font-size: 0.8rem; } }
/* the hotbar: a slot a key, in two rows of six until there is room for all of them (its own width) */
.mx-controls-hotbar-wrap { container-type: inline-size; }
.mx-controls-hotbar { list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: repeat(6, auto); justify-content: center; gap: 8px 6px; border-radius: 8px; background: #23201d; border: 1px solid #0f0c0a; box-shadow: inset 0 10px 24px rgba(0, 0, 0, 0.4); }
@container (min-width: 480px) { .mx-controls-hotbar { grid-template-columns: repeat(12, auto); gap: 6px 4px; } }
.mx-controls-hotbar li { display: grid; justify-items: center; gap: 4px; }
.mx-controls-hotbar kbd { font: 700 0.64rem/1 Verdana, Tahoma, "DejaVu Sans", sans-serif; color: var(--text-dim); }
.mx-panel > p a { color: var(--gem); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* the commands, as they are typed in the chat, and the boxes of the chat, the languages and the bug reports */
.mx-controls-commands { list-style: none; margin: 0; padding: 4px 16px; display: grid; border-radius: 10px; background: var(--mx-panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.08), 0 12px 26px rgba(0, 0, 0, 0.45); }
.mx-controls-commands li { display: grid; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid rgba(224, 169, 59, 0.16); }
.mx-controls-commands li:last-child { border-bottom: 0; }
.mx-controls-words { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-controls-commands code { padding: 2px 8px; border-radius: 5px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(224, 169, 59, 0.3); font: 700 0.92rem/1.3 Verdana, Tahoma, "DejaVu Sans", sans-serif; color: var(--gold-hi); }
.mx-controls-commands li > span:last-child { line-height: 1.35; color: var(--text-dim); }
.mx-controls-commands a { color: var(--gold-hi); font-weight: 600; text-decoration: none; white-space: nowrap; }
.mx-controls-commands a:hover { text-decoration: underline; }
@media (min-width: 560px) { .mx-controls-commands li { grid-template-columns: 170px minmax(0, 1fr); align-items: center; } }
.mx-controls-more { list-style: none; margin: 0; padding: 4px 16px; display: grid; border-radius: 10px; background: var(--mx-panel); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.08), 0 12px 26px rgba(0, 0, 0, 0.45); }
.mx-controls-more > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(224, 169, 59, 0.16); scroll-margin-top: 90px; }
.mx-controls-more > li:last-child { border-bottom: 0; }
.mx-controls-more-icon { display: grid; place-items: center; min-height: 40px; }
.mx-controls-more h3 { font-size: 1.02rem; color: var(--gold-hi); }
.mx-controls-more p { margin: 2px 0 0; line-height: 1.4; color: var(--text-dim); }
.mx-controls-combo { display: inline-flex; gap: 3px; }

/* Summon orders: the ways to give an order, each with what the player sees */
.mx-summons-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mx-summons-way { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.mx-summons-pic { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; min-height: 140px; padding: 14px; background: radial-gradient(ellipse at 50% 42%, #3a332d 0%, #1b1714 78%); border-bottom: 1px solid #b8955a; border-radius: 9px 9px 0 0; }
.mx-summons-way-body { display: grid; gap: 6px; align-content: start; padding: 12px 14px 14px; }
.mx-summons-way h3 { font-size: 1.12rem; line-height: 1.15; }
.mx-summons-way p { margin: 0; font-size: 0.98rem; line-height: 1.35; color: var(--ink-soft); }
.mx-summons-way .mx-go { margin-top: 2px; font: 700 0.74rem var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.mx-summons-way a { color: var(--gem); text-decoration: none; }
.mx-summons-way a:hover { text-decoration: underline; }
@media (min-width: 560px) { .mx-summons-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mx-summons-ways { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
/* the client's context menu (client/index.html #screen-menu): its header and an entry a line, the one to choose lit */
.mx-summons-menu { display: inline-grid; min-width: 140px; padding: 2px; text-align: left; background: #2b2b2b; border: 1px solid #000; box-shadow: inset 0 0 0 1px #5c5c5c, 0 8px 16px rgba(0, 0, 0, 0.5); font: 400 0.8rem/1.25 Verdana, Tahoma, "DejaVu Sans", sans-serif; color: #d2d2d2; }
.mx-summons-menu b { padding: 3px 8px; text-align: center; font-weight: 700; color: #ececec; background: linear-gradient(180deg, #4b4b4b, #343434); }
.mx-summons-menu span { padding: 3px 8px; white-space: nowrap; }
.mx-summons-menu .is-lit { color: #fff; background: #555; box-shadow: inset 0 0 0 1px #7a7a7a; }
/* a line of the chat, and the orders' slots of the hotbar */
.mx-summons-chat { display: grid; gap: 6px; padding: 10px 14px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); border: 1px solid #000; }
.mx-summons-chat code { font: 700 0.9rem/1.25 Verdana, Tahoma, "DejaVu Sans", sans-serif; color: #f0f0f0; }
.mx-summons-chat code::before { content: "\00BB  "; color: var(--gold); }
.mx-summons-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Training: the stones of a tier in the game's slots, each with its value; two a row on a phone, three from 900 px */
.mx-training-stones { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 10px 12px; }
.mx-training-stones li { display: grid; justify-items: center; gap: 5px; }
.mx-training-stones b { font: 800 0.95rem/1 var(--display); color: var(--ink); white-space: nowrap; }
@media (min-width: 900px) { .mx-training-stones { grid-template-columns: repeat(3, auto); gap: 16px 20px; } .mx-training-stones b { font-size: 1.25rem; } }
/* what each stone does, with the stone of the lowest tier */
.mx-training-key { list-style: none; max-width: 980px; margin: 18px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.mx-training-key li { display: inline-flex; align-items: center; gap: 8px; padding: 3px 14px 3px 4px; border-radius: 999px; background: rgba(20, 14, 9, 0.82); border: 1px solid var(--line); color: var(--text-dim); font-size: 0.95rem; line-height: 1.2; }
/* the bed: the rule card in the colours of the night, its two effects side by side */
.mx-training-beds .mx-rule-art { background: radial-gradient(circle at 50% 45%, #2e3d5e 0%, #151b2c 66%, #0b0e17 100%); box-shadow: 0 0 0 3px #b8955a, 0 0 0 7px rgba(143, 214, 255, 0.26), 0 0 40px rgba(120, 170, 255, 0.22), inset 0 0 26px rgba(0, 0, 0, 0.7); }
.mx-training-beds .mx-rule-art .mx-sprite { filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.55)); }
.mx-training-beds .mx-effects b { color: var(--mx-quest-ink); }
.mx-training-beds .mx-rule-when .mx-chip { margin-right: 4px; vertical-align: 2px; }
@media (min-width: 900px) { .mx-training-beds .mx-effects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* mx-pages:play end */
