/* SROTop100 site styles. Values come from tokens.css; rules from features/18 §18.7.
   Logical properties (inline-start/end) are used throughout so Arabic mirrors without overrides. */

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 380px at 12% -8%, rgba(184, 137, 9, 0.2), transparent 68%),
    radial-gradient(720px 460px at 108% 12%, rgba(255, 255, 255, 0.05), transparent 58%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gold-2);
}

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: -100px;
  padding: 10px 18px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.skip-link:focus {
  inset-block-start: 12px;
  z-index: 10;
}

/* Language suggestion: a link, never a redirect (SEO-2) */
.lang-suggest {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 8px 16px;
  background: var(--gold-tint);
  border-block-end: 1px solid var(--border);
  color: var(--gold-text);
  font-weight: 500;
}

/* Header: floating pill */
.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  margin: 16px 24px 0;
  padding: 0 20px 0 28px;
  padding-inline: 28px 20px;
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  /* Its menus open over the page, which has its own layers (blur, animation) */
  position: relative;
  z-index: 45;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  flex-shrink: 0;
}

.site-header > * {
  flex-shrink: 0;
}

/* Only the menu gives way: it scrolls sideways rather than push the buttons off the screen */
.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 4px;
  min-inline-size: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

/* Auto margins centre the links but, unlike justify-content, keep the first one reachable */
.nav__link:first-child {
  margin-inline-start: auto;
}

.nav__link:last-child {
  margin-inline-end: auto;
}

.nav__link {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 16px;
  color: var(--text-soft);
  border-radius: var(--radius-pill);
}

.nav__link .icon {
  color: var(--text-muted);
}

.nav__link:hover .icon,
.nav__link[aria-current="page"] .icon {
  color: inherit;
}

.nav__link[aria-current="page"] {
  padding: 0 20px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-weight: 600;
}

/* Language menu: a native <details>, so it works without JavaScript */
.lang-menu {
  position: relative;
}

.lang-menu__current {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.lang-menu__current::-webkit-details-marker {
  display: none;
}

.lang-menu__code {
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
}

.lang-menu__list {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 8px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: 0 24px 48px -24px #000;
}

.lang-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: 10px;
}

.lang-menu__link:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.lang-menu__link[aria-current="true"] {
  background: var(--gold-tint);
  color: var(--gold-text);
}

.account-name {
  font-weight: 500;
}

.nav__link {
  white-space: nowrap;
}

.icon-btn {
  display: inline-grid;
  flex-shrink: 0;
  inline-size: var(--tap);
  block-size: var(--tap);
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-soft);
}

.icon-btn:hover {
  color: var(--gold-text);
}

.btn--small.header-add {
  flex-shrink: 0;
  width: auto;
  white-space: nowrap;
}

/* Account menu: the same native <details> as the language menu */
.account-menu {
  position: relative;
}

.account-menu__current {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding-inline: 4px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  list-style: none;
}

.account-menu__current::-webkit-details-marker {
  display: none;
}

.account-menu__avatar {
  display: inline-grid;
  inline-size: 34px;
  block-size: 34px;
  place-items: center;
  background: var(--gold-gradient);
  border-radius: 50%;
  color: var(--text-on-gold);
  font-weight: 700;
}

.account-menu__list {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 8px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: 0 24px 48px -24px #000;
}

.account-menu__rule {
  margin: 6px 4px;
  border: 0;
  border-block-start: 1px solid var(--border);
}

.account-menu__logout {
  inline-size: 100%;
  background: none;
  border: 0;
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
}

/* Phone tab bar (§18.3): hidden until the header has no room for the menu */
.tabbar {
  display: none;
}

.tabbar__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-block-size: 52px;
  padding-inline: 4px;
  border-radius: 24px;
  color: var(--text-soft);
  font-size: var(--text-xs);
  text-align: center;
}

.tabbar__link .icon {
  margin: 0;
  font-size: 17px;
}

.tabbar__link[aria-current="page"] {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-weight: 600;
}

.tabbar__dot {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 14%;
  inline-size: 8px;
  block-size: 8px;
  background: var(--gold-2);
  border-radius: 50%;
}

.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 0 var(--gap-panel);
}

.menu-list {
  display: flex;
  flex-direction: column;
  padding: 6px 12px 12px;
}

.menu-list form {
  margin: 0;
}

.menu-list__link {
  display: flex;
  align-items: center;
  inline-size: 100%;
  min-block-size: var(--tap);
  padding-inline: 12px;
  background: none;
  border: 0;
  border-block-end: 1px solid var(--border-row);
  color: var(--text-soft);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.menu-list__link:hover,
.menu-list__link[aria-current="true"] {
  color: var(--gold-text);
}

/* The header folds in steps as room runs out. The breakpoints fit English; header.js adds the
   same steps as fit-1 to fit-7 when a language with longer words still does not fit. */
@media (max-width: 1439px) {
  .site-header {
    gap: 12px;
  }

  .lang-menu__name,
  .account-menu .account-name {
    display: none;
  }

  .account-menu__current {
    padding-inline: 4px;
  }
}

.site-header.fit-1 {
  gap: 12px;
}

.fit-1 .lang-menu__name,
.fit-1 .account-menu .account-name {
  display: none;
}

.fit-1 .account-menu__current {
  padding-inline: 4px;
}

@media (max-width: 1365px) {
  .site-header .header-add {
    display: none;
  }

  .nav__link {
    padding: 0 12px;
  }
}

.site-header.fit-2 .header-add {
  display: none;
}

.fit-2 .nav__link {
  padding: 0 12px;
}

@media (max-width: 1279px) {
  .site-header {
    gap: 8px;
    margin-inline: 16px;
    padding-inline: 24px 14px;
  }

  .site-header .header-login {
    display: none;
  }

  .nav__link,
  .nav__link[aria-current="page"] {
    padding: 0 10px;
  }
}

.site-header.fit-3 {
  gap: 8px;
}

.site-header.fit-3 .header-login {
  display: none;
}

.fit-3 .nav__link,
.fit-3 .nav__link[aria-current="page"] {
  padding: 0 10px;
}

.fit-4 .nav__link,
.fit-4 .nav__link[aria-current="page"] {
  padding: 0 7px;
}

.fit-4 .brand {
  font-size: 19px;
}

.fit-5 .brand span,
.fit-5 .lang-menu__current .lang-menu__code {
  display: none;
}

.fit-5 .nav {
  gap: 0;
}

.fit-5 .lang-menu__current {
  justify-content: center;
  inline-size: var(--tap);
  padding: 0;
}

.fit-5 .lang-menu__current .icon {
  margin: 0;
}

.fit-6 .nav__link .icon {
  display: none;
}

/* Phones get the tab bar; header.js adds fit-7 for the same on a tablet where the menu still does not fit */
@media (max-width: 767px) {
  .nav,
  .site-header .header-add,
  .site-header .header-login,
  .lang-menu,
  .account-menu {
    display: none;
  }

  .tabbar {
    position: fixed;
    z-index: 40;
    inset-inline: 12px;
    inset-block-end: calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    max-inline-size: 560px;
    margin-inline: auto;
    padding: 6px;
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-radius: 30px;
  }

  .brand {
    flex-grow: 1;
  }

  body {
    padding-block-end: calc(92px + env(safe-area-inset-bottom));
  }
}

.fit-7 .nav,
.site-header.fit-7 .header-add,
.site-header.fit-7 .header-login,
.fit-7 .lang-menu,
.fit-7 .account-menu {
  display: none;
}

.site-header.fit-7 ~ .tabbar {
  position: fixed;
  z-index: 40;
  inset-inline: 12px;
  inset-block-end: calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  max-inline-size: 560px;
  margin-inline: auto;
  padding: 6px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 30px;
}

.fit-7 .brand {
  flex-grow: 1;
}

body:has(> .site-header.fit-7) {
  padding-block-end: calc(92px + env(safe-area-inset-bottom));
}

/* Buttons. Filled gold is for the one primary action on a screen (§18.7). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.btn--gold {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-weight: 600;
}

.btn--gold:hover {
  color: var(--text-on-gold);
  filter: brightness(1.06);
}

.btn--gold-outline {
  border: 1.5px solid var(--gold);
  box-shadow: 0 10px 28px -12px var(--gold-2);
}

.btn--outline {
  border-color: var(--border-strong);
  box-shadow: var(--gold-edge);
}

.btn--quiet {
  min-height: var(--tap);
  padding: 0 12px;
  color: var(--text-soft);
  font-size: 14px;
}

.btn--wide {
  width: 100%;
}

.link {
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Banner for an account with a verification step left (16B.4) */
.todo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  margin: 16px 24px 0;
  padding: 10px 20px;
  background: var(--gold-tint);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-panel);
}

.todo-banner__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--gold-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.alert {
  max-width: 560px;
  margin: 0 auto 20px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
}

.alert--success {
  border-color: var(--ok);
}

.alert--error {
  border-color: var(--live);
}

/* Cards and forms */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 32px;
}

.card--form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
  margin-inline: auto;
  box-shadow: var(--gold-edge);
}

.card__title {
  margin: 0;
  font-size: var(--text-2xl);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.card__lead,
.card__foot {
  margin: 0;
  color: var(--text-soft);
}

.steps {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.steps__item {
  flex: 1;
  padding-block-start: 10px;
  border-block-start: 2px solid var(--border);
}

.steps__item[aria-current="step"] {
  border-color: var(--gold);
  color: var(--gold-text);
  font-weight: 600;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  font-weight: 500;
}

.field__help {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
}

.input:focus-visible {
  border-color: var(--gold);
}

.input-prefix {
  display: flex;
  align-items: stretch;
}

.input-prefix__label {
  display: flex;
  align-items: center;
  padding-inline: 12px;
  border: 1px solid var(--border-strong);
  border-inline-end: 0;
  border-radius: 12px 0 0 12px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.input-prefix .input {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  cursor: pointer;
}

.check input,
.choice input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-tint);
}

.choices:has(.choice--pro) {
  padding-block-start: 8px;
}

.choice--pro {
  position: relative;
}

.choice__pro {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 12px;
  transform: translateY(-50%);
  padding: 0 5px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--gold-text);
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
}

.errorlist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #ff8a8e;
  font-size: var(--text-sm);
}

/* Page */
.page {
  flex-grow: 1;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 64px var(--page-x) 0;
}

.label {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--text-muted);
}

.label--ruled {
  display: flex;
  align-items: center;
  gap: 20px;
}

.label--ruled::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: var(--border);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 900px;
}

.hero__title {
  margin: 0;
  font-size: var(--text-hero);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-soft);
}

/* Font Awesome icons. The words beside an icon carry the meaning; the icon is hidden from readers */
.icon {
  flex-shrink: 0;
  inline-size: 1.25em;
  margin-inline-end: 0.4em;
  text-align: center;
}

.btn .fa-chevron-right {
  margin-inline: 0.4em 0;
}

[dir="rtl"] .fa-chevron-left,
[dir="rtl"] .fa-chevron-right,
[dir="rtl"] .fa-arrow-up-right-from-square,
[dir="rtl"] .fa-right-from-bracket,
[dir="rtl"] .fa-right-to-bracket {
  transform: scaleX(-1);
}

.fa-star {
  color: var(--gold);
}

.tag .icon {
  inline-size: auto;
  margin-inline-end: 0.35em;
  font-size: 0.9em;
}

