/* ==========================================================================
   MT2Portugalia · v4 "laca e folha de ouro"
   Same structure as v1–v3 (topbar, logo hero, sidebar + main, panels).
   What changed: dark lacquer surfaces instead of parchment boxes, one accent
   (the logo's fire) reserved for primary actions, gold leaf only for state
   (active, selected, links), Shippori Mincho for headings, M PLUS 2 for text,
   no textures or ornaments. Spacing on an 8px rhythm.

   1 fonts · 2 tokens · 3 base · 4 topbar · 5 hero · 6 layout · 7 boxes
   8 login · 9 account box · 10 rank widget · 11 events widget · 12 top panel
   13 panel & tabs · 14 news · 15 prose · 16 tables · 17 forms · 18 buttons
   19 badges & alerts · 20 pager & chips · 21 profiles · 22 events page
   23 gallery · 24 presentation · 25 account pages · 26 download · 27 forum
   28 blog · 29 footer · 30 utilities · 31 parchment and mixed options · 32 responsive
   ========================================================================== */

/* 1 · fonts ---------------------------------------------------------------- */
@font-face { font-family: "M PLUS 2"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/m-plus-2-latin-wght-normal.woff2") format("woff2-variations");
  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: "M PLUS 2"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/m-plus-2-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Shippori Mincho"; font-style: normal; font-display: swap; font-weight: 700;
  src: url("../fonts/shippori-mincho-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Shippori Mincho"; font-style: normal; font-display: swap; font-weight: 800;
  src: url("../fonts/shippori-mincho-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Shippori Mincho"; font-style: normal; font-display: swap; font-weight: 700;
  src: url("../fonts/shippori-mincho-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }

/* 2 · tokens --------------------------------------------------------------- */
:root {
  /* oxblood: the plate of the current site's header */
  --bg: #160807;
  --bg-2: #1b0a08;
  --surface: #220d0b;
  --surface-2: #2c1310;
  --surface-3: #381a15;
  --line: #4a221b;
  --line-2: #643129;
  /* text (parchment) */
  --text: #f4e7cf;
  --text-2: #d8bea2;
  --text-3: #b5967d;
  --heading: var(--text);
  /* gold: links, numbers, icons */
  --gold: #d9ae5c;
  --gold-2: #f2d38f;
  --gold-dim: #8a6431;
  --gold-wash: rgba(217, 174, 92, .12);
  --on-gold: #241005;
  /* red: primary actions, the active item, "a decorrer" */
  --red-hi: #d94232;
  --red: #c22a1f;
  --red-lo: #8b160f;
  --on-red: #fff6ec;
  --red-wash: rgba(214, 52, 38, .14);
  --live-fg: #ff8b7a;
  --state: var(--red-hi);
  --state-fg: var(--text);
  --state-wash: var(--red-wash);
  --on-state: var(--on-red);
  /* status */
  --ok: #8fd36a;
  --ok-fg: #a9e08a;
  --warn: #f2b84b;
  --warn-fg: #f2b84b;
  --danger: #e2583e;
  --err-fg: #f08a72;
  --info: #7fb6d9;
  --info-fg: #7fb6d9;
  /* the team's names in the forum */
  --role-admin: #ff8a73;
  --role-gm: #f2c86a;
  --role-mod: #8fc7ea;
  --role-admin-wash: rgba(255, 110, 85, .14);
  --role-gm-wash: rgba(242, 200, 106, .14);
  --role-mod-wash: rgba(143, 199, 234, .14);

  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
  --container: 1320px;
  --sidebar: 320px;
  --gap: 32px;
  --pad: 28px;

  --font: "M PLUS 2", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: "Shippori Mincho", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --lift: inset 0 1px 0 rgba(242, 211, 143, .06);
  /* motion (assets/js/motion.js uses the same curve): quick to start, soft to land; and one that
     goes a little past and comes back, for what drops into place */
  --ease: cubic-bezier(.22, .9, .3, 1);
  --ease-back: cubic-bezier(.34, 1.45, .64, 1);
  /* page background: the scene in _design/bg-completo.png (.page-bg, built by _src/make_bg.py) */
  --bg-w: max(1920px, 100vw);   /* the picture always fills the window width */
  --bg-blur: 6px;               /* 0: sharp, 10px: very soft */
  /* the scenes behind the cards (section 7): a lighter oxblood, as part of the page */
  --ink-color: var(--line-2);
  --ink-alpha: .12;
  /* interlocking rings, like the bars of the designer's mockup (Misto bars, ranking podium) */
  --rings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.055' stroke-width='1.2'%3E%3Ccircle cx='22' cy='22' r='7'/%3E%3Ccircle cx='22' cy='22' r='13'/%3E%3Ccircle cx='22' cy='22' r='19'/%3E%3Ccircle cx='0' cy='0' r='7'/%3E%3Ccircle cx='0' cy='0' r='13'/%3E%3Ccircle cx='0' cy='0' r='19'/%3E%3Ccircle cx='44' cy='0' r='7'/%3E%3Ccircle cx='44' cy='0' r='13'/%3E%3Ccircle cx='44' cy='0' r='19'/%3E%3Ccircle cx='0' cy='44' r='7'/%3E%3Ccircle cx='0' cy='44' r='13'/%3E%3Ccircle cx='0' cy='44' r='19'/%3E%3Ccircle cx='44' cy='44' r='7'/%3E%3Ccircle cx='44' cy='44' r='13'/%3E%3Ccircle cx='44' cy='44' r='19'/%3E%3C/g%3E%3C/svg%3E");
}

/* 3 · base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  position: relative;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
/* Background: the scene (forest path with the animals), as wide as the window (at
   least 1920px, centred), at the top of the page and scrolling with it. Blurred
   (--bg-blur) so it stays behind the content; the blurred layer is 40px bigger than its
   box so the blur never fades at the window edges. Its edges and bottom are the page
   colour (_src/make_bg.py), so it melts into the page. bg.jpg is 1779 x 884. */
.page-bg {
  position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  height: calc(var(--bg-w) * 884 / 1779); max-height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.page-bg::before {
  content: "";
  position: absolute; inset: -40px;
  background: url("../img/bg/bg.jpg") center 40px / var(--bg-w) auto no-repeat;
  background-image: image-set(url("../img/bg/bg.webp") type("image/webp"), url("../img/bg/bg.jpg") type("image/jpeg"));
  filter: blur(var(--bg-blur));
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--gold); color: var(--on-gold); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold-2); color: var(--on-gold); padding: 8px 14px; border-radius: var(--r); font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -0.125em; }
.gold-text { color: inherit; }
.art { background: none; }

/* 4 · topbar --------------------------------------------------------------- */
.topbar {
  position: relative;
  z-index: 40;
  height: 64px;
  background: linear-gradient(180deg, rgba(46, 14, 11, .97), rgba(31, 9, 7, .97));
  border-bottom: 1px solid var(--line-2);
  backdrop-filter: blur(6px);
}
.topbar__inner {
  height: 100%;
  width: min(var(--container), 100% - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.topbar__brand, .topbar__user, .nav-toggle { display: none; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.mainnav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .15s;
}
.mainnav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 13px;
  width: 0; height: 2px;
  border-radius: 1px;
  background: var(--state);
  transform: translateX(-50%);
  transition: width .2s;
}
.mainnav a:hover { color: var(--text); }
.mainnav a.is-active { color: var(--state-fg); }
/* the current page: the two dragons of the designer's mockup behind the word, a dark shape
   a little darker than the bar, as in the mockup (main.js "nav dragons" sizes them, centres
   them on the word and plays the drawing: the outline traced in shadow, then the fill).
   Everything inside is solid black and the whole drawing has one opacity, so line and fill
   never add up to a darker edge. Its opacity is the strength of the shadow. */
.nav-dragons { position: absolute; z-index: -1; max-width: none; overflow: visible; pointer-events: none; opacity: .32; filter: blur(.35px); }
.nav-dragons .nd-fill { fill: #000; }
.nav-dragons .nd-lines path {
  fill: none;
  stroke: #000;
  stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100 100;
}

.lang { position: relative; margin-left: 20px; }
.lang__btn {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px 0 8px;
  border: 1px solid var(--line-2); border-radius: 17px;
  background: transparent;
  color: var(--text-2);
}
.lang__btn:hover { border-color: var(--gold-dim); color: var(--text); }
.lang__btn .icon { width: 10px; height: 10px; transition: transform .2s; }
.lang.is-open .lang__btn .icon { transform: rotate(180deg); }
.flag { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); flex: none; }
.flag svg { width: 100%; height: 100%; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 170px; padding: 6px;
  list-style: none; margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: .15s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text-2); font-size: 14.5px; }
.lang__menu a:hover, .lang__menu a[aria-current="true"] { background: var(--surface-3); color: var(--text); }

/* 5 · hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  display: grid;
  justify-items: center;
  padding: 30px 16px 30px;
  text-align: center;
}
.hero > a { line-height: 0; }
/* logo.webp is 2x (1130 px) so it stays sharp on retina screens; a short shadow only,
   a wide one reads as blur. The same size and place on every page, the home page's. */
.hero__logo { width: 360px; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .55)); }
.hero--home { padding: 30px 16px 40px; gap: 16px; }
/* a soft shade behind the logo (and, on the home page, the slogan and button). The same on
   every page, as tall as the home page's hero (463 px), so the logo and what is around it look
   the same everywhere; on the other pages it fades out under the logo */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 0; height: 463px; width: min(1000px, 100%); transform: translateX(-50%);
  background: radial-gradient(ellipse 48% 54% at 50% 62%, rgba(22, 8, 7, .62), rgba(22, 8, 7, .3) 58%, rgba(22, 8, 7, 0));
  pointer-events: none;
}
.hero:not(.hero--home)::before { -webkit-mask-image: linear-gradient(#000 245px, transparent 330px); mask-image: linear-gradient(#000 245px, transparent 330px); }
.hero__title { line-height: 0; }
.hero__tagline {
  max-width: 34ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 4px; }
.hero__note { font-size: 15px; color: var(--text-2); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.hero__note a { color: var(--gold-2); font-weight: 600; }
.hero__note a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Logo intro (home page, main.js "logo intro"): the video of the dragon plays in a canvas laid
   over the logo, at the logo's own scale, and melts into it at the end. While it loads, the
   name shows alone (logo-name.webp, the video's first frame). If nothing takes over in 5 s
   (no script), the logo comes back by itself. */
.hero--home { overflow: hidden; overflow: clip; }
.hero__title { position: relative; }
.hero--home .hero__logo { transition: opacity .45s ease; }
.hero--home :is(.hero__tagline, .hero__cta, .hero__note) { position: relative; z-index: 2; }
html.intro-wait .hero--home .hero__logo { opacity: 0; animation: intro-safety .45s 5s forwards; }
html.intro-wait .hero--home .hero__title::after {
  content: ""; position: absolute; inset: 0;
  background: url("../img/brand/logo-name.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .55));
  pointer-events: none;
  animation: intro-safety-out .45s 5s forwards;
}
html.intro-wait .hero--home.is-playing .hero__logo { animation: none; }
html.intro-wait .hero--home.is-playing .hero__title::after { opacity: 0; animation: none; }
@keyframes intro-safety { to { opacity: 1; } }
@keyframes intro-safety-out { to { opacity: 0; } }
.hero__intro { position: absolute; z-index: 1; opacity: 0; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .55)); pointer-events: none; }
.hero__intro.is-on { opacity: 1; }
.hero__intro.is-out { opacity: 0; transition: opacity .45s ease; }
.hero__intro-src { position: absolute; top: 0; left: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

/* 6 · layout --------------------------------------------------------------- */
.layout {
  width: min(var(--container), 100% - 32px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  flex: 1 0 auto;
}
.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; grid-column: 1; grid-row: 1; }
.main { display: flex; flex-direction: column; gap: 20px; min-width: 0; grid-column: 2; grid-row: 1; }

/* 7 · boxes (sidebar widgets) ---------------------------------------------- */
.box {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
  overflow: hidden;
}
/* Metin2 landscapes behind the cards, in the spirit of the pagoda behind the cards in the
   designer's mockup: a class of the game, Metin stones, a temple, a torii, a bridge, a village
   (crisp vector shapes from _src/make_card_scenes.py). Each one stands on the bottom of its
   card, edge to edge, in very different sizes, painted with the colours of the theme in use
   (--ink-color, --ink-alpha). main.js picks, sizes and places one per card on every load. */
.panel { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }   /* clip: cuts the same, and lets the ranking's column stay in view (sticky) */
.card-scene {
  position: absolute; z-index: -1;
  bottom: 0;
  height: auto; max-width: none;
  fill: var(--ink-color);
  opacity: var(--ink-alpha);
  filter: blur(.6px);    /* a background: soft edges */
  pointer-events: none;
  animation: card-scene-in .8s ease both;
}
.card-scene.is-flipped { transform: scaleX(-1); }
.panel > .card-scene { opacity: calc(var(--ink-alpha) * .85); }   /* under long text: a little lighter */
@keyframes card-scene-in { from { opacity: 0; } }
.box__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 4px;
}
.box__title, .box__title--light { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--heading); }
.box__link { font-size: 14px; font-weight: 500; color: var(--gold); white-space: nowrap; }
.box__link:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

/* 8 · login ---------------------------------------------------------------- */
.login { display: grid; gap: 12px; padding: 12px 20px 22px; }
.login__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.login__meta a { color: var(--text-2); }
.login__meta a:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
/* login is a utility, not the page's main action: solid but quiet, so the
   orange stays reserved for "Criar conta" and "Download" */
.login .btn-sign {
  margin-top: 4px;
  background: var(--surface-3);
  border: 1px solid var(--gold-dim);
  color: var(--gold-2);
  box-shadow: none;
}
.login .btn-sign:hover { background: var(--surface-3); border-color: var(--gold); filter: none; }

.field {
  display: flex;
  align-items: stretch;
  min-width: 0;
  height: 46px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
}
.field:hover { border-color: var(--gold-dim); }
.field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.field__icon { flex: 0 0 40px; display: grid; place-items: center; color: var(--text-3); }
.field__icon img { width: auto; height: 15px; opacity: .75; }
.field__icon .icon { width: 15px; height: 15px; }
.field input, .field select, .field textarea {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  background: transparent;
  padding: 0 14px 0 2px;
  font-size: 15.5px;
  color: var(--text);
}
.field > input:first-child, .field > select:first-child, .field > textarea:first-child { padding-left: 14px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 1; }
.field__action { flex: none; border: 0; background: transparent; padding: 0 12px; color: var(--text-3); }
.field__action:hover { color: var(--text); }
.field__action .icon { width: 16px; height: 16px; }
.field--select { position: relative; }
.field--select select { appearance: none; padding-right: 36px; cursor: pointer; }
.field--select select option { background: var(--surface-2); color: var(--text); }
.field--select::after {
  content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field--area { height: auto; }
.field--area textarea { padding: 12px 14px; min-height: 150px; resize: vertical; line-height: 1.55; }
.field.is-invalid { border-color: var(--danger); }
.field.is-valid { border-color: #6d9c48; }

.check { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; font-size: 14px; color: var(--text-2); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  position: relative;
  width: 18px; height: 18px; flex: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  transition: background .15s, border-color .15s;
}
.check input:checked + .check__box { background: var(--state); border-color: var(--state); }
.check input:checked + .check__box::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
  border-right: 2px solid var(--on-state); border-bottom: 2px solid var(--on-state);
  transform: rotate(45deg);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.check.is-invalid { color: var(--err-fg); }
.check.is-invalid .check__box { border-color: var(--danger); }
.check a { color: var(--gold-2); }
.check a:hover { text-decoration: underline; }

/* 9 · account box (logged in) ---------------------------------------------- */
.account { padding: 14px 20px 20px; }
.account__user { display: flex; align-items: center; gap: 12px; }
.account__avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--surface-3) center 16% / 150% auto no-repeat;
  box-shadow: 0 0 0 1px var(--gold-dim);
}
.account__hello { font-size: 13px; color: var(--text-3); }
.account__name { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--text); }
.account__wallet {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.account__wallet small { display: block; font-size: 13px; color: var(--text-3); }
.account__wallet strong { font-family: var(--display); font-size: 20px; color: var(--gold-2); }
.account__menu { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.account__menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  border-radius: var(--r);
  font-size: 15px; font-weight: 500;
  color: var(--text-2);
  transition: background .15s, color .15s;
}
.account__menu a .icon { width: 15px; height: 15px; color: var(--text-3); }
.account__menu a:hover { background: var(--surface-2); color: var(--text); }
.account__menu a.is-active { background: var(--state-wash); color: var(--state-fg); }
.account__menu a.is-active .icon { color: var(--state); }
.account__menu .sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* 10 · rank widget --------------------------------------------------------- */
.rank-list { list-style: none; margin: 6px 0 10px; padding: 0; }
.rank-list li a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 20px;
  font-size: 15px;
  color: var(--text);
  transition: background .12s;
}
.rank-list li + li a { box-shadow: inset 0 1px 0 var(--line); }
.rank-list li a:hover { background: var(--surface-2); }
.rank-pos { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--text-3); text-align: center; }
.rank-pos img { width: 22px; height: 17px; margin: 0 auto; }
.rank-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-lv { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.kflag { width: 24px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
.kflag--none { display: block; box-shadow: none; }
/* ranking switcher, as in the first mockup: ‹ Jogadores ›, with a dot per ranking */
.rank-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 20px 4px; }
.rank-nav__name { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.rank-nav__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.2; color: var(--text); white-space: nowrap; }
.rank-nav__label .icon { width: 14px; height: 14px; color: var(--gold); }
.rank-nav__dots { display: flex; align-items: center; gap: 5px; }
.rank-nav__dots i { width: 5px; height: 5px; border-radius: 3px; background: var(--line-2); transition: width .25s, background .25s; }
.rank-nav__dots i.is-on { width: 16px; background: var(--gold); }

/* 11 · events widget ------------------------------------------------------- */
.events-w { padding: 12px 20px 18px; }
.box--events { container-type: inline-size; }
/* a wide box (the sidebar on a tablet): the banner beside the day's list */
@container (min-width: 600px) {
  .events-w { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 24px; align-items: start; }
  .events-w > .ev-carousel { grid-row: 1 / span 2; }
  .events-w > .ev-nav { margin-top: 0; }
}
/* events banner: a carousel with every event running now, then the next one */
.ev-carousel { position: relative; }
.ev-carousel__viewport {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line-2);
}
.ev-carousel__track { display: flex; transition: transform .6s cubic-bezier(.65, .05, .25, 1); }
.ev-carousel__track > .ev-banner { flex: 0 0 100%; border-radius: 0; box-shadow: none; }
.ev-carousel__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red-hi); z-index: 3; }
.ev-carousel.is-single .ev-carousel__progress { display: none; }
.ev-carousel__dots {
  position: absolute; right: 6px; top: 6px; z-index: 3;
  display: flex; gap: 5px;
  padding: 5px 7px;
  border-radius: 10px;
  background: rgba(20, 7, 6, .72);
}
.ev-carousel__dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: rgba(236, 220, 193, .5); transition: width .25s, background .2s; }
.ev-carousel__dots button:hover { background: #f4e7cf; }
.ev-carousel__dots button[aria-current="true"] { width: 18px; background: #f2d38f; }

.ev-banner {
  position: relative;
  display: block;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line-2);
  container-type: inline-size;
}
.ev-banner img { width: 100%; height: auto; aspect-ratio: 469 / 167; object-fit: cover; transition: transform .4s ease; }
a.ev-banner:hover img { transform: scale(1.03); }
/* state chip, top-left: the art has its title in the top centre and the countdown
   squares in the bottom centre */
.ev-banner__live {
  position: absolute; left: 6px; top: 6px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 7px 1px 6px;
  font-size: 11px; font-weight: 700; line-height: 17px;
  color: #ff8b7a;
  background: rgba(20, 7, 6, .86);
  border-radius: 10px;
}
.ev-banner__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 2px rgba(226, 74, 59, .35); animation: pulse 1.6s infinite; }
.ev-banner__live--next { color: #f2d38f; }
.ev-banner__live--next::before { background: var(--gold); box-shadow: none; animation: none; }
.ev-banner__live--past { color: #d8c8b8; }
.ev-banner__live--past::before { background: #8c7b6d; box-shadow: none; animation: none; }
.ev-banner.is-past img { filter: grayscale(.55) brightness(.8); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* countdown: the banners have four little squares printed at the bottom centre. Our own
   squares sit exactly over them, a little bigger, so the digits are larger and always fit
   (days, hours, minutes, seconds) */
.ev-cd {
  position: absolute; left: 50%; top: 84.6%; z-index: 2;
  transform: translate(-50%, -50%);
  display: grid; grid-template-columns: repeat(4, 9.4cqw); gap: 1.6cqw;
  font-weight: 800; font-size: clamp(12px, 5.3cqw, 22px); line-height: 1;
  color: #f2d38f;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px #000;
}
.ev-cd span {
  position: relative;
  display: grid; place-items: center;
  height: 8.8cqw;
  border-radius: 2px;
  background: rgba(14, 11, 10, .88);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 220, .2), 0 1px 3px rgba(0, 0, 0, .55);
}
/* the colons between the squares, as printed on the banners */
.ev-cd span + span::before {
  content: ":"; position: absolute; left: -.8cqw; top: 50%;
  transform: translate(-50%, -54%);
  font-size: .78em; color: rgba(255, 244, 220, .7);
}
.ev-banner__title {
  position: absolute; inset: auto 0 0 0;
  padding: 18px 12px 9px;
  font-family: var(--display); font-weight: 700; font-size: 17px; color: #fff;
  text-shadow: 0 1px 3px #000;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
  text-align: center;
}
/* the designer's placeholder banner has no squares: title in the middle, countdown below it */
.ev-banner--plain .ev-banner__title { inset: 0 0 30% 0; display: grid; place-items: center; background: rgba(0, 0, 0, .25); font-size: 19px; }

.ev-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 8px; }
.ev-nav__date { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--text); text-align: center; line-height: 1.25; }
.ev-nav__date small { display: block; font-family: var(--font); font-weight: 500; font-size: 12.5px; color: var(--text-3); }
.arrow-btn {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; padding: 0;
  color: var(--text-2);
  transition: border-color .15s, color .15s;
}
.arrow-btn .icon { width: 11px; height: 11px; }
.arrow-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.arrow-btn[disabled] { opacity: .35; pointer-events: none; }

.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ev-item {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--r);
  color: var(--text);
  transition: background .12s;
}
a.ev-item:hover { background: var(--surface-2); }
.ev-item.is-live { background: var(--red-wash); box-shadow: inset 2px 0 0 var(--red-hi); }
/* the event open on the page (evento.html): a gold frame, like the open ranking's */
.ev-item.is-selected { box-shadow: inset 0 0 0 2px var(--gold), 0 0 14px var(--gold-wash); }
.ev-item.is-selected.is-live { box-shadow: inset 2px 0 0 var(--red-hi), inset 0 0 0 2px var(--gold), 0 0 14px var(--gold-wash); }
.ev-item.is-past .ev-ico { filter: grayscale(.7) brightness(.85); }
.ev-item__body { min-width: 0; flex: 1; }
.ev-item__title { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-item__time { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ev-item__state { font-size: 12px; font-weight: 700; color: var(--text-3); }
.ev-item.is-live .ev-item__state { color: var(--live-fg); }
.ev-empty { padding: 14px 6px; font-size: 14px; color: var(--text-3); }
.ev-more { display: block; margin-top: 8px; font-size: 14px; color: var(--gold); }

/* event icon: a medallion with the event's own art and its name (the image carries the
   ring and the label, as in the designer's "mining" icon) */
.ev-ico { position: relative; width: 50px; height: 50px; flex: none; display: grid; place-items: center; }
.ev-ico img { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.ev-ico--lg { width: 68px; height: 68px; }
/* fallback for things without a medallion (dungeons with no picture) */
.ev-ico--glyph {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--gold);
}
.ev-ico--glyph .icon { width: 16px; height: 16px; }
.ev-ico__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 12 · top panel (slider + download + stats) ------------------------------ */
.top-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
}
.slider {
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.slider__viewport { position: relative; flex: 1 0 auto; aspect-ratio: 664 / 277; overflow: hidden; background: var(--bg-2); }
.slider__track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.65, .05, .25, 1); }
.slider__slide { flex: 0 0 100%; height: 100%; position: relative; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; }
/* the slider and the events banner can be dragged (main.js "carousel"): sideways is theirs, up
   and down stay the page's scroll; no text selection or dragging of the pictures meanwhile */