.icon-btn .icon,
.bell .icon,
.site-footer__channel .icon {
  margin: 0;
  font-size: 17px;
}

.menu-list__link .icon,
.account-menu__list .icon {
  margin-inline-end: 0.75em;
  color: var(--text-muted);
}

.menu-list__link:hover .icon,
.account-menu__list .lang-menu__link:hover .icon {
  color: var(--gold-text);
}

.account-menu__list .lang-menu__link {
  justify-content: flex-start;
  gap: 0;
}

.header-login {
  display: inline-flex;
  align-items: center;
}

.site-footer {
  margin-block-start: var(--gap-section);
  padding: 48px var(--page-x) 24px;
  background: linear-gradient(180deg, var(--bg-sunken), rgba(18, 18, 18, 0));
  border-block-start: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.site-footer__about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.site-footer__lead {
  max-inline-size: 300px;
  margin: 0;
  color: var(--text-soft);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__channel {
  display: inline-grid;
  inline-size: 40px;
  block-size: 40px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-soft);
}

.site-footer__channel:hover {
  border-color: var(--gold);
  color: var(--gold-text);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__title {
  margin: 0 0 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--text);
}

.site-footer__link {
  display: flex;
  align-items: center;
  min-block-size: 36px;
  color: var(--text-soft);
  text-decoration: none;
}

.site-footer__link .icon {
  color: var(--text-muted);
}

.site-footer__link:hover,
.site-footer__link:hover .icon {
  color: var(--gold-text);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-block-start: 40px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--border-row);
  font-size: var(--text-sm);
}

.site-footer__bottom .icon {
  color: var(--ok);
}

@media (max-width: 1023px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__about {
    grid-column: 1 / -1;
  }
}

/* Arabic: no tight tracking on headlines, which breaks joined letters */
:lang(ar) .hero__title,
:lang(ar) .brand {
  letter-spacing: 0;
}

:lang(ar) .label {
  text-transform: none;
}

/* Phones */
@media (max-width: 767px) {
  :root {
    --page-x: 16px;
    --text-hero: 40px;
    --text-lg: 17px;
  }

  .site-header {
    flex-wrap: wrap;
    row-gap: 0;
    min-height: 60px;
    margin: 12px 12px 0;
    padding-inline: 18px 8px;
    border-radius: 30px;
  }

  .brand {
    font-size: 19px;
  }

  .header-join {
    min-height: var(--tap);
    padding: 0 16px;
  }

  .page {
    padding-block-start: 32px;
  }

  .card {
    padding: 20px;
  }

  .account-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Panels and tables (staff queue now; calendar and ranking later) */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--gold-band);
}

.panel__title {
  flex-grow: 1;
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.panel__note {
  font-size: var(--text-sm);
  color: var(--text-soft);
}

.panel__empty {
  margin: 0;
  padding: 32px 24px;
  color: var(--text-soft);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 12px 24px;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
  text-align: start;
}

.table td {
  padding: 10px 24px;
  border-block-start: 1px solid var(--border-row);
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
}

.badge--late {
  border-color: var(--live);
  color: #ff8a8e;
}

.facts {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-block-start: 1px solid var(--border);
}

.facts__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-block-end: 1px solid var(--border);
}

.facts dt {
  color: var(--text-muted);
}

.facts dd {
  margin: 0;
}

.input--area {
  min-height: 96px;
  padding: 12px 16px;
  resize: vertical;
}

/* Servers */
/* Section pages open like the homepage: small label, compact title, short note */
.hero--compact {
  gap: 8px;
  margin-block-end: 20px;
}

.hero--compact .label--ruled::after {
  display: none;
}

.hero--compact .hero__title,
.home-top .hero__title {
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  line-height: 1.1;
}

.hero--compact .hero__lead {
  max-inline-size: 68ch;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.home-top .answer {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.home-top .numbers__value {
  font-size: var(--text-xl);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-block-end: 24px;
}

.filters .field {
  flex: 1 1 150px;
}

.table__name {
  font-weight: 600;
}

.table--compact td,
.table--compact th {
  padding-inline: 0;
}

.table__changed {
  color: var(--gold-text);
  font-weight: 600;
}

.cap-badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 48px;
  margin-block-end: 40px;
}

.server-head__title {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.server-head__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.server-head__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 0;
}

/* Server page: the team's tools, kept apart from what players do (§17.3) */
.manage {
  margin-block-end: 24px;
  border-color: var(--border-gold);
}

.manage__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 32px;
  padding: 20px 24px;
}

.manage__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manage__group .label {
  margin: 0 0 4px;
}

.manage__close {
  padding: 0 24px 16px;
}

.manage__close .btn--small {
  width: auto;
}

.around__row {
  margin: 0 0 10px;
}

.around__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Phones: the main action stays in reach above the tab bar (§18.4) */
.sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .sticky-cta {
    position: fixed;
    z-index: 39;
    inset-inline: 12px;
    inset-block-end: calc(84px + env(safe-area-inset-bottom));
    display: flex;
    gap: 8px;
    padding: 8px;
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-radius: 30px;
  }

  .sticky-cta > *,
  .sticky-cta form .btn {
    flex: 1 1 0;
    inline-size: 100%;
  }

  .sticky-cta form {
    display: flex;
    flex: 1 1 0;
  }

  body:has(.sticky-cta) {
    padding-block-end: calc(150px + env(safe-area-inset-bottom));
  }
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-block-end: 24px;
}

.facts--panel {
  padding: 0 24px;
  border: 0;
}

.facts--panel .facts__row:last-child {
  border-block-end: 0;
}

.panel__body {
  margin: 0;
  padding: 20px 24px;
}

.muted {
  color: var(--text-muted);
}

.card--wide {
  max-width: 760px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0 0 24px;
  border: 0;
  border-block-end: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.form-grid__item--wide {
  grid-column: 1 / -1;
}

.form.is-wizard {
  position: relative;
}

/* Kept in the page, not display:none, so a chosen logo or banner is still sent. */
.form.is-wizard .form-section:not(.is-current) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.form.is-wizard .form-section.is-current {
  display: flex;
}

.form.is-wizard .form-nav {
  display: flex;
}

.form-nav {
  display: none;
  gap: 12px;
}

.form-nav [hidden],
.form-submit[hidden] {
  display: none;
}

.form-nav .btn {
  flex: 1;
}

.steps__btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

@media (max-width: 960px) {
  .editor {
    grid-template-columns: 1fr;
  }

  .editor__preview {
    position: static;
  }

  .editor__preview iframe {
    height: 480px;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid__item--wide {
    grid-column: auto;
  }
}

.form-section__title {
  padding: 0 0 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--gold-text);
}

select.input {
  appearance: auto;
}

.small {
  font-size: var(--text-sm);
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.check--inline {
  justify-content: center;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 0;
}

/* Wide tables scroll inside their panel instead of widening the page on phones. Relative, so
   absolutely placed children such as screen-reader labels are clipped too. */
.panel--scroll,
.panel:has(.table) {
  position: relative;
  overflow-x: auto;
}

.table--compare th[scope="row"] {
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
}

.panel--text {
  margin-block-start: 24px;
}

.review {
  padding: 18px 24px;
  border-block-start: 1px solid var(--border-row);
}

.review__meta,
.review__text {
  margin: 0 0 6px;
}

.review__reply {
  margin: 10px 0 0;
  padding: 12px 16px;
  background: var(--bg-sunken);
  border-radius: 12px;
  color: var(--text-soft);
}

.code-box {
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  font-family: ui-monospace, Menlo, monospace;
  word-break: break-all;
}

.steps-list {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--text-soft);
}

/* Upcoming (homepage) */
.page:has(.home-board),
.page:has(> .hero--compact:first-child),
.page:has(.home-top) {
  padding-top: 24px;
}

.home-ads {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.home-ads__label {
  align-self: start;
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-ads__wide {
  width: min(728px, 100%);
}

.home-ads__wide .ad {
  align-items: center;
  margin: 0;
}

.home-ads .ad__label {
  display: none;
}

.home-ads__wide .ad__link img {
  width: 100%;
  max-height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.home-ads__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.banner-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 6px 12px;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  background: linear-gradient(100deg, #241c0c 0%, #1a1a1a 55%);
  color: inherit;
  text-decoration: none;
}

.banner-strip--wide {
  min-height: 90px;
  padding-inline: 16px;
}

.banner-strip__mark {
  display: grid;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: 13px;
  font-weight: 700;
}

.banner-strip__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.banner-strip__copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.banner-strip__copy span {
  overflow: hidden;
  color: var(--gold-text);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.banner-strip__cta {
  margin-inline-start: auto;
  color: var(--gold-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .home-ads__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-ads__grid {
    grid-template-columns: 1fr;
  }
}

.home-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.home-head:has(.next-card) {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.home-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.home-intro .hero__title {
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  line-height: 1.1;
}

.home-note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  max-inline-size: 68ch;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.home-intro .answer {
  margin: 0;
  max-inline-size: none;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.home-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-bar .btn--small {
  width: auto;
}

.home-live {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-live.htmx-request {
  opacity: 0.55;
}

.home-stats.numbers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.home-stats .numbers__item {
  padding: 8px 10px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.home-stats .numbers__value {
  font-size: var(--text-lg);
}

/* The calendar as a timeline: one line down the side, a dot per date group, "Now" between soon and open */
.timeline {
  --rail: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  padding-inline-start: calc(var(--rail) + 18px);
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block: 6px 6px;
  inset-inline-start: var(--rail);
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold) 35%, transparent) 70%, var(--border));
}

.timeline__phase {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline__groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* The dot sits on the rail, level with the group's date */
.timeline__group::before {
  content: "";
  position: absolute;
  inset-block-start: 7px;
  inset-inline-start: -23px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px color-mix(in srgb, var(--gold) 55%, transparent);
}

.timeline--past::before {
  background: var(--border);
}

.timeline--past .timeline__group::before {
  background: var(--bg);
  border: 2px solid var(--text-muted);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline .group-title {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-text);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.timeline--past .group-title {
  color: var(--text-muted);
}

.timeline__count {
  margin-inline-start: 6px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.timeline__hint {
  margin: -8px 0 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.timeline--past {
  margin-top: 32px;
}

.timeline__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.timeline__rows .upcoming-row:first-child {
  border-block-start: 0;
}

.timeline__now {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--gold-text);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.timeline__now::before {
  content: "";
  position: absolute;
  inset-inline-start: -27px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--bg), 0 0 18px var(--gold);
}

.timeline__now-time {
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.timeline__now::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

@media (max-width: 640px) {
  .timeline {
    --rail: 8px;
    padding-inline-start: 26px;
  }

  .timeline__group::before {
    inset-inline-start: -23px;
  }

  .timeline__now::before {
    inset-inline-start: -27px;
  }
}

.home-board .section-title {
  margin: 0;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--text-md);
  font-weight: 600;
}

.group-empty {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-inline: 20px;
}

.group-empty .group-title {
  padding: 8px 0;
  border: 0;
  background: none;
}

.group-empty p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

@media (max-width: 860px) {
  .home-head:has(.next-card) {
    grid-template-columns: 1fr;
  }
}

@keyframes home-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.home-board {
  animation: home-in 0.45s ease both;
}

.next-card .gold {
  animation: home-glow 2.6s ease-in-out infinite;
}

@keyframes home-glow {
  50% {
    opacity: 0.55;
  }
}

.upcoming-row {
  transition: background 0.2s ease;
}

.upcoming-row:hover {
  background: rgb(255 255 255 / 4%);
}

.home-top + .filters {
  margin-block-start: 20px;
}

.next-card {
  flex: 0 1 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--gold-edge);
}

.home-head .next-card {
  height: 100%;
  justify-content: center;
  padding: 14px 16px;
  gap: 8px;
}

.home-head .facts__row {
  padding: 8px 0;
}

.next-card .label {
  margin: 0;
}

.next-card__name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 600;
}

.gold {
  color: var(--gold-text);
  font-weight: 600;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 48px 0;
  padding: 30px 0;
  border-block: 1px solid var(--border);
}

.numbers__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.numbers__value {
  font-size: var(--text-3xl);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--gold-number);
  font-variant-numeric: tabular-nums;
}

.section-title {
  margin: 40px 0 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-3xl);
  line-height: 1.05;
}

:lang(ar) .section-title {
  font-style: normal;
}

.group-title {
  margin: 0;
  padding: 10px 20px;
  background: var(--gold-tint);
  border-block-start: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
}

.group-title:first-child {
  border-block-start: 0;
}

.upcoming-row {
  display: grid;
  grid-template-columns: 50px 84px minmax(0, 1fr) 150px auto;
  align-items: center;
  column-gap: 14px;
  min-height: var(--row-h);
  padding: 8px 20px;
  border-block-start: 1px solid var(--border-row);
}

.date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50px;
  padding: 4px 0;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  line-height: 1.2;
}

.date-chip__month {
  font-size: 11px;
  color: var(--text-muted);
}

.date-chip__day {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.upcoming-row .cap-badge {
  justify-self: start;
}

.upcoming-row__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.upcoming-row__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-row__meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.upcoming-row__when {
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}

.upcoming-row .btn--small {
  width: auto;
  white-space: nowrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-start: 4px;
}

.tag {
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-soft);
}

.btn--small {
  min-height: var(--tap);
  padding: 0 16px;
  font-size: 14px;
  width: 100%;
}

@media (max-width: 767px) {
  .numbers {
    gap: 12px;
  }

  .upcoming-row {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    row-gap: 6px;
  }

  .upcoming-row .cap-badge,
  .upcoming-row__when {
    display: none;
  }
}

/* Top rank */
.rank-number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
}

.up {
  color: var(--ok);
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.server-head__tagline {
  margin: 12px 0 0;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--gold-text);
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--gap-panel);
  align-items: start;
  margin-block-start: var(--gap-panel);
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 220px;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
}

.rank-card--top {
  border-color: var(--border-gold);
  box-shadow: var(--gold-edge);
}

.rank-card__place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.rank-card--top .rank-number {
  color: var(--gold-number);
}

.rank-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
}

.rank-card__title > a:first-child {
  color: var(--text);
  text-decoration: none;
}

.rank-card__title > a:first-child:hover {
  color: var(--gold-text);
}

.rank-card__rating {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gold-text);
  text-decoration: none;
}

.rank-card__tagline {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 500;
}

.rank-card__text {
  margin: 6px 0 0;
  font-size: var(--text-sm);
  color: var(--text-soft);
}

.rank-card__tags {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.rank-card__side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.rank-card__votes {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.rank-card__votes .label {
  margin: 0;
}

.rank-card__count {
  font-size: var(--text-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rank-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block-start: auto;
}

.rank-card__actions .btn {
  justify-content: center;
}

.rank-aside {
  display: flex;
  flex-direction: column;
  gap: var(--gap-panel);
  position: sticky;
  top: 96px;
}

.rank-newest {
  margin: 0;
  padding: 8px 20px 16px;
  list-style: none;
}

.rank-newest li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding-block: 10px;
  border-block-end: 1px solid var(--border-row);
}

.rank-newest li:last-child {
  border-block-end: 0;
}

.rank-newest .muted {
  flex-basis: 100%;
}

.rank-owner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--gold-edge);
}

.rank-owner p {
  margin: 0;
}

@media (max-width: 1279px) {
  .rank-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .rank-card__side {
    grid-column: 2;
  }

  .rank-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 1023px) {
  .rank-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-aside {
    position: static;
  }
}

@media (max-width: 767px) {
  .rank-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .rank-card__side {
    grid-column: 1 / -1;
  }

  .rank-card__actions .btn {
    flex: 1 1 auto;
  }
}

/* Billing */
.methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.methods [aria-current="true"] {
  border-color: var(--gold);
  background: var(--gold-tint);
}

.pay-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--bg-sunken);
  border-radius: 12px;
}