.slider__track, .ev-carousel__track { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.slider__track img, .ev-carousel__track img { -webkit-user-drag: none; }
.slider__track.is-dragging, .ev-carousel__track.is-dragging { transition: none; }
.is-dragging, .is-dragging * { cursor: grabbing; }
/* dots down the right side of the picture, as in the mockup */
.slider__dots {
  position: absolute; right: 12px; top: 50%; z-index: 2;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 7px;
}
.slider__dot {
  width: 14px; height: 14px; padding: 0;
  border: 2px solid #dfb07c; border-radius: 50%;
  background: rgba(30, 7, 5, .75);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  transition: background .2s, border-color .2s, transform .2s;
}
.slider__dot:hover { border-color: #fff0d2; transform: scale(1.12); }
.slider__dot[aria-current="true"] { background: #b5140b; border-color: #f2cb96; }
.slider__progress { position: absolute; left: 0; bottom: 0; z-index: 2; height: 2px; width: 0; background: #f2d38f; }
/* under the picture: tag and title, in the colours of the theme in use (the surface of the
   cards in Bordô and Creme; a bordô bar like the other bars in Misto) */
.slider__caption {
  position: relative;
  padding: 11px 18px 13px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.slider__link { display: block; min-width: 0; }
.slider__meta { display: block; font-size: 13.5px; line-height: 1.3; color: var(--text-3); }
.slider__title { display: block; margin-top: 2px; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.slider__link:hover .slider__title { color: var(--gold-2); }

.quick { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dl-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, var(--red-lo));
  color: var(--on-red);
  box-shadow: inset 0 1px 0 rgba(255, 210, 190, .35), 0 6px 22px rgba(194, 42, 31, .28);
  transition: filter .15s, transform .1s;
}
.dl-btn:hover { filter: brightness(1.07); }
.dl-btn:active { transform: translateY(1px); }
.dl-btn > .icon { width: 26px; height: 26px; }
.dl-btn__text { display: grid; line-height: 1.25; }
.dl-btn__text strong { font-family: var(--display); font-weight: 800; font-size: 20px; }
.dl-btn__text small { font-size: 13.5px; font-weight: 500; opacity: .85; }

.stats {
  flex: 1;
  display: grid;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
}
.stat { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; }
.stat + .stat { box-shadow: inset 0 1px 0 var(--line); }
.stat__icon { display: grid; place-items: center; }
.stat__icon img { max-width: 26px; max-height: 24px; width: auto; opacity: .9; }
.stat__body { display: grid; line-height: 1.2; }
.stat__body b { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.stat__body span { font-size: 13.5px; color: var(--text-2); }
/* live numbers (main.js "live stats"): the value rolls to the new one, a +n / -n rises
   next to it and fades, and the number glows for a moment */
.stat__body .stat__num { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: inherit; color: inherit; }
.stat__delta {
  font-style: normal; font-size: 12.5px; font-weight: 700; line-height: 1;
  color: var(--ok-fg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  animation: stat-delta 1.8s ease-out forwards;
}
.stat.is-down .stat__delta { color: var(--err-fg); }
.stat.is-up .stat__body b, .stat.is-down .stat__body b { animation: stat-glow 1.2s ease-out; }
@keyframes stat-delta { 0% { opacity: 0; transform: translateY(5px); } 15% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes stat-glow { from { text-shadow: 0 0 14px color-mix(in srgb, currentColor 70%, transparent); } to { text-shadow: 0 0 14px transparent; } }
.dot-online { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(143, 211, 106, .15); animation: pulse 2.4s infinite; }

/* 13 · panel & tabs -------------------------------------------------------- */
.panel {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
}
.panel__head {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 10px var(--pad) 0;
  border-bottom: 1px solid var(--line);
}
.panel__body { flex: 1 0 auto; display: flex; flex-direction: column; padding: var(--pad); }
.panel__body > * { min-width: 0; }
.panel__head-extra { margin-left: auto; align-self: center; padding: 8px 0; }

/* centred in the head (as in the mockup); when they do not fit they start at the left and scroll */
.tabs { display: flex; align-items: flex-end; gap: 8px; min-width: 0; max-width: 100%; margin-inline: auto; padding-top: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
/* tabs are buttons sitting on the head's bottom line, as in the designer's mockup;
   the active one is red like every other "current" state */
.tab {
  position: relative;
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 9px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  box-shadow: inset 0 1px 0 rgba(255, 220, 190, .06);
  font-size: 15.5px; font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .15s, border-color .15s, filter .15s;
}
.tab img { height: 17px; width: auto; opacity: .8; }
.tab .icon { width: 15px; height: 15px; color: var(--gold); }
.tab:hover { color: var(--text); border-color: var(--gold-dim); }
.tab.is-active, .tab[aria-selected="true"] {
  border-color: var(--red-hi);
  background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, var(--red-lo));
  box-shadow: inset 0 1px 0 rgba(255, 210, 190, .35);
  color: var(--on-red);
}
.tab.is-active:hover, .tab[aria-selected="true"]:hover { filter: brightness(1.06); }
.tab.is-active img, .tab[aria-selected="true"] img { opacity: 1; }
.tab.is-active .icon, .tab[aria-selected="true"] .icon { color: var(--on-red); }
.tabs--sm { gap: 5px; }
.tabs--sm .tab { height: 42px; padding: 0 11px; gap: 7px; font-size: 14px; }
/* more tabs than room (narrow screens): fade the cut edge so it reads as "scroll for more" */
:is(.tabs, .rk-rail).is-cut-end { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
:is(.tabs, .rk-rail).is-cut-start { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
:is(.tabs, .rk-rail).is-cut-start.is-cut-end { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }

/* page title in the head (single title pages) */
.panel__title-tab {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
  padding: 16px 0 18px;
  font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.2;
  color: var(--heading);
}
.panel__title-tab .icon { width: 20px; height: 20px; color: var(--gold); }
.panel__title-tab img { height: 22px; }
.panel__head > .panel__title-tab { margin-right: auto; }

/* the home page's board (forum.js): the news' tabs, centred as in the mockup; in the forum,
   its name in their place */
.board:not(.board--forum) .board__title, .board--forum [data-board-tabs] { display: none; }
.board__title:focus { outline: none; }

/* 14 · news ---------------------------------------------------------------- */
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 12px 0 10px;
  border-radius: 14px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap;
  transition: color .15s;
}
.tag img { height: 15px; width: auto; }
a.tag:hover { color: var(--text); }
.tag--sm { height: 24px; font-size: 12.5px; padding: 0 9px 0 8px; gap: 5px; }
.tag--sm img { height: 13px; }
.date { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.date img { width: 15px; height: 15px; opacity: .6; filter: grayscale(1) brightness(1.8); }
.date .icon { width: 13px; height: 13px; }

.section-title {
  margin: 36px 0 16px;
  font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.25;
  color: var(--heading);
}
.section-title--first { margin-top: 0; }
.section-title small { font-family: var(--font); font-size: 15px; font-weight: 500; }
.section-title a:hover { color: var(--gold-2); }
.post .section-title { margin: 14px 0 18px; font-size: 32px; line-height: 1.15; }
.banner-link { display: block; }
.banner-img { width: 100%; aspect-ratio: 947 / 178; object-fit: cover; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.post-text { margin-top: 18px; max-width: 68ch; font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.post-text p + p { margin-top: .8em; }
.post-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.news-more { margin-top: 32px; display: grid; }
.news-card {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 20px 0;
  box-shadow: inset 0 1px 0 var(--line);
}
.news-card__img { width: 100%; aspect-ratio: 25 / 11; object-fit: cover; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); transition: filter .2s; }
.news-card:hover .news-card__img { filter: brightness(1.12); }
.news-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-card__title { margin: 8px 0 4px; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--text); }
.news-card__title a:hover { color: var(--gold-2); }
.news-card__text { font-size: 15px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-empty { padding: 48px 20px; text-align: center; color: var(--text-3); }
.news-empty .icon { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--gold-dim); }
.panel__foot { display: flex; justify-content: center; margin-top: auto; padding-top: 24px; }
.btn-more {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 22px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text); font-weight: 600; font-size: 15px;
  transition: border-color .15s, background .15s;
}
.btn-more:hover { border-color: var(--gold-dim); background: var(--surface-3); }
.btn-more[disabled] { opacity: .5; pointer-events: none; }

/* 15 · prose (rules, terms, article) -------------------------------------- */
.prose { max-width: 72ch; color: var(--text-2); font-size: 16px; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2em; font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.25; color: var(--heading); }
.prose h3 { margin-top: 1.6em; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); }
.prose h4 { margin-top: 1.4em; font-size: 16px; font-weight: 700; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--gold-dim); }
.prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose .lead { font-size: 18px; color: var(--text); }
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); font-size: 14.5px; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--gold-2); }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule-card { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.rule-card h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); }
.rule-card h3 .num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px var(--gold-dim); color: var(--gold-2); font-size: 14px; }
.rule-card ul { margin: 0; padding-left: 1.2em; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.rule-card li + li { margin-top: .4em; }
.rule-card li::marker { color: var(--gold-dim); }

/* 16 · tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.rtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.rtable thead th {
  height: 42px; padding: 0 14px;
  text-align: left; white-space: nowrap;
  font-size: 13px; font-weight: 600;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.rtable thead th a { display: inline-flex; align-items: center; gap: 6px; }
.rtable thead th a:hover { color: var(--text); }
.rtable thead th .icon { width: 10px; height: 10px; }
.rtable td { height: 48px; padding: 0 14px; white-space: nowrap; color: var(--text); }
.rtable tbody tr + tr td { box-shadow: inset 0 1px 0 var(--line); }
.rtable tbody tr { transition: background .12s; }
.rtable tbody tr:hover { background: var(--surface-2); }
.rtable .c { text-align: center; }
.rtable .r { text-align: right; }
.rtable .num { font-variant-numeric: tabular-nums; color: var(--text-2); }
.rtable td a { font-weight: 600; color: var(--text); }
.rtable td a:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.rtable .pos { width: 60px; text-align: center; font-family: var(--display); font-weight: 700; color: var(--text-3); }
.rtable .pos img { width: 22px; height: 17px; margin: 0 auto; }
.rtable .muted { color: var(--text-3); }
.race { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; color: var(--text-2); }
.race img { width: 22px; height: 22px; border-radius: var(--r-sm); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.race span { font-size: 14px; }
.kingdom { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; color: var(--text-2); }
.kingdom img { width: 24px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
.kingdom span { font-size: 14px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.toolbar__title { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--heading); }
.toolbar__title small { display: block; margin-top: 4px; font-family: var(--font); font-size: 14.5px; font-weight: 400; color: var(--text-2); }
.search { display: flex; gap: 8px; width: min(380px, 100%); }
.search .field { flex: 1; min-width: 0; }
.search .btn { height: 46px; }

/* 16b · ranking ------------------------------------------------------------ */
/* Jogadores and Guilds are the tabs on top; the rankings of each in a column on the left (the
   one open: gold frame, red tile, like the active tabs); the top three on a podium, always on the
   dark stage whatever the theme; then the whole list. Gold, silver and bronze for 1, 2 and 3. */
.rk {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start;
  --rk-top: 24px;              /* where the column (and the list's column names) stay while scrolling */
  --rk-bg: var(--surface);     /* the panel's colour, for the band over the stuck column names */
}
.rk-main { min-width: 0; }
.rk-side { position: sticky; top: var(--float-top, var(--rk-top)); min-width: 0; }   /* the column comes along while the list scrolls (section 29c) */
@media (min-width: 1121px) { .rk-side { --float: 1; } }
.rk-rail { position: relative; display: grid; gap: 8px; }
.rk-cat {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text-2);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
/* the open one's gold wash and red tile fade in, the old one's fade out */
.rk-cat::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-wash), transparent 85%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.rk-cat.is-active::before { opacity: 1; }
.rk-cat:hover { border-color: var(--gold-dim); }
.rk-cat__ico {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--gold);
  transition: color .3s var(--ease);
}
.rk-cat__ico::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, var(--red-lo));
  box-shadow: inset 0 1px 0 rgba(255, 210, 190, .35);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.rk-cat__ico .icon { width: 17px; height: 17px; }
.rk-cat__text { display: grid; min-width: 0; }
.rk-cat__name { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--text); }
.rk-cat__desc { margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--text-3); }
.rk-cat.is-active {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 18px var(--gold-wash);
}
.rk-cat.is-active .rk-cat__ico { box-shadow: none; color: var(--on-red); }
.rk-cat.is-active .rk-cat__ico::before { opacity: 1; }
.rk-cat:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
/* one gold frame for the column, on the ranking open, that glides to the next one (ranking.js
   puts it; without JavaScript each open ranking has its own frame, above) */
.rk-rail__mark {
  position: absolute; left: 0; top: 0; z-index: 2;
  border-radius: var(--r);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 18px var(--gold-wash);
  pointer-events: none;
  transition: transform .36s var(--ease), width .36s var(--ease), height .36s var(--ease);
}
.rk-rail__mark.is-instant { transition: none; }
.rk-rail.has-mark .rk-cat.is-active { border-color: var(--line); box-shadow: none; }