.pay-box p {
  margin: 0;
}

.badge--ok {
  border-color: var(--ok);
  color: var(--ok);
}

.proof {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Sponsored block (RNK-2): tiers differ by weight, not only colour */
.sponsored {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 32px;
}

.sponsored p {
  margin: 0;
}

.sponsored__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.sponsored__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
}

.sponsored__card--elite {
  grid-column: span 2;
  border-color: var(--border-gold);
  box-shadow: var(--gold-glow);
}

.sponsored__card--premium {
  border-color: var(--gold);
}

.sponsored__tier {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--gold-text);
}

.sponsored__name {
  font-size: var(--text-xl);
  font-weight: 600;
}

@media (max-width: 767px) {
  .sponsored__card--elite {
    grid-column: auto;
  }
}

/* Banner places (UPC-12, UPC-13, BIL-3): always labelled Sponsored */
.ad {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-block: 24px;
}

.ad__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--text-muted);
}

.ad__items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ad__link {
  display: block;
  max-width: 100%;
}

.ad__link img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-panel);
  border: 1px solid var(--border);
}

.ad--leaderboard {
  align-items: center;
  margin-block: 0 24px;
}

.ad--leaderboard .ad__link img {
  width: 728px;
}

.ad--sidebar .ad__link img {
  width: 240px;
}

.ad--server_page,
.ad--tools {
  align-items: center;
}

.ad--server_page .ad__link img,
.ad--tools .ad__link img {
  width: 300px;
}

.ad--branding {
  margin-block: 0 32px;
}

.ad--branding .ad__link,
.ad--branding .ad__link img {
  width: 100%;
}

.ad--branding .ad__link img {
  max-height: 320px;
  object-fit: cover;
}

.ad__house {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 300px;
  max-width: 100%;
  min-height: 160px;
  padding: 20px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-panel);
}

.ad__house:hover,
.ad__house:focus-visible {
  background: var(--surface);
}

.ad__house-title {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: var(--text-lg);
  color: var(--gold-text);
}

.boost-report {
  margin-block-end: 24px;
}

.boost-report th,
.boost-report td {
  padding-inline-end: 12px;
  white-space: nowrap;
}

.boost-report th:first-child,
.boost-report td:first-child {
  white-space: normal;
}

.boost-report .table {
  display: block;
  overflow-x: auto;
}

/* Advertise page */
.advertise {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 32px;
}

.advertise__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.advertise__place .panel__head {
  justify-content: space-between;
  gap: 8px;
}

.advertise__place--gold {
  border-color: var(--border-gold);
  box-shadow: var(--gold-glow);
}

.advertise__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  font-size: var(--text-lg);
}

.advertise__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.boost-section {
  margin-block-start: 24px;
}

.qr {
  align-self: center;
  padding: 12px;
  background: #ffffff;
  border-radius: 12px;
  line-height: 0;
}

.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, Menlo, monospace;
}

.quick-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-lists .tag {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 14px;
  font-size: 14px;
}

.tag--on {
  border-color: var(--gold);
  color: var(--gold-text);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-block-start: 16px;
}

.lang-chip {
  padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* SRO.Link */
.chart {
  display: block;
  inline-size: 100%;
  block-size: 160px;
  fill: var(--gold);
}

.qr {
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-chip);
}

/* Landing page editor */
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.share__texts {
  flex: 1 1 320px;
}

.copy-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.copy-field .input {
  flex: 1 1 auto;
  min-inline-size: 0;
}

.copy-field__btn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  inline-size: 48px;
  block-size: 48px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
}

.copy-field__btn:hover {
  border-color: var(--gold);
  color: var(--gold-text);
}

.copy-field__btn .icon {
  margin: 0;
}

.copy-field__note {
  align-self: center;
  color: var(--ok);
  font-size: var(--text-sm);
  font-weight: 600;
}

.copy-field__note[hidden] {
  display: none;
}

.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 24px;
  align-items: start;
}

.editor__preview {
  position: sticky;
  top: 16px;
}

.editor__preview iframe {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

.section-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px 24px;
}

.section-list__row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.input--narrow {
  inline-size: 72px;
}

.tag--ok {
  border-color: var(--ok);
  color: var(--ok);
}

/* Notifications */
.bell-menu {
  position: relative;
  flex-shrink: 0;
}

.bell-menu summary {
  list-style: none;
  cursor: pointer;
}

.bell-menu summary::-webkit-details-marker {
  display: none;
}

.bell-menu__panel {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 8px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: min(340px, 78vw);
  max-height: 420px;
  overflow: auto;
  padding: 8px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-panel);
  box-shadow: 0 24px 48px -24px #000;
  backdrop-filter: blur(18px);
}

.bell-menu__title {
  margin: 0;
  padding: 6px 10px 8px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.bell-menu__item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
}

.bell-menu__item:hover {
  background: var(--surface-hover);
}

.bell-menu__item--unread .bell-menu__text {
  color: var(--text);
  font-weight: 600;
}

.bell-menu__text {
  color: var(--text-soft);
}

.bell-menu__empty {
  margin: 0;
  padding: 12px 10px 16px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.bell-menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 8px 10px 4px;
  border-block-start: 1px solid var(--border);
  font-size: var(--text-sm);
}

.bell-menu__foot form {
  margin: 0;
}

.bell-menu__foot button {
  cursor: pointer;
  padding: 0;
  background: none;
  border: 0;
  color: var(--gold-text);
  font: inherit;
  cursor: pointer;
}

.bell {
  position: relative;
}

.bell__count {
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: -7px;
  min-inline-size: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--bg);
  color: var(--text-on-gold);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.note {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-block-end: 1px solid var(--border-row);
}

.note--unread .note__title {
  color: var(--text);
  font-weight: 600;
}

.note__title {
  color: var(--text-soft);
}

.matrix td,
.matrix th {
  text-align: center;
}

.matrix th[scope="row"] {
  font-weight: 400;
  text-align: start;
}

/* Dashboard */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 0 var(--gap-panel);
}

.tabs__link {
  display: inline-flex;
  min-block-size: var(--tap);
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: var(--text-sm);
  text-decoration: none;
}

.tabs__link:hover,
.tabs__link[aria-current="page"] {
  border-color: var(--gold);
  color: var(--gold-text);
}

.alert--danger {
  border-color: var(--live);
  color: var(--text);
}

.alert--warning {
  border-color: var(--gold);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist__item {
  padding-block: 8px;
  border-block-end: 1px solid var(--border-row);
}

.checklist__item--done {
  color: var(--ok);
}

.page:has(.dash) {
  padding-block-start: 28px;
}

.dash {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* Account pages drawn in the dashboard: forms start at the column edge, titles match the dashboard */
.dash__main .card--form {
  max-width: 640px;
  margin-inline: 0;
}

.dash__main .profile-head .hero__title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.dash-nav {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px);
}

.dash-nav__top {
  display: flex;
  align-items: center;
  min-block-size: 36px;
  padding-inline: 10px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.dash-nav__top:hover {
  background: rgb(255 255 255 / 6%);
  color: var(--text);
}

.dash-nav__top[aria-current="page"] {
  background: var(--gold-tint);
  color: var(--gold-text);
  font-weight: 600;
}

.dash-nav__group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.dash-nav__label {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-nav__group .dash-nav__label:not(:first-child) {
  margin-block-start: 14px;
}

.dash-nav__group a {
  display: flex;
  align-items: center;
  min-block-size: 36px;
  padding-inline: 10px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.dash-nav__group a:hover {
  background: var(--surface);
  color: var(--text);
}

.dash-nav__group a[aria-current="page"] {
  background: var(--gold-tint);
  color: var(--gold-text);
  font-weight: 600;
}

.dash-nav__pair {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dash-nav__pair > a:first-child {
  flex: 0 1 auto;
  min-inline-size: 0;
}

.dash-nav__edit {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.crumbs {
  margin-block-end: 14px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--text-muted);
}

.crumbs a {
  color: var(--text-soft);
}

.crumbs a:hover {
  color: var(--gold-text);
}

.crumbs [aria-current="page"] {
  color: var(--text);
}

.dash-head {
  margin-block-end: 28px;
}

.dash-head h1 {
  margin: 6px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dash-head__lead {
  margin: 8px 0 0;
  max-inline-size: 52ch;
  color: var(--text-soft);
}

.dash-block {
  margin-block-end: 16px;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px);
}

.dash-block h2,
.dash-block__head h2 {
  margin: 0 0 12px;
  font-size: var(--text-lg);
  font-weight: 600;
}

.dash-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dash-empty h2 {
  margin: 0 0 8px;
  font-size: var(--text-xl);
}

.dash-empty p {
  max-inline-size: 48ch;
  color: var(--text-soft);
}

.dash .btn,
.dash .btn--small {
  inline-size: auto;
  min-height: 32px;
  padding: 0 12px;
  font-size: var(--text-sm);
}

.dash .panel {
  margin-block-end: 16px;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px);
}

.dash .panel__head {
  background: none;
  padding: 0 0 8px;
}

.dash .panel__body {
  padding: 0 0 8px;
}

.dash .numbers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.dash .numbers__item {
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 14px;
  background: rgb(255 255 255 / 4%);
}

.server-list {
  display: flex;
  flex-direction: column;
}

.server-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 14px 0;
  border-block-end: 1px solid rgb(255 255 255 / 8%);
}

.dash-block .server-row:last-child {
  padding-block-end: 0;
  border-block-end: 0;
}

.dash__main > .server-list .server-row {
  align-items: start;
  margin-block-end: 12px;
  padding: 14px 16px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px);
}

.server-row__id h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.server-row__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}

.server-row__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.server-row__stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.server-row__stats dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.server-row__stats dt {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.server-row__todo,
.server-row__stats,
.server-row__tools {
  grid-column: 1 / -1;
}

.server-row__todo {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.server-row__actions,
.server-row__tools p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  margin: 0;
}

.server-row__actions {
  justify-content: flex-end;
}

.server-row__tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.server-row__tools p {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgb(255 255 255 / 4%);
}

.server-row__actions a,
.server-row__tools a {
  display: inline-flex;
  align-items: center;
  min-block-size: 28px;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.server-row__actions a:hover,
.server-row__tools a:hover {
  color: var(--gold-text);
}

.server-row__actions a.is-primary {
  min-block-size: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: var(--text-xs);
  font-weight: 600;
}

.server-row__actions a.is-primary:hover {
  color: var(--text-on-gold);
}

.server-row__label {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-jump {
  margin: 12px 0 0;
}

.dash-sub {
  margin: 20px 0 8px;
  font-size: var(--text-md);
}

.tool-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding-block: 8px 12px;
}

.tool-groups h3 {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-groups a {
  display: flex;
  align-items: center;
  min-block-size: 32px;
  color: var(--text-soft);
}

.backlink-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto;
  gap: 12px;
  align-items: end;
  margin-block-end: 12px;
}

.backlink-row .field {
  margin: 0;
}

.backlink-add {
  margin-block-start: 4px;
}

.upload-preview {
  margin: 0;
}

.upload-preview img {
  display: block;
  max-inline-size: 100%;
  max-block-size: 160px;
  border-radius: 12px;
}

.upload-preview--logo img {
  max-inline-size: 180px;
  max-block-size: 64px;
  object-fit: contain;
}

.upload-preview--shots {
  display: flex;
  gap: 8px;
}

.upload-preview--shots img {
  inline-size: 96px;
  block-size: 64px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .backlink-row {
    grid-template-columns: 1fr auto;
  }

  .backlink-row .field:first-child {
    grid-column: 1 / -1;
  }
}

.dash-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-block: -8px var(--gap-panel);
}

.dash-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 32px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.dash-links a:hover {
  color: var(--text);
}

.dash-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-block-end: var(--gap-panel);
}

.dash-summary a,
.dash-summary div {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-soft);
}

.dash-summary strong {
  display: block;
  margin-block-end: 4px;
  color: var(--text);
  font-size: var(--text-2xl);
  font-weight: 700;
}

.follow-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-block: 12px;
  border-block-end: 1px solid var(--border-row);
  color: var(--text);
}

.owner-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-block-start: 16px;
}

.owner-more {
  margin-block-start: 8px;
}

.owner-more summary {
  display: flex;
  align-items: center;
  min-block-size: var(--tap);
  color: var(--text-soft);
  cursor: pointer;
}

.owner-more__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-block-end: 8px;
}