/* the medals */
.podium__place--1, .rk-top--1 { --medal: #e2b866; --medal-hi: #fbe7a8; --medal-lo: #a2742b; --glow: rgba(242, 196, 90, .45); --medal-fg: #f5d898; }
.podium__place--2, .rk-top--2 { --medal: #c9d2db; --medal-hi: #f6f9fb; --medal-lo: #7d8995; --glow: rgba(200, 215, 230, .35); --medal-fg: #e6edf3; }
.podium__place--3, .rk-top--3 { --medal: #c98652; --medal-hi: #f5c7a0; --medal-lo: #85491f; --glow: rgba(214, 140, 80, .38); --medal-fg: #efb68a; }

/* podium: the class busts come out of their medal; under them the plinths, the number carved */
.podium {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: end;
  margin: 0 0 20px; padding: 22px 28px 0;
  list-style: none;
  border: 1px solid #5a2219;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 50% 0%, rgba(242, 196, 120, .16), transparent 70%),
    radial-gradient(60% 45% at 50% 100%, rgba(214, 52, 38, .22), transparent 75%),
    var(--rings) 0 0 / 44px 44px,
    linear-gradient(180deg, #3a110d, #1f0806);
  box-shadow: inset 0 1px 0 rgba(255, 210, 170, .08), 0 1px 2px rgba(40, 10, 5, .2);
  color: #f4e7cf;
}
.podium__place { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.podium__place > :not(.podium__plinth) { max-width: calc(100% - 12px); }
.podium__place--1 { grid-column: 2; grid-row: 1; }
.podium__place--2 { grid-column: 1; grid-row: 1; }
.podium__place--3 { grid-column: 3; grid-row: 1; }
.podium__medal {
  --d: 80px;
  position: relative; display: block; flex: none;
  width: var(--d); height: var(--d);
  margin-top: calc(var(--d) * .3);   /* room for the head that comes out of the medal */
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--glow), transparent 72%), #1d0907;
  box-shadow: 0 0 0 3px var(--medal), 0 0 0 5px rgba(20, 5, 3, .55), 0 0 28px var(--glow);
}
.podium__place--1 .podium__medal { --d: 96px; }
/* the bust is wider than the medal: inside the circle at the bottom, and above its middle only
   as wide as the medal, so the head comes out over the rim */
.podium__bust {
  position: absolute; left: 50%; bottom: 0;
  width: calc(var(--d) * 1.18); max-width: none; height: auto;
  transform: translateX(-50%);
  -webkit-mask: linear-gradient(#000 0 0) 50% 0 / var(--d) calc(100% - var(--d) / 2) no-repeat,
    radial-gradient(circle calc(var(--d) / 2) at 50% calc(100% - var(--d) / 2), #000 calc(100% - 1px), transparent);
  mask: linear-gradient(#000 0 0) 50% 0 / var(--d) calc(100% - var(--d) / 2) no-repeat,
    radial-gradient(circle calc(var(--d) / 2) at 50% calc(100% - var(--d) / 2), #000 calc(100% - 1px), transparent);
}
.podium__emblem {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--display); font-weight: 800; font-size: calc(var(--d) * .44); line-height: 1;
  color: var(--medal-fg);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .45);
}
.podium__emblem--guild { background: linear-gradient(135deg, rgba(255, 255, 255, .07) 50%, transparent 50%), radial-gradient(circle at 50% 38%, var(--glow), transparent 72%); }
.podium__crown {
  position: absolute; left: 50%; bottom: -13px; z-index: 1;
  width: 36px; height: 27px; padding: 4px 5px;
  transform: translateX(-50%);
  border-radius: 14px;
  background: #1d0907;
  box-shadow: 0 0 0 2px var(--medal), 0 2px 6px rgba(0, 0, 0, .5);
}
.podium__name {
  margin-top: 20px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 16px; font-weight: 700; line-height: 1.3;
  color: #f7ead2;
}
.podium__place--1 .podium__name { font-size: 17px; }
.podium__name:hover { color: var(--medal-fg); text-decoration: underline; text-underline-offset: 3px; }
.podium__name:focus-visible { outline: 2px solid var(--medal-fg); outline-offset: 2px; border-radius: 2px; }
.podium__meta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 2px;
  overflow: hidden; white-space: nowrap;
  font-size: 12.5px; color: #c6a486;
}
.podium__flag { flex: none; width: 19px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.podium__value {
  margin-top: 6px;
  font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--medal-fg);
}
.podium__place--1 .podium__value { font-size: 23px; }
.podium__value small { font-family: var(--font); font-size: 12px; font-weight: 500; color: #c6a486; }
.podium__plinth {
  --h: 40px;
  display: grid; place-items: center; align-self: stretch;
  height: var(--h); margin-top: 14px;
  background: linear-gradient(180deg, rgba(255, 228, 190, .08), rgba(0, 0, 0, .3)), #2b0c09;
  box-shadow: inset 0 3px 0 var(--medal), inset 1px 0 0 rgba(255, 220, 180, .08), inset -1px 0 0 rgba(0, 0, 0, .45), 0 -10px 26px -14px var(--glow);
  font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1;
  color: var(--medal);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .75), 0 1px 0 rgba(255, 236, 205, .18);
}
.podium__place--1 .podium__plinth { --h: 78px; font-size: 36px; border-radius: 3px 3px 0 0; position: relative; z-index: 1; box-shadow: inset 0 3px 0 var(--medal), inset 1px 0 0 rgba(255, 220, 180, .1), inset -1px 0 0 rgba(255, 220, 180, .1), 0 -10px 26px -14px var(--glow), 0 0 18px rgba(0, 0, 0, .45); }
.podium__place--2 .podium__plinth { border-radius: 3px 0 0 0; }
.podium__place--3 .podium__plinth { border-radius: 0 3px 0 0; }
.podium__place--2 .podium__plinth { --h: 56px; font-size: 30px; }
/* while searching the table, the podium steps aside */
.is-searching .podium { display: none; }
/* a ranking that opens: the top three come up into their places, from left to right, once the
   old ones are gone (the plinths stay; ranking.js, .is-rising) */
.podium.is-rising :is(.podium__medal, .podium__name, .podium__meta, .podium__value) { animation: podium-in .28s var(--ease) .07s backwards; }
.podium.is-rising .podium__place--1 :is(.podium__medal, .podium__name, .podium__meta, .podium__value) { animation-delay: .1s; }
.podium.is-rising .podium__place--3 :is(.podium__medal, .podium__name, .podium__meta, .podium__value) { animation-delay: .13s; }
@keyframes podium-in { from { opacity: 0; transform: translateY(6px); } }

/* the list */
.rk-table td { height: 58px; }
/* wide screens: while the list scrolls, its column names stay on top too, on the same line as
   the column of rankings. A band of the panel's colour above them hides the rows going up behind
   (the table's frame cuts it, so it only shows while they are stuck), and the line under them
   goes with them. */
@media (min-width: 1121px) {
  .rk .table-wrap { overflow: clip; }
  .rk-table thead th {
    position: sticky; top: var(--rk-top); z-index: 2;
    border-bottom: 0;
    box-shadow: inset 0 -1px 0 var(--th-line, var(--line));
  }
  .rk-table thead th::before {
    content: ""; position: absolute; left: -1px; right: -1px; bottom: 100%;
    height: var(--rk-top);
    background: var(--rk-bg);
    pointer-events: none;
  }
}
.rk-table abbr { text-decoration: none; cursor: help; }
.rk-table .pos { width: 64px; }
.rk-coin {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--display); font-size: 14px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
.rk-top .rk-coin {
  background: linear-gradient(155deg, var(--medal-hi), var(--medal) 48%, var(--medal-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 0 0 1px rgba(40, 15, 5, .35), 0 2px 6px var(--glow);
  font-size: 15px;
  color: #2a1606;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.rk-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rk-face {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #2a0e0a;
  box-shadow: 0 0 0 1px var(--line-2);
}
.rk-face > img:first-child { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.rk-face > span { font-family: var(--display); font-size: 18px; font-weight: 800; line-height: 1; color: #e2b866; }
.rk-face--mono { background: radial-gradient(circle at 50% 30%, #5f1610, #2a0e0a 75%); }
.rk-face--guild { background: linear-gradient(135deg, #6a1a12 50%, #3d0c08 50%); }
.rk-top .rk-face { box-shadow: 0 0 0 2px var(--medal), 0 0 14px var(--glow); }
.rk-top .rk-face > span { color: var(--medal-fg); }
.rk-face__flag { display: none; }
.rk-who__text { display: grid; min-width: 0; line-height: 1.3; }
.rk-who__text > a { overflow: hidden; text-overflow: ellipsis; }
.rk-who__text small { overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; color: var(--text-3); }
.rk-table td .rk-who__text small a { font-weight: 600; color: var(--text-2); }
.rk-cls { color: var(--text-2); font-size: 14px; }
.rk-val { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.rk-sub { display: block; font-size: 12px; line-height: 1.2; color: var(--text-3); }
.rk-sub--sm { display: none; }
.rk-wars { display: inline-flex; gap: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-wars abbr { margin-left: 2px; font-size: 11.5px; font-weight: 600; }
.rk-wars__w { color: var(--ok-fg); }
.rk-wars__d, .rk-wars .is-zero { color: var(--text-3); font-weight: 600; }
.rk-wars__l { color: var(--err-fg); }
.rk-empty { margin: 14px 0 0; text-align: center; color: var(--text-2); }

/* 17 · forms --------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.form-grid--1 { grid-template-columns: minmax(0, 1fr); }
.form-row, .form-grid > * { min-width: 0; }
.form-row--full { grid-column: 1 / -1; }
.label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.label a { font-weight: 500; font-size: 13.5px; color: var(--gold); }
.label a:hover { color: var(--gold-2); text-decoration: underline; }
.label .opt { font-weight: 400; color: var(--text-3); font-size: 13px; }
.help { margin-top: 7px; font-size: 13.5px; color: var(--text-3); }
.help.is-error { color: var(--err-fg); }
.help a { color: var(--gold); text-decoration: underline; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--line-2); transition: background .25s; }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: #d0533a; }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: #e08a2e; }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: #d4b24a; }
.pw-meter[data-score="4"] i { background: #78b44e; }
.pw-label { display: flex; justify-content: space-between; gap: 16px; margin-top: 5px; font-size: 13px; color: var(--text-3); }
.pw-label > :first-child { white-space: nowrap; }
.pw-label > :last-child { text-align: right; }
.terms-box { height: 170px; overflow-y: auto; padding: 14px 16px; font-size: 14px; line-height: 1.6; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); }
.terms-box h4 { margin: 12px 0 4px; font-size: 14px; color: var(--text); }
.terms-box h4:first-child { margin-top: 0; }
.terms-box a { color: var(--gold); text-decoration: underline; }
.captcha {
  display: inline-flex; align-items: center; gap: 14px;
  width: 304px; max-width: 100%; height: 78px; padding: 0 12px 0 14px;
  background: #f9f9f9; border: 1px solid #d3d3d3; border-radius: 3px;
  color: #222; font-size: 14px; font-family: Roboto, Arial, sans-serif;
}
.captcha__box { width: 26px; height: 26px; border: 2px solid #c1c1c1; border-radius: 2px; background: #fff; flex: none; }
.captcha__brand { margin-left: auto; text-align: center; font-size: 9px; color: #555; line-height: 1.2; }
.captcha__brand b { display: block; width: 30px; height: 30px; margin: 0 auto 2px; border-radius: 50%; background: conic-gradient(#4a90e2 0 33%, #1a73e8 0 66%, #aab4be 0); }
.img-captcha { display: flex; align-items: center; gap: 12px; }
.img-captcha__img {
  flex: none; width: 132px; height: 46px; display: grid; place-items: center;
  border-radius: var(--r);
  background: repeating-linear-gradient(45deg, #e7dcc6 0 6px, #d8cbb2 6px 12px);
  font: italic 800 23px/1 Georgia, serif; letter-spacing: 5px; color: #4c2a1a;
  user-select: none;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.form-actions .btn-sign { width: auto; min-width: 220px; margin: 0; }
.form-actions .muted a { color: var(--gold-2); }
.form-card { padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.form-card + .form-card { margin-top: 18px; }
.form-card__title { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--heading); }
.form-card__title .icon { width: 17px; height: 17px; color: var(--gold); }
.form-card__desc { margin-bottom: 18px; font-size: 14.5px; color: var(--text-2); }
.form-card .btn-sign { width: 100%; margin-top: 18px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.cards-2 > .form-card + .form-card { margin-top: 0; }

.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: step; }
.steps li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  font-size: 14px; color: var(--text-3);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--text-2);
}
.steps li strong { display: block; font-size: 15px; font-weight: 600; color: var(--text-2); }
.steps li a { color: var(--gold); }
.steps li.is-current { border-color: var(--state); background: var(--state-wash); color: var(--text-2); }
.steps li.is-current strong { color: var(--state-fg); }
.steps li.is-current::before { background: var(--state); box-shadow: none; color: var(--on-state); }

/* 18 · buttons ------------------------------------------------------------- */
.btn, .btn-sign {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px; font-weight: 600; line-height: 1;
  white-space: nowrap;
  transition: background .15s, border-color .15s, filter .15s, transform .1s;
}
.btn:hover { background: var(--surface-3); border-color: var(--gold-dim); }
.btn:active, .btn-sign:active { transform: translateY(1px); }
.btn .icon, .btn-sign .icon { width: 15px; height: 15px; }
/* primary: red, used once per block */
.btn--primary, .btn-sign, .btn--gold {
  border: 0;
  background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, var(--red-lo));
  color: var(--on-red);
  box-shadow: inset 0 1px 0 rgba(255, 210, 190, .35), 0 4px 16px rgba(194, 42, 31, .25);
}
.btn--primary:hover, .btn-sign:hover, .btn--gold:hover { filter: brightness(1.1); background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, var(--red-lo)); }
.btn-sign { width: 100%; height: 46px; font-size: 16px; }
.btn--dark { background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); }
.btn--discord { border: 0; background: #5865f2; color: #fff; }
.btn--discord:hover { background: #4752c4; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn--lg { height: 50px; padding: 0 24px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold-2); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow .icon { width: 11px; height: 11px; }

/* 19 · badges & alerts ----------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge--live { background: var(--red-wash); color: var(--live-fg); box-shadow: inset 0 0 0 1px rgba(226, 74, 59, .45); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-hi); animation: pulse 1.6s infinite; }
.badge--next { background: var(--gold-wash); color: var(--gold-2); }
.badge--done, .badge--closed { background: var(--surface-3); color: var(--text-3); }
.badge--ok { background: rgba(143, 211, 106, .12); color: var(--ok-fg); }
.badge--warn { background: rgba(242, 184, 75, .12); color: var(--warn-fg); }
.badge--open { background: rgba(127, 182, 217, .12); color: var(--info-fg); }
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  color: var(--text-2);
  font-size: 15px;
}
.alert .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--gold); }
.alert strong { color: var(--text); }
.alert a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.alert--soft { border-left-color: var(--gold-dim); }
.alert--ok { border-left-color: var(--ok); }
.alert--error { border-left-color: var(--danger); }
.alert--error .icon { color: var(--danger); }
.alert--ok .icon { color: var(--ok); }
.alert + * { margin-top: 20px; }

/* 20 · pager & chips ------------------------------------------------------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: grid; place-items: center;
  border-radius: var(--r);
  font-weight: 600; font-size: 14.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.pager a:hover { background: var(--surface-2); color: var(--text); }
.pager [aria-current="page"] { background: var(--state-wash); color: var(--state-fg); box-shadow: inset 0 0 0 1px var(--state); }
.pager .arrow-btn { min-width: 32px; width: 32px; height: 32px; padding: 0; border-radius: 50%; }
.pager .gap { color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  border-radius: 17px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 14px; font-weight: 600;
  color: var(--text-2);
  transition: border-color .15s, color .15s, background .15s;
}
.chip .icon { width: 13px; height: 13px; }
.chip:hover { border-color: var(--gold-dim); color: var(--text); }
.chip.is-active { background: var(--state-wash); border-color: var(--state); color: var(--state-fg); }
.chip small { font-weight: 500; color: var(--text-3); }

/* 21 · profiles ------------------------------------------------------------ */
.profile-head { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: stretch; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.info-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; box-shadow: inset 0 -1px 0 var(--line); }
.info-list dt { font-size: 14px; color: var(--text-3); }
.info-list dd { margin: 0; font-weight: 600; color: var(--text); text-align: right; display: flex; align-items: center; gap: 8px; }
.info-list dd a { color: var(--gold-2); }
.info-list dd a:hover { text-decoration: underline; }
.hero-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  min-height: 300px; padding: 16px;
  border-radius: var(--r-lg);
  background: radial-gradient(ellipse at 50% 80%, rgba(214, 52, 38, .22), transparent 62%), var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-card img { position: relative; max-height: 270px; width: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.hero-card__label { position: relative; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.points-badge { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px; border-radius: 18px; background: var(--gold-wash); color: var(--gold-2); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.points-badge img { width: 24px; height: 24px; }
.quest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.quest { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.quest small { font-weight: 400; color: var(--text-3); }
.quest .icon { width: 16px; height: 16px; color: var(--ok); }
.quest.is-todo { color: var(--text-3); }
.quest.is-todo .icon { color: var(--line-2); }
.kill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.kill { display: flex; align-items: center; gap: 11px; padding: 6px 12px 6px 6px; border-radius: var(--r); background: var(--surface-2); }
.kill img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.kill__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.25; }
.kill__n { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.kill.is-zero { opacity: .45; }
.kill.is-zero .kill__n { color: var(--text-3); }
.kill-grid.is-collapsed .kill:nth-child(n+13) { display: none; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.tile__label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-3); }
.tile__label .icon { width: 13px; height: 13px; color: var(--gold); }
.tile__value { margin-top: 4px; font-family: var(--display); font-size: 23px; font-weight: 700; color: var(--text); line-height: 1.2; overflow-wrap: anywhere; }
.tile__value small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--text-3); }
.tile__value a { color: var(--gold-2); }
.tile--light { background: transparent; }
.quote-box { display: flex; gap: 14px; padding: 14px 18px; border-left: 3px solid var(--gold-dim); background: var(--surface-2); border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--text-2); }
.quote-box .icon { width: 18px; height: 18px; color: var(--gold-dim); }

/* 22 · events page --------------------------------------------------------- */
.ev-feature { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 26px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.ev-feature h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--text); }
.ev-feature h3 a:hover { color: var(--gold-2); }
.ev-feature p { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.ev-feature .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ev-feature .meta span { display: inline-flex; align-items: center; gap: 7px; }
.ev-feature .meta .icon { width: 13px; height: 13px; color: var(--gold); }
.countdown { display: inline-grid; grid-auto-flow: column; gap: 6px; margin-top: 14px; }
.countdown > span { min-width: 56px; padding: 7px 4px 6px; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); text-align: center; font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--gold-2); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown > span small { display: block; margin-top: 5px; font-family: var(--font); font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.day-group + .day-group { margin-top: 26px; }
.day-group__title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); }
.day-group__title small { font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--text-3); }
.ev-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ev-rows > li { min-width: 0; }
.ev-row { display: flex; align-items: center; gap: 12px; padding: 5px 14px 5px 5px; border-radius: var(--r); background: var(--surface-2); color: var(--text); transition: background .12s; }
.ev-row:hover { background: var(--surface-3); }
.ev-row__body { flex: 1; min-width: 0; }
.ev-row__title { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-row__time { font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ev-row__cd { font-size: 13px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ev-row__cd b { font-weight: 600; color: var(--text-2); }
.ev-detail { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; align-items: start; }
.ev-detail .info-list { grid-template-columns: 1fr; }

/* 23 · gallery ------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery a { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.gallery a:hover img { transform: scale(1.04); filter: brightness(1.08); }
.gallery__zoom { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(18, 12, 8, .75); color: var(--gold-2); opacity: 0; transition: opacity .2s; }
.gallery a:hover .gallery__zoom, .gallery a:focus-visible .gallery__zoom { opacity: 1; }
.gallery__zoom .icon { width: 14px; height: 14px; }
.video-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 7; box-shadow: 0 0 0 1px var(--line); }
.video-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); transition: filter .3s, transform .5s; }
.video-card:hover img { filter: brightness(.9); transform: scale(1.02); }
.video-card__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card__play span { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, var(--red-hi), var(--red-lo)); color: var(--on-red); box-shadow: 0 6px 24px rgba(0, 0, 0, .5); transition: transform .2s; }
.video-card:hover .video-card__play span { transform: scale(1.06); }
.video-card__play .icon { width: 26px; height: 26px; margin-left: 4px; }
.video-card__title { position: absolute; left: 20px; bottom: 16px; font-family: var(--display); font-weight: 700; font-size: 21px; color: #fff; text-shadow: 0 2px 8px #000; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 30px; background: rgba(10, 6, 4, .94); opacity: 0; visibility: hidden; transition: .2s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: min(1200px, 100%); }
.lightbox img { max-height: calc(100vh - 140px); width: auto; margin: 0 auto; border-radius: var(--r); }
.lightbox figcaption { margin-top: 12px; text-align: center; color: var(--text-2); font-size: 14.5px; }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface-2); color: var(--text); }
.lightbox__btn:hover { border-color: var(--gold); color: var(--gold-2); }
.lightbox__btn .icon { width: 15px; height: 15px; }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }
.lightbox__close { top: 24px; right: 18px; transform: none; }

/* 24 · presentation -------------------------------------------------------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: center; }
.intro__art { padding: 24px; border-radius: var(--r-lg); background: radial-gradient(ellipse at 50% 55%, rgba(214, 52, 38, .18), transparent 70%), var(--surface-2); border: 1px solid var(--line); }
.intro__logo { width: 100%; }
.intro__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.class-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.class-card { display: flex; flex-direction: column; align-items: center; padding: 14px 12px 18px; border-radius: var(--r-lg); background: radial-gradient(ellipse at 50% 70%, rgba(214, 52, 38, .14), transparent 65%), var(--surface-2); border: 1px solid var(--line); text-align: center; overflow: hidden; }
.class-card__art { height: 200px; display: flex; align-items: flex-end; justify-content: center; }
.class-card__art img { max-height: 200px; width: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); transition: transform .35s ease; }
.class-card__art img + img { margin-left: -46px; }
.class-card:hover .class-card__art img { transform: translateY(-4px); }
.class-card h3 { margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--text); }
.class-card p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.kingdom-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kingdom-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.kingdom-card img { width: 52px; height: 33px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
.kingdom-card h3 { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text); line-height: 1.2; }
.kingdom-card p { font-size: 13.5px; color: var(--text-2); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.feature { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--r); background: var(--surface-2); font-weight: 500; font-size: 14.5px; color: var(--text); transition: background .12s, color .12s; }
a.feature:hover { background: var(--surface-3); color: var(--gold-2); }
.feature .icon { width: 16px; height: 16px; color: var(--gold); }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dungeon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dungeon { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: var(--r); background: var(--surface-2); color: var(--text); transition: background .12s; }
.dungeon:hover { background: var(--surface-3); }
.dungeon img { width: 44px; height: 42px; border-radius: var(--r-sm); }
.dungeon strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.dungeon small { font-size: 13px; color: var(--text-3); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: var(--r-lg); background: radial-gradient(ellipse at 15% 50%, rgba(214, 52, 38, .16), transparent 60%), var(--surface-2); border: 1px solid var(--line); }
.cta-band h3 { font-family: var(--display); font-weight: 700; font-size: 23px; color: var(--text); }
.cta-band p { margin-top: 2px; font-size: 15px; color: var(--text-2); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 25 · account pages ------------------------------------------------------- */
.char-list { display: grid; gap: 8px; }
.char {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center; gap: 18px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.char__face { width: 56px; height: 56px; border-radius: var(--r); background: var(--surface-3) center 15% / 160% auto no-repeat; }
.char__name { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); line-height: 1.2; }
.char__sub { font-size: 14px; color: var(--text-3); }
.char__col small { display: block; font-size: 13px; color: var(--text-3); }
.char__col span { font-weight: 500; color: var(--text); }
.char__col a { color: var(--gold-2); }
.char__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.char__who { display: grid; min-width: 0; line-height: 1.35; }
.char__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.char__flag { width: 19px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.char__guild { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; color: var(--text-3); }
.char__guild .icon { flex: none; width: 12px; height: 12px; color: var(--gold); }
.char__guild a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--gold-2); }
.char__guild a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* on the row's buttons: friends online, and the shop's dot when it is open */
.char__count { display: grid; place-items: center; min-width: 20px; height: 18px; margin-left: 1px; padding: 0 5px; border-radius: 9px; background: #4f9a2c; font-size: 11.5px; font-weight: 800; line-height: 1; color: #fff; }
.char__dot { width: 8px; height: 8px; margin-left: 1px; border-radius: 50%; background: #5fbf3a; box-shadow: 0 0 0 3px rgba(95, 191, 58, .22); }
.char__count.is-off { background: rgba(140, 123, 109, .35); color: inherit; }
.char__dot.is-off { background: #8c7b6d; box-shadow: none; }
.pack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; text-align: center; overflow: hidden; transition: border-color .15s, background .15s; }
.pack:hover { border-color: var(--gold-dim); }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack:has(input:checked) { border-color: var(--state); background: var(--state-wash); }
.pack:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.pack .icon { width: 26px; height: 26px; color: var(--gold); }
.pack__md { font-family: var(--display); font-size: 25px; font-weight: 700; color: var(--text); line-height: 1.1; }
.pack__md small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--text-3); }
.pack__bonus { min-height: 18px; font-size: 13px; font-weight: 600; color: var(--ok-fg); }
.pack__price { margin-top: 4px; font-weight: 700; color: var(--gold-2); }
.pack__ribbon { position: absolute; top: 10px; right: -30px; transform: rotate(35deg); width: 120px; padding: 2px 0; background: var(--red); color: var(--on-red); font-size: 11px; font-weight: 700; }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pay { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.pay:hover { border-color: var(--gold-dim); }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay:has(input:checked) { border-color: var(--state); background: var(--state-wash); }
.pay__icon { width: 42px; height: 42px; border-radius: var(--r); display: grid; place-items: center; background: var(--surface-3); color: var(--gold); flex: none; }
.pay__icon .icon { width: 19px; height: 19px; }
.pay strong { display: block; color: var(--text); font-size: 15.5px; }
.pay small { font-size: 13.5px; color: var(--text-3); }
.summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-2); }
.summary small { font-size: 13px; color: var(--text-3); }
.summary strong { font-family: var(--display); font-size: 24px; color: var(--gold-2); }
.notfound { text-align: center; padding: 30px 10px 10px; }
.notfound__code { font-family: var(--display); font-weight: 800; font-size: 104px; line-height: 1; color: var(--gold-2); }
.notfound p { margin: 12px auto 24px; max-width: 46ch; color: var(--text-2); }

/* 25b · member area ---------------------------------------------------------- */
/* Painel, Amigos, Loja offline, Definições and Segurança (account.js). The same few pieces:
   an icon on a small tile, framed lists of rows, state badges with a dot, sums in a ledger.
   The two special things get the dark stage of the ranking's podium: the offline shop's time
   and the inventory slots (as in the game). */
.ico-tile {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px;
  border-radius: var(--r);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--gold);
}
.ico-tile .icon { width: 16px; height: 16px; }
.ico-tile--lg { width: 52px; height: 52px; border-radius: var(--r-lg); }
.ico-tile--lg .icon { width: 22px; height: 22px; }

.badge--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--off { background: var(--surface-3); color: var(--text-3); }
.badge--bad { background: rgba(226, 88, 62, .14); color: var(--err-fg); }
.btn--danger { background: transparent; border-color: var(--danger); color: var(--err-fg); }
.btn--danger:hover { background: rgba(226, 88, 62, .1); border-color: var(--danger); }
.btn.is-armed, .btn.is-armed:hover { background: rgba(226, 88, 62, .12); border-color: var(--danger); color: var(--err-fg); }

.group-title { margin: 30px 0 12px; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.25; color: var(--heading); }
.acc-foot { display: flex; align-items: flex-start; gap: 9px; margin: 22px 0 0; font-size: 14px; color: var(--text-3); }
.acc-foot .icon { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--gold); }
.acc-foot a { font-weight: 600; color: var(--gold-2); }
.acc-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty-state {
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px; padding: 18px 20px;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg);
  font-size: 14.5px; color: var(--text-2);
}
.empty-state > .icon { flex: none; width: 22px; height: 22px; color: var(--gold); }
.empty-state strong { color: var(--text); }

/* money: wons and yang */
.money { font-variant-numeric: tabular-nums; }
.money b { font-weight: 700; color: var(--text); }
.money small { font-size: .86em; font-weight: 500; color: var(--text-3); }
.money__plus { color: var(--text-3); }

/* framed lists of rows: settings, sessions, computers, the log */
.lst { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; }
.lst > * + * { box-shadow: inset 0 1px 0 var(--line); }
.lst__row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 16px 13px 14px; }
.lst__main { display: grid; gap: 2px; min-width: 0; }
.lst__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15.5px; font-weight: 700; line-height: 1.35; color: var(--text); }
.lst__desc { font-size: 14px; color: var(--text-2); }
.lst__meta { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13.5px; color: var(--text-3); }
.lst__meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.lst__meta .icon { width: 12px; height: 12px; }
.lst__meta > .lst__text { display: inline; }
.lst__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.lst__row.is-new { animation: row-in 1.4s ease-out; }
@keyframes row-in { from { background: var(--gold-wash); } }
@keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } }
.hwid { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.rename { width: min(260px, 100%); height: 32px; padding: 0 10px; border: 1px solid var(--gold); border-radius: var(--r-sm); background: var(--bg-2); font-weight: 700; color: var(--text); }

/* Painel: the overview, the offline shop's time, the characters' sums */
.acc-overview { display: grid; gap: 10px; }
.tile__sub { margin-top: 2px; font-size: 13px; color: var(--text-3); }
.tile__link { display: inline-block; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--gold-2); }
.tile__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.shop-strip {
  display: grid; grid-template-columns: 38px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.25fr) auto; align-items: center; gap: 18px;
  padding: 13px 18px 13px 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .15s;
}
.shop-strip:hover { border-color: var(--gold-dim); }
.shop-strip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.shop-strip__what, .shop-strip__time, .shop-strip__end { display: grid; min-width: 0; line-height: 1.3; }
.shop-strip__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15.5px; font-weight: 700; }
.shop-strip small { font-size: 13px; color: var(--text-3); }
.shop-strip__time b { font-family: var(--display); font-size: 23px; line-height: 1.15; color: var(--gold-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-strip__end { font-size: 14.5px; color: var(--text); }
.shop-strip__go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gold-2); white-space: nowrap; }
.shop-strip__go .icon { width: 11px; height: 11px; }
.shop-strip.is-open [data-shop-badge] { background: rgba(143, 211, 106, .14); color: var(--ok-fg); }
.shop-strip.is-ending [data-shop-badge] { background: rgba(242, 184, 75, .14); color: var(--warn-fg); }
.shop-strip.is-closed [data-shop-badge] { background: var(--surface-3); color: var(--text-3); }
.shop-strip__count { font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.shop-strip.is-ending [data-shop-time] { color: var(--warn-fg); }
.shop-strip.is-closed [data-shop-time] { color: var(--text-3); }

.ledger {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: var(--lift);
}
/* the Painel's sums: the yang needs the most room */
.ledger:not(.ledger--3) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr); }
.ledger--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ledger__cell { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; min-width: 0; padding: 13px 18px; }
.ledger__cell + .ledger__cell { box-shadow: inset 1px 0 0 var(--line); }
.ledger__cell > .icon { grid-row: 1 / 3; width: 19px; height: 19px; color: var(--gold); }
.ledger dt { font-size: 13px; line-height: 1.3; color: var(--text-3); }
.ledger dd { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.2; color: var(--gold-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger + .char-list { margin-top: 0; }
.ledger-note { margin: 0 0 16px; font-size: 13px; color: var(--text-3); }

/* Definições: a row per setting; it opens in place (<details>) */
.set > summary { list-style: none; cursor: pointer; }
.set > summary::-webkit-details-marker { display: none; }
.set > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; border-radius: var(--r-lg); }
.set > summary:hover .set__btn { background: var(--surface-3); border-color: var(--gold-dim); }
.set__btn { min-width: 96px; pointer-events: none; }
.toolbar + .group-title { margin-top: 6px; }
.set__close, .set[open] .set__open { display: none; }
.set[open] .set__close { display: inline; }
.set[open] > summary { background: var(--gold-wash); }
.set__body { padding: 6px 18px 22px 66px; }
.set__note { margin: 0 0 16px; font-size: 14.5px; color: var(--text-2); }
.set__body .form-actions { margin-top: 20px; }

/* Segurança */

.sec-block { padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); scroll-margin-top: 16px; }
.sec-block + .sec-block { margin-top: 14px; }
.sec-block__head { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 14px; }
.sec-block__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--heading); }
.sec-block__intro p { max-width: 72ch; margin-top: 3px; font-size: 14.5px; color: var(--text-2); }
.sec-block__body, .hwid-bar, .sec-block > .callout, .hwid-add, .sec-block > .help { margin-left: 52px; }
.sec-block__body { margin-top: 16px; }
.sec-block__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-block > .lst, .sec-block > .empty-state { margin-top: 16px; }
.sec-block .lst { background: var(--bg-2); }
.sec-block__foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.sec-note { margin-bottom: 14px; font-size: 14.5px; color: var(--text-2); }
.lst__row.is-current { background: var(--gold-wash); }
.lst__more { display: none !important; }

.twofa { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; counter-reset: tfa; }
.twofa__step { position: relative; padding: 16px 18px 18px 58px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); counter-increment: tfa; }
.twofa__step::before {
  content: counter(tfa);
  position: absolute; left: 16px; top: 15px;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--state); color: var(--on-state);
  font-family: var(--display); font-size: 14px; font-weight: 700;
}
.twofa__title { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--text); }
.twofa__title:focus { outline: none; }
.twofa__step > p { margin-top: 2px; font-size: 14.5px; color: var(--text-2); }
.twofa__pair { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 14px; }
.twofa__qr { flex: none; width: 168px; height: 168px; padding: 10px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 8px 22px rgba(30, 8, 4, .2); }
.twofa__alt { flex: 1 1 230px; min-width: 0; font-size: 14px; color: var(--text-2); }
.twofa__key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.twofa__key [data-2fa-key] { padding: 7px 12px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; font-weight: 700; letter-spacing: .12em; color: var(--text); user-select: all; }
.twofa__hint { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.twofa__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.twofa__form .btn { height: 46px; }
.twofa__step .help { margin-top: 8px; }
.twofa__off { margin-top: 4px; }
.twofa__off > p { font-size: 14.5px; color: var(--text-2); }
.field--code { width: 200px; }
.field--code input { padding: 0 10px !important; font-size: 22px; font-weight: 700; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.field--code input::placeholder { color: var(--line-2); }
.recovery { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
.recovery > p { margin-top: 2px; font-size: 14.5px; color: var(--text-2); }
.recovery__codes {
  list-style: none; margin: 14px 0 0; padding: 14px 18px;
  display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 40px;
  border-radius: var(--r);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 16px; font-weight: 700; letter-spacing: .08em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.recovery__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.recovery__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 18px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--line); }

.callout { display: flex; gap: 12px; margin-top: 16px; padding: 12px 16px; border-radius: var(--r); background: rgba(242, 184, 75, .12); box-shadow: inset 3px 0 0 var(--warn-fg); font-size: 14.5px; color: var(--text-2); }
.callout > .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--warn-fg); }
.callout strong { color: var(--text); }
.callout a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

.hwid-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 16px; }
.slots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.slots__pips { display: inline-flex; gap: 4px; }
.slots__pips i { width: 13px; height: 20px; border-radius: 3px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s; }
.slots__pips i.is-on { background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.slots__label { font-size: 14px; color: var(--text-2); }
.slots__label b { color: var(--text); }
.hwid-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sec-block > .help { margin-top: 10px; }
.hwid-add { margin-top: 14px; padding: 16px 18px 18px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); }
.hwid-add p { margin: 4px 0 12px; font-size: 14.5px; color: var(--text-2); }
.hwid-add .lst { background: var(--surface-2); }
.hwid-auth { display: flex; gap: 8px; }
.hwid-auth .field { width: 230px; height: 36px; }
.hwid-auth .field input { font-size: 14.5px; }
.hwid-manual { margin-top: 18px; }
.hwid-manual .form-actions { margin-top: 16px; }