@media (max-width: 860px) {
  .dash {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dash-nav {
    position: static;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    padding-block-end: 8px;
    border-block-end: 1px solid var(--border);
  }

  .dash-nav__group {
    flex: 0 0 auto;
    min-inline-size: 180px;
  }

  .server-row,
  .dash .numbers,
  .server-row__stats,
  .server-row__tools {
    grid-template-columns: 1fr 1fr;
  }

  .server-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

a.numbers__item {
  color: inherit;
  text-decoration: none;
}

/* Cookie banner (PLT-7) */
.consent {
  position: fixed;
  z-index: 50;
  inset-block-end: 16px;
  inset-inline: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  max-inline-size: 720px;
  margin-inline: auto;
  padding: 14px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.consent .btn {
  flex: 0 0 auto;
  inline-size: auto;
}

.consent p {
  flex: 1 1 260px;
  margin: 0;
  font-size: var(--text-sm);
}

@media (max-width: 767px) {
  .consent {
    inset-block-end: calc(88px + env(safe-area-inset-bottom));
  }
}

.site-header.fit-7 ~ .consent {
  inset-block-end: calc(88px + env(safe-area-inset-bottom));
}

.answer {
  max-inline-size: 70ch;
  color: var(--text-soft);
  font-size: var(--text-md);
}

.legal h2 {
  margin-block: 24px 8px;
  font-size: var(--text-lg);
}

.glossary dt {
  margin-block-start: 16px;
  font-weight: 600;
}

.glossary dd {
  margin: 4px 0 0;
  color: var(--text-soft);
}

/* Public profiles (ACC-9) */
.profile-head {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-block: 24px;
}

.avatar {
  inline-size: 96px;
  block-size: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar--empty {
  display: grid;
  place-items: center;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: var(--text-3xl);
  font-weight: 700;
}

/* Guides and threads (§2C) */
.post__body h2,
.post__body h3 {
  margin-block: 28px 10px;
}

.post__body img {
  max-inline-size: 100%;
  border-radius: var(--radius-chip);
}

.post__body pre {
  overflow-x: auto;
  padding: 12px;
  border-radius: var(--radius-chip);
  background: var(--bg-sunken);
}

.callout {
  margin-block: 16px;
  padding: 12px 16px;
  border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius-chip);
  background: var(--gold-tint);
}

.callout--warning {
  border-color: var(--live);
}

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-block: 16px;
}

.embed iframe {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
  border-radius: var(--radius-chip);
}

.toc {
  margin-block: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
}

.review--best {
  border-inline-start: 3px solid var(--ok);
  padding-inline-start: 12px;
}

form.inline {
  display: inline;
}

button.link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* Market (§9B) */
.screenshot {
  display: block;
  max-inline-size: 100%;
  margin-block: 12px;
  border-radius: var(--radius-chip);
}

.row--highlight td {
  background: var(--gold-tint);
}

/* Hall of Fame (§10) and live creators (POR-4) */
.tag--fame {
  border-color: var(--gold);
  background: var(--gold-tint);
  color: var(--gold-text);
  white-space: nowrap;
}

.tag--live {
  border-color: var(--danger, #e5484d);
  color: var(--danger, #e5484d);
}

.plaques {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.plaque {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius, 8px);
  text-align: center;
}

.plaque--featured {
  box-shadow: var(--gold-glow);
  background: var(--gold-tint);
}

.plaque__photo {
  inline-size: 96px;
  block-size: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.plaque__photo--empty {
  display: grid;
  place-items: center;
  font-size: 40px;
  background: var(--gold-tint);
}

.plaque__name {
  margin: 4px 0 0;
  font-size: 16px;
}

.plaque__title {
  margin: 0;
  color: var(--gold-text);
  font-size: 13px;
}

.spotlight {
  border-color: var(--border-gold);
}

/* Frosted panels across the site. Fields stay solid so typed text stays readable. */
.site-header,
.site-header.fit-7 ~ .tabbar,
.card,
.panel,
.alert,
.rank-card,
.consent,
.lang-menu__current,
.account-menu__current,
.icon-btn,
.plaque:not(.plaque--featured) {
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.site-header,
.site-header.fit-7 ~ .tabbar,
.card,
.panel,
.alert,
.lang-menu__current,
.account-menu__current,
.icon-btn {
  border-color: var(--glass-line);
}

/* Solid, not glass: a blur inside the blurred header cannot see the page, so text showed through */
.lang-menu__list,
.account-menu__list,
.bell-menu__panel {
  background: var(--surface);
  border-color: var(--glass-line);
  backdrop-filter: none;
}

.site-footer {
  background: color-mix(in srgb, var(--bg-sunken) 78%, transparent);
  border-block-start-color: var(--glass-line);
  backdrop-filter: blur(18px);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .site-header.fit-7 ~ .tabbar,
  .card,
  .panel,
  .alert,
  .rank-card,
  .consent,
  .lang-menu__current,
  .account-menu__current,
  .icon-btn,
  .lang-menu__list,
  .account-menu__list,
  .site-footer,
  .plaque:not(.plaque--featured) {
    background: var(--surface);
    backdrop-filter: none;
  }
}

.link-destination {
  overflow-wrap: anywhere;
}

/* Numbered pages: Previous · 1 2 … 9 · Next */
.pager--numbers {
  flex-wrap: wrap;
  gap: 8px;
}

.pager__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.pager__step,
.pager__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text-soft);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.pager__step:hover,
a.pager__page:hover {
  border-color: var(--border-gold);
  color: var(--text);
}

.pager__page[aria-current] {
  border-color: transparent;
  background: var(--gold);
  color: #161616;
  font-weight: 700;
}

.pager__step[aria-disabled] {
  opacity: 0.4;
}

.pager__gap {
  padding: 0 4px;
  color: var(--text-muted);
}

.pager__summary {
  margin: 8px 0 0;
  text-align: center;
}

/* Card theme: compact frosted cards with the dashboard menu's type, small titles, light borders.
   Gold is kept for what should stand out (top three ranks, sponsored, main buttons). */
.card,
.panel,
.rank-card {
  border-radius: 16px;
}

.card {
  padding: 20px;
}

.card--form {
  gap: 14px;
}

.card--form,
.next-card {
  box-shadow: none;
}

.card__title {
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel__head {
  gap: 10px;
  padding: 14px 18px;
  background: none;
  border-block-end: 1px solid var(--glass-line);
}

.panel__title {
  font-size: var(--text-base);
  font-weight: 600;
}

.panel__body {
  padding: 16px 18px;
}

/* Small capital labels, as in the dashboard menu */
.card .label,
.panel .label,
.card-label {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash__main .hero__title {
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  line-height: 1.15;
}

/* Account settings: a jump menu, then compact cards in two columns */
.settings-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-end: 16px;
}

.settings-jump a {
  padding: 6px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.settings-jump a:hover {
  border-color: var(--border-gold);
  color: var(--text);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.settings-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 24px;
}

.settings-card .card__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-card .card__title .icon {
  color: var(--gold-text);
}

.settings-card .btn--small {
  align-self: start;
  width: auto;
}

.settings-card .form {
  gap: 12px;
}

.settings-card .facts__row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 6px;
  overflow-wrap: anywhere;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.settings-card--danger {
  border-color: color-mix(in srgb, #e5484d 35%, transparent);
}

.settings-delete {
  color: #ff8b8e;
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile: one compact header card, small stats, tabs for what the person has posted */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-block-end: 14px;
}

.profile-card .profile-head {
  gap: 16px;
  margin: 0;
}

.profile-card .avatar {
  inline-size: 72px;
  block-size: 72px;
  flex-shrink: 0;
}

.profile-card .avatar--empty {
  font-size: var(--text-xl);
}

.profile-head__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.profile-head__name {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.profile-head__main .badges,
.profile-head__main p {
  margin: 0;
}

.profile-head__edit {
  align-self: start;
  width: auto;
}

.profile-card__bio {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.profile-stats div {
  padding: 8px 10px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
}

.profile-stats dt {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-stats dd {
  margin: 2px 0 0;
  color: var(--gold-number);
  font-size: var(--text-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.profile-tabs a[aria-current] {
  border-color: transparent;
  background: var(--gold-tint);
  color: var(--gold-text);
  font-weight: 600;
}

.profile-list {
  display: flex;
  flex-direction: column;
}

.profile-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-block-start: 1px solid var(--border-row);
}

.profile-row:first-child {
  border-block-start: 0;
}

.profile-row__name {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
}

.profile-row:hover .profile-row__name {
  color: var(--gold-text);
}

@media (max-width: 640px) {
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-card .profile-head {
    flex-wrap: wrap;
  }
}

/* My submissions: what was sent, its state and what you can do next */
.submission {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 18px;
  border-block-start: 1px solid var(--border-row);
}

.submission:first-child {
  border-block-start: 0;
}

.submission__main {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.submission__main p {
  margin: 0;
}

.submission__reason {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px !important;
  padding: 8px 12px;
  border-inline-start: 2px solid var(--gold);
  border-radius: 6px;
  background: var(--gold-tint);
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.submission__side {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 8px;
}

.submission__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
  margin: 0;
}

.submission__actions .btn--small {
  width: auto;
}

.badge--warn {
  border-color: color-mix(in srgb, #f5a524 45%, transparent);
  color: #f5c46b;
}

@media (max-width: 640px) {
  .submission__side {
    align-items: start;
  }
}

/* Every page opens like the homepage: small label (no rule), compact title, short muted note */
.hero {
  gap: 8px;
}

.hero__title {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero__lead {
  max-inline-size: 68ch;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.hero .label--ruled::after {
  display: none;
}

.page:has(> .hero:first-child),
.page:has(> section.hero:first-child) {
  padding-top: 24px;
}

.section-title {
  margin: 28px 0 12px;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: var(--text-md);
}

/* Buttons in a page header keep their own width */
.hero .btn,
.hero form .btn {
  align-self: start;
  width: auto;
}

.phone-card {
  max-width: 560px;
}

/* Home page in the SroWay arrangement: join box, title box, ads + activity on the left, sidebar on the right */
.home-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.home-join {
  border-inline-start: 3px solid var(--gold);
  background: linear-gradient(100deg, color-mix(in srgb, var(--gold) 14%, transparent), var(--glass) 60%);
}

.home-title {
  box-shadow: inset 0 2px 0 -1px var(--gold);
}

.home-box__icon {
  display: grid;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: 20px;
}

.home-box__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.home-box__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-box__title--page {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.home-box__text {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.home-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
}

.home-box .btn--small {
  width: auto;
}

.home-box__cta {
  align-self: center;
  flex-shrink: 0;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.home-main,
.home-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.home-board > .home-ads,
.home-main .home-ads {
  margin: 0;
}

.home-ads__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .home-ads__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.banner-free {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  min-height: 60px;
  padding: 6px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-align: center;
}

.banner-free:hover {
  border-color: var(--gold);
  color: var(--text-soft);
}

.banner-free__cta {
  color: var(--gold-text);
  font-weight: 600;
  text-decoration: underline;
}

/* The tabbed activity block, like "Forum Activities" */
.home-block {
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.home-block__head {
  display: flex;
  flex-direction: column;
  background: linear-gradient(100deg, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%);
  border-block-end: 1px solid var(--glass-line);
}

.home-block__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 18px 10px;
  font-size: var(--text-base);
  font-weight: 600;
}

.home-block__title .icon {
  color: var(--gold-text);
}

.home-tabs {
  display: flex;
  overflow-x: auto;
  padding-inline: 8px;
}

.home-tabs a {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-block-end: 2px solid transparent;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.home-tabs a:hover {
  color: var(--text);
}

.home-tabs a[aria-current] {
  border-block-end-color: var(--gold);
  color: var(--gold-text);
  font-weight: 600;
}

.home-block__body {
  padding: 16px;
}

.home-block .timeline {
  margin-top: 0;
}

.home-block .panel {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

/* Stat tiles, like the forum statistics row */
.home-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.home-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: var(--glass);
}

.home-tile__icon {
  display: grid;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--gold-tint);
  color: var(--gold-text);
}

.home-tile__label {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.home-tile strong {
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums;
}

/* Sidebar blocks */
.side-block {
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(18px);
}

.side-block__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--gold) 16%, transparent), transparent 80%);
  border-block-end: 1px solid var(--glass-line);
  font-size: var(--text-sm);
  font-weight: 600;
}

.side-block__head .icon {
  color: var(--gold-text);
}

.side-block__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.side-block__body {
  padding: 12px 16px;
}

.side-block__body p {
  margin: 0 0 8px;
}

.side-block--next .next-card__name {
  font-size: var(--text-md);
}

.side-block__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: var(--text-sm);
  font-weight: 700;
}

.side-block__more:hover {
  color: var(--text-on-gold);
  filter: brightness(1.05);
}

.side-block__more--quiet {
  background: none;
  border-block-start: 1px solid var(--glass-line);
  color: var(--gold-text);
  font-weight: 600;
}

.side-block__more--quiet:hover {
  color: var(--text);
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li + li {
  border-block-start: 1px solid var(--border-row);
}

.side-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: inherit;
}

.side-list__item:hover {
  background: rgb(255 255 255 / 4%);
}

.side-list__item:hover strong {
  color: var(--gold-text);
}

.side-list__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: var(--text-sm);
}

.side-list__copy strong {
  font-weight: 600;
}

.side-list .date-chip {
  flex-shrink: 0;
}

.side-list__rank {
  display: grid;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: var(--gold-tint);
  color: var(--gold-text);
  font-size: var(--text-xs);
  font-weight: 700;
}

.home-aside .ad {
  margin: 0;
}

.home-ads--foot {
  margin-top: 4px;
}

@media (max-width: 980px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .home-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-box {
    flex-wrap: wrap;
  }

  .home-ads__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-box__body {
    flex-basis: calc(100% - 62px);
  }

  .home-box__cta {
    align-self: start;
    margin-inline-start: 62px;
  }

  .home-block__body {
    padding: 10px;
  }
}

/* On/off switch (two-factor login in settings) */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.switch__track {
  position: relative;
  width: 42px;
  height: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-hover);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch__thumb {
  position: absolute;
  inset-block-start: 2px;
  inset-inline-start: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.switch--on {
  color: var(--gold-text);
}

.switch--on .switch__track {
  border-color: transparent;
  background: var(--gold-gradient);
}

.switch--on .switch__thumb {
  background: #161616;
  transform: translateX(18px);
}

[dir="rtl"] .switch--on .switch__thumb {
  transform: translateX(-18px);
}

.switch:hover .switch__track {
  border-color: var(--gold);
}

.switch:focus-visible .switch__track {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Phone fields (intl-tel-input) in the site's dark theme */
.iti {
  display: block;
  width: 100%;
  --iti-border-color: var(--glass-line);
  --iti-dialcode-color: var(--text-muted);
  --iti-dropdown-bg: var(--surface);
  --iti-country-selector-bg: var(--surface);
  --iti-hover-color: var(--surface-hover);
  --iti-icon-color: var(--text-muted);
  --iti-spacer-horizontal: 12px;
}

.iti__selected-dial-code {
  color: var(--text-soft);
}

.iti__country-selector {
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px #000;
  color: var(--text);
}

.iti__search-input {
  height: 40px;
  background: var(--bg);
  color: var(--text);
}

.iti__country-name {
  color: var(--text-soft);
}

.iti__dial-code {
  color: var(--text-muted);
}

.iti__country.iti__highlight .iti__country-name {
  color: var(--text);
}

/* BBCode toolbar above guide and thread text */
.bb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-block-end: 6px;
  padding: 6px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: var(--glass);
}

.bb-toolbar__btn {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-soft);
  cursor: pointer;
}

.bb-toolbar__btn:hover,
.bb-toolbar__btn:focus-visible {
  background: var(--gold-tint);
  color: var(--gold-text);
}

.bb-toolbar__gap {
  width: 1px;
  height: 20px;
  margin-inline: 4px;
  background: var(--glass-line);
}

.write-columns {
  align-items: start;
}

.write-preview {
  position: sticky;
  top: 16px;
}

/* Home forum block: a table of threads with prefixes, like a forum's "New messages" */
.forum-table {
  display: flex;
  flex-direction: column;
}

.forum-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 64px 64px 150px;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-block-start: 1px solid var(--border-row);
  font-size: var(--text-sm);
}

.forum-row:hover {
  background: rgb(255 255 255 / 3%);
}

.forum-row--head {
  border-block-start: 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.forum-row--head:hover {
  background: none;
}

.forum-row--pinned {
  background: color-mix(in srgb, var(--gold) 9%, transparent);
}

.forum-row__topic {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.forum-row__mark,
.forum-row__avatar {
  display: inline-grid;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: 11px;
  font-weight: 700;
}

.forum-row__avatar {
  width: 22px;
  height: 22px;
  margin-inline-end: 6px;
  background: var(--surface-hover);
  color: var(--text-soft);
}

.forum-row .cap-badge {
  flex-shrink: 0;
  white-space: nowrap;
}

.forum-row__title {
  overflow: hidden;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.forum-row__title:hover {
  color: var(--gold-text);
}

.forum-row__server,
.forum-row__last {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.forum-row__server a,
.forum-row__last a {
  color: var(--text-soft);
}

.forum-row__last a {
  display: inline-flex;
  align-items: center;
}

.forum-row__num {
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.forum-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 16px;
  border-block-start: 1px solid var(--border-row);
  background: color-mix(in srgb, var(--gold) 6%, transparent);
  color: var(--gold-text);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Prefix badges by kind, colour-coded */
.forum-prefix {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-hover);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.forum-prefix--guide { background: #1d4ed8; color: #fff; }
.forum-prefix--event { background: #7c3aed; color: #fff; }
.forum-prefix--question { background: #0e7490; color: #fff; }
.forum-prefix--solved { background: #15803d; color: #fff; }
.forum-prefix--poll { background: #b45309; color: #fff; }
.forum-prefix--ad,
.forum-prefix--official { background: #b91c1c; color: #fff; }

.forum-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-block-start: 1px solid var(--glass-line);
  color: var(--gold-text);
  font-size: var(--text-sm);
  font-weight: 600;
}

.forum-more:hover {
  background: var(--gold-tint);
}

.forum-block .panel__empty {
  padding: 16px;
}

@media (max-width: 760px) {
  .forum-row {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
  }

  .forum-row__server,
  .forum-row__last {
    display: none;
  }

  .forum-row__topic {
    flex-wrap: wrap;
  }

  .forum-row__title {
    flex-basis: 100%;
    white-space: normal;
  }
}

/* Opening calendar (grand / beta / archive), in the SroWay arrangement */
.cal-head {
  flex-wrap: wrap;
  box-shadow: inset 0 2px 0 -1px var(--gold);
}

.cal-head__updated {
  margin: 0;
  color: var(--gold-text);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}

.cal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: var(--text-xs);
  font-weight: 600;
}

a.cal-chip:hover {
  border-color: var(--border-gold);
  color: var(--text);
}

.cal-chip--gold {
  border-color: transparent;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.cal-nav__step {
  display: grid;
  width: 38px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.cal-nav__step:hover {
  border-color: var(--gold);
  color: var(--gold-text);
}

.cal-nav__pick {
  width: auto;
  min-width: 84px;
  height: 40px;
  padding-block: 0;
}

.cal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 16px;
}

.cal-tabs a {
  padding: 8px 18px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text-soft);
  font-size: var(--text-sm);
  font-weight: 600;
}

.cal-tabs a:hover {
  color: var(--text);
}

.cal-tabs a[aria-current] {
  border-color: transparent;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
}

.cal-scroll {
  overflow-x: auto;
  margin-block-end: 16px;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: var(--glass);
}

.cal-grid {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
}

.cal-grid th {
  padding: 12px 6px;
  border-block-end: 1px solid var(--gold);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cal-grid td {
  height: 130px;
  padding: 8px;
  border: 1px solid var(--border-row);
  vertical-align: top;
}

.cal-grid tr:first-child td {
  border-block-start: 0;
}

.cal-day--out {
  background: rgb(0 0 0 / 22%);
}

.cal-day--today {
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 60%, transparent);
}

.cal-day__num {
  display: flex;
  justify-content: end;
  margin-block-end: 6px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}

.cal-day--today .cal-day__num {
  color: var(--text-on-gold);
}

.cal-day--today .cal-day__num::before {
  content: "";
}

.cal-day--today .cal-day__num {
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-inline-start: auto;
  align-items: center;
  border-radius: 50%;
  background: var(--gold-gradient);
}

.cal-event {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 4px;
  margin-block-end: 6px;
  padding: 8px 10px;
  border-inline-start: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--surface-hover);
  color: inherit;
}

.cal-event:hover {
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
}

.cal-event .cap-badge {
  font-size: 11px;
}

.cal-event__name {
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.35;
}

.cal-event__meta {
  color: var(--text-muted);
  font-size: 11px;
}

.cal-list__lead {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.cal-list__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cal-list__rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 6px;
  border-block-start: 1px solid var(--border-row);
}

.cal-list__rows li:first-child {
  border-block-start: 0;
}

.cal-list__date {
  min-width: 96px;
  color: var(--gold-text);
  font-size: var(--text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cal-list__name {
  color: var(--text);
  font-weight: 600;
}

.cal-list__name:hover {
  color: var(--gold-text);
}

.cal-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cal-archive a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
}

.cal-archive a:hover {
  border-color: var(--border-gold);
}

@media (max-width: 640px) {
  .cal-nav {
    margin-inline-start: 0;
  }
}

/* Forum thread, in the SroWay arrangement: header box, then messages with a user panel on the left */
.thread-crumbs {
  margin-block-end: 12px;
}

.thread-head {
  flex-wrap: wrap;
  align-items: start;
  box-shadow: inset 0 2px 0 -1px var(--gold);
}

.thread-head__mark {
  display: grid;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--surface);
  color: var(--gold-text);
  font-size: 22px;
  font-weight: 800;
}

.thread-head__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.thread-head__title .forum-prefix {
  vertical-align: middle;
}

.cap-badge--big {
  padding: 3px 12px;
  font-size: var(--text-md);
  vertical-align: middle;
}

.thread-head__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.thread-head__tools {
  display: flex;
  gap: 6px;
}

.thread-head__tools .btn--small {
  width: auto;
}

.thread-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-inline-start: 3px solid var(--gold);
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.thread-notice .icon {
  color: var(--gold-text);
  font-size: 18px;
}

.message {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: var(--glass);
}

.message--best {
  border-color: color-mix(in srgb, #22c55e 50%, transparent);
}

.postbit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  border-inline-end: 1px solid var(--glass-line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 10%, transparent), transparent 140px);
  text-align: center;
}

.postbit__avatar {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: 38px;
  font-weight: 800;
  box-shadow: 0 0 0 4px var(--bg);
}

.postbit__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.postbit__name {
  padding: 3px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: var(--gold-text);
  font-weight: 700;
}

.postbit__name--staff {
  color: #f87171;
}

.postbit__ribbons {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.ribbon {
  padding: 5px 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, #3f3f46, #52525b);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ribbon--staff { background: linear-gradient(90deg, #991b1b, #dc2626); }
.ribbon--owner { background: linear-gradient(90deg, #a16207, #eab308); color: #161616; }
.ribbon--server_owner { background: linear-gradient(90deg, #0f766e, #14b8a6); }
.ribbon--content_creator { background: linear-gradient(90deg, #6d28d9, #a855f7); }
.ribbon--supporter { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.ribbon--seller { background: linear-gradient(90deg, #15803d, #22c55e); }

.postbit__stats {
  width: 100%;
  margin: 4px 0 0;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  text-align: start;
}

.postbit__stats div {
  padding: 6px 10px;
}

.postbit__stats div + div {
  border-block-start: 1px solid var(--glass-line);
}

.postbit__stats dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.postbit__stats dd {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
}

.message__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 18px;
}

.message__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-block-end: 10px;
  border-block-end: 1px solid var(--glass-line);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.message__head-end {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.message__share,
.message__num {
  display: inline-grid;
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface-hover);
  color: var(--text-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
}

.message__share:hover,
.message__num:hover {
  background: var(--gold-tint);
  color: var(--gold-text);
}

.message__share.is-copied {
  background: #15803d;
  color: #fff;
}

.message__body {
  flex: 1;
  padding-block: 16px;
  overflow-wrap: anywhere;
}

.message__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.message__quote {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-inline-start: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--surface-hover);
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.message__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block-start: 10px;
  border-block-start: 1px solid var(--glass-line);
}

.message__reactions,
.message__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.message__actions form,
.message__reactions form {
  margin: 0;
}

.reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: none;
  color: var(--text-soft);
  font-size: var(--text-sm);
  cursor: pointer;
}

button.reaction:hover {
  border-color: var(--gold);
}

.message__action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}

.message__action:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.message__action--reply {
  color: var(--gold-text);
}

.message--reply .message__main {
  gap: 10px;
}

.message--reply .btn--small {
  align-self: start;
  width: auto;
}

.thread-login {
  display: flex;
  justify-content: end;
  margin: 14px 0 0;
}

.thread-login .btn {
  width: auto;
}

.similar-threads {
  margin-top: 18px;
}

.similar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.similar-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 140px 120px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-block-start: 1px solid var(--border-row);
}

.similar-list li:first-child {
  border-block-start: 0;
}

.similar-list .forum-row__avatar {
  width: 32px;
  height: 32px;
  margin: 0;
}

.similar-list__main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.similar-list__title {
  color: var(--text);
  font-weight: 600;
}

.similar-list__title:hover {
  color: var(--gold-text);
}

.similar-list__nums {
  margin: 0;
  font-size: var(--text-xs);
}

.similar-list__nums div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.similar-list__nums dt {
  color: var(--text-muted);
}

.similar-list__nums dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.similar-list__last {
  text-align: end;
}

.thread-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: var(--glass);
}

@media (max-width: 760px) {
  .message {
    grid-template-columns: 1fr;
  }

  .postbit {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    padding: 12px;
    border-inline-end: 0;
    border-block-end: 1px solid var(--glass-line);
    background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 10%, transparent), transparent);
    text-align: start;
  }

  .postbit__avatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-width: 2px;
    box-shadow: none;
  }

  .postbit__ribbons {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }

  .postbit__stats {
    display: none;
  }

  .similar-list li {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .similar-list__nums,
  .similar-list__last {
    display: none;
  }

  .thread-head__tools {
    width: 100%;
  }
}

/* Server page: one hero card, then details and content on the left, a sidebar on the right */
.sp-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 240px;
  align-items: start;
  gap: 16px 20px;
  box-shadow: inset 0 2px 0 -1px var(--gold);
}

.sp-hero__mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 18px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: 32px;
  font-weight: 800;
}

.sp-hero__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sp-hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sp-hero__main .badges,
.sp-hero__main p {
  margin: 0;
}

.sp-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-hero__actions form {
  margin: 0;
}

.sp-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
}

.sp-stats div {
  padding: 10px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.sp-stats dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sp-stats dt .icon {
  color: var(--gold-text);
}

.sp-stats dd {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  font-weight: 700;
}

.sp-links {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 6px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--glass-line);
}

.sp-links__report {
  margin-inline-start: auto;
  color: var(--text-muted);
}

.sp-block {
  margin: 0;
}

#details {
  margin-top: 16px;
}

.sp-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.sp-group {
  padding: 12px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.sp-group__title {
  margin: 0 0 6px;
  color: var(--gold-text);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sp-group .facts--panel {
  padding: 0;
}

.sp-group .facts__row {
  padding-block: 8px;
}

.sp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}

.sp-main,
.sp-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.sp-main > .panel {
  margin: 0;
  border-color: var(--glass-line);
  border-radius: 16px;
  background: var(--glass);
}

.sp-main > .panel > .panel__head {
  background: linear-gradient(100deg, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%);
}

/* Rows written straight into a panel (jobs, market, live now) get the panel's padding */
.sp-main > .panel > p {
  margin: 0;
  padding: 10px 18px;
  border-block-start: 1px solid var(--border-row);
}

.sp-main > .panel > header + p {
  border-block-start: 0;
}

.sp-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.sp-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-aside .ad {
  margin: 0;
}

@media (max-width: 980px) {
  .sp-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sp-hero__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sp-hero__actions .btn,
  .sp-hero__actions form {
    flex: 1 1 160px;
  }

  .sp-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sp-hero__mark {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .sp-groups {
    grid-template-columns: 1fr;
  }

  .sp-links__report {
    margin-inline-start: 0;
  }
}

.sp-groups {
  align-items: start;
}

/* Filter bar (Top rank, Servers): quick chips, the full form under "More filters" */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block: 16px;
  padding: 12px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  background: var(--glass);
}

.filter-bar__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.filter-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 96px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-bar__label .icon {
  color: var(--gold-text);
}

.filter-bar__sep {
  width: 1px;
  height: 18px;
  margin-inline: 4px;
  background: var(--glass-line);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: var(--text-xs);
  font-weight: 600;
}

.filter-chip:hover {
  border-color: var(--border-gold);
  color: var(--text);
}

.filter-chip[aria-current] {
  border-color: transparent;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
}

.filter-bar__more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-text);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.filter-bar__more summary::-webkit-details-marker {
  display: none;
}

.filter-bar__more .filters {
  margin: 12px 0 0;
}

.filter-bar__more .btn--small {
  width: auto;
}

/* Top rank */
.rank-head {
  flex-wrap: wrap;
  align-items: start;
  box-shadow: inset 0 2px 0 -1px var(--gold);
}

.rank-reset {
  flex: 0 1 240px;
  padding: 12px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.rank-reset p {
  margin: 0;
}

.rank-reset__label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rank-reset__value {
  margin: 4px 0 6px !important;
  color: var(--gold-number);
  font-size: var(--text-xl);
  font-weight: 800;
}

.rank-card {
  border-color: var(--glass-line);
  background: var(--glass);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-soft);
}

.rank-card--top {
  box-shadow: none;
}

.rank-card--1 {
  border-color: #d4b83a;
  background: linear-gradient(110deg, color-mix(in srgb, #d4b83a 16%, transparent), var(--glass) 45%);
}

.rank-card--2 {
  border-color: #b8bec7;
  background: linear-gradient(110deg, color-mix(in srgb, #b8bec7 12%, transparent), var(--glass) 45%);
}

.rank-card--3 {
  border-color: #c58a52;
  background: linear-gradient(110deg, color-mix(in srgb, #c58a52 14%, transparent), var(--glass) 45%);
}

.rank-card--1 .rank-number { color: #e8c64a; }
.rank-card--2 .rank-number { color: #d4d8de; }
.rank-card--3 .rank-number { color: #e0a36b; }

.rank-move {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.rank-move--up { color: #4ade80; }
.rank-move--down { color: #f87171; }

.rank-card__behind {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.rank-card__behind--lead {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-text);
  font-weight: 700;
}

.rank-card__actions {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.rank-card__actions .btn--gold {
  flex: 1;
}

.rank-card__icon {
  flex: 0 0 auto;
  width: 42px;
  padding-inline: 0;
}

.rank-aside .sponsored {
  margin: 0;
}

.rank-aside .sponsored__grid {
  grid-template-columns: 1fr;
}

.rank-medal { font-size: 18px; }
.rank-card--1 .rank-medal { color: #e8c64a; }
.rank-card--2 .rank-medal { color: #d4d8de; }
.rank-card--3 .rank-medal { color: #e0a36b; }

/* Servers directory */
.dir-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block-end: 10px;
}

.dir-bar p {
  margin: 0;
}

.dir-tabs {
  padding: 0;
}

.dir-panel {
  border-color: var(--glass-line);
  border-radius: 16px;
  background: var(--glass);
}

.dir-scroll {
  overflow-x: auto;
}

.dir-table th {
  white-space: nowrap;
}

.dir-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

.dir-sort .icon {
  opacity: 0.45;
  font-size: 11px;
}

.dir-sort:hover,
.dir-sort.is-on {
  color: var(--gold-text);
}

.dir-sort.is-on .icon {
  opacity: 1;
}

.dir-table tbody tr:hover {
  background: rgb(255 255 255 / 3%);
}

.dir-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dir-name > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dir-mark {
  display: grid;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: 13px;
  font-weight: 800;
}

.dir-online {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4ade80;
  font-size: 11px;
}

.dir-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.dir-rating .icon {
  color: var(--gold-text);
}

.status-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-hover);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill--upcoming { background: color-mix(in srgb, #3b82f6 22%, transparent); color: #93c5fd; }
.status-pill--beta { background: color-mix(in srgb, #a855f7 22%, transparent); color: #d8b4fe; }
.status-pill--live { background: color-mix(in srgb, #22c55e 20%, transparent); color: #86efac; }

.compare-bar {
  position: sticky;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(420px, 100%);
  margin: 12px 0 0 auto;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 16px 40px -16px #000;
  font-weight: 700;
}

.compare-bar[hidden] {
  display: none;
}

.compare-bar .btn--small {
  width: auto;
}

/* Phones: each row becomes a small card */
@media (max-width: 760px) {
  .dir-table thead {
    display: none;
  }

  .dir-table,
  .dir-table tbody,
  .dir-table tr,
  .dir-table td {
    display: block;
    width: 100%;
  }

  .dir-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 12px 14px;
    border-block-start: 1px solid var(--border-row);
  }

  .dir-table td {
    padding: 0;
    border: 0;
    font-size: var(--text-sm);
  }

  .dir-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .dir-table td:first-child {
    grid-column: 1 / -1;
  }

  .dir-table td:first-child::before {
    display: none;
  }

  .compare-bar {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  .filter-bar__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-chip,
  .filter-bar__label {
    flex-shrink: 0;
  }

  .filter-bar__label {
    min-width: 0;
  }
}

/* Top rank / Servers toolbar: a floating "Filters" button, then tabs or info, on one line */
.list-toolbar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-block: 16px 12px;
}

.list-toolbar__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
}

.filter-float {
  position: relative;
}

.filter-float__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.filter-float__button::-webkit-details-marker {
  display: none;
}

.filter-float__button .icon {
  color: var(--gold-text);
}

.filter-float[open] .filter-float__button,
.filter-float__button:hover {
  border-color: var(--gold);
}

.filter-float__count {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: 11px;
  font-weight: 800;
}

.filter-float > .filter-bar {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 40;
  width: min(760px, calc(100vw - 32px));
  margin: 0;
  background: var(--surface);
  box-shadow: 0 24px 60px -20px #000;
}

.dir-bar.list-toolbar {
  margin-block-start: 16px;
}

.dir-bar .muted.small {
  margin-inline-start: auto;
}

.short-url {
  font-weight: 600;
  white-space: nowrap;
}

.link-actions {
  display: inline-flex;
  gap: 6px;
}

/* My short links: the list first and full width, the new-link form under it */
.links-columns {
  display: flex;
  flex-direction: column-reverse;
}

.links-columns .link-destination {
  overflow-wrap: normal;
  white-space: nowrap;
}

/* Clicks per day: 30 fixed slots, a baseline, dates every five days */
.day-chart {
  block-size: 140px;
  fill: var(--gold);
}

.day-chart rect:hover {
  fill: var(--gold-text);
}

.day-chart__base {
  stroke: var(--glass-line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.day-chart__labels {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}

/* "Link copied" toast */
.copy-toast {
  position: fixed;
  inset-inline: 0;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin-inline: auto;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 16px 40px -16px #000;
  color: var(--gold-text);
  font-size: var(--text-sm);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-toast.is-shown {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .copy-toast {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

/* Short link page: QR card centred with clear downloads, rules summary, tools row */
.link-qr .panel__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.link-qr .qr {
  padding: 10px;
  border-radius: 14px;
}

.link-qr p {
  margin: 0;
}

.link-qr__downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.link-qr__downloads .btn {
  flex-direction: column;
  width: 100%;
  height: auto;
  padding-block: 8px;
  gap: 2px;
}

.link-qr__hint {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}

.link-rules {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  list-style: none;
  font-size: var(--text-sm);
}

.link-rules li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-rules .icon {
  color: var(--gold-text);
}

.panel__title .icon {
  margin-inline-end: 6px;
  color: var(--gold-text);
}

.link-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 10px;
}

.link-tools .btn--small {
  width: auto;
}

.link-delete summary {
  list-style: none;
  color: #f87171;
}

.link-delete summary::-webkit-details-marker {
  display: none;
}

.link-delete form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, #ef4444 45%, transparent);
  border-radius: 12px;
}

.link-delete__yes {
  width: auto;
  background: #dc2626;
  color: #fff;
}

/* Short link gate: password, expired, click limit */
.gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  margin: 48px auto;
  padding: 32px 28px;
  border: 1px solid var(--glass-line);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: inset 0 2px 0 -1px var(--gold), 0 30px 60px -30px #000;
  text-align: center;
}

.gate__icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: 26px;
}

.gate__icon--expired,
.gate__icon--clicks {
  background: color-mix(in srgb, #ef4444 20%, var(--surface));
  color: #fca5a5;
}

.gate__address {
  margin: 0;
  padding: 3px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.gate__title {
  margin: 4px 0 0;
  font-size: var(--text-lg);
  font-weight: 700;
}

.gate__text {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.gate__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.gate__error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, #ef4444 16%, transparent);
  color: #fca5a5;
  font-size: var(--text-sm);
}

.gate .btn--small {
  width: auto;
  margin-top: 6px;
}

.gate__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
}

.link-qr__downloads .btn {
  border-radius: 12px;
}

/* Messages after an action: a stack in the corner, visible wherever the page is scrolled */
.toasts {
  position: fixed;
  inset-block-start: calc(16px + env(safe-area-inset-top, 0px));
  inset-inline-end: 16px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--glass-line);
  border-inline-start: 4px solid var(--ok);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 50px -20px #000;
  color: var(--text);
  font-size: var(--text-sm);
  animation: toast-in 0.25s ease both;
}

.toast > .icon {
  margin-top: 2px;
  color: var(--ok);
}

.toast span {
  flex: 1;
}

.toast--error { border-inline-start-color: #ef4444; }
.toast--error > .icon { color: #f87171; }
.toast--warning { border-inline-start-color: var(--gold); }
.toast--warning > .icon { color: var(--gold-text); }
.toast--info { border-inline-start-color: #3b82f6; }
.toast--info > .icon { color: #93c5fd; }

.toast__close {
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.toast__close:hover {
  color: var(--text);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Action buttons: icon + short label for one-off actions, icon only (with a tooltip) in rows */
.act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: none;
  color: var(--text-soft);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.act .icon {
  color: var(--gold-text);
}

.act:hover {
  border-color: var(--border-gold);
  color: var(--text);
}

.act--primary {
  border-color: transparent;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
}

.act--primary .icon {
  color: var(--text-on-gold);
}

.act--primary:hover {
  color: var(--text-on-gold);
  filter: brightness(1.05);
}

.act--icon {
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
}

.page-actions form {
  margin: 0;
}

.server-row__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.server-row__actions .act--primary {
  margin-inline-end: 4px;
}

.server-row__todo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  font-size: var(--text-sm);
}

.server-row__todo > .icon {
  color: var(--gold-text);
}

.server-row__todo span {
  flex: 1;
}

.server-row__tools a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-row__tools a .icon {
  width: 14px;
  color: var(--gold-text);
}

.checklist__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--text);
}

.checklist__link span {
  flex: 1;
}

.checklist__link .icon {
  color: var(--gold-text);
}

.checklist__link:hover span {
  color: var(--gold-text);
}

.empty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.widget-copy {
  margin-top: 8px;
}

.server-row__actions a.act {
  padding: 5px 12px;
  border: 1px solid var(--glass-line);
  background: none;
  color: var(--text-soft);
}

.server-row__actions a.act--icon {
  padding: 0;
}

.server-row__actions a.act--primary,
.server-row__actions a.act--primary:hover {
  border-color: transparent;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
}

.hero .page-actions {
  flex-direction: row;
  align-items: center;
}

.hero .page-actions .act,
.hero .page-actions form {
  flex: 0 0 auto;
  width: auto;
}

/* Support: inbox rows, a case as a conversation with a details panel */
.inbox__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-block-start: 1px solid var(--border-row);
  color: inherit;
}

.inbox__row:first-child {
  border-block-start: 0;
}

.inbox__row:hover {
  background: rgb(255 255 255 / 3%);
}

.inbox__row--new strong {
  color: var(--gold-text);
}

.inbox__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 10px;
  background: var(--gold-tint);
  color: var(--gold-text);
}

.inbox__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.inbox__when {
  min-width: 90px;
  text-align: end;
}

.status-pill--case-open { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold-text); }
.status-pill--case-answered { background: color-mix(in srgb, #22c55e 20%, transparent); color: #86efac; }
.status-pill--case-closed { background: var(--surface-hover); color: var(--text-muted); }

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: 16px;
}

.case-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-main .panel {
  margin: 0;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat__msg {
  display: flex;
  align-items: start;
  gap: 10px;
  max-width: 85%;
}

.chat__msg--team {
  flex-direction: row-reverse;
  align-self: end;
}

.chat__avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-hover);
  color: var(--text-soft);
  font-weight: 700;
}

.chat__msg--team .chat__avatar {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
}

.chat__bubble {
  padding: 10px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 4px 14px 14px 14px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.chat__msg--team .chat__bubble {
  border-color: color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 14px 4px 14px 14px;
  background: color-mix(in srgb, var(--gold) 9%, var(--surface));
}

.chat__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
  font-size: var(--text-xs);
}

.chat__meta time {
  color: var(--text-muted);
}

.chat__text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.case-reply__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.case-reply__foot .btn--small {
  width: auto;
}

.case-info__list {
  margin: 0;
  padding: 6px 16px 12px;
}

.case-info__list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-block-end: 1px solid var(--border-row);
  font-size: var(--text-sm);
}

.case-info__list div:last-child {
  border-block-end: 0;
}

.case-info__list dt {
  color: var(--text-muted);
}

.case-info__list dd {
  margin: 0;
  font-weight: 600;
  text-align: end;
}

@media (max-width: 900px) {
  .case-layout {
    grid-template-columns: 1fr;
  }

  .chat__msg {
    max-width: 100%;
  }

  .inbox__when {
    display: none;
  }
}

/* Owner tools for one server (analytics, news, share, settings): a header and tabs */
.tool-head {
  flex-wrap: wrap;
  box-shadow: inset 0 2px 0 -1px var(--gold);
}

.tool-head .act {
  align-self: start;
}

.tool-head .badges {
  margin: 0;
}

.tool-head__mark {
  width: 56px;
  height: 56px;
  font-size: 24px;
}

.tool-tabs {
  margin: 12px 0 16px;
  padding: 0;
  border-block-end: 1px solid var(--glass-line);
}

.settings-card--wide {
  grid-column: 1 / -1;
}

.settings-save {
  margin: 14px 0 0;
}

.settings-save .btn--small {
  width: auto;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 16px;
}

.news-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-side .side-list__item {
  justify-content: space-between;
}

.tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 12px 16px 14px 32px;
  color: var(--text-soft);
  font-size: var(--text-sm);
}

.share-top {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-block-end: 14px;
}

.share-top .profile-tabs {
  align-items: center;
  margin: 0;
}

.share-intro summary {
  list-style: none;
}

.share-intro summary::-webkit-details-marker {
  display: none;
}

.share-intro .card {
  margin-top: 8px;
  max-width: 460px;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block-end: 12px;
}

.share-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.share-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-card__head > div {
  flex: 1;
  min-width: 0;
}

.share-card__head p {
  margin: 0;
}

.share-card__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--gold-tint);
  color: var(--gold-text);
  font-size: 17px;
}

.share-card__text {
  font-size: var(--text-xs);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .news-layout,
  .share-grid {
    grid-template-columns: 1fr;
  }
}

/* Server analytics: grouped tiles, compact widgets */
.stat-group {
  margin-block-end: 16px;
}

.stat-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: var(--text-sm);
  font-weight: 700;
}

.stat-group__title .icon {
  color: var(--gold-text);
}

.stat-group .home-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-group > p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
}

.widget__preview {
  display: grid;
  min-height: 52px;
  place-items: center;
  border-radius: 8px;
  background: #fff1;
}

.widget__name {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
}

.widget__code {
  min-height: 0;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.45;
  resize: none;
}

.widget .act {
  align-self: start;
}

@media (max-width: 900px) {
  .widget-grid,
  .stat-group .home-tiles {
    grid-template-columns: 1fr;
  }
}

/* Countdown tool */
.cd-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-top: 16px;
}

.cd-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cd-quick,
.cd-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cd-form__actions .btn--small {
  width: auto;
}

.cd-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: inset 0 2px 0 -1px var(--gold);
  text-align: center;
}

.cd-clock__name {
  margin: 0;
  color: var(--gold-text);
  font-size: var(--text-xl);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cd-units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 6px;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.cd-unit span {
  color: var(--gold-number);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cd-unit small {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cd-units.is-done .cd-unit span {
  color: var(--ok);
}

.cd-clock__to {
  margin: 0;
  color: var(--text-soft);
  font-weight: 600;
}

.cd-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--glass-line);
  text-align: start;
}

.cd-times dt {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cd-times dd {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
}

.cd-discord .muted {
  margin: 0 0 10px;
}

.cd-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cd-tag {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--glass-line);
  border-radius: 10px;
}

.cd-tag__label {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.cd-tag__preview {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, #5865f2 25%, transparent);
  font-weight: 600;
}

.cd-tag__code {
  color: var(--gold-text);
  font-size: var(--text-xs);
}

@media (max-width: 900px) {
  .cd-layout {
    grid-template-columns: 1fr;
  }

  .cd-times {
    grid-template-columns: 1fr;
  }

  .cd-tag {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cd-tag__label,
  .cd-tag__code {
    grid-column: 1;
  }
}

/* A shared countdown page: one centred card */
.cd-share {
  max-width: 760px;
  margin: 24px auto;
}

.cd-share .label {
  margin: 0;
}

.cd-share__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* Verification, Discord bot: status tiles, numbered step cards, copy rows */
.verify-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-block-end: 14px;
}

.verify-status__link:hover {
  border-color: var(--border-gold);
}

.verify-key {
  padding: 10px 12px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--gold-tint);
}

.verify-key p {
  margin: 0 0 8px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.copy-row .input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, monospace;
  font-size: var(--text-xs);
}

.steps-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-cards > li {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
}

.steps-cards > li > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  font-size: var(--text-xs);
  font-weight: 800;
}

.steps-cards > li > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  gap: 6px;
  min-width: 0;
}

.steps-cards > li > div > .copy-row {
  width: 100%;
}

.steps-cards form {
  margin: 0;
}

.cmd {
  padding: 2px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, #5865f2 25%, transparent);
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 700;
}

.settings-card .card__title .status-pill {
  margin-inline-start: auto;
}

/* Vote page */
.vote-page {
  max-width: 980px;
  margin: 0 auto;
}

.vote-head {
  box-shadow: inset 0 2px 0 -1px var(--gold);
}

.vote-head .badges {
  margin: 0;
}

.vote-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 14px;
}

.vote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 14px;
  margin-block-end: 16px;
}

.vote-layout .act {
  align-self: start;
}

.rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  font-size: var(--text-sm);
}

.rule-list li {
  display: flex;
  gap: 10px;
}

.rule-list .icon {
  margin-top: 3px;
  color: var(--gold-text);
}

/* How it works pages */
.how-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.how-nav .side-list__item {
  gap: 10px;
}

.how-nav .side-list__item .icon {
  color: var(--gold-text);
}

.how-nav .side-list__item.is-on {
  background: var(--gold-tint);
}

.how-nav .side-list__item.is-on strong {
  color: var(--gold-text);
}

.how-article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 0 2px 0 -1px var(--gold);
}

.how-article .label,
.how-article p {
  margin: 0;
}

.how-article__title {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
}

.how-answer {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--gold-tint);
  color: var(--text);
  font-weight: 600;
}

.how-answer .icon {
  margin-top: 3px;
  color: var(--gold-text);
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-steps li {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
}

.how-steps__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-gradient);
  color: var(--text-on-gold);
}

.how-steps h2 {
  margin: 0 0 4px;
  font-size: var(--text-md);
}

.how-steps p {
  color: var(--text-soft);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.how-updated {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-line);
}

@media (max-width: 900px) {
  .verify-status,
  .vote-stats,
  .vote-layout,
  .how-layout {
    grid-template-columns: 1fr;
  }
}

/* Status and history pages */
.status-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: 14px;
}

.tool-head .page-actions {
  align-self: start;
}

.status-empty {
  margin-top: 16px;
}

.uptime-gauges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 18px;
}

.uptime-gauge {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.uptime-gauge__label {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.uptime-gauge__value {
  color: var(--ok);
  font-size: var(--text-xl);
}

.uptime-gauge__value.is-low {
  color: #f87171;
}

.uptime-gauge__bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-hover);
}

.uptime-gauge__bar span {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--ok);
}

.incident-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.incident-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-block-start: 1px solid var(--border-row);
}

.incident-list li:first-child {
  border-block-start: 0;
}

.incident-list li > span:nth-child(2) {
  flex: 1;
}

.incident-list__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.incident-list__dot.is-live {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.incident-list__none {
  color: var(--ok);
}

.history-line {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 40px;
  list-style: none;
}

.history-line::before {
  content: "";
  position: absolute;
  inset-block: 22px;
  inset-inline-start: 25px;
  width: 2px;
  background: var(--glass-line);
}

.history-line__item {
  position: relative;
  padding-block: 8px;
}

.history-line__item p {
  margin: 2px 0 0;
}

.history-line__dot {
  position: absolute;
  inset-block-start: 13px;
  inset-inline-start: -20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg);
}

.history-line__item--closed .history-line__dot { background: #ef4444; }
.history-line__item--beta .history-line__dot { background: #a855f7; }
.history-line__item--opening .history-line__dot { background: var(--ok); }

.history-verdict {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-inline-start: 3px solid #ef4444;
  border-radius: 8px;
  background: color-mix(in srgb, #ef4444 12%, transparent);
  font-size: var(--text-sm);
}

@media (max-width: 900px) {
  .status-tiles,
  .uptime-gauges {
    grid-template-columns: 1fr;
  }
}