.log-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; margin-bottom: 20px; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.log { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; }
.log__day + .log__day { box-shadow: inset 0 1px 0 var(--line); }
.log__date { padding: 7px 16px; background: var(--surface); box-shadow: inset 0 -1px 0 var(--line); font-size: 13px; font-weight: 700; color: var(--text-2); }
.log__list { list-style: none; margin: 0; padding: 0; }
.log__list > li + li { box-shadow: inset 0 1px 0 var(--line); }
.log__time { font-size: 13.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.log__row.is-bad .ico-tile { background: linear-gradient(180deg, var(--red-hi), var(--red-lo)); box-shadow: none; color: var(--on-red); }

/* Amigos */
.friends__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 14px; }
.friends__count { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--text-2); }
.friends__count b { color: var(--text); }
.dot-on { width: 9px; height: 9px; border-radius: 50%; background: #5fbf3a; box-shadow: 0 0 0 3px rgba(95, 191, 58, .2); }
.friends__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips--sm { margin: 0; gap: 6px; }
.chips--sm .chip { height: 34px; }
button.chip { cursor: pointer; }
.field--sm { width: 220px; height: 36px; }
.field--sm .field__icon { flex-basis: 34px; }
.field--sm input { font-size: 14.5px; }
.friend-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.friend__link {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .15s;
}
.friend__link:hover { border-color: var(--gold-dim); }
.friend__face { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #2a0e0a center / cover no-repeat; box-shadow: 0 0 0 1px var(--line-2); font-family: var(--display); font-size: 19px; font-weight: 800; color: #e2b866; }
.friend:not(.is-online) .friend__face { filter: grayscale(.8) brightness(.9); }
.friend__dot { position: absolute; right: -1px; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: #8c7b6d; box-shadow: 0 0 0 2.5px var(--surface-2); }
.friend.is-online .friend__dot { background: #5fbf3a; }
.friend__text { display: grid; min-width: 0; line-height: 1.32; }
.friend__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; font-weight: 700; }
.friend__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 9px; font-size: 13px; color: var(--text-2); }
.friend__flag { width: 18px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.friend__guild { display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--text-3); }
.friend__guild .icon { flex: none; width: 11px; height: 11px; color: var(--gold); }
.friend__state { font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.friend.is-online .friend__state { color: var(--ok-fg); }


.item-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.item { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.item__text { display: grid; gap: 1px; min-width: 0; line-height: 1.32; }
.item__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14.5px; font-weight: 700; color: var(--text); }
.item__plus { color: var(--gold-2); }
.item__qty { font-weight: 600; color: var(--text-3); }
.item .money { font-size: 14px; }
.item__since { font-size: 12.5px; color: var(--text-3); }
/* inventory slot: dark like the game's, the icon in the item's colour, upgrade top left, amount
   bottom right; +9 gets the gold rim */
.slot {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 38%, rgba(255, 220, 170, .1), transparent 66%), linear-gradient(180deg, #2b1611, #160806);
  box-shadow: inset 0 0 0 1px #6a3a26, inset 0 0 0 2px rgba(0, 0, 0, .6), inset 0 3px 8px rgba(0, 0, 0, .55);
  color: #e8cf9a;
}
.slot > .icon { width: 24px; height: 24px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
.slot__plus, .slot__qty { position: absolute; font-size: 11px; font-weight: 800; line-height: 1; text-shadow: 0 1px 1px #000, 0 0 3px #000; font-variant-numeric: tabular-nums; }
.slot__plus { left: 4px; top: 4px; color: #f5d898; }
.slot__qty { right: 4px; bottom: 4px; color: #fff; }
.slot--plus { box-shadow: inset 0 0 0 1px #8a5a33, inset 0 0 0 2px rgba(0, 0, 0, .55), inset 0 3px 8px rgba(0, 0, 0, .55); }
.slot--max { box-shadow: inset 0 0 0 1px #d4a24a, inset 0 0 0 2px rgba(0, 0, 0, .5), inset 0 0 16px rgba(242, 196, 90, .28); }
.slot--sm { width: 36px; height: 36px; border-radius: 5px; }
.slot--sm > .icon { width: 17px; height: 17px; }
.slot--sm .slot__plus, .slot--sm .slot__qty { font-size: 9.5px; }
.slot--sm .slot__plus { left: 3px; top: 3px; }
.slot--sm .slot__qty { right: 3px; bottom: 3px; }
.slot[data-i="scroll"] { color: #ecd7a6; }
.slot[data-i="gem"] { color: #8fd3ec; }
.slot[data-i="flask"] { color: #ff7d6b; }
.slot[data-i="ring"], .slot[data-i="hand-sparkles"] { color: #f2cf74; }
.slot[data-i="shield"] { color: #cfd8e2; }
.slot[data-i="cube"] { color: #c9a2ff; }
.slot[data-i="egg"] { color: #f6eee0; }
.slot[data-i="feather"] { color: #ffa65a; }
.slot[data-i="book"] { color: #dba571; }
.slot[data-i="circle"] { color: #84b9ff; }
.sales__row { grid-template-columns: 36px minmax(0, 1fr) auto; }
.sales__row .lst__title { font-size: 15px; }
.sales__row .lst__meta a { font-weight: 600; color: var(--text-2); }
.sales__row .lst__meta a:hover { color: var(--gold-2); }
.sales__row > .money { font-size: 15px; text-align: right; }

/* Segurança: three parts, chosen on cards that say how each part is (like the ranking's column) */
.sec-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.sec-tab {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-2);
  text-align: left;
  color: var(--text-2);
  transition: border-color .15s, box-shadow .15s;
}
.sec-tab:hover { border-color: var(--gold-dim); }
.sec-tab[aria-selected="true"] {
  border-color: var(--gold);
  background: linear-gradient(90deg, var(--gold-wash), transparent 85%) var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 18px var(--gold-wash);
}
.sec-tab[aria-selected="true"] .ico-tile { background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, var(--red-lo)); box-shadow: inset 0 1px 0 rgba(255, 210, 190, .35); color: var(--on-red); }
.sec-tab__text { display: grid; min-width: 0; line-height: 1.3; }
.sec-tab__name { font-size: 15.5px; font-weight: 700; color: var(--text); }
.sec-tab__state { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: var(--text-3); }
.sec-tab__state::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok-fg); }
.sec-tab__state.is-warn { color: var(--warn-fg); }
.sec-tab__state.is-warn::before { background: var(--warn-fg); }
.sec-tab__state.is-bad { color: var(--err-fg); }
.sec-tab__state.is-bad::before { background: var(--err-fg); }
.sec-panel > .acc-foot { margin-top: 18px; }

/* Painel: the windows with a character's friends and shop (<dialog>) */
.modal {
  width: min(760px, calc(100% - 32px)); max-width: none; max-height: min(86vh, 900px);
  margin: auto; padding: 0;
  border: 0; border-radius: var(--r-lg);
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.modal--wide { width: min(900px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(18, 4, 2, .7); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal__box {
  display: flex; flex-direction: column;
  max-height: inherit;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.modal__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 12px 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.modal__face { width: 38px; height: 38px; border-radius: 50%; background: #2a0e0a center / cover no-repeat; box-shadow: 0 0 0 2px var(--gold-dim); }
.modal__title { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.25; color: var(--heading); }
.modal__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); }
.modal__close:hover { background: var(--surface-3); color: var(--text); }
.modal__close .icon { width: 16px; height: 16px; }
.modal__body { flex: 1 1 auto; min-height: 0; padding: 18px 20px 22px; overflow-y: auto; overscroll-behavior: contain; }
.modal__sub { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 12px; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--heading); }
.modal__sub small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--text-3); }
.modal .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal .friend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal .acc-foot { margin-top: 18px; }

/* the account's shop time, on the dark stage, at the top of a shop */
.shop-time {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  margin-bottom: 16px; padding: 12px 18px;
  border: 1px solid #5a2219; border-radius: var(--r-lg);
  background: radial-gradient(70% 120% at 50% 0%, rgba(242, 196, 120, .14), transparent 70%), var(--rings) 0 0 / 44px 44px, linear-gradient(180deg, #3a110d, #1f0806);
  color: #f4e7cf;
}
.shop-time__label { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: #d2b291; }
.shop-time__label .icon { width: 13px; height: 13px; color: #e2b866; }
.shop-time__left { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.1; color: #f5d898; font-variant-numeric: tabular-nums; }
.shop-time__end { font-size: 14px; color: #e5cbad; }
.shop-time.is-ending .shop-time__left { color: #f2b84b; }
.shop-time.is-closed .shop-time__left { color: #b5967d; }
.shopv__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.shopv__name { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--text); }
.shopv__id p { margin-top: 1px; font-size: 14px; color: var(--text-3); }
.shopv__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 0; padding: 14px 0 0; box-shadow: inset 0 1px 0 var(--line); }
.shopv__facts dt { font-size: 13px; color: var(--text-3); }
.shopv__facts dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.35; color: var(--text); }
.shopv__facts dd > b { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.shopv__none { font-size: 14.5px; color: var(--text-3); }
.shopv .empty-state { margin-top: 0; }

/* 25c · support -------------------------------------------------------------- */
/* Suporte (support.js): the tickets on cards that filter them and their list, the frequent
   questions and the help centre, the new ticket's window, and the ticket as a chat (as on
   Discord): a stream of messages the height of the window, the box to write, the details on
   the side. The pop-ups outside the page (emoji, the bar over selected text, the image viewer)
   keep the dark palette in every option. */

/* the member menu's count of replies not read yet */
.nav-count {
  display: inline-grid; place-items: center; flex: none;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  background: var(--red-hi); color: #fff;
  font-size: 11.5px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}
.nav-count[hidden] { display: none; }
.account__menu .nav-count { margin-left: auto; }
.tab .nav-count { margin-left: 1px; }
.tab.is-active .nav-count { background: #fff6ec; color: var(--red); }

/* the cards on top: how many tickets in each state, each in the colour of its state (the same
   as the state's badge in the list); the one chosen fills with it */
.tk-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tk-filter {
  --c: var(--gold-2);
  --c-on: var(--surface);
  position: relative;
  display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 11px 14px 11px 11px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-2);
  text-align: left;
  color: var(--text-2);
  overflow: hidden;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.tk-filter--a-tua-espera { --c: var(--warn-fg); }
.tk-filter--com-a-equipa { --c: var(--info-fg); }
.tk-filter--fechados { --c: var(--text-3); }
.tk-filter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); opacity: .75; }
.tk-filter .ico-tile { background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 36%, transparent); color: var(--c); }
.tk-filter:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.tk-filter[aria-pressed="true"] {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, var(--surface-2));
  box-shadow: inset 0 0 0 1px var(--c);
}
.tk-filter[aria-pressed="true"] .ico-tile { background: var(--c); box-shadow: none; color: var(--c-on); }
.tk-filter__text { display: grid; min-width: 0; line-height: 1.2; }
.tk-filter__n { font-family: var(--display); font-size: 23px; font-weight: 800; line-height: 1.1; color: var(--c); font-variant-numeric: tabular-nums; }
.tk-filter__name { font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--text-2); }
.tk-filter[aria-pressed="true"] .tk-filter__name { color: var(--text); }

/* the categories' colours, the same in every option: the tickets, the questions, the new
   ticket and the chat */
.is-cat-doacoes { --cat-hi: #56a244; --cat-lo: #2f7126; }
.is-cat-bugs { --cat-hi: #e5922f; --cat-lo: #b3621a; }
.is-cat-jogadores { --cat-hi: #9c63c4; --cat-lo: #693c92; }
.is-cat-outros { --cat-hi: #4c95bb; --cat-lo: #2c6688; }
.ico-tile:is(.is-cat-doacoes, .is-cat-bugs, .is-cat-jogadores, .is-cat-outros) {
  background: linear-gradient(180deg, var(--cat-hi), var(--cat-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(40, 10, 5, .2);
  color: #fff;
}
.ico-tile--xs { width: 22px; height: 22px; border-radius: 5px; }
.ico-tile--xs .icon { width: 11px; height: 11px; }

/* the list */
.tk-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; }
.tk-list[hidden] { display: none; }
.tkr + .tkr { box-shadow: inset 0 1px 0 var(--line); }
.tkr__link {
  position: relative;
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: start; gap: 14px;
  padding: 14px 16px 14px 14px;
  color: var(--text);
  transition: background .12s;
}
.tkr__link:hover { background: var(--gold-wash); }
.tkr__link:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.tkr.is-unread .tkr__link::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red-hi); }
.tkr__main { display: grid; gap: 2px; min-width: 0; }
.tkr__title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tkr__subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; line-height: 1.35; }
.tkr__new { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--red-hi); color: #fff; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.tkr__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-size: 13.5px; color: var(--text-3); }
.tkr__id { font-variant-numeric: tabular-nums; }
.tkr__char { display: inline-flex; align-items: center; gap: 6px; }
.tkr__last { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 4px; font-size: 14px; color: var(--text-2); }
.tkr__last > b { flex: none; font-weight: 700; }
.tkr__you { color: var(--text); }
.tkr__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkr__side { display: grid; justify-items: end; gap: 6px; padding-top: 1px; text-align: right; }
.tkr__when { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.tkr__rate { font-size: 13px; font-weight: 600; color: var(--gold-2); white-space: nowrap; }
.tkr.is-closed .tkr__subject { color: var(--text-2); }
.tkr.is-closed .ico-tile { filter: saturate(.3); opacity: .8; }
.tk-badge .icon { width: 10px; height: 10px; }
.stars-mini { display: inline-flex; gap: 1px; color: var(--gold); }
.stars-mini .icon { width: 12px; height: 12px; }
.tk-empty { margin-top: 0; }
.tk-empty p { flex: 1; }
.tk-empty .btn { flex: none; }
/* a character's face, small */
.tk-cface { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #2a0e0a center / cover no-repeat; box-shadow: 0 0 0 1px var(--line-2); }
/* the faces in the chat: the team's with the colour of their role */
.tk-av { flex: none; display: block; width: 40px; height: 40px; border-radius: 50%; background: #2a0e0a center / cover no-repeat; box-shadow: 0 0 0 1px var(--line-2); }
.tk-av--gm { box-shadow: 0 0 0 2px var(--role-gm); }
.tk-av--mod { box-shadow: 0 0 0 2px var(--role-mod); }
.tk-av--admin { box-shadow: 0 0 0 2px var(--role-admin); }
.tk-av--sm { width: 30px; height: 30px; }
.tk-av--xs { width: 18px; height: 18px; }
.tk-av--xs:is(.tk-av--gm, .tk-av--mod, .tk-av--admin) { box-shadow: 0 0 0 1.5px var(--role-gm); }
.tk-av--xs.tk-av--mod { box-shadow: 0 0 0 1.5px var(--role-mod); }

/* the frequent questions */
.faq-home { margin-top: 34px; }
.faq-home__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.faq-home__head .group-title { margin: 0; }
.faq-search { width: min(330px, 100%); }
.faq-search .field { height: 42px; }
.faq-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.faq-cards[hidden], .faq-results[hidden] { display: none; }
.faq-card {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 14px;
  padding: 14px 16px 15px 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .15s;
}
.faq-card:hover { border-color: var(--gold-dim); }
.faq-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.faq-card__text { display: grid; gap: 4px; min-width: 0; }
.faq-card__q { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.faq-card__a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.faq-home__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; }
.faq-home__foot p { font-size: 14.5px; color: var(--text-2); }
.faq-home__foot p a { font-weight: 600; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.faq-home__n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: color-mix(in srgb, currentColor 16%, transparent); font-size: 12px; font-weight: 700; color: inherit; }
.faq-results__n { margin-bottom: 8px; font-size: 13.5px; color: var(--text-3); }
.faq-hits { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; }
.faq-hits > li + li { box-shadow: inset 0 1px 0 var(--line); }
.faq-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 16px; padding: 12px 16px; color: var(--text); }
.faq-hit:hover { background: var(--gold-wash); }
.faq-hit:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.faq-hit__q { font-weight: 700; }
.faq-hit__a { grid-column: 1; font-size: 14px; color: var(--text-2); }
.faq-hit__cat { grid-column: 2; grid-row: 1; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.faq-results__more { margin-top: 12px; border: 0; background: none; padding: 0; font-size: 14.5px; }
.faq-results .empty-state { margin-top: 0; }
.faq-results .empty-state a { font-weight: 600; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
:is(.faq-hits, .faq, .faq-results) mark { padding: 0 1px; border-radius: 2px; background: rgba(242, 196, 90, .3); color: inherit; }

/* the help centre: search, categories, the questions that open in place */
.modal__tools { display: grid; gap: 12px; padding: 14px 20px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.modal__tools .chips { margin: 0; }
.help-count { margin: 0 0 12px; font-size: 13.5px; color: var(--text-3); }
.help-count[hidden] { display: none; }
.faq-sec[hidden] { display: none; }
.faq-sec + .faq-sec { margin-top: 22px; }
.faq-sec__title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--heading); }
.faq-list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; }
.faq + .faq { box-shadow: inset 0 1px 0 var(--line); }
.faq[hidden] { display: none; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px;
  list-style: none; cursor: pointer;
  font-size: 15.5px; font-weight: 700; line-height: 1.4;
  color: var(--text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--gold-wash); }
.faq__q:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.faq__qt { display: grid; gap: 3px; min-width: 0; }
.faq__snip { font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--text-2); }
.faq__snip[hidden], .faq[open] .faq__snip { display: none; }
.faq__chev { flex: none; width: 12px; height: 12px; color: var(--text-3); transition: transform .2s; }
.faq[open] > .faq__q .faq__chev { transform: rotate(180deg); }
.faq[open] > .faq__q { color: var(--gold-2); }
.faq__a { max-width: none; padding: 0 16px 16px; font-size: 15px; line-height: 1.65; }
.faq__more { display: flex; align-items: center; gap: 8px; padding-top: 12px; box-shadow: inset 0 1px 0 var(--line); font-size: 14px; color: var(--text-3); }
.faq__more .icon { flex: none; width: 13px; height: 13px; color: var(--gold); }
.faq.is-flash > .faq__q { animation: row-in 1.6s ease-out; }
.faq--sm .faq__q { padding: 10px 14px; font-size: 14.5px; }
.faq--sm .faq__a { padding: 0 14px 12px; font-size: 14px; }
.modal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.modal__foot[hidden] { display: none; }
.modal__foot > p { margin-right: auto; font-size: 14.5px; color: var(--text-2); }

/* the new ticket: three steps */
.modal--wiz { width: min(740px, calc(100% - 32px)); }
/* the help centre keeps its size while the questions are filtered */
.modal--help { height: min(86vh, 800px); }
.modal--help .modal__box { height: 100%; }
.modal--sm { width: min(460px, calc(100% - 32px)); }
.wiz__steps { list-style: none; margin: 0; padding: 12px 20px; display: flex; gap: 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.wiz__dot { display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text-3); }
.wiz__dot:last-child { flex: 0 0 auto; }
.wiz__dot:not(:last-child)::after { content: ""; flex: 1; min-width: 12px; height: 2px; border-radius: 1px; background: var(--line-2); }
.wiz__dot.is-done:not(:last-child)::after { background: var(--gold-dim); }
.wiz__n {
  position: relative; display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--text-2);
}
.wiz__label { white-space: nowrap; }
.wiz__dot.is-current { color: var(--text); }
.wiz__dot.is-current .wiz__n { background: var(--state); box-shadow: none; color: var(--on-state); }
.wiz__dot.is-done { color: var(--text-2); }
.wiz__dot.is-done .wiz__n { background: var(--gold-wash); box-shadow: inset 0 0 0 1.5px var(--gold-dim); color: transparent; }
.wiz__dot.is-done .wiz__n::before { content: ""; position: absolute; left: 9px; top: 9px; width: 10px; height: 5px; border-left: 2px solid var(--gold-2); border-bottom: 2px solid var(--gold-2); transform: rotate(-45deg); }
.wiz__page { min-width: 0; margin: 0; padding: 0; border: 0; }
.wiz__page[hidden], .wiz__done[hidden] { display: none; }
.wiz__title { display: block; margin-bottom: 16px; padding: 0; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--heading); }
.wiz__title:focus { outline: none; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat-card {
  position: relative;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 16px 14px 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cat-card:hover { border-color: var(--gold-dim); }
.cat-card input { position: absolute; opacity: 0; pointer-events: none; }
.cat-card:has(input:checked) { border-color: var(--state); background: var(--state-wash); }
.cat-card:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.cat-card__text { display: grid; gap: 2px; min-width: 0; line-height: 1.35; }
.cat-card__name { font-size: 16px; font-weight: 700; color: var(--text); }
.cat-card__desc { font-size: 13.5px; color: var(--text-2); }
.cat-card__go { width: 12px; height: 12px; color: var(--text-3); }
.wiz__page .help.is-error { margin-top: 10px; }
.wiz__hint { display: flex; gap: 9px; margin-top: 18px; font-size: 14px; color: var(--text-2); }
.wiz__hint .icon { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--gold); }
.wiz__hint a { font-weight: 600; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pick {
  position: relative;
  display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 8px 10px 8px 8px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick:hover { border-color: var(--gold-dim); }
.pick:has(input:checked) { border-color: var(--state); background: var(--state-wash); }
.pick:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.pick__face { width: 36px; height: 36px; border-radius: 50%; background: #2a0e0a center / cover no-repeat; box-shadow: 0 0 0 1px var(--line-2); }
.pick__face--none { display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.pick__face--none .icon { width: 15px; height: 15px; }
.pick__text { display: grid; min-width: 0; line-height: 1.25; }
.pick__text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; color: var(--text); }
.pick__text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--text-3); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; height: 46px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); }
.seg label { position: relative; display: grid; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; padding: 0 6px; border-radius: calc(var(--r) - 2px); font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background .15s, color .15s; }
.seg label:hover span { color: var(--text); }
.seg input:checked + span { background: var(--state); color: var(--on-state); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 1px; }
.field__unit { display: grid; place-items: center; padding: 0 14px 0 4px; font-weight: 700; color: var(--text-3); }
.wiz__page .callout { margin-top: 0; }
.field--tools { flex-direction: column; }
.field--tools .tk-fmt { flex: none; padding: 4px 6px; }
.field--tools textarea { min-height: 128px; }
.wiz__page [data-extra][hidden] { display: none; }
.label .opt.is-near { color: var(--warn-fg); }
.wiz__faq { margin-top: 22px; padding: 14px 16px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.wiz__faq[hidden] { display: none; }
.wiz__faq-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.wiz__faq-title .icon { width: 14px; height: 14px; color: var(--gold); }
.wiz__sum { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.wiz__sum-text { display: grid; gap: 6px; min-width: 0; }
.wiz__sum-text > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; color: var(--text); }
.wiz__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wiz__chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--surface-3); overflow: hidden; font-size: 12.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.wiz__chip small { font-weight: 500; color: var(--text-3); }
.wiz__chip .tk-cface { width: 16px; height: 16px; margin-left: -4px; }
.wiz__page > .form-row + .form-row { margin-top: 18px; }
.drop {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-lg);
  background: var(--bg-2);
  color: var(--text-2); font-size: 14.5px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop > .icon { flex: none; width: 24px; height: 24px; color: var(--gold); }
.drop b { color: var(--text); }
.drop u { color: var(--gold-2); text-underline-offset: 3px; }
.drop:hover, .drop.is-over { border-color: var(--gold); background: var(--gold-wash); }
.drop:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.drop.is-full { opacity: .5; pointer-events: none; }
.thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.thumbs:empty { display: none; }
.thumb { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 34px 6px 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.thumb img { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; }
.thumb__text { display: grid; min-width: 0; line-height: 1.3; }
.thumb__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--text); }
.thumb__text small { font-size: 12px; color: var(--text-3); }
.thumb__x { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); }
.thumb__x:hover { background: var(--surface-3); color: var(--err-fg); }
.thumb__x .icon { width: 11px; height: 11px; }
.thumb.is-busy { display: grid; place-items: center; height: 62px; padding: 0; color: var(--gold); }
:is(.thumb, .tk-tray__i).is-busy .icon { width: 18px; height: 18px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wiz__foot { justify-content: space-between; }
.wiz__foot [hidden] { display: none; }
.wiz__of { font-size: 13.5px; color: var(--text-3); }
.wiz__done { display: grid; justify-items: center; gap: 10px; padding: 24px 10px 14px; text-align: center; }
.wiz__done:focus { outline: none; }
.wiz__done-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(143, 211, 106, .14); box-shadow: 0 0 0 7px rgba(143, 211, 106, .06); color: var(--ok-fg); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.wiz__done-ico .icon { width: 26px; height: 26px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.wiz__done-title { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--heading); }
.wiz__done > p { max-width: 46ch; font-size: 15px; color: var(--text-2); }
.wiz__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
kbd { padding: 0 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; font: 600 11px/1.5 var(--font); color: var(--text-2); white-space: nowrap; }
.del__q { font-size: 15.5px; color: var(--text); }
.del__preview { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; margin: 12px 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.del__preview .tk-msg__head { font-size: 14px; }
.del__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 14px; color: var(--text-2); }
.del__text .icon { display: inline; width: 13px; height: 13px; vertical-align: -2px; }

/* the ticket: a chat as on Discord, as tall as the window */
.panel--ticket { overflow: hidden; }
.tk { container: tk / inline-size; --tk-hover: rgba(242, 211, 143, .045); }
.tk__in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  height: clamp(520px, calc(100vh - 96px), 900px);
  height: clamp(520px, calc(100dvh - 96px), 900px);
  background: var(--bg-2);
  overflow: hidden;
}
.tk-head {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 66px; padding: 10px 12px 10px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.tk-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text-2); }
.tk-back:hover { background: var(--surface-3); color: var(--text); }
.tk-back .icon { width: 15px; height: 15px; }
.tk-head__main { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.tk-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--heading); }
.tk-title__id { color: var(--text-3); font-variant-numeric: tabular-nums; }
.tk-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; font-size: 13px; color: var(--text-3); }
.tk-head__char { display: inline-flex; align-items: center; gap: 6px; }
/* the state, in the line under the title when the badge has no room */
.tk-head__st { display: none; align-items: center; gap: 6px; font-weight: 700; }
.tk-head__st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tk-head__st.is-player { color: var(--warn-fg); }
.tk-head__st.is-staff { color: var(--info-fg); }
.tk-head__char .tk-cface { width: 16px; height: 16px; }
.tk-head__end { display: flex; align-items: center; gap: 8px; }
.tk-hbtn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); }
.tk-hbtn:hover { background: var(--surface-3); color: var(--text); }
.tk-hbtn[aria-expanded="true"] { color: var(--gold-2); }
.tk-hbtn .icon { width: 17px; height: 17px; }

.tk-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto auto; min-width: 0; min-height: 0; }
.tk-stream-wrap { position: relative; min-width: 0; min-height: 0; }
.tk-stream { height: 100%; padding: 0 0 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tk-stream:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.tk-intro { padding: 30px 18px 10px; }
.ico-tile--xl { width: 64px; height: 64px; border-radius: 50%; }
.ico-tile--xl .icon { width: 26px; height: 26px; }
.tk-intro__title { margin-top: 12px; font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--heading); }
.tk-intro__text { max-width: 62ch; margin-top: 4px; font-size: 14.5px; color: var(--text-2); }
.tk-intro__text a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.tk-day { display: flex; align-items: center; margin: 20px 16px 6px; font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.tk-day::before, .tk-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tk-day span { padding: 0 10px; }
.tk-unread { position: relative; margin: 10px 16px 6px; border-top: 1px solid var(--red-hi); }
.tk-unread span { position: absolute; right: 0; top: -9px; height: 17px; padding: 0 6px; border-radius: 4px; background: var(--red-hi); color: #fff; font-size: 11px; font-weight: 800; line-height: 17px; }

/* a message: the face and the name on the first of a row of messages; the next ones (same
   person, less than 7 minutes later) only the text, with the hour in the margin on hover */
.tk-msg { position: relative; padding: 2px 16px 2px 72px; }
.tk-msg.is-head { margin-top: 12px; padding-top: 6px; }
.tk-msg:hover, .tk-msg:focus-within, .tk-msg.is-active, .tk-msg.is-editing { background: var(--tk-hover); }
.tk-msg:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.tk-msg > .tk-av { position: absolute; left: 16px; top: 8px; }
.tk-msg > .tk-reply + .tk-av { top: 30px; }
.tk-msg__hm { position: absolute; left: 16px; top: 6px; width: 40px; font-size: 11px; line-height: 20px; text-align: center; color: var(--text-3); font-variant-numeric: tabular-nums; opacity: 0; }
.tk-msg:is(:hover, :focus-within, .is-active) .tk-msg__hm { opacity: 1; }
.tk-msg__body { min-width: 0; }
.tk-msg__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; line-height: 1.4; }
.tk-msg__head .uname { font-size: 15.5px; }
.tk-msg__head time { font-size: 12px; color: var(--text-3); }
.tk-msg__head .role { align-self: center; height: 18px; padding: 0 7px; font-size: 11px; }
.tk-text { font-size: 15.5px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.tk-text > * + * { margin-top: 4px; }
.tk-text a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.tk-text strong { font-weight: 800; }
.tk-text code { padding: 1px 5px; border-radius: 4px; background: var(--surface-3); font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace; font-size: .86em; }
.tk-text pre { max-width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow-x: auto; }
.tk-text pre code { padding: 0; background: none; font-size: 13.5px; }
.tk-text blockquote { padding-left: 12px; border-radius: 2px; box-shadow: inset 4px 0 0 var(--line-2); color: var(--text-2); }
.tk-text ul, .tk-text ol { padding-left: 1.4em; }
.tk-text li::marker { color: var(--gold-dim); }
.tk-text--jumbo { font-size: 44px; line-height: 1.2; }
.tk-edited { margin-left: 4px; font-size: 11px; color: var(--text-3); }
.tk-msg.is-new { animation: tk-in .3s ease-out; }
@keyframes tk-in { from { opacity: 0; transform: translateY(6px); } }
.tk-msg.is-flash { animation: tk-flash 1.8s ease-out; }
@keyframes tk-flash { 0%, 35% { background: var(--gold-wash); box-shadow: inset 2px 0 0 var(--gold); } }
/* the message it answers, above it, joined to the face by a bent line */
.tk-reply {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  min-width: 0; max-width: 100%; margin: 0 0 3px; padding: 0;
  border: 0; background: none;
  font-size: 13px; text-align: left; color: var(--text-2);
  cursor: pointer;
}
.tk-reply::before { content: ""; position: absolute; left: -36px; top: 9px; width: 30px; height: 15px; border: 2px solid var(--line-2); border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.tk-reply .uname { flex: none; font-size: 13px; }
.tk-reply .tk-av--xs { width: 16px; height: 16px; }
.tk-reply__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-reply:hover .tk-reply__text { color: var(--text); }
.tk-reply.is-gone { font-style: italic; color: var(--text-3); cursor: default; }
.tk-reply.is-gone .icon { width: 12px; height: 12px; }
/* images */
.tk-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tk-img { display: block; max-width: min(400px, 100%); padding: 0; border: 0; border-radius: 8px; background: var(--surface-3); overflow: hidden; cursor: zoom-in; }
.tk-img img { display: block; max-width: 100%; height: auto; transition: filter .15s; }
.tk-img:hover img { filter: brightness(1.07); }
.tk-img:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tk-files--grid .tk-img { width: min(220px, calc(50% - 3px)); aspect-ratio: 16 / 10; }
.tk-files--grid .tk-img img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.tk-img--gone { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: default; font-size: 13.5px; color: var(--text-2); }
.tk-img--gone > span { display: grid; }
.tk-img--gone small { color: var(--text-3); }
.tk-img--gone .icon { width: 18px; height: 18px; color: var(--text-3); }
/* reactions */
.tk-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tk-react { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; transition: background .12s, border-color .12s; }
.tk-react:hover { border-color: var(--line-2); }
.tk-react[aria-pressed="true"] { border-color: var(--state); background: var(--state-wash); color: var(--state-fg); }
.tk-react__e { font-size: 16px; line-height: 1; }
.tk-react.is-bump .tk-react__e { animation: r-bump .35s ease; }
.tk-react--add { opacity: 0; color: var(--text-3); }
.tk-react--add .icon { width: 15px; height: 15px; }
.tk-msg:is(:hover, :focus-within, .is-active) .tk-react--add, .tk-react--add:focus-visible { opacity: 1; }
/* the message's tools, top right */
.tk-tools {
  position: absolute; z-index: 3; top: -16px; right: 14px;
  display: flex; align-items: center;
  padding: 2px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none;
  transition: opacity .1s;
}
.tk-msg:is(:hover, :focus-within, .is-active) > .tk-tools { opacity: 1; pointer-events: auto; }
.tk-tool { display: grid; place-items: center; width: 32px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); }
.tk-tool:hover, .tk-tool:focus-visible { background: var(--surface-3); color: var(--text); }
.tk-tool .icon { width: 16px; height: 16px; }
.tk-tool--emo { font-size: 17px; line-height: 1; }
.tk-tool--bad:hover, .tk-tool--bad:focus-visible { color: var(--err-fg); }
.tk-tools__sep { width: 1px; height: 18px; margin: 0 3px; background: var(--line-2); }
/* the team's events */
.tk-event { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 10px; padding: 3px 16px; }
.tk-event__ico { display: grid; place-items: center; justify-self: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--text-3); }
.tk-event__ico .icon { width: 11px; height: 11px; }
.tk-event--joined .tk-event__ico { background: rgba(143, 211, 106, .14); color: var(--ok-fg); }
.tk-event--status .tk-event__ico { background: rgba(242, 184, 75, .14); color: var(--warn-fg); }
:is(.tk-event--created, .tk-event--rated, .tk-event--reopened) .tk-event__ico { background: var(--gold-wash); color: var(--gold); }
.tk-event__text { font-size: 14px; color: var(--text-2); }
.tk-event__text b { color: var(--text); }
.tk-event__when { margin-left: 4px; font-size: 12px; color: var(--text-3); }
.tk-event .stars-mini { vertical-align: -1px; }
/* down to the latest; images dragged in */
.tk-jump {
  position: absolute; left: 50%; bottom: 12px; z-index: 4; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  font-size: 13.5px; font-weight: 700; color: var(--text);
  white-space: nowrap;
}
.tk-jump[hidden] { display: none; }
.tk-jump .icon { width: 12px; height: 12px; }
.tk-jump.is-news { border-color: var(--red-hi); background: var(--red-hi); color: #fff; }
.tk-drop { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; background: rgba(20, 6, 4, .8); }
.tk-drop[hidden] { display: none; }
.tk-drop__box { display: grid; justify-items: center; gap: 6px; width: min(380px, 100%); padding: 26px 20px; border: 2px dashed #d9ae5c; border-radius: 14px; text-align: center; color: #f4e7cf; pointer-events: none; }
.tk-drop__box .icon { width: 30px; height: 30px; color: #f2d38f; }
.tk-drop__box b { font-size: 17px; }
.tk-drop__box small { font-size: 13.5px; color: #d8bea2; }
/* who is writing */
.tk-typing { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 18px; font-size: 13px; color: var(--text-2); }
.tk-typing .uname { font-size: 13px; }
.tk-dots { display: inline-flex; gap: 3px; }
.tk-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: tk-dot 1.2s infinite ease-in-out; }
.tk-dots i:nth-child(2) { animation-delay: .15s; }
.tk-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tk-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* the box to write */
.tk-compose { position: relative; padding: 0 16px 12px; }
.tk-compose[hidden] { display: none; }
.tk-compose__bar { display: flex; align-items: center; gap: 8px; margin: 0 0 -8px; padding: 8px 12px 16px; border-radius: 10px 10px 0 0; background: var(--surface-3); font-size: 13.5px; color: var(--text-2); }
.tk-compose__bar[hidden] { display: none; }
.tk-compose__bar > .icon { flex: none; width: 13px; height: 13px; }
.tk-compose__bar > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-bar-x { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); }
.tk-bar-x:hover { background: var(--surface-2); color: var(--text); }
.tk-bar-x .icon { width: 11px; height: 11px; }
.tk-tray { list-style: none; margin: 0 0 8px; padding: 12px 10px 10px; display: flex; gap: 10px; overflow-x: auto; border-radius: 10px; background: var(--surface-2); }
.tk-tray[hidden] { display: none; }
.tk-tray__i { position: relative; flex: none; display: grid; gap: 4px; width: 118px; padding: 6px; border-radius: 6px; background: var(--surface-3); }
.tk-tray__i img { width: 100%; height: 74px; border-radius: 4px; object-fit: cover; }
.tk-tray__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-2); }
.tk-tray__x { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--red-hi); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.tk-tray__x .icon { width: 10px; height: 10px; }
.tk-tray__i.is-busy { place-items: center; height: 106px; color: var(--gold); }
.tk-box {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px;
  padding: 6px;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface-2);
  transition: border-color .15s, box-shadow .15s;
}
.tk-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.tk-box__field { flex: 1; min-width: 0; display: grid; }
.tk-box textarea {
  display: block; width: 100%; min-height: 36px; max-height: 220px;
  padding: 7px 6px;
  border: 0; outline: 0; resize: none;
  background: transparent;
  font: inherit; font-size: 15.5px; line-height: 22px;
  color: var(--text);
  overflow-y: auto;
}
.tk-box textarea::placeholder { color: var(--text-3); opacity: 1; }
.tk-cbtn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); }
.tk-cbtn:hover, .tk-cbtn[aria-pressed="true"], .tk-cbtn[aria-expanded="true"] { background: var(--surface-3); color: var(--text); }
.tk-cbtn .icon { width: 18px; height: 18px; }
.tk-cbtn--attach { border-radius: 50%; background: var(--surface-3); }
.tk-cbtn--attach:hover { color: var(--gold-2); }
.tk-send { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, var(--red-lo)); color: var(--on-red); box-shadow: inset 0 1px 0 rgba(255, 210, 190, .35); transition: filter .15s; }
.tk-send:hover { filter: brightness(1.1); }
.tk-send[disabled] { background: transparent; color: var(--text-3); box-shadow: none; opacity: .6; }
.tk-send .icon { width: 16px; height: 16px; }
.tk-fmt { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: 2px; padding: 0 0 6px; box-shadow: inset 0 -1px 0 var(--line); }
.tk-fbtn { display: grid; place-items: center; width: 32px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); }
.tk-fbtn:hover { background: var(--surface-3); color: var(--text); }
.tk-fbtn .icon { width: 14px; height: 14px; }
.tk-compose__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 0 4px; font-size: 12px; color: var(--text-3); }
.tk-hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-len { flex: none; margin-left: auto; font-variant-numeric: tabular-nums; }
.tk-len.is-near { color: var(--warn-fg); }
.tk-len.is-full { font-weight: 700; color: var(--err-fg); }
/* :atalhos: of emoji */
.tk-ac { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 4px); z-index: 7; max-width: 460px; padding: 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); box-shadow: 0 -8px 26px rgba(0, 0, 0, .28); }
.tk-ac[hidden] { display: none; }
.tk-ac__title { padding: 4px 8px 6px; font-size: 12px; color: var(--text-3); }
.tk-ac__title b { color: var(--text-2); }
.tk-ac__i { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--text-2); }
.tk-ac__i.is-on { background: var(--surface-3); color: var(--text); }
.tk-ac__e { font-size: 20px; line-height: 1; }
.tk-ac__i b { color: var(--text); }
.tk-ac__i small { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); }
/* a message edited in place */
.tk-edit { margin: 2px 0 4px; }
.tk-edit__input { display: block; width: 100%; padding: 8px 10px; border: 1px solid var(--gold); border-radius: 8px; outline: 0; resize: none; background: var(--surface-2); box-shadow: 0 0 0 3px var(--gold-wash); font: inherit; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.tk-edit__hint { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.tk-edit__hint button { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--gold-2); cursor: pointer; }
.tk-edit__hint button:hover { text-decoration: underline; }
/* the bar over selected text (with the mouse) */
.tk-selbar { position: fixed; z-index: 130; display: flex; gap: 1px; padding: 3px; border: 1px solid #643129; border-radius: 8px; background: #2c1310; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.tk-selbar[hidden] { display: none; }
.tk-selbar .tk-fbtn { color: #d8bea2; }
.tk-selbar .tk-fbtn:hover { background: #4a1711; color: #f4e7cf; }

/* a closed ticket: instead of the box, how it ended and the rating */
.tk-closed { padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.tk-closed[hidden] { display: none; }
.tk-closed__row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.tk-closed__text { font-size: 14px; color: var(--text-2); }
.tk-closed__text b { color: var(--text); }
.tk-rate { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.tk-rate__q { font-size: 14.5px; font-weight: 600; color: var(--text); }
.tk-rate__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; }
.stars { display: inline-flex; gap: 2px; }
.stars__s { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; color: var(--line-2); cursor: pointer; transition: color .1s, transform .1s; }
.stars__s .icon { width: 22px; height: 22px; }
.stars__s:hover { transform: scale(1.12); }
.stars__s.is-on { color: var(--gold); }
.stars__s:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 1px; }
.stars__label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.tk-rate__more { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; }
.tk-rate__more[hidden] { display: none; }
.tk-rate__more .field { flex: 1; }
.tk-rate__more .field--area textarea { min-height: 44px; padding: 10px 12px; resize: none; }
.tk-rated { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.tk-rated .stars-mini .icon { width: 14px; height: 14px; }

/* the details: a column when there is room, a drawer when there is not */
.tk-side { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--line); background: var(--surface); }
.tk-side__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--line); }
.tk-side__title { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--heading); }
.tk-side__body { flex: 1; min-height: 0; padding: 14px 18px 18px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tk-facts { display: grid; gap: 12px; margin: 0; }
.tk-facts dt { font-size: 12.5px; color: var(--text-3); }
.tk-facts dd { margin: 2px 0 0; font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; }
.tk-facts__icon { display: flex; align-items: center; gap: 8px; }
.tk-facts__icon > .icon { width: 14px; height: 14px; color: var(--gold); }
.tk-facts__char, .tk-facts__who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.tk-facts__char { color: var(--gold-2); }
.tk-facts__char:hover { text-decoration: underline; text-underline-offset: 3px; }
.tk-facts__char .tk-cface { width: 22px; height: 22px; }
.tk-facts__none { color: var(--text-3); }
.tk-side__sec { margin-top: 18px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--line); }
.tk-side__sub { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.tk-side__sub small { font-weight: 600; color: var(--text-3); }
.tk-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tk-thumb { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; background: var(--surface-3); overflow: hidden; color: var(--text-3); cursor: zoom-in; }
.tk-thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter .15s; }
.tk-thumb:hover img { filter: brightness(1.1); }
.tk-thumb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tk-side__actions { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--line); }
.tk-side__actions .btn { justify-content: flex-start; }
.tk-side__note { display: flex; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.tk-side__note .icon { flex: none; width: 13px; height: 13px; margin-top: 3px; color: var(--gold); }
.tk-side { position: absolute; z-index: 8; top: 0; right: 0; bottom: 0; width: min(320px, 88%); transform: translateX(100%); visibility: hidden; box-shadow: -18px 0 40px rgba(0, 0, 0, .35); transition: transform .22s ease, visibility .22s; }
.tk.is-side-open .tk-side { transform: none; visibility: visible; }
.tk-scrim { position: absolute; inset: 0; z-index: 7; background: rgba(15, 4, 2, .5); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.tk.is-side-open .tk-scrim { opacity: 1; visibility: visible; }
@container tk (min-width: 760px) {
  .tk__in { grid-template-columns: minmax(0, 1fr) 272px; }
  .tk-side { position: static; width: auto; transform: none; visibility: visible; box-shadow: none; transition: none; }
  .tk-side__x, .tk-scrim { display: none; }
  .tk.is-side-hidden .tk__in { grid-template-columns: minmax(0, 1fr); }
  .tk.is-side-hidden .tk-side { display: none; }
}
@container tk (max-width: 700px) {
  .tk-hint { display: none; }
  .tk-head .tk-badge, .tk-head__btn span { display: none; }
  .tk-head__btn { width: 36px; padding: 0; }
  .tk-head__st { display: inline-flex; }
}
@container tk (max-width: 480px) {
  .tk-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; padding: 8px 6px 8px 4px; }
  .tk-head > .ico-tile { display: none; }
  .tk-head__end { gap: 2px; }
  .tk-box { gap: 2px; padding: 5px; }
  .tk-cbtn, .tk-send { width: 32px; height: 32px; }
  .tk-box textarea { min-height: 32px; padding: 5px 4px; }
  .tk-title { font-size: 17px; }
  .tk-msg { padding: 2px 10px 2px 58px; }
  .tk-msg > .tk-av { left: 10px; width: 36px; height: 36px; }
  .tk-msg__hm { left: 8px; }
  .tk-reply::before { left: -30px; width: 25px; }
  .tk-event { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 3px 10px; }
  .tk-intro { padding: 22px 12px 8px; }
  .tk-intro__title { font-size: 22px; }
  .tk-day, .tk-unread { margin-inline: 10px; }
  .tk-compose { padding: 0 8px 8px; }
  .tk-tools { right: 6px; }
  .tk-text--jumbo { font-size: 36px; }
  .tk-closed { padding: 10px 10px 12px; }
  .tk-closed__row { grid-template-columns: minmax(0, 1fr) auto; }
  .tk-closed__row > .ico-tile { display: none; }
}

/* the image viewer */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 60px 72px 40px; border: 0; background: transparent; color: #f4e7cf; overflow: hidden; }
.viewer::backdrop { background: rgba(10, 4, 3, .93); }
.viewer[open] { display: grid; place-items: center; animation: modal-in .2s ease-out; }
.viewer__fig { display: grid; justify-items: center; gap: 12px; max-width: 100%; margin: 0; }
.viewer__fig img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 150px); border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.viewer__fig figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; font-size: 14.5px; color: #e5cbad; }
.viewer__fig figcaption small { color: #b5967d; }
.viewer__bar { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
.viewer__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #643129; border-radius: 50%; background: #2c1310; color: #f4e7cf; }
.viewer__btn:hover { border-color: #d9ae5c; color: #f2d38f; }
.viewer__btn[hidden] { display: none; }
.viewer__btn .icon { width: 15px; height: 15px; }
.viewer__prev, .viewer__next { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer__prev { left: 14px; }
.viewer__next { right: 14px; }

/* the support on small screens */
@media (max-width: 760px) {
  .tk-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tkr__link { grid-template-columns: 38px minmax(0, 1fr); gap: 4px 12px; padding: 12px 12px 12px 12px; }
  .tkr__side { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 10px; padding-top: 4px; }
  .tkr__title { flex-wrap: wrap; gap: 4px 8px; }
  .tkr__subject { white-space: normal; }
  .faq-cards { grid-template-columns: minmax(0, 1fr); }
  .faq-search { width: 100%; }
  .faq-hit { grid-template-columns: minmax(0, 1fr); }
  .faq-hit__cat { grid-column: 1; grid-row: auto; }
  .modal__tools { padding: 12px 14px 10px; }
  .modal__tools .chips { flex-wrap: nowrap; margin: 0 -14px; padding: 0 14px 2px; overflow-x: auto; scrollbar-width: none; }
  .modal__tools .chips::-webkit-scrollbar { display: none; }
  .modal__tools .chip { flex: none; }
  .modal__foot { padding: 10px 14px; }
  .wiz__steps { padding: 10px 14px; gap: 8px; }
  .wiz__of { display: none; }
  .wiz__dot:not(.is-current) .wiz__label { display: none; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cat-card { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 12px 14px 12px 12px; }
  .cat-card .ico-tile--lg { width: 44px; height: 44px; }
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumbs { grid-template-columns: minmax(0, 1fr); }
  .wiz__sum { grid-template-columns: 38px minmax(0, 1fr); }
  .wiz__sum > .btn { grid-column: 2; justify-self: start; }
  .drop { padding: 14px; }
  .viewer { padding: 60px 12px 70px; }
  .viewer__prev, .viewer__next { top: auto; bottom: 14px; transform: none; }
  .viewer__prev { left: calc(50% - 54px); }
  .viewer__next { right: calc(50% - 54px); }
}
@media (max-width: 420px) {
  .tk-filter { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 8px 10px 8px 8px; }
  .tk-filter .ico-tile { width: 32px; height: 32px; }
  .tk-filter__n { font-size: 21px; }
  .faq-card { grid-template-columns: minmax(0, 1fr); }
  .faq-card > .ico-tile { display: none; }
  .tk-closed__row .btn { padding: 0 10px; }
}

/* the emoji picker */
.emo {
  position: fixed; z-index: 140;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: 344px; height: 404px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px);
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.emo[hidden] { display: none; }
.emo > * { min-width: 0; }
.emo__top { padding: 10px 10px 8px; }
.emo__top .field--sm { width: 100%; }
.emo__cats { display: flex; gap: 2px; padding: 0 8px 6px; border-bottom: 1px solid var(--line); }
.emo__cats button { display: grid; place-items: center; width: 36px; height: 30px; border: 0; border-radius: 6px; background: transparent; font-size: 17px; line-height: 1; filter: grayscale(.6); opacity: .8; transition: filter .12s, opacity .12s, background .12s; }
.emo__cats button:hover, .emo__cats button:focus-visible { background: var(--surface-3); filter: none; opacity: 1; }
.emo__body { padding: 0 8px 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.emo__label { position: sticky; top: 0; z-index: 1; padding: 8px 4px 6px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--text-3); }
.emo__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
.emo__e { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; background: transparent; font-size: 22px; line-height: 1; transition: transform .08s, background .08s; }
.emo__e:hover, .emo__e:focus-visible { outline: none; background: var(--surface-3); transform: scale(1.12); }
.emo__none { padding: 34px 10px; text-align: center; font-size: 14px; color: var(--text-3); }
.emo__foot { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.emo__big { font-size: 26px; line-height: 1; }
.emo__name { display: grid; min-width: 0; line-height: 1.25; }
.emo__name b { font-size: 13.5px; color: var(--text); }
.emo__name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-3); }
.emo__hint { font-size: 12.5px; color: var(--text-3); }

/* 25d · Loja de Pontos ------------------------------------------------------- */
/* The Points Store (store.js), with a session: a window with four parts (Loja, Leilões, Histórico,
   Resgatar), opened from the account's menu. The items sit in inventory slots, as everywhere in the
   member area. What is being auctioned is on the dark stage of the podium, with its clock: the
   one thing of the store that is live. */

/* points: the medal and the number */
.lp-pts { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-pts .icon { flex: none; width: 13px; height: 13px; color: var(--gold); }
.lp-pts b { font-family: var(--display); font-size: 18px; font-weight: 700; line-height: 1.15; color: var(--gold-2); }
.lp-pts--lg .icon { width: 15px; height: 15px; }
.lp-pts--lg b { font-size: 22px; }
.lp-pts--xl .icon { width: 20px; height: 20px; }
.lp-pts--xl b { font-size: 34px; line-height: 1.05; }
/* a character: its face and its name ("tu" when it is one of the account's) */
.lp-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; color: var(--text); vertical-align: middle; }
.lp-who__face { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3) center 18% / 150% auto no-repeat; box-shadow: 0 0 0 1px var(--line-2); }
.lp-who--sm { gap: 6px; }
.lp-who--sm .lp-who__face { width: 20px; height: 20px; }
.lp-who__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-who em { flex: none; padding: 1px 6px; border-radius: 8px; background: var(--gold-wash); font-style: normal; font-size: 11px; font-weight: 700; color: var(--gold-2); }
/* the slots of the store: bigger ones for the cards and the item, and the colours of its icons */
.slot--lg { width: 64px; height: 64px; border-radius: 8px; }
.slot--lg > .icon { width: 30px; height: 30px; }
.slot--xl { width: 96px; height: 96px; border-radius: 10px; }
.slot--xl > .icon { width: 44px; height: 44px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .8)); }
.slot[data-i="scissors"] { color: #f0c9a0; }
.slot[data-i="khanda"] { color: #cfe3ef; }
.slot[data-i="paw"], .slot[data-i="box-open"] { color: #f2cf74; }
.slot[data-i="gift"] { color: #ff9a7a; }
.slot[data-i="dragon"] { color: #ff8a5c; }
.slot[data-i="shirt"] { color: #c9a2ff; }
.slot[data-i="skull"] { color: #eadfcd; }

/* ---- the window */
.modal--store { width: min(1100px, calc(100% - 32px)); height: min(90vh, 880px); }
.modal--store .modal__box { position: relative; height: 100%; }
.lp-head { grid-template-columns: auto minmax(0, 1fr) auto auto; padding: 12px 12px 0 18px; }
.lp-head__ico { color: var(--gold); }
.lp-tabs { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 6px; min-width: 0; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tabs .tab { height: 42px; padding: 0 16px; gap: 8px; font-size: 14.5px; }
.lp-count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  background: var(--red-hi); color: #fff;
  font-size: 11.5px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}
.lp-count[hidden] { display: none; }
.tab[aria-selected="true"] .lp-count { background: rgba(255, 246, 236, .24); }
/* the purse: what each character can spend */
.lp-purse { position: relative; }
.lp-purse__sum {
  display: flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 11px 0 12px;
  border: 1px solid var(--line-2); border-radius: 18px;
  background: var(--surface-3);
  list-style: none; cursor: pointer;
  font-size: 13.5px; color: var(--text-2); white-space: nowrap;
  transition: border-color .15s;
}
.lp-purse__sum::-webkit-details-marker { display: none; }
.lp-purse__sum:hover { border-color: var(--gold-dim); }
.lp-purse__sum:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lp-purse__sum > .icon { width: 13px; height: 13px; color: var(--gold); }
.lp-purse__sum b { font-family: var(--display); font-size: 16px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.lp-purse__sum .lp-purse__chev { width: 9px; height: 9px; color: var(--text-3); transition: transform .2s; }
.lp-purse__d[open] .lp-purse__chev { transform: rotate(180deg); }
.lp-purse__pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  width: 290px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.lp-purse__title { margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.lp-purse__pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lp-purse__pop li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-purse__n { display: grid; justify-items: end; line-height: 1.2; }
.lp-purse__n b { font-family: var(--display); font-size: 16px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.lp-purse__n small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--text-3); }
.lp-purse__n small .icon { width: 9px; height: 9px; }
.lp-purse__note { margin-top: 10px; padding-top: 10px; box-shadow: inset 0 1px 0 var(--line); font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.modal--store .lp-body { --lp-pt: 18px; --lp-px: 22px; --lp-pb: 26px; padding: var(--lp-pt) var(--lp-px) var(--lp-pb); }
.lp-body:focus { outline: none; }
.lp-body [data-lp-title]:focus { outline: none; }
/* what was done, for a moment, at the bottom of the window */
.lp-toast {
  position: absolute; left: 50%; bottom: 18px; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px); padding: 11px 16px;
  border: 1px solid #643129; border-radius: var(--r);
  background: #2c1310; box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  color: #f4e7cf; font-size: 14.5px; font-weight: 500;
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s, visibility .2s;
  pointer-events: none;
}
.lp-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.modal__box:has(.lp-bar) .lp-toast { bottom: 96px; }
.lp-toast .icon { flex: none; width: 16px; height: 16px; color: #8fd36a; }
.lp-toast.is-bad .icon { color: #ff9a85; }
.lp-toast b { color: #f5d898; }

/* ---- Loja: the search and the filters stay on top while the items scroll */
/* (a sticky box keeps clear of the padding of what scrolls: hence the negative top) */
.lp-tools {
  position: sticky; top: calc(var(--lp-pt) * -1); z-index: 5;
  display: flex; flex-direction: column; gap: 10px;
  margin: calc(var(--lp-pt) * -1) calc(var(--lp-px) * -1) 18px;
  padding: 14px var(--lp-px) 13px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.lp-tools .chips { flex-wrap: nowrap; }
.lp-tools .chip { flex: none; white-space: nowrap; }
.lp-tools .chips--sm .chip { height: 32px; padding: 0 12px; font-size: 13.5px; }
.lp-tools .chip .icon { width: 12px; height: 12px; }
.lp-tools__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; }
.lp-search { flex: 1 1 240px; width: auto; max-width: 420px; }
.lp-sort { width: 210px; margin-left: auto; }
.lp-sort select { font-size: 14.5px; }
.lp-types { margin-left: auto; }
.lp-tools--hist { position: static; margin: 18px 0 14px; padding: 0; background: none; box-shadow: none; justify-content: space-between; }
.lp-who-filter { width: 220px; }
.lp-who-filter select { font-size: 14.5px; }
.lp-link { padding: 0; border: 0; background: none; font-weight: 600; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.lp-empty { margin-top: 0; }
.lp-empty p { line-height: 1.6; }

/* the items: a card each, its slot on a little stage */
.lp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 14px; }
.lp-card__link {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text);
  overflow: hidden;
  transition: border-color .15s, box-shadow .2s, translate .2s var(--ease);
}
.lp-card__link:hover { border-color: var(--gold-dim); box-shadow: 0 10px 24px -14px rgba(40, 10, 5, .55); translate: 0 -2px; }
.lp-card__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lp-card__stage {
  position: relative;
  display: grid; place-items: center;
  height: 118px;
  background: radial-gradient(56% 74% at 50% 52%, var(--gold-wash), transparent 72%), linear-gradient(180deg, var(--surface-3), var(--surface-2));
  box-shadow: inset 0 -1px 0 var(--line);
}
/* an auction: the lot on the dark stage */
.lp-card.is-auction .lp-card__stage, .lp-lotc__stage, .lp-auc__item .slot, .lp-stage {
  background: radial-gradient(60% 90% at 50% 40%, rgba(242, 196, 120, .16), transparent 72%), var(--rings) 0 0 / 44px 44px, linear-gradient(180deg, #3a110d, #1f0806);
}
.lp-card__flags { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.lp-flag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px;
  border-radius: 11px;
  background: rgba(20, 7, 6, .82); color: #f2d38f;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.lp-flag .icon { width: 10px; height: 10px; }
.lp-flag--auction { background: linear-gradient(180deg, var(--red-hi), var(--red-lo)); color: #fff6ec; }
.lp-flag--soon { background: rgba(20, 7, 6, .82); color: #f2d38f; }
.lp-flag--out { background: rgba(60, 50, 45, .85); color: #e6d9c8; }
.lp-flag--win { background: #2f5e1c; color: #e3f6d6; }
.lp-flag--feat { background: linear-gradient(180deg, #f5d898, #c9973f); color: #2a1206; }
.lp-flag--lost { background: #7a1d14; color: #ffd9d2; }
.lp-card__stock { position: absolute; right: 8px; top: 8px; height: 22px; padding: 0 8px; border-radius: 11px; background: rgba(20, 7, 6, .72); color: #e5cbad; font-size: 11.5px; font-weight: 700; line-height: 22px; }
.lp-card__stock.is-low { color: #ffb4a6; }
.lp-card__name { margin: 12px 14px 0; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.lp-card__kind { margin: 2px 14px 0; font-size: 13px; color: var(--text-3); }
.lp-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 10px 14px 0; }
.lp-card__lbl { font-size: 12.5px; color: var(--text-3); }
.lp-card__sold { margin-left: auto; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.lp-card__foot {
  display: flex; align-items: center; gap: 6px;
  margin-top: auto; padding: 10px 14px 12px;
  font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.lp-card__price + .lp-card__foot { margin-top: 10px; box-shadow: inset 0 1px 0 var(--line); }
.lp-card__foot .icon { flex: none; width: 12px; height: 12px; color: var(--text-3); }
.lp-card__foot > span:not(.lp-card__bids) { flex: 1 1 0; min-width: 0; }
.lp-card__bids { margin-left: auto; color: var(--text-3); }
.lp-t { font-weight: 700; }
.lp-t.is-soon { color: var(--live-fg); }
.lp-card.is-out .lp-card__stage .slot { filter: grayscale(1) brightness(.75); }
.lp-card.is-out :is(.lp-card__name, .lp-pts b) { color: var(--text-3); }
.lp-card.is-soon .lp-card__stage .slot { opacity: .8; }

/* the month's biggest buyers, under the items */
.lp-top { margin-top: 32px; }
.lp-top__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lp-top__row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 4px 10px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2);
}
.lp-top__pos { grid-row: 1 / 3; display: grid; place-items: center; font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--text-3); }
.lp-top__pos img { width: 25px; height: 19px; }
.lp-top__who { min-width: 0; }
.lp-top__who:hover .lp-who__name { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.lp-top__row .lp-who__face { width: 24px; height: 24px; }
.lp-top__row .lp-pts b { font-size: 16px; }

/* ---- an item, an auction: the view that opens in the window */
.lp-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14.5px; font-weight: 600; color: var(--gold-2); }
.lp-back .icon { width: 13px; height: 13px; }
.lp-back:hover span { text-decoration: underline; text-underline-offset: 3px; }
.lp-det__top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.lp-stage { display: grid; place-items: center; height: 220px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px #5a2219; }
.lp-det__kind { font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.lp-det__name { margin-top: 2px; font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--heading); }
.lp-det__desc { margin-top: 8px; max-width: 62ch; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.lp-bonus { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lp-bonus li { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px; border-radius: 14px; background: var(--gold-wash); color: var(--text); font-size: 13.5px; font-weight: 600; }
.lp-bonus .icon { width: 11px; height: 11px; color: var(--gold); }
.lp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 14px 0 0; box-shadow: inset 0 1px 0 var(--line); }
.lp-facts dt { font-size: 13px; color: var(--text-3); }
.lp-facts dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.35; color: var(--text-2); }
.lp-facts dd > b { font-family: var(--display); font-size: 22px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.lp-facts dd small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.lp-state { margin-top: 22px; }

/* the purchase (and the bid): steps, then a bar that stays at the bottom with the button */
.lp-buy { margin-top: 24px; }
.lp-field { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.lp-step { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; padding: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.lp-step small { font-size: 13.5px; font-weight: 500; color: var(--text-3); }
.lp-step__n {
  display: inline-grid; place-items: center; align-self: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--display); font-size: 13px; font-weight: 800; color: var(--gold-2);
}
.lp-vers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-ver {
  position: relative;
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lp-ver input { position: absolute; opacity: 0; pointer-events: none; }
.lp-ver:hover { border-color: var(--gold-dim); }
.lp-ver:has(input:checked) { border-color: var(--state); background: var(--state-wash); }
.lp-ver:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.lp-ver.is-off { cursor: default; opacity: .6; }
.lp-ver.is-off:hover { border-color: var(--line); }
.lp-ver__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); color: var(--gold); }
.lp-ver__icon .icon { width: 15px; height: 15px; }
.lp-ver__text { display: grid; min-width: 0; line-height: 1.3; }
.lp-ver__text b { font-size: 15px; color: var(--text); }
.lp-ver__text small { font-size: 13px; color: var(--text-3); }
.lp-ver__price { font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.lp-picks { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.lp-picks .pick { padding: 9px 12px 9px 9px; }
.pick.is-short { cursor: not-allowed; opacity: .55; }
.pick.is-short:hover { border-color: var(--line); }
.pick.is-short small { color: var(--err-fg); }
.lp-bar {
  position: sticky; bottom: calc(var(--lp-pb) * -1); z-index: 4;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin: 24px calc(var(--lp-px) * -1) calc(var(--lp-pb) * -1);
  padding: 14px var(--lp-px) 16px;
  background: var(--surface-2);
  box-shadow: 0 -1px 0 var(--line), 0 -12px 24px -18px rgba(40, 10, 5, .45);
}
.lp-bar__text { flex: 1 1 280px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.lp-bar__text b { color: var(--text); font-variant-numeric: tabular-nums; }
.lp-bar__text.is-error { color: var(--err-fg); font-weight: 600; }
.lp-bar__act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.lp-bar.is-confirm { background: linear-gradient(var(--state-wash), var(--state-wash)), var(--surface-2); box-shadow: 0 -1px 0 var(--state), 0 -12px 24px -18px rgba(40, 10, 5, .45); }
/* done */
.lp-done { display: grid; justify-items: center; gap: 8px; margin-top: 26px; padding: 30px 20px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); text-align: center; }
.lp-done:focus { outline: none; }
.lp-done__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 6px; border-radius: 50%; background: rgba(143, 211, 106, .16); color: var(--ok-fg); box-shadow: 0 0 0 6px rgba(143, 211, 106, .07); }
.lp-done__icon .icon { width: 28px; height: 28px; }
.lp-done__title { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--heading); }
.lp-done p { font-size: 15.5px; color: var(--text-2); }
.lp-done p b { color: var(--text); }
.lp-done__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.lp-done__icon { animation: done-in .5s var(--ease-back) both; }
@keyframes done-in { from { scale: .4; opacity: 0; } }

/* ---- Leilões */
.lp-sec + .lp-sec { margin-top: 28px; }
.lp-sec__title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--heading); }
.lp-sec__title .icon { width: 15px; height: 15px; color: var(--gold); }
.lp-sec__title small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--text-3); }
.lp-lots-big { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-lotc__link {
  display: grid; grid-template-columns: 88px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .95fr) 112px; align-items: center; gap: 18px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .15s, box-shadow .2s;
}
.lp-lotc__link:hover { border-color: var(--gold-dim); box-shadow: 0 10px 24px -16px rgba(40, 10, 5, .55); }
.lp-lotc.is-win .lp-lotc__link { box-shadow: inset 3px 0 0 var(--ok-fg); }
.lp-lotc.is-lost.is-live .lp-lotc__link { box-shadow: inset 3px 0 0 var(--err-fg); }
.lp-lotc__stage { display: grid; place-items: center; width: 88px; height: 88px; border-radius: var(--r); }
.lp-lotc__what { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.lp-lotc__name { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.lp-lotc__kind { font-size: 13px; color: var(--text-3); }
.lp-lotc__what .badge { margin-top: 4px; }
.lp-lotc__money, .lp-lotc__time { display: grid; justify-items: start; gap: 2px; min-width: 0; line-height: 1.3; }
.lp-lotc__money small, .lp-lotc__time small { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12.5px; color: var(--text-3); }
.lp-lotc__go { justify-self: end; }
.lp-lotc__time .lp-t { font-family: var(--display); font-size: 22px; line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; }
.lp-lotc__time .lp-t.is-soon { color: var(--live-fg); }
.lp-lotc.is-soon .lp-lotc__stage .slot { opacity: .8; }
.lp-ended .lst__row { grid-template-columns: 36px minmax(0, 1fr) auto; }
.lp-ended a.lst__title:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.lp-endrow.is-mine { background: rgba(143, 211, 106, .07); }
.lp-endrow .lst__meta .icon { color: var(--gold); }
.lp-rules { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.lp-rules > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--text); }
.lp-rules > summary::-webkit-details-marker { display: none; }
.lp-rules > summary:hover { color: var(--gold-2); }
.lp-rules > summary .icon { width: 15px; height: 15px; color: var(--gold); }
.lp-rules > summary .lp-rules__chev { width: 11px; height: 11px; margin-left: auto; color: var(--text-3); transition: transform .2s; }
.lp-rules[open] > summary .lp-rules__chev { transform: rotate(180deg); }
.lp-rules ul { margin: 0; padding: 0 18px 16px 42px; display: grid; gap: 7px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.lp-rules a { font-weight: 600; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

/* an auction: the lot on the dark stage, the bid now and the clock */
.lp-auc {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: stretch;
  padding: 20px;
  border: 1px solid #5a2219; border-radius: var(--r-lg);
  background: radial-gradient(70% 120% at 30% 0%, rgba(242, 196, 120, .14), transparent 70%), var(--rings) 0 0 / 44px 44px, linear-gradient(180deg, #3a110d, #1f0806);
  color: #f4e7cf;
  /* the dark palette inside, in every palette */
  --text: #f4e7cf; --text-2: #e5cbad; --text-3: #c6a486; --heading: #f7ead2; --gold: #e2b866; --gold-2: #f5d898; --gold-wash: rgba(226, 184, 102, .14);
  --surface-3: #5f1610; --line-2: #8c2e22; --live-fg: #ff9a85;
}
.lp-auc__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; min-width: 0; }
.lp-auc__item .slot { box-shadow: inset 0 0 0 1px #8a5a33, inset 0 0 0 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .45); }
.lp-auc__text { min-width: 0; }
.lp-auc__text .lp-det__name { color: #f7ead2; }
.lp-auc__now { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-left: 24px; box-shadow: inset 1px 0 0 rgba(255, 220, 190, .14); }
.lp-auc__money, .lp-auc__clock { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.lp-auc__money > small, .lp-auc__clock > small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #d2b291; }
.lp-auc__clock .lp-t, .lp-auc__clock > b { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1.05; color: #f5d898; font-variant-numeric: tabular-nums; }
.lp-auc__clock > b { font-size: 22px; }
.lp-auc__clock.is-soon .lp-t, .lp-auc__clock .lp-t.is-soon { color: #ff9a85; }
.lp-auc__clock.is-over > b { color: #e5cbad; }
.lp-det--lot > .alert { margin-top: 18px; }
.lp-det--lot .lp-buy { margin-top: 22px; }
/* winning already: the form to bid more, folded */
.lp-raise { margin-top: 20px; }
.lp-raise > summary { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 19px; list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--text-2); transition: border-color .15s, color .15s; }
.lp-raise > summary::-webkit-details-marker { display: none; }
.lp-raise > summary:hover { border-color: var(--gold-dim); color: var(--text); }
.lp-raise > summary .icon { width: 11px; height: 11px; color: var(--gold); transition: transform .2s; }
.lp-raise[open] > summary .icon { transform: rotate(45deg); }
.lp-raise .lp-buy { margin-top: 16px; }
.lp-raise:not([open]) ~ .lp-bar { display: none; }
.lp-amount { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lp-amount .arrow-btn { width: 40px; height: 40px; }
.lp-amount .arrow-btn .icon { width: 13px; height: 13px; }
.lp-amount__field { width: 240px; }
.lp-amount__field input { font-family: var(--display); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold-2); }
.lp-amount__ico { flex: none; align-self: center; width: 15px; height: 15px; margin: 0 8px 0 14px; color: var(--gold); }
.lp-amount__quick { margin-left: 6px; }
.lp-bids .lst__row { grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 14px; padding: 10px 16px 10px 12px; }
.lp-bidrow__n { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--text-3); text-align: center; }
.lp-bidrow time { min-width: 86px; font-size: 13px; color: var(--text-3); text-align: right; white-space: nowrap; }
.lp-bidrow .lp-pts b { font-size: 16px; }
.lp-bidrow.is-top { background: var(--gold-wash); }
.lp-bidrow.is-top .lp-pts b { color: var(--gold-2); }
.lp-nobids { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14.5px; color: var(--text-3); }
.lp-nobids .icon { width: 14px; height: 14px; color: var(--gold); }

/* ---- Histórico */
.lp-ledger { margin-bottom: 0; }
.lp-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--surface-3); font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.lp-hist .lst__row, .lp-pend .lst__row { grid-template-columns: 36px minmax(0, 1fr) auto; }
.lp-hist .lst__meta .icon { color: var(--gold); }
.lp-hrow__pts { display: grid; justify-items: end; line-height: 1.3; font-variant-numeric: tabular-nums; }
.lp-hrow__pts b { font-family: var(--display); font-size: 17px; color: var(--text); white-space: nowrap; }
.lp-hrow__pts small { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }

/* ---- Resgatar */
.lp-code {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2);
}
.lp-code__label { display: block; font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--heading); }
.lp-code__sub { margin-top: 2px; font-size: 14px; color: var(--text-2); }
.lp-code__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.lp-code__row .field { flex: 1 1 220px; max-width: 360px; }
.lp-code__row input { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.lp-code__row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.lp-code__msg { display: flex; align-items: center; gap: 7px; min-height: 20px; margin-top: 9px; }
.lp-code__msg:empty { display: none; }
.lp-code__msg .icon { flex: none; width: 13px; height: 13px; }
.lp-code__msg.is-ok { color: var(--ok-fg); font-weight: 600; }
.lp-code__msg.is-bad { color: var(--err-fg); font-weight: 600; }
.lp-pend .lst__row { grid-template-columns: 52px minmax(0, 1fr) 180px 196px; gap: 16px; }
.lp-pend .lst__meta .icon { color: var(--gold); }
.lp-prow__to { display: flex; align-items: center; min-width: 0; }
.lp-prow__to .field--sm { width: 100%; }
.lp-fixed { display: grid; gap: 1px; line-height: 1.25; }
.lp-fixed small { font-size: 12px; color: var(--text-3); }
.lp-prow__act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* ---- narrower windows */
@media (max-width: 1120px) {
  .lp-lotc__link { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "stage what time" "stage money go"; row-gap: 8px; }
  .lp-lotc__stage { grid-area: stage; width: 72px; height: 72px; }
  .lp-lotc__what { grid-area: what; }
  .lp-lotc__money { grid-area: money; }
  .lp-lotc__time { grid-area: time; justify-items: end; text-align: right; }
  .lp-lotc__time small:last-child { display: none; }
  .lp-lotc__go { grid-area: go; justify-self: end; }
  .lp-auc { grid-template-columns: minmax(0, 1fr); }
  .lp-auc__now { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 0 0; box-shadow: inset 0 1px 0 rgba(255, 220, 190, .14); }
}
@media (max-width: 760px) {
  .modal--store { height: 94vh; max-height: 94vh; }
  .modal--store .lp-body { --lp-pt: 14px; --lp-px: 14px; --lp-pb: 18px; }
  .lp-head { padding: 10px 8px 0 14px; gap: 10px; }
  .lp-head__ico { display: none; }
  .lp-head { grid-template-columns: minmax(0, 1fr) auto auto; }
  .lp-purse__who { display: none; }
  .lp-purse__pop { right: -40px; width: min(290px, calc(100vw - 32px)); }
  .lp-tabs { margin: 10px -8px 0 -14px; padding: 0 8px 0 14px; }
  .lp-tabs .tab { padding: 0 12px; gap: 6px; font-size: 14px; }
  .lp-tools { gap: 10px; padding-top: 12px; padding-bottom: 11px; }
  .lp-search { flex: 1 1 150px; max-width: none; }
  .lp-sort { width: 150px; flex: 0 0 auto; }
  .lp-top__list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .lp-top__row { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 8px 12px; }
  .lp-top__pos { grid-row: auto; }
  .lp-tools .chips { margin: 0 calc(var(--lp-px) * -1); padding: 0 var(--lp-px) 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 100%; }
  .lp-tools .chips::-webkit-scrollbar { display: none; }
  .lp-types { margin-left: 0; }
  .lp-tools--hist .chips { margin: 0; padding: 0; flex: 0 1 auto; }
  .lp-who-filter { width: 100%; }
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lp-card__stage { height: 96px; }
  .lp-card__name { margin: 10px 11px 0; font-size: 14.5px; }
  .lp-card__kind { margin: 2px 11px 0; font-size: 12.5px; }
  .lp-card__price { margin: 8px 11px 0; }
  .lp-card__price .lp-pts b { font-size: 16.5px; }
  .lp-card__foot { flex-wrap: wrap; align-items: flex-start; padding: 9px 11px 11px; font-size: 12.5px; }
  .lp-card__foot > .icon { margin-top: 3px; }
  .lp-card__bids { flex: 0 0 100%; margin-left: 0; padding-left: 18px; }
  .lp-lotc__money .lp-who { display: none; }
  .lp-card__lbl { display: none; }
  .lp-card__sold { width: 100%; margin: -4px 0 0; }
  .lp-flag--feat { width: 22px; padding: 0; justify-content: center; }
  .lp-flag--feat .lp-flag__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lp-det__top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lp-stage { height: 150px; }
  .lp-det__name { font-size: 24px; }
  .lp-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-facts > div:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .lp-vers { grid-template-columns: minmax(0, 1fr); }
  .lp-bar { gap: 10px; }
  .lp-bar__act, .lp-bar__act .btn { flex: 1 1 auto; }
  .lp-bar__act .btn--lg { height: 46px; font-size: 15.5px; }
  .lp-auc__item { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .lp-auc__item .slot--xl { width: 72px; height: 72px; }
  .lp-auc__item .slot--xl > .icon { width: 34px; height: 34px; }
  .lp-auc { padding: 16px; }
  .lp-auc__clock .lp-t { font-size: 28px; }
  .lp-pts--xl b { font-size: 28px; }
  .lp-amount__field { flex: 1 1 160px; width: auto; }
  .lp-amount__quick { margin-left: 0; width: 100%; }
  .lp-bids .lst__row { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .lp-bidrow time { grid-column: 2 / -1; text-align: left; min-width: 0; margin-top: -6px; }
  .lp-lotc__link { grid-template-columns: 60px minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 12px 10px 10px; }
  .lp-lotc__stage { width: 60px; height: 60px; }
  .lp-lotc__stage .slot--lg { width: 52px; height: 52px; }
  .lp-lotc__stage .slot--lg > .icon { width: 24px; height: 24px; }
  .lp-lotc__time .lp-t { font-size: 18px; }
  .lp-lotc__name { font-size: 15px; }
  .lp-code { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .lp-code .ico-tile { display: none; }
  .lp-code__row .btn { flex: 1 1 auto; }
  .lp-pend .lst__row { grid-template-columns: 52px minmax(0, 1fr); align-items: start; row-gap: 10px; }
  .lp-prow__to, .lp-prow__act { grid-column: 1 / -1; }
  .lp-prow__to .field--sm { width: 100%; }
  .lp-prow__act { justify-content: stretch; }
  .lp-prow__act .btn { flex: 1 1 auto; }
  .lp-hist .lst__row { grid-template-columns: 36px minmax(0, 1fr); }
  .lp-hrow__pts { grid-column: 2; justify-items: start; }
}
@media (max-width: 420px) {
  .lp-tabs .tab .icon { display: none; }
  .lp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* 26 · download page ------------------------------------------------------- */
.dl-hero { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: center; padding: 26px 30px; border-radius: var(--r-lg); background: radial-gradient(ellipse at 18% 50%, rgba(214, 52, 38, .18), transparent 60%), var(--surface-2); border: 1px solid var(--line); }
.dl-hero__logo { width: 100%; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45)); }
.dl-hero h2 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.15; color: var(--text); }
.dl-hero p { margin-top: 4px; font-size: 16px; color: var(--text-2); }
.dl-hero__meta { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--text-2); }
.dl-hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.dl-hero__meta .icon { color: var(--gold); }
.dl-hero__btn { margin-top: 20px; width: auto; min-width: 260px; height: 50px; font-size: 16.5px; }
.dl-hero__btn .icon { width: 17px; height: 17px; }
.howto { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.howto li { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.howto__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px var(--gold-dim); color: var(--gold-2); font-family: var(--display); font-weight: 700; }
.howto strong { font-size: 16px; color: var(--text); }
.howto p { margin-top: 3px; font-size: 14.5px; color: var(--text-2); }
.howto a { color: var(--gold-2); text-decoration: underline; }

/* 27 · forum --------------------------------------------------------------- */
/* The forum is drawn by forum.js inside the home page's board. Same pieces as the rest of the
   site: the list frame and head of the ranking tables, chips, badges, the pager. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; margin-bottom: 18px; font-size: 14px; color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .icon { width: 9px; height: 9px; opacity: .7; }
.crumbs [aria-current] { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }

/* people: the face of their class (the official account: the server's emblem) */
.av { flex: none; display: inline-block; border-radius: 50%; background: #2a0e0a center / cover no-repeat; box-shadow: 0 0 0 1px var(--line-2); }
.av--xs { width: 22px; height: 22px; }
.av--sm { width: 30px; height: 30px; }
.av--md { width: 42px; height: 42px; }
.av--logo { background-size: cover; background-position: center; }
.uname { font-weight: 700; color: var(--text); }
.uname--admin { color: var(--role-admin); }
.uname--gm { color: var(--role-gm); }
.uname--mod { color: var(--role-mod); }
.role { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.role--admin { background: var(--role-admin-wash); color: var(--role-admin); }
.role--gm { background: var(--role-gm-wash); color: var(--role-gm); }
.role--mod { background: var(--role-mod-wash); color: var(--role-mod); }
.t-new { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 9px; background: var(--red); color: var(--on-red); font-size: 11px; font-weight: 700; }

/* index: one frame per group, sections as rows (as the ranking tables) */
.f-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 22px; }
.f-toolbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.f-search { width: min(500px, 100%); }
.f-group { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.f-group + .f-group { margin-top: 22px; }
.f-group__head, .f-cat { display: grid; grid-template-columns: 46px minmax(0, 1fr) 84px 92px minmax(0, 240px); column-gap: 16px; align-items: center; }
.f-group__head { min-height: 48px; padding: 0 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-3); }
.f-group__head > span { text-align: center; }
.f-group__head > span:last-child { text-align: left; }
.f-group__title { grid-column: 1 / 3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--heading); }
.f-group__desc { padding: 12px 16px 0; font-size: 14px; color: var(--text-3); }
.f-cats { list-style: none; margin: 0; padding: 0; }
.f-cat { padding: 15px 16px; transition: background .12s; }
.f-cat + .f-cat { box-shadow: inset 0 1px 0 var(--line); }
.f-cat:hover { background: var(--surface-2); }
.f-side { display: contents; }
.f-ico { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--gold); }
.f-ico img { width: auto; height: 21px; }
.f-ico .icon { width: 19px; height: 19px; }
.f-ico--xs { width: 22px; height: 22px; border-radius: var(--r-sm); }
.f-ico--xs img { height: 12px; }
.f-ico--xs .icon { width: 11px; height: 11px; }
.f-cat__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--text); }
.f-cat__name a:hover { color: var(--gold-2); }
.f-cat__desc { margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.f-num { text-align: center; font-variant-numeric: tabular-nums; }
.f-num b { font-size: 16px; font-weight: 700; color: var(--text); }
.f-num small { display: none; font-size: 13px; color: var(--text-3); }
.f-last { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; }
.f-last__body { display: grid; min-width: 0; }
.f-last__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.f-last__title:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.f-last__by { display: flex; gap: 6px; overflow: hidden; white-space: nowrap; color: var(--text-3); }
.f-last__by .uname { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

/* a section: title, sorting, tags and its topics */
.f-cat-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.f-cat-head > div { flex: 1 1 320px; min-width: 0; }
.f-cat-head > .btn { margin-top: 4px; }
.f-cat-head + .f-search { margin: -4px 0 4px; }
[data-view-title]:focus { outline: none; }
.f-cat-title { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.15; color: var(--heading); }
.f-cat-desc { max-width: 64ch; margin-top: 6px; font-size: 16px; color: var(--text-2); }
.f-cat-count { margin-top: 4px; font-size: 13.5px; color: var(--text-3); }
.f-chips { align-items: center; margin-bottom: 12px; }
.f-toolbar .f-chips { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.f-chips__ico { width: 14px; height: 14px; margin-right: 2px; color: var(--text-3); }
.f-tagbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 4px 0 20px; }
.f-tagbar > .icon { width: 15px; height: 15px; margin-right: 2px; color: var(--text-3); }
.f-tagbar__clear { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; font-size: 13.5px; font-weight: 600; color: var(--gold); }
.f-tagbar__clear:hover { color: var(--gold-2); text-decoration: underline; }
.f-tagbar__clear .icon { width: 10px; height: 10px; }
.f-result { margin: 14px 0 16px; font-size: 15px; color: var(--text-2); }
.f-result strong { color: var(--text); }
.f-search + .f-result { margin-top: 12px; }

/* tags of a topic: #word */
.htag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 13px; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.htag::before { content: "#"; margin-right: 1px; font-weight: 700; color: var(--gold-dim); }
a.htag:hover { border-color: var(--gold-dim); color: var(--text); }
.htag.is-active { border-color: var(--state); background: var(--state-wash); color: var(--state-fg); }
.htag--sm { height: 21px; padding: 0 7px; border-radius: 11px; font-size: 12px; }
.htag.is-chip { gap: 3px; padding-right: 3px; }
.htag.is-chip button { display: grid; place-items: center; width: 16px; height: 16px; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); }
.htag.is-chip button:hover { background: var(--surface-3); color: var(--text); }
.htag.is-chip .icon { width: 9px; height: 9px; }

/* list of topics */
.t-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.t-list__head, .t-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 84px 104px minmax(0, 176px); column-gap: 14px; align-items: center; }
.t-list__head { min-height: 44px; padding: 0 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-3); }
.t-list__head span:first-child { grid-column: 1 / 3; }
.t-list__head span:nth-child(2), .t-list__head span:nth-child(3) { text-align: center; }
.t-list ul { list-style: none; margin: 0; padding: 0; }
.t-row { padding: 13px 16px; transition: background .12s; }
.t-row + .t-row { box-shadow: inset 0 1px 0 var(--line); }
.t-row:hover { background: var(--surface-2); }
.t-row.is-pinned { background: var(--gold-wash); }
.t-row__main { min-width: 0; }
.t-row__title { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.t-row__title > :not(a) { margin-right: 6px; vertical-align: 1px; }
.t-row__title > a + * { margin: 0 0 0 8px; }
.t-row__title > a + * + * { margin-left: 4px; }
.t-row__title > a:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.t-row.is-unread .t-row__title > a { font-weight: 800; }
.t-row__title .badge .icon, .f-topic-flags .badge .icon { width: 11px; height: 11px; }
.t-flag { display: inline-grid; place-items: center; vertical-align: 0; color: var(--gold); }
.t-flag .icon { width: 13px; height: 13px; }
.t-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 13px; color: var(--text-3); }
.t-row__meta .uname { font-weight: 600; }
.t-row__cat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-2); }
.t-row__cat:hover { color: var(--gold-2); }
.t-row__side { display: contents; }
.t-row__num { text-align: center; font-variant-numeric: tabular-nums; }
.t-row__num b { font-size: 15.5px; font-weight: 700; color: var(--text); }
.t-row__num small { display: none; font-size: 13px; color: var(--text-3); }
.t-row__last { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; color: var(--text-3); }
.t-row__last > span:last-child { display: grid; min-width: 0; }
.t-row__last .uname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.t-row__last:hover .uname { text-decoration: underline; text-underline-offset: 3px; }

/* a topic: its messages, each with the author's card on the left */
.f-topic-head { margin-bottom: 18px; }
.f-topic-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.f-topic-title { font-family: var(--display); font-weight: 700; font-size: 31px; line-height: 1.18; color: var(--heading); overflow-wrap: anywhere; }
.f-topic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.f-meta { display: inline-flex; align-items: center; gap: 8px; }
.f-meta > .icon { width: 13px; height: 13px; color: var(--gold); }
.f-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.f-actions .pager { margin: 0 0 0 auto; }
.f-pager-bottom .pager { justify-content: flex-end; margin-top: 16px; }
.pager .arrow-btn.is-off { opacity: .35; }
.f-posts { display: grid; gap: 14px; }
.f-post { display: grid; grid-template-columns: 172px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; scroll-margin-top: 16px; }
.f-post.is-staff { border-color: var(--gold-dim); }
.f-post.is-solution { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.f-post.is-target { animation: f-target 2.6s ease; }
@keyframes f-target { 0%, 35% { box-shadow: 0 0 0 3px var(--gold-wash), inset 0 0 0 1px var(--gold); } }
.f-post.is-new { animation: f-in .5s ease; }
@keyframes f-in { from { opacity: 0; transform: translateY(8px); } }
.f-post__author { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px 16px; background: var(--surface-2); border-right: 1px solid var(--line); text-align: center; }
.f-portrait { position: relative; width: 104px; height: 112px; border-radius: var(--r); overflow: hidden; background: radial-gradient(ellipse 85% 70% at 50% 100%, rgba(214, 52, 38, .38), transparent 72%), #1d0907; box-shadow: inset 0 0 0 1px var(--line-2); }
.f-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.f-portrait--logo img { object-fit: contain; padding: 12px; }
.f-portrait .f-level { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 13px; background: #2a0e0a; box-shadow: inset 0 0 0 1.5px #a3723c; font-family: var(--display); font-size: 13px; font-weight: 700; line-height: 1; color: #f5d898; }
.f-post__who { display: grid; justify-items: center; gap: 5px; min-width: 0; }
.f-guild { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.f-guild .icon { width: 11px; height: 11px; color: var(--gold); }
.f-post__who strong { font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.f-rank { font-size: 12.5px; color: var(--text-3); }
.f-facts { display: grid; gap: 4px; width: 100%; margin: 2px 0 0; font-size: 12.5px; }
.f-facts div { display: flex; justify-content: space-between; gap: 8px; padding-top: 4px; box-shadow: inset 0 1px 0 var(--line); }
.f-facts dt { color: var(--text-3); white-space: nowrap; }
.f-facts dd { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin: 0; font-weight: 600; color: var(--text-2); text-align: right; white-space: nowrap; }
.f-flag { width: 20px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.f-post__main { display: flex; flex-direction: column; min-width: 0; padding: 14px 20px; }
.f-post__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; padding-bottom: 10px; box-shadow: inset 0 -1px 0 var(--line); font-size: 13.5px; color: var(--text-3); }
.f-post__num { margin-left: auto; font-weight: 700; color: var(--text-3); }
.f-post__num:hover { color: var(--gold-2); }
.f-edited { font-style: italic; }
.f-solution { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; font-size: 14px; font-weight: 700; color: var(--ok-fg); }
.f-solution .icon { width: 15px; height: 15px; }
.f-post__body { flex: 1; max-width: none; font-size: 15.5px; }
.f-post__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; }
.f-tools { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.f-tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-3); font-size: 13.5px; font-weight: 600; transition: background .12s, color .12s; }
.f-tool:hover { background: var(--surface-2); color: var(--text); }
.f-tool .icon { width: 13px; height: 13px; }
.f-editing { margin-top: 2px; }
/* what people write: quotes, pictures, spoilers */
.prose blockquote { padding: 10px 16px; border-left: 3px solid var(--gold-dim); border-radius: 0 var(--r) var(--r) 0; background: var(--surface-2); color: var(--text-2); }
.prose blockquote cite { display: block; margin-bottom: 3px; font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--text); }
.prose blockquote > * + * { margin-top: .5em; }
.prose figure img, .prose > p > img { border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.prose figcaption { margin-top: 8px; font-size: 13.5px; color: var(--text-3); }
.prose code { padding: 1px 6px; border-radius: var(--r-sm); background: var(--surface-3); font-size: .92em; }
.spoiler { padding: 0 4px; border-radius: var(--r-sm); background: var(--text-3); color: transparent; cursor: pointer; transition: color .2s, background .2s; }
.spoiler.is-open { background: var(--surface-3); color: inherit; cursor: auto; }

/* reactions: each one in its own colour, like the emoji they stand for */
.reacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.react { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 5px; border: 1px solid var(--line-2); border-radius: 15px; background: var(--surface-2); color: var(--text-2); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s, color .15s, transform .1s; }
.react:hover { border-color: var(--gold-dim); color: var(--text); }
.react:active { transform: scale(.96); }
.react[aria-pressed="true"] { border-color: var(--state); background: var(--state-wash); color: var(--state-fg); }
.react--add { width: 36px; padding: 0; justify-content: center; gap: 0; color: var(--text-3); }
.react--add > .icon { width: 15px; height: 15px; }
.react--add .react__plus { position: absolute; top: 4px; right: 5px; width: 8px; height: 8px; }
.r-ico { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.r-ico .icon { width: 11px; height: 11px; }
.r-ico--like { background: #2f80d9; color: #fff; }
.r-ico--love { background: #e3354d; color: #fff; }
.r-ico--fire { background: linear-gradient(180deg, #ffb444, #ee5418); color: #fff; }
.r-ico--haha, .r-ico--wow, .r-ico--sad { background: radial-gradient(circle closest-side, #4a2410 88%, transparent 90%); color: #f8c23c; }
.r-ico--haha .icon, .r-ico--wow .icon, .r-ico--sad .icon { width: 100%; height: 100%; }
.react.is-bump .r-ico { animation: r-bump .35s ease; }
@keyframes r-bump { 45% { transform: scale(1.35); } }
.react-picker { position: absolute; z-index: 130; display: flex; gap: 2px; padding: 5px; border: 1px solid #643129; border-radius: 27px; background: #2c1310; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.react-picker[hidden] { display: none; }
.react-picker button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; transition: transform .12s, background .12s; }
.react-picker button > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.react-picker button:hover, .react-picker button:focus-visible { background: rgba(255, 255, 255, .07); transform: translateY(-2px) scale(1.15); }
.react-picker button[aria-pressed="true"] { background: rgba(255, 90, 69, .22); }
.react-picker .r-ico { width: 30px; height: 30px; }
.react-picker .r-ico .icon { width: 16px; height: 16px; }
.react-picker :is(.r-ico--haha, .r-ico--wow, .r-ico--sad) .icon { width: 100%; height: 100%; }

/* reply box and editor */
.f-reply-wrap { margin-top: 30px; scroll-margin-top: 16px; }
.f-reply-wrap .section-title { margin-top: 0; }
.f-reply { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
.f-reply__main { min-width: 0; }
.f-reply__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; font-size: 13.5px; }
.editor { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.editor:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.editor.is-invalid { border-color: var(--danger); }
.editor__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 6px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.editor__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; transition: opacity .15s; }
.editor__tools.is-off { opacity: .35; pointer-events: none; }
.editor__tool { display: grid; place-items: center; width: 34px; height: 32px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); }
.editor__tool:hover { background: var(--surface-3); color: var(--text); }
.editor__tool .icon { width: 14px; height: 14px; }
.editor__sep { width: 1px; height: 18px; margin: 0 4px; background: var(--line-2); }
.editor__tabs { display: flex; gap: 2px; }
.editor__tab { height: 30px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-3); font-size: 13.5px; font-weight: 600; }
.editor__tab:hover { color: var(--text); }
.editor__tab[aria-selected="true"] { background: var(--surface-3); color: var(--text); }
.editor textarea { display: block; width: 100%; min-height: 168px; padding: 14px 16px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15.5px; line-height: 1.6; resize: vertical; }
.editor--compact textarea { min-height: 108px; }
.editor textarea::placeholder { color: var(--text-3); opacity: 1; }
.editor__preview { max-width: none; padding: 14px 16px; font-size: 15.5px; }
.editor__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 7px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.editor__foot > span:first-child { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.editor__foot b { font-weight: 500; }
.editor__foot .icon { width: 12px; height: 12px; }
.f-guest { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.f-guest > .icon { width: 20px; height: 20px; color: var(--gold); }
.f-guest p { flex: 1 1 240px; color: var(--text-2); }
.f-guest__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* new topic */
.f-taginput { flex-wrap: wrap; align-items: center; gap: 6px; height: auto; min-height: 46px; padding: 6px 8px 6px 0; }
.f-taginput .field__icon { align-self: stretch; }
.f-taginput__chips { display: contents; }
.f-taginput input { flex: 1 0 90px; height: 32px; padding: 0 6px; }
.f-staff { min-width: 0; margin: 28px 0 0; padding: 16px 20px 20px; border: 1px dashed var(--gold-dim); border-radius: var(--r-lg); }
.f-staff__title { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--heading); }
.f-staff__title .icon { width: 16px; height: 16px; color: var(--gold); }
.f-staff__title .badge { font-family: var(--font); }
.f-staff__checks { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 10px; }

/* sidebar of the home page: what happened lately in the topics (a reply, a new topic) */
.box .f-recent { margin: 0; padding: 8px 20px 14px; }
.f-recent__item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 0; }
.f-recent__item + .f-recent__item { box-shadow: inset 0 1px 0 var(--line); }
.f-ico--sm { width: 30px; height: 30px; margin-top: 1px; }
.f-ico--sm img { height: 14px; }
.f-ico--sm .icon { width: 13px; height: 13px; }
.f-recent__body { display: grid; gap: 3px; min-width: 0; }
.f-recent__title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--text); }
.f-recent__title:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.f-recent__item.is-unread .f-recent__title::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--red-hi); vertical-align: 2px; }
.f-recent__meta { font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.f-recent__meta .uname { font-weight: 600; color: var(--text-2); }

/* toast (link copied, reply sent…) */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 140; display: flex; align-items: center; gap: 10px; max-width: min(540px, calc(100% - 32px)); padding: 12px 18px; border: 1px solid #643129; border-radius: var(--r); background: #2c1310; box-shadow: 0 12px 34px rgba(0, 0, 0, .5); color: #f4e7cf; font-size: 14.5px; font-weight: 600; opacity: 0; visibility: hidden; transform: translate(-50%, 14px); transition: opacity .2s, transform .2s, visibility .2s; }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .icon { width: 16px; height: 16px; color: #8fd36a; }
.toast a { color: #f2d38f; text-decoration: underline; text-underline-offset: 3px; }
.toast em { font-weight: 400; color: #c9ab90; }

/* 28 · news (the forum's news sections on the home page, and their topics) --- */
.blog__cover { width: 100%; height: auto; max-height: 420px; }
.news-stats { display: inline-flex; align-items: center; gap: 14px; font-size: 13.5px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.news-stats > span { display: inline-flex; align-items: center; gap: 6px; }
.news-stats .icon { width: 13px; height: 13px; }
.news-card .news-stats { margin-top: 8px; }
.post-actions { align-items: center; justify-content: space-between; }

/* 29 · footer -------------------------------------------------------------- */
.footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__links {
  width: min(var(--container), 100% - 32px);
  margin: 0 auto;
  padding: 26px 0 18px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  font-size: 14px;
}
.footer__links a { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); transition: color .15s; }
.footer__links a:hover { color: var(--gold-2); }
.footer__links .icon { width: 14px; height: 14px; color: var(--text-3); }
.footer__bar { padding: 0 16px 26px; text-align: center; font-size: 13px; color: var(--text-3); }

/* 29b · motion ------------------------------------------------------------- */
/* What changes moves instead of jumping (assets/js/motion.js does the lists, tabs and boxes;
   these are the ones CSS does by itself). "Reduce motion" in the system turns all of it off
   (section 3). */

/* the copies of what leaves (motion.js) don't play their own animations again */
.mt2-ghost, .mt2-ghost * { animation: none !important; transition: none !important; }

/* from one page to the other (browsers that can; the others change page as before). The bar, the
   logo and the background are the same on every page and stay exactly as they are; the side's
   cards move to their new places by themselves (main.js). The content column glides to its place
   on the new page and the new content rises into it, over the old content, which goes only once
   it is covered (so the column never turns see-through on the way). From further down a page,
   where the top of the column is out of view (html.vt-far, the script in <head>), the whole view
   dissolves into the new page instead of the column sliding in from far away, and the new
   column rises into place. */
@view-transition { navigation: auto; }
.main { view-transition-name: page; }
html.vt-far .main { view-transition-name: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
::view-transition-group(page) { animation-duration: .34s; animation-timing-function: var(--ease); }
::view-transition-old(page) { animation: page-out .2s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(page) { animation: page-in .16s cubic-bezier(0, 0, .58, 1) both, page-rise .34s var(--ease) both; }
/* the column on one of the two pages only (the other one dissolves with the view) */
::view-transition-new(page):only-child { animation-duration: .1s, .34s; }
::view-transition-old(page):only-child { animation: page-gone .2s ease both; }
@keyframes page-out { 0%, 40% { opacity: 1; } to { opacity: 0; } }
@keyframes page-gone { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }
@keyframes page-rise { from { translate: 0 12px; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* the windows close as they open: they fade and sink a little, and the dark around them goes */
.modal { transition: opacity .18s ease-in, translate .18s ease-in, overlay .18s allow-discrete, display .18s allow-discrete; }
.modal:not([open]) { opacity: 0; translate: 0 8px; }
.modal::backdrop { transition: opacity .22s ease, overlay .22s allow-discrete, display .22s allow-discrete; }
.modal:not([open])::backdrop { opacity: 0; }
@starting-style { .modal[open]::backdrop { opacity: 0; } }
/* a window's body holds what fades out of it while it scrolls (motion.js), and never scrolls
   sideways (what comes in from the side would show a scrollbar for a moment) */
.modal__body { position: relative; overflow-x: hidden; }

/* the questions and the settings open and close smoothly (browsers that can animate to the
   height of the content; the others open them at once) */
@supports selector(::details-content) {
  details:is(.faq, .set) { interpolate-size: allow-keywords; }
  details:is(.faq, .set)::details-content {
    height: 0; overflow: clip;
    transition: height .32s var(--ease), content-visibility .32s allow-discrete;
  }
  details:is(.faq, .set)[open]::details-content { height: auto; }
}

/* a message that appears under a field or in a form fades in instead of popping */
:is([data-err], [data-psc], [data-form-msg]) { transition: opacity .25s var(--ease), translate .25s var(--ease); }
@starting-style { :is([data-err], [data-psc], [data-form-msg]) { opacity: 0; translate: 0 -4px; } }

/* the steps of a new ticket light up one after the other, and the tick draws itself */
.wiz__dot { transition: color .3s var(--ease); }
.wiz__n { transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease); }
.wiz__dot:not(:last-child)::after { transition: background-color .45s var(--ease); }
.wiz__dot.is-done .wiz__n::before { animation: tick-in .32s var(--ease-back) backwards; }
@keyframes tick-in { from { opacity: 0; transform: rotate(-45deg) scale(.3); } }

/* the ticket just created shines for a moment in the list */
.tkr.is-fresh .tkr__link { animation: tkr-fresh 2s ease-out; }
@keyframes tkr-fresh { from { background-color: color-mix(in srgb, var(--gold) 20%, transparent); } }

/* 29c · what floats ([data-float], main.js): the column beside a long one (the rankings beside
   the list) comes along while the page scrolls, where it sits at the side (--float: 1). Topo and
   Centro: sticky, at --float-top. Flutuante: it follows a moment later and is lifted from the
   page while it floats (.is-floating). */
@media (min-width: 1121px) {
  html[data-col="flutuante"] .rk-side { position: relative; top: 0; z-index: 3; isolation: isolate; }
  .rk-side::before {
    content: ""; position: absolute; inset: -10px; z-index: -1;
    border-radius: calc(var(--r) + 10px);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line), 0 26px 50px -22px rgba(0, 0, 0, .65);
    opacity: 0;
    transition: opacity .3s var(--ease);
    pointer-events: none;
  }
  .rk-side.is-floating::before { opacity: 1; }
}

/* 30 · utilities ----------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; } .gap-1 { gap: 8px; } .gap-2 { gap: 14px; } .wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.muted { color: var(--text-3); }
.is-hidden { display: none !important; }
.ok-text { color: var(--ok-fg); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }

/* 31 · options: parchment and mixed content -------------------------------- */
/* html.theme-parchment ("Creme"): the current site's cream panels with red headings.
   html.theme-mix ("Misto"): the same cream panels with the heads and the small pieces
   in bordô, as in the designer's mockup.
   Only the content area changes; top bar, hero and footer stay oxblood. */
:is(.theme-parchment, .theme-mix) .layout {
  color: var(--text);   /* text that only inherits its colour (body sets the light one) */
  --bg-2: #fffaf0;
  --surface: #f7efdb;
  --surface-2: #efe3c7;
  --surface-3: #e5d4b0;
  --line: #e0cdaa;
  --line-2: #cbb187;
  --text: #2e2018;
  --text-2: #554031;
  --text-3: #6b5444;
  --heading: #a92418;
  --gold: #a8331f;
  --gold-2: #8f2116;
  --gold-dim: #d29d8a;
  --gold-wash: rgba(168, 51, 31, .08);
  --on-gold: #fff6ec;
  --state: var(--red);
  --state-fg: #9a2016;
  --state-wash: rgba(179, 40, 29, .08);
  --live-fg: #9e1f16;
  --ok-fg: #2f6614;
  --warn-fg: #8a5800;
  --err-fg: #b3261c;
  --info-fg: #1a5c84;
  --lift: 0 1px 2px rgba(60, 20, 10, .14);
  --ink-color: #c7aa7c;       /* the scenes behind the cards: a darker parchment */
  --ink-alpha: .17;
  --role-admin: #b3261c;
  --role-gm: #875400;
  --role-mod: #1d5f88;
  --role-admin-wash: rgba(179, 38, 28, .09);
  --role-gm-wash: rgba(135, 84, 0, .1);
  --role-mod-wash: rgba(29, 95, 136, .09);
}
/* the chat's hover on cream */
:is(.theme-parchment, .theme-mix) .layout .tk { --tk-hover: rgba(110, 50, 20, .055); }
/* the designer's gold icons are made for dark backgrounds: darken them on cream */
.theme-parchment .layout .stat__icon img,
.theme-parchment .layout .tag img,
.theme-parchment .layout .f-ico img { filter: brightness(.62) saturate(1.4); opacity: 1; }
/* Creme: the buttons take the colour of the top bar (secondary buttons, "Entrar", "Carregar
   mais", the arrows and the tabs that are not selected); the red ones stay red */
.theme-parchment .layout :is(.btn:not(.btn--primary, .btn--gold, .btn--discord, .btn--ghost), .btn-more,
  .login .btn-sign, .arrow-btn, .tab:not(.is-active, [aria-selected="true"])) {
  --text: #f4e7cf;
  --text-2: #e3cbb0;
  --text-3: #c9ab90;
  --gold: #d9ae5c;
  --gold-2: #f2d38f;
  --gold-dim: #8a6431;
  background: linear-gradient(180deg, #3a110d, #240a08);
  border-color: #643129;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 210, 180, .08);
}
.theme-parchment .layout :is(.btn:not(.btn--primary, .btn--gold, .btn--discord, .btn--ghost), .btn-more,
  .login .btn-sign, .arrow-btn, .tab:not(.is-active, [aria-selected="true"])):hover {
  background: linear-gradient(180deg, #4a1711, #2e0c09);
  border-color: var(--gold-dim);
  color: var(--text);
}
.theme-parchment .layout .tab:not(.is-active, [aria-selected="true"]) { color: var(--text-2); }
.theme-parchment .layout .tab:not(.is-active, [aria-selected="true"]) .icon { color: var(--gold); }
.theme-parchment .layout .login .btn-sign { color: var(--gold-2); }
.theme-parchment .layout .arrow-btn { color: var(--text-2); }
.theme-parchment .layout .ev-ico--glyph { background-color: #4a1a14; color: #f2d38f; box-shadow: none; }
.theme-parchment .lightbox { --text: #f4e7cf; --text-2: #d8bea2; --surface-2: #2c1310; --line-2: #643129; --gold: #d9ae5c; --gold-2: #f2d38f; }

/* Misto: bordô bars on top of every box, panel and table, and bordô pieces inside the
   cream (fields, secondary buttons, tags, arrows, event rows, stats, wallet,
   countdowns). The pieces get the dark palette back, a little redder than the page so
   it reads as bordô against the cream. */
.theme-mix .layout :is(.box__head, .panel__head, .slider__caption, .rtable thead, .stats, .account__wallet,
  .ev-item, .ev-row, .arrow-btn, .field, .tag, .countdown > span, .btn-more, .login .btn-sign, .rk-cat, .rk-rail__mark,
  .lp-purse__sum,
  .ico-tile, .ledger, .shop-strip, .sec-tab, .modal__head, .tk-head, .tk-box, .tk-tools, .tk-ac,
  .btn:not(.btn--primary, .btn--gold, .btn--discord, .btn--ghost),
  .f-group__head, .t-list__head, .f-ico, .editor, .f-portrait) {
  --bg-2: #330a07;
  --surface: #430c08;
  --surface-2: #4e0f0a;
  --surface-3: #5f1610;
  --line: #6d2018;
  --line-2: #8c2e22;
  --text: #f7ead2;
  --text-2: #e5cbad;
  --text-3: #c6a486;
  --heading: #f7ead2;
  --gold: #e2b866;
  --gold-2: #f5d898;
  --gold-dim: #a3723c;
  --gold-wash: rgba(226, 184, 102, .14);
  --on-gold: #241005;
  --state: #ff5a45;
  --state-fg: #f7ead2;
  --state-wash: rgba(255, 90, 69, .14);
  --live-fg: #ff9a85;
  --ok-fg: #a9e08a;
  --warn-fg: #f2c86a;
  --err-fg: #ff9a85;
  --info-fg: #8fc7ea;
  --lift: inset 0 1px 0 rgba(255, 200, 160, .07);
}
.theme-mix .layout :is(.box__head, .panel__head, .slider__caption, .modal__head, .tk-head) {
  /* interlocking rings, like the bars of the mockup */
  background:
    var(--rings) 0 0 / 44px 44px,
    linear-gradient(180deg, #5b120b, #470b07);
  box-shadow: inset 0 1px 0 rgba(255, 200, 160, .1);
}
.theme-mix .layout .box__head { align-items: center; padding: 13px 20px 12px; }
.theme-mix .layout .panel__head { border-bottom-color: #3a0805; border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; }
.theme-mix .layout .rtable thead th { border-bottom-color: #3a0805; --th-line: #3a0805; }
.theme-mix .layout :is(.f-group__head, .t-list__head) { border-bottom-color: #3a0805; }
.theme-mix .layout .slider__caption { border-top-color: #3a0805; }
/* room under the bar */
.theme-mix .layout .login { padding-top: 18px; }
.theme-mix .layout .rank-list { margin-top: 8px; }
.theme-mix .layout .events-w { padding-top: 16px; }
.theme-mix .layout .account { padding-top: 18px; }
/* pieces that are see-through in the other two palettes */
.theme-mix .layout .arrow-btn { background: var(--surface-2); }
.theme-mix .layout .arrow-btn:hover { background: var(--surface-3); }
.theme-mix .layout .ev-list { gap: 6px; }
.theme-mix .layout .ev-item { background: var(--surface-2); }
.theme-mix .layout a.ev-item:hover { background: var(--surface-3); }
.theme-mix .layout .ev-item.is-live { background: #62170f; }
.theme-mix .layout .ev-ico--glyph { background-color: var(--surface-3); color: var(--gold-2); box-shadow: none; }

/* the red button (delete, turn off) in the cream options: bordô like the other buttons, red text */
.theme-mix .layout .btn--danger { background: var(--surface-2); }
.theme-mix .layout .btn--danger:hover { background: var(--surface-3); }
.theme-parchment .layout .btn.btn--danger { border-color: #c4452f; color: #ff9a85; }

/* prototype only: switch between the palettes (remove in production) */
.theme-switch {
  position: fixed; right: 12px; bottom: 12px; z-index: 90;
  display: flex; align-items: center; gap: 2px;
  padding: 3px;
  border-radius: 18px;
  background: rgba(31, 9, 7, .92);
  border: 1px solid var(--line-2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  font-size: 12.5px;
}
.theme-switch span { padding: 0 8px 0 10px; color: var(--text-3); }
.theme-switch__v { padding: 0 2px 0 10px; font-weight: 700; color: var(--gold); }
.theme-switch button {
  height: 28px; padding: 0 12px;
  border: 0; border-radius: 14px;
  background: transparent;
  color: var(--text-2); font-weight: 600;
}
.theme-switch button:hover { color: var(--text); }
.theme-switch button[aria-pressed="true"] { background: var(--red); color: var(--on-red); }
.theme-switch .theme-switch__intro { display: grid; place-items: center; width: 28px; padding: 0; margin-left: 4px; box-shadow: inset 0 0 0 1px var(--line-2); }
.theme-switch__intro .icon { width: 10px; height: 10px; margin-left: 2px; }
.theme-switch--session { bottom: 54px; }
.theme-switch[hidden] { display: none; }
/* the home page carries the sidebar of both sessions (prototype switch above) */
.only-member, .only-guest { display: contents; }
html.is-guest .only-member, html:not(.is-guest) .only-guest { display: none; }

/* 32 · responsive ---------------------------------------------------------- */
@media (max-width: 1320px) {
  :root { --sidebar: 300px; --gap: 24px; --pad: 24px; }
  .top-panel { grid-template-columns: minmax(0, 1fr) 260px; }
  .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-rows { grid-template-columns: minmax(0, 1fr); }
  .char { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .char__col--hide-md { display: none; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .class-card__art img + img { margin-left: -60px; }
  .rk { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-strip { grid-template-columns: 38px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr); }
  .shop-strip__count { display: none; }
  .rk-cat { gap: 10px; padding: 9px 10px 9px 9px; }
  .rtable .hide-md { display: none; }
}
@media (max-width: 1120px) {
  .char { grid-template-columns: 56px minmax(0, 1fr); row-gap: 12px; }
  .char__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .mainnav a { padding: 0 11px; font-size: 15.5px; }
  .lang { margin-left: 6px; }
  .top-panel { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { box-shadow: none; }
  .stat:nth-child(n+3) { box-shadow: inset 0 1px 0 var(--line); }
  .ev-feature, .ev-detail { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 1fr; }
  .hero-card { min-height: 240px; }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { grid-template-columns: 1fr; }
  .intro__art { max-width: 420px; width: 100%; margin: 0 auto; }
  .dl-hero { grid-template-columns: 1fr; text-align: center; }
  .dl-hero__logo { max-width: 260px; margin: 0 auto; }
  .dl-hero__meta { justify-content: center; }
  .howto, .help-grid { grid-template-columns: 1fr; }
  /* the rankings in a row above the list, scrolling sideways; it stays on top of the screen
     while the list scrolls */
  .rk { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rk-side {
    top: 0; z-index: 6;
    margin: -8px calc(var(--pad) * -1) 0; padding: 8px 0;
    background: var(--surface);
    box-shadow: 0 1px 0 var(--line);
  }
  .rk-rail {
    display: flex; gap: 8px;
    padding: 0 var(--pad) 2px;
    overflow-x: auto; scrollbar-width: none;
  }
  .rk-rail::-webkit-scrollbar { display: none; }
  .rk-cat { flex: none; grid-template-columns: 30px auto; gap: 9px; padding: 6px 14px 6px 6px; }
  .rk-cat__ico { width: 30px; height: 30px; }
  .rk-cat__ico .icon { width: 15px; height: 15px; }
  .rk-cat__name { font-size: 14.5px; white-space: nowrap; }
  .rk-cat__desc { display: none; }
  .ledger__cell { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .ledger__cell > .icon { display: none; }
  .ledger dd { font-size: 19px; }
}
@media (max-width: 980px) {
  .topbar__inner { justify-content: space-between; gap: 12px; }
  .nav-toggle, .topbar__user {
    display: grid; place-items: center;
    width: 40px; height: 40px; flex: none;
    border: 1px solid var(--line-2); border-radius: var(--r);
    background: transparent;
    color: var(--text-2);
  }
  .nav-toggle .icon, .topbar__user .icon { width: 18px; height: 18px; }
  .topbar__brand { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 120px; }
  .page-home .topbar__brand { display: none; }
  .topbar__brand img { width: 100%; }
  .lang { margin-left: auto; }
  .mainnav {
    position: fixed; inset: 64px 0 auto 0; z-index: 39;
    max-height: calc(100vh - 64px); overflow-y: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line-2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: .2s;
  }
  .nav-open .mainnav { transform: none; opacity: 1; visibility: visible; }
  .mainnav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0; }
  .mainnav a { height: 52px; padding: 0 24px; font-size: 18px; box-shadow: inset 0 -1px 0 var(--line); }
  .mainnav a::after { left: 0; top: 14px; bottom: 14px; width: 0; height: auto; transform: none; }
  .mainnav a.is-active::after { width: 3px; }
  .nav-dragons { display: none; }
  .hero--home .hero__logo { width: 300px; }
  .hero::before { height: auto; bottom: 0; }
  /* inner pages: the logo is already in the top bar, content starts right away */
  .hero:not(.hero--home) { display: none; }
  body:not(.page-home) .layout { margin-top: 16px; }
  .layout { grid-template-columns: 1fr; }
  .main, .sidebar { grid-column: auto; grid-row: auto; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .sidebar .box--login { grid-column: 1 / -1; }
  .login { max-width: 440px; }
  .feature-grid, .dungeon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kingdom-grid, .rules-grid, .cards-2, .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --pad: 18px; }
  body { font-size: 15.5px; }
  :root { --bg-w: 1100px; }
  .layout, .footer__links { width: calc(100% - 24px); }
  .sidebar { grid-template-columns: 1fr; }
  .hero { padding: 18px 12px 22px; }
  .hero__logo { width: 200px; }
  .hero--home { padding: 22px 12px 30px; gap: 12px; }
  .hero--home .hero__logo { width: 250px; }
  .hero__tagline { font-size: 19px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { width: 100%; max-width: 320px; }
  .topbar__brand { width: 104px; }
  .panel__head { flex-wrap: wrap; padding: 4px var(--pad) 0; }
  .panel__head-extra { order: -1; width: 100%; margin: 0; padding: 12px 0 0; }
  .panel__title-tab { font-size: 24px; padding: 14px 0 14px; }
  .tabs { margin: 0 calc(var(--pad) * -1); padding: 6px var(--pad) 0; gap: 6px; }
  .tab, .tabs--sm .tab { height: 42px; padding: 0 14px; font-size: 14.5px; }
  .post .section-title { font-size: 26px; }
  .post-text { font-size: 16px; }
  .news-card { grid-template-columns: 1fr; gap: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { grid-template-columns: 26px minmax(0, 1fr); padding: 12px; gap: 10px; }
  .stat .dot-online { display: none; }
  .stat__body b { font-size: 19px; }
  .slider__caption { padding: 9px 14px 11px; }
  .slider__title { font-size: 17px; }
  .slider__dots { right: 8px; gap: 5px; }
  .slider__dot { width: 11px; height: 11px; border-width: 1.5px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: 1fr 1fr; }
  .tile { padding: 12px 14px; }
  .tile__value { font-size: 20px; }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid, .dungeon-grid, .pay-grid, .gallery { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rtable { font-size: 14px; }
  .rtable .hide-sm { display: none; }
  .podium { padding: 16px 12px 0; margin-bottom: 16px; }
  .podium__medal { --d: 56px; box-shadow: 0 0 0 2px var(--medal), 0 0 0 4px rgba(20, 5, 3, .55), 0 0 20px var(--glow); }
  .podium__place--1 .podium__medal { --d: 66px; }
  .podium__crown { bottom: -10px; width: 28px; height: 21px; padding: 3px 4px; border-radius: 11px; box-shadow: 0 0 0 1.5px var(--medal), 0 2px 6px rgba(0, 0, 0, .5); }
  .podium__name, .podium__place--1 .podium__name { margin-top: 15px; font-size: 14px; }
  .podium__meta { font-size: 11.5px; gap: 5px; }
  .podium__flag { width: 16px; height: 10px; }
  .podium__value, .podium__place--1 .podium__value { font-size: 16px; }
  .podium__value small { display: block; font-size: 11px; }
  .podium__plinth { --h: 28px; margin-top: 10px; font-size: 19px; }
  .podium__place--1 .podium__plinth { --h: 50px; font-size: 26px; }
  .podium__place--2 .podium__plinth { --h: 38px; font-size: 22px; }
  .rk-table td { height: 54px; padding: 0 8px; }
  .rk-table thead th { padding: 0 8px; }
  .rk-table .pos { width: 42px; padding-right: 0; }
  .rk-coin { width: 27px; height: 27px; font-size: 13px; }
  .rk-top .rk-coin { font-size: 14px; }
  .rk-who { gap: 9px; }
  .rk-face { width: 34px; height: 34px; }
  .rk-face > span { font-size: 16px; }
  /* the kingdom column is gone: its flag goes on the portrait */
  .rk-face__flag { display: block; position: absolute; right: -5px; bottom: -3px; width: 17px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1.5px var(--surface); }
  .rk-wars { gap: 7px; }
  .rk-sub--sm { display: block; }
  /* member area */
  .shop-strip { grid-template-columns: 38px minmax(0, 1fr); gap: 8px 12px; padding: 12px 14px; }
  .shop-strip__time, .shop-strip__end { grid-column: 2; }
  .shop-strip__time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .shop-strip__time b { font-size: 21px; }
  .shop-strip__end { display: block; font-size: 13.5px; color: var(--text-2); }
  .shop-strip__end small { margin-right: 4px; }
  .ledger, .ledger:not(.ledger--3) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ledger--3 .ledger__cell { padding: 10px 12px; }
  .ledger--3 dt { font-size: 12px; }
  .ledger__cell { grid-template-columns: minmax(0, 1fr); padding: 11px 14px; }
  .ledger__cell > .icon { display: none; }
  .ledger__cell + .ledger__cell { box-shadow: none; }
  .ledger:not(.ledger--3) .ledger__cell:nth-child(even) { box-shadow: inset 1px 0 0 var(--line); }
  .ledger:not(.ledger--3) .ledger__cell:nth-child(n+3) { box-shadow: inset 0 1px 0 var(--line); }
  .ledger:not(.ledger--3) .ledger__cell:nth-child(even):nth-child(n+3) { box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
  .ledger--3 .ledger__cell + .ledger__cell { box-shadow: inset 1px 0 0 var(--line); }
  .ledger dd { font-size: 18px; }
  .lst__row { gap: 12px; padding: 12px; }
  .lst__row > .lst__actions, .lst__row > .btn, .lst__row > .hwid-auth { grid-column: 2 / -1; justify-content: flex-start; }
  .device .lst__actions .btn span { display: none; }
  .device .lst__actions .btn { width: 36px; padding: 0; }
  .device .lst__actions .btn.is-armed { width: auto; padding: 0 12px; }
  .device .lst__actions .btn.is-armed span { display: inline; }
  .set__body { padding: 4px 14px 18px; }
  .set .lst__row { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .set .set__btn { grid-column: 2; justify-self: start; }
  .group-title { margin-top: 26px; font-size: 19px; }
  .sec-block { padding: 16px 14px 18px; }
  .sec-block__head { grid-template-columns: minmax(0, 1fr); }
  .sec-block__head > .ico-tile { display: none; }
  .sec-block__body, .hwid-bar, .sec-block > .callout, .hwid-add, .sec-block > .help { margin-left: 0; }
  .twofa__step { padding: 14px 14px 16px 50px; }
  .twofa__step::before { left: 12px; top: 13px; }
  .twofa__qr { width: 150px; height: 150px; }
  .recovery { padding: 16px 14px; }
  .recovery__codes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 12px 14px; font-size: 15px; }
  .hwid-add { padding: 14px; }
  .hwid-auth { flex-wrap: wrap; }
  .hwid-auth .field { width: 100%; }
  .log-filters { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .log__row { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .log__time { grid-column: 2; grid-row: 1; justify-self: end; margin-top: 2px; font-size: 12.5px; }
  .log__row .lst__main { grid-column: 2; grid-row: 1; }
  .log__row .lst__title { padding-right: 62px; }
  .friends__tools, .friends__tools .field--sm { width: 100%; }
  .friend-grid { grid-template-columns: minmax(0, 1fr); }
  .item-grid, .modal .item-grid, .modal .friend-grid { grid-template-columns: minmax(0, 1fr); }
  .char__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .char__actions .btn { width: 100%; }
  .summary > .btn { width: 100%; padding: 0 16px; }
  .modal, .modal--wide { width: 100%; max-height: 92vh; margin: auto 0 0; }
  .modal__box { border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; }
  .modal[open] { animation-name: sheet-in; }
  .modal__head { padding: 10px 8px 10px 14px; }
  .modal__title { font-size: 19px; }
  .modal__body { padding: 16px 14px 20px; }
  .shopv__facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .shopv__facts > div:first-child { grid-column: 1 / -1; }
  .shop-time { padding: 10px 14px; }
  .shop-time__left { font-size: 21px; }
  .sec-tabs { gap: 6px; }
  .sec-tab { grid-template-columns: minmax(0, 1fr); padding: 9px 10px; text-align: center; }
  .sec-tab .ico-tile, .sec-tab__more { display: none; }
  .sec-tab__name { font-size: 14.5px; }
  .sec-tab__state { justify-content: center; font-size: 0; }
  .sec-tab__state::before { width: 8px; height: 8px; }
  .sales__row { align-items: start; row-gap: 2px; }
  .sales__row > .slot { grid-column: 1; grid-row: 1 / span 2; }
  .sales__row > .lst__main { grid-column: 2; grid-row: 1; }
  .sales__row > .money { grid-column: 2; grid-row: 2; text-align: left; }
  .search { width: 100%; }
  .char { grid-template-columns: 52px minmax(0, 1fr); }
  .char__col, .char__col--hide-md { display: none; }
  .char__actions { grid-column: 1 / -1; }
  .char__face { width: 52px; height: 52px; }
  .ev-row { gap: 10px; padding-right: 10px; }
  .ev-row__cd { font-size: 12px; }
  .img-captcha__img { width: 104px; font-size: 19px; letter-spacing: 3px; }
  .notfound__code { font-size: 80px; }
  .countdown > span { min-width: 50px; font-size: 21px; }
  .theme-switch { right: 8px; bottom: 8px; }
  .theme-switch--session { bottom: 48px; }
  .theme-switch span { display: none; }
}

/* member area on small phones: the sums as a list, the security summary one card per line */
@media (max-width: 420px) {
  .ledger, .ledger--3, .ledger:not(.ledger--3) { grid-template-columns: minmax(0, 1fr); }
  .ledger .ledger__cell, .ledger--3 .ledger__cell { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 14px; }
  .ledger .ledger__cell + .ledger__cell, .ledger--3 .ledger__cell + .ledger__cell,
  .ledger:not(.ledger--3) .ledger__cell:nth-child(n) { box-shadow: none; }
  .ledger .ledger__cell + .ledger__cell { box-shadow: inset 0 1px 0 var(--line) !important; }
  .ledger dt, .ledger--3 dt { font-size: 13.5px; }
  .ledger dd { font-size: 18px; }
}
@media (max-width: 360px) {
}

/* forum and blog: the side numbers and the last message go under the title */
@media (max-width: 1120px) {
  .f-group__head, .f-cat { grid-template-columns: 46px minmax(0, 1fr); }
  .f-group__head > span { display: none; }
  .f-side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; grid-column: 2; margin-top: 8px; }
  .f-num { display: inline-flex; align-items: baseline; gap: 5px; }
  .f-num b { font-size: 14px; }
  .f-num small { display: inline; }
  .f-last { flex: 1 1 250px; }
  .t-list__head { display: none; }
  .t-row { grid-template-columns: 42px minmax(0, 1fr); }
  .t-row__side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; grid-column: 2; margin-top: 8px; }
  .t-row__num { display: inline-flex; align-items: baseline; gap: 5px; }
  .t-row__num b { font-size: 14px; }
  .t-row__num small { display: inline; }
  .t-row__last { margin-left: auto; }
  .t-row__last > span:last-child { display: flex; align-items: baseline; gap: 6px; }
}
@media (max-width: 760px) {
  .f-toolbar { margin-bottom: 18px; }
  .f-toolbar__actions { width: 100%; }
  .f-toolbar__actions .btn { flex: 1 1 auto; justify-content: center; }
  .f-toolbar__actions .btn--primary { order: -1; }
  .f-group__head, .f-cat { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; }
  .f-group__head { padding: 8px 14px; }
  .f-group__title { font-size: 18px; }
  .f-cat { padding: 14px; }
  .f-ico { width: 40px; height: 40px; }
  .f-ico img { height: 19px; }
  .f-cat__name { font-size: 16px; }
  .f-cat-title, .f-topic-title { font-size: 25px; }
  .f-cat-desc { font-size: 15px; }
  .t-row { grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding: 12px 14px; }
  .t-row > .av { width: 34px; height: 34px; }
  .t-row__num + .t-row__num { display: none; }
  .t-row__last .av { width: 22px; height: 22px; }
  .f-actions .pager { width: 100%; margin: 0; justify-content: flex-start; }
  .f-post { grid-template-columns: minmax(0, 1fr); }
  .f-post__author { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .f-portrait { width: 46px; height: 46px; flex: none; border-radius: 50%; }
  .f-portrait img { transform: scale(1.9); transform-origin: 50% 34%; }
  .f-portrait--logo img { padding: 4px; transform: none; }
  .f-portrait .f-level { display: none; }
  .f-post__who { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 2px 8px; }
  .f-post__who strong { flex-basis: 100%; }
  .f-facts { display: none; }
  .f-post__main { padding: 12px 14px; }
  .f-tool { padding: 0 9px; }
  .f-tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .f-reply { grid-template-columns: minmax(0, 1fr); }
  .f-reply > .av { display: none; }
  .editor__tool { width: 32px; }
  .editor__tool:is([data-md="strikethrough"], [data-md="code"]), .editor__sep { display: none; }
  .editor__foot > span:first-child { display: none; }
  .crumbs [aria-current] { max-width: 100%; }
  .f-staff { padding: 14px 14px 16px; }
}
