/* MCRating motion layer: Magic UI interactions rebuilt without React.
   Colors and radii come from the Nova theme variables; every effect is an
   enhancement and stays still under prefers-reduced-motion. */

/* Animated theme toggler: the new theme grows as a circle from the button. */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
[data-mr-theme-toggle] .mr-icon { transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
[data-mr-theme-toggle][data-mr-theme="dark"] .mr-icon { transform: rotate(-90deg); }

/* Fade for content images that are still loading. Opacity and transform only:
   an animated blur is repainted on the main thread for every frame. */
img.mr-blur-fade { opacity: 0; transform: translateY(6px); }
img.mr-blur-fade.is-loaded {
  opacity: 1; transform: none;
  transition: opacity .4s ease-out, transform .4s ease-out;
}

/* Number ticker */
[data-mr-ticker] { font-variant-numeric: tabular-nums; }

/* Magic card (neon): a spotlight and a lit edge follow the pointer on every card
   surface. The spotlight is the surface's own background and the edge a masked
   ring, so no new stacking context traps the menus that open over the next card.
   Accent colours come from --mr-magic-glow / --mr-magic-from / --mr-magic-to. */
:where(.mr-magic-card, .mr-reference-card, .mr-service-panel, .mr-server-detail-hero, .mr-server-content-card,
  .mr-analytics-panel, .mr-pricing-panel, .mr-account-card, .mr-profile-panel, .mr-article-card,
  .mr-server-soft-detail-card, .mr-winner-tile) { position: relative; }
:is(.mr-magic-card, .mr-reference-card, .mr-service-panel, .mr-server-detail-hero, .mr-server-content-card,
  .mr-analytics-panel, .mr-pricing-panel, .mr-account-card, .mr-profile-panel, .mr-article-card,
  .mr-server-soft-detail-card, .mr-winner-tile):not(.mr-status-check-hero, .mr-articles-hero, .mr-server-widget-hero, .mr-content-liquidity-hero):is(:hover, :focus-within) {
  background-image: radial-gradient(var(--mr-magic-size, 300px) circle at var(--mr-mx, 50%) var(--mr-my, -40%),
    var(--mr-magic-glow, color-mix(in oklab, var(--primary) 11%, transparent)), transparent 72%);
}
:is(.mr-magic-card, .mr-reference-card, .mr-service-panel, .mr-server-detail-hero, .mr-server-content-card,
  .mr-analytics-panel, .mr-pricing-panel, .mr-account-card, .mr-profile-panel, .mr-article-card,
  .mr-server-soft-detail-card, .mr-winner-tile,
  dialog.modal, dialog.mr-account-menu, dialog.mr-telegram-dialog, dialog.mr-library-dialog)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(var(--mr-magic-size, 300px) circle at var(--mr-mx, 50%) var(--mr-my, -40%),
    var(--mr-magic-from, color-mix(in oklab, var(--primary) 75%, white)),
    var(--mr-magic-to, color-mix(in oklab, var(--primary) 30%, transparent)) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
:is(.mr-magic-card, .mr-reference-card, .mr-service-panel, .mr-server-detail-hero, .mr-server-content-card,
  .mr-analytics-panel, .mr-pricing-panel, .mr-account-card, .mr-profile-panel, .mr-article-card,
  .mr-server-soft-detail-card, .mr-winner-tile,
  dialog.modal, dialog.mr-account-menu, dialog.mr-telegram-dialog, dialog.mr-library-dialog):is(:hover, :focus-within)::after { opacity: 1; }
:is(.mr-server-detail-hero, .mr-analytics-panel, .mr-pricing-panel) { --mr-magic-size: 420px; }

/* The remaining overlays share the dialog surface and its neon edge */
dialog.mr-filter-dialog, .mr-tag-popover, .mr-focus-menu-panel, [data-mr-cookie-dialog] {
  border: 0; border-radius: calc(var(--radius) * 2.6);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .55), 0 0 0 1px color-mix(in oklab, var(--foreground) 9%, transparent);
}
dialog.mr-filter-dialog { background: color-mix(in oklab, var(--card) 94%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
@media (max-width: 767px) { dialog.mr-filter-dialog { border-radius: calc(var(--radius) * 2.6) calc(var(--radius) * 2.6) 0 0; } }
.mr-focus-menu[open] > .mr-focus-menu-panel { animation: mr-pop-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes mr-pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
[data-mr-cookie-dialog] { position: relative; }
:is(dialog.mr-filter-dialog, dialog.mr-reaction-popover, dialog.mr-account-topup-overlay, dialog.mr-image-editor,
  dialog.mr-admin-confirm, .mr-tag-popover, .mr-focus-menu-panel, [data-mr-cookie-dialog], .mr-comment-reaction-picker)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(var(--mr-magic-size, 320px) circle at var(--mr-mx, 50%) var(--mr-my, -40%),
    var(--mr-magic-from, color-mix(in oklab, var(--primary) 75%, white)),
    var(--mr-magic-to, color-mix(in oklab, var(--primary) 30%, transparent)) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
:is(dialog.mr-filter-dialog, dialog.mr-reaction-popover, dialog.mr-account-topup-overlay, dialog.mr-image-editor,
  dialog.mr-admin-confirm, .mr-tag-popover, .mr-focus-menu-panel, [data-mr-cookie-dialog], .mr-comment-reaction-picker):is(:hover, :focus-within)::after { opacity: 1; }

/* Server cards: accents by place in the rating */
.mr-server-list-card.mr-reference-card {
  --mr-magic-from: #4ade80; --mr-magic-to: rgb(56 189 248 / .4); --mr-magic-glow: rgb(74 222 128 / .075); --mr-magic-size: 460px;
}
.mr-server-list-card:has(> .mr-server-card-rank.is-gold) { --mr-magic-from: #fde047; --mr-magic-to: rgb(251 146 60 / .45); --mr-magic-glow: rgb(250 204 21 / .08); }
.mr-server-list-card:has(> .mr-server-card-rank.is-silver) { --mr-magic-from: #f1f5f9; --mr-magic-to: rgb(148 163 184 / .45); --mr-magic-glow: rgb(226 232 240 / .07); }
.mr-server-list-card:has(> .mr-server-card-rank.is-platinum) { --mr-magic-from: #c4b5fd; --mr-magic-to: rgb(103 232 249 / .45); --mr-magic-glow: rgb(167 139 250 / .08); }

/* Sidebar: no panel of its own, links sit on the page; the active link keeps
   its lit block and hover a soft glow */
.mr-site-menu { background: transparent; border: 0; box-shadow: none; }
.mr-desktop-sidebar .mr-site-menu-link { min-height: 2.75rem; padding-inline: .75rem; border-radius: .75rem; font-size: .9375rem; }
.mr-desktop-sidebar .mr-site-menu-link .mr-icon { font-size: 1.25rem; opacity: .8; }
.mr-desktop-sidebar .mr-site-menu-link.active .mr-icon { opacity: 1; }
.mr-desktop-sidebar .mr-site-menu-heading { padding-inline: .75rem; }
.mr-site-menu-link { position: relative; transition: background-color .2s, color .2s, box-shadow .25s; }
.mr-site-menu-link:hover {
  background: linear-gradient(90deg, color-mix(in oklab, var(--primary) 10%, transparent), transparent 85%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 16%, transparent);
}
.mr-site-menu-link.active {
  background: linear-gradient(90deg, color-mix(in oklab, var(--primary) 20%, transparent), color-mix(in oklab, var(--primary) 5%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 32%, transparent), 0 0 22px -10px color-mix(in oklab, var(--primary) 70%, transparent);
}
.mr-site-menu-link.active::before {
  content: ""; position: absolute; top: 22%; bottom: 22%; left: 0; width: 3px; border-radius: 999px;
  background: var(--link, var(--primary)); box-shadow: 0 0 10px var(--link, var(--primary));
}
.mr-site-menu-link .mr-icon { transition: transform .25s cubic-bezier(.2, .8, .2, 1), color .2s; }
.mr-site-menu-link:hover .mr-icon, .mr-site-menu-link.active .mr-icon { color: var(--link, var(--primary)); }
.mr-site-menu-link:hover .mr-icon { transform: scale(1.12); }

/* Monthly winners as neon tiles, like the useful blocks below them */
.mr-winner-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 16rem); gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 4px; padding: 4px; margin: -4px; scrollbar-width: thin; }
.mr-winner-tile {
  display: flex; min-width: 0; flex-direction: column; gap: 6px; padding: 16px; scroll-snap-align: start;
  border-radius: calc(var(--radius) * 2.4); background: var(--card); color: var(--foreground); text-decoration: none;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 8%, transparent);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
  --mr-magic-from: #fde047; --mr-magic-to: rgb(251 146 60 / .4); --mr-magic-glow: rgb(250 204 21 / .07);
}
.mr-winner-tile:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgb(0 0 0 / .45), 0 0 0 1px color-mix(in oklab, #facc15 30%, transparent); }
.mr-winner-tile:focus-visible { outline: 2px solid var(--ring, var(--primary)); outline-offset: 2px; }
.mr-winner-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mr-winner-medal {
  display: inline-grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-size: 18px;
  color: #facc15; background: color-mix(in oklab, #facc15 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, #facc15 22%, transparent);
}
.mr-winner-month { color: color-mix(in oklab, var(--foreground) 62%, transparent); font-size: 13px; text-transform: capitalize; }
.mr-winner-title { font-size: 15px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.mr-winner-votes { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px;
  color: color-mix(in oklab, var(--foreground) 70%, transparent); font-size: 13px; }
.mr-winner-votes > span { color: var(--foreground); font-weight: 500; font-variant-numeric: tabular-nums; }
.mr-winner-votes .mr-icon { color: var(--link, var(--primary)); }

/* Profile menu: neon balance, tile links with icon chips, a calm sign-out */
dialog.mr-account-menu { width: min(28rem, calc(100% - 2rem)); padding: 22px; }
.mr-account-menu-head img, .mr-account-avatar, .mr-topbar-avatar, .mr-site-menu-avatar {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px color-mix(in oklab, var(--link, var(--primary)) 55%, transparent),
    0 0 18px -4px color-mix(in oklab, var(--link, var(--primary)) 60%, transparent);
}
.mr-account-menu-head strong { font-size: 17px; letter-spacing: -.01em; }
.mr-account-menu-balance {
  position: relative; overflow: hidden; border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--foreground);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--primary) 28%, transparent), transparent 60%),
    color-mix(in oklab, var(--muted) 70%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 26%, transparent);
  transition: box-shadow .25s, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.mr-account-menu-balance:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 45%, transparent), 0 12px 30px -18px color-mix(in oklab, var(--primary) 80%, transparent); }
.mr-account-menu-balance > .mr-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 20px;
  color: var(--link, var(--primary)); background: color-mix(in oklab, var(--primary) 16%, transparent); }
.mr-account-menu-balance strong { font-size: 20px; letter-spacing: -.01em; }
.mr-account-menu-grid { gap: 8px; }
.mr-account-menu-grid a {
  gap: 10px; min-height: 54px; padding: 8px 10px; border-radius: 14px; font-weight: 500;
  background: color-mix(in oklab, var(--muted) 55%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--foreground) 6%, transparent);
  transition: background-color .2s, box-shadow .2s, transform .2s cubic-bezier(.2, .8, .2, 1);
}
.mr-account-menu-grid a:hover { transform: translateY(-1px); background: var(--muted);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 30%, transparent), 0 10px 24px -18px color-mix(in oklab, var(--primary) 80%, transparent); }
.mr-account-menu-grid a .mr-icon {
  display: inline-grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 17px;
  color: var(--link, var(--primary)); background: color-mix(in oklab, var(--primary) 13%, transparent);
}
.mr-account-menu form { border-top-color: color-mix(in oklab, var(--foreground) 8%, transparent); }
.mr-account-menu form .btn:hover { color: var(--destructive, #f87171); background: color-mix(in oklab, var(--destructive, #f87171) 12%, transparent); }

/* Account cabinet navigation follows the sidebar */
.mr-account-nav-link { position: relative; transition: background-color .2s, box-shadow .25s, color .2s; }
.mr-account-nav-link:hover { background: linear-gradient(90deg, color-mix(in oklab, var(--primary) 10%, transparent), transparent 85%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 16%, transparent); }
.mr-account-nav-link.is-active {
  background: linear-gradient(90deg, color-mix(in oklab, var(--primary) 20%, transparent), color-mix(in oklab, var(--primary) 5%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 32%, transparent), 0 0 22px -10px color-mix(in oklab, var(--primary) 70%, transparent);
}
.mr-account-summary-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: color-mix(in oklab, var(--primary) 13%, transparent); }

/* Empty states and placeholders */
.mr-winner-empty, .mr-empty-state {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: calc(var(--radius) * 2.4);
  color: color-mix(in oklab, var(--foreground) 70%, transparent); font-size: 14px;
  background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in oklab, var(--foreground) 2.5%, transparent) 10px 20px);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--foreground) 9%, transparent);
}
.mr-winner-empty .mr-winner-medal { opacity: .8; }
.mr-reaction-history-avatar {
  color: var(--link, var(--primary)); background: color-mix(in oklab, var(--primary) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 26%, transparent);
}

/* Dither hero: pixel blocks stay crisp; the left keeps its reading shade */
.mr-server-detail-hero.is-dithered .mr-server-scene-base { image-rendering: pixelated; }
.mr-server-detail-hero.is-dithered .mr-server-scene::after { background: linear-gradient(90deg, rgb(0 0 0 / .62), rgb(0 0 0 / .3) 45%, rgb(0 0 0 / .04)); }

/* Disclosures: an animated chevron replaces the browser triangle */
.mr-disclosure > summary {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 14px; border-radius: 999px; cursor: pointer;
  list-style: none; font-weight: 500; background: color-mix(in oklab, var(--muted) 70%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--foreground) 7%, transparent);
  transition: background-color .2s, box-shadow .2s;
}
.mr-disclosure > summary::-webkit-details-marker { display: none; }
.mr-disclosure > summary::after {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor; opacity: .7;
  -webkit-mask: var(--mr-chevron) center / contain no-repeat; mask: var(--mr-chevron) center / contain no-repeat;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.mr-disclosure[open] > summary::after { transform: rotate(180deg); }
.mr-disclosure > summary:hover { background: var(--muted); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--primary) 25%, transparent); }
.mr-disclosure > summary:focus-visible { outline: 2px solid var(--ring, var(--primary)); outline-offset: 2px; }
.mr-disclosure[open] > :not(summary) { animation: mr-disclose .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes mr-disclose { from { opacity: 0; transform: translateY(-4px); } }
:root { --mr-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

/* The inert copy that closes the discovery rail loop */
.mr-discovery-pulse-group[data-mr-discovery-clone] { display: flex; }

/* Counters keep their width while they roll */
:is([data-mr-ticker], [data-mr-live-players], [data-mr-copy-mtd], [data-mr-copy-day], [data-mr-tag-totals], .mr-filter-option b, .is-counting) {
  font-variant-numeric: tabular-nums;
}

/* Sign-in dialog over a blurred page */
.mr-auth-dialog {
  width: min(460px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--foreground); overflow: visible;
}
.mr-auth-dialog::backdrop {
  background: color-mix(in oklab, var(--background, #000) 45%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
}
.mr-auth-dialog-card {
  overflow: hidden; border-radius: calc(var(--radius) * 2.6); background: var(--card);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .55), 0 0 0 1px color-mix(in oklab, var(--foreground) 9%, transparent);
}
.mr-auth-dialog-frame {
  display: block; width: 100%; height: var(--mr-auth-height, 540px); max-height: calc(100dvh - 24px);
  border: 0; background: transparent; transition: height .25s ease;
}
.mr-auth-dialog-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-grid; place-items: center;
  width: 36px; height: 36px; border: 0; border-radius: 999px; color: var(--foreground);
  background: color-mix(in oklab, var(--muted) 80%, transparent); cursor: pointer;
}
.mr-auth-dialog-close:hover { background: var(--muted); }
.mr-auth-dialog-close:focus-visible { outline: 2px solid var(--ring, var(--primary)); outline-offset: 2px; }
.mr-auth-dialog.is-loading .mr-auth-dialog-card { min-height: 320px; }
.mr-auth-dialog.is-loading .mr-auth-dialog-frame { opacity: 0; }

/* The real sign-in page rendered inside the dialog */
html.mr-embedded, html.mr-embedded body { background: transparent !important; }
html.mr-embedded body { padding-bottom: 0 !important; }
html.mr-embedded :is(.mr-topbar, .mr-desktop-sidebar, .mr-discovery-shell, .mr-cookie-notice,
  .mr-site-footer, .mr-dock, .mr-copy-feedback-toast) { display: none !important; }
html.mr-embedded .mr-page-layout { display: block; padding: 0; margin: 0; }
html.mr-embedded .mr-page-content, html.mr-embedded main, html.mr-embedded .container { padding: 0; margin: 0; max-width: none; }
html.mr-embedded .mr-auth-panel { max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 28px 24px 24px; }

/* Dock for phones and tablets */
.mr-dock { display: none; }
@media (max-width: 1023px) {
  .mr-dock {
    position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    display: flex; align-items: flex-end; gap: 2px; padding: 6px; border-radius: 22px;
    transform: translateX(-50%); transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s;
    /* A solid surface: a backdrop blur under a fixed bar is recomputed on every
       scrolled frame and stutters on phones. */
    background: color-mix(in oklab, var(--card) 96%, transparent);
    box-shadow: 0 14px 34px -14px rgb(0 0 0 / .45), 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent);
  }
  .mr-dock a {
    position: relative; display: grid; justify-items: center; gap: 2px; min-width: 58px; min-height: 50px;
    padding: 7px 6px 5px; border-radius: 16px; color: color-mix(in oklab, var(--foreground) 78%, transparent);
    font-size: 10.5px; font-weight: 500; line-height: 1.1; text-decoration: none;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s;
  }
  .mr-dock a .mr-icon { font-size: 19px; }
  .mr-dock a:active { transform: scale(.9); }
  .mr-dock a[aria-current="page"] { color: var(--link); background: color-mix(in oklab, var(--primary) 13%, transparent); }
  .mr-dock a[aria-current="page"]::after {
    content: ""; position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 999px; background: currentColor;
  }
  .mr-dock a:focus-visible { outline: 2px solid var(--ring, var(--primary)); outline-offset: -2px; }
  .mr-dock.is-hidden { transform: translate(-50%, calc(100% + 24px)); opacity: 0; }
  body:has(.mr-dock) { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.mr-dock) .mr-copy-feedback-toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
  body:has(.mr-pricing-mobile-total, .mr-admin-result) .mr-dock { display: none; }
}

/* Avatar circles: players who chose this server */
.mr-play-here-avatars { align-items: center; }
.mr-play-here-avatar { position: relative; display: inline-flex; border-radius: 999px; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.mr-play-here-avatar:hover { z-index: 1; transform: translateY(-2px) scale(1.08); }
.mr-avatar-more {
  position: relative; display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin-left: -8px;
  padding: 0 7px; border: 2px solid var(--card); border-radius: 999px; background: var(--foreground);
  color: var(--background, var(--card)); font-size: 11px; font-weight: 600; text-decoration: none;
}

/* Bento grid of useful sections */
.mr-bento-section { margin-top: 2.5rem; }
.mr-bento-section > h2 { margin-bottom: 1rem; }
.mr-bento { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .mr-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .mr-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(148px, auto); }
  .mr-bento-wide { grid-column: span 2; }
  .mr-bento-tall { grid-row: span 2; }
}
.mr-bento-tile {
  display: flex; min-width: 0; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px;
  border-radius: calc(var(--radius) * 2.4); background: var(--card); color: var(--foreground); text-decoration: none;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 8%, transparent);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
a.mr-bento-tile:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgb(0 0 0 / .45), 0 0 0 1px color-mix(in oklab, var(--primary) 30%, transparent); }
a.mr-bento-tile:focus-visible { outline: 2px solid var(--ring, var(--primary)); outline-offset: 2px; }
.mr-bento-icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: auto; border-radius: 12px;
  color: var(--link); background: color-mix(in oklab, var(--primary) 12%, transparent); font-size: 20px;
}
.mr-bento-tile h3 { margin: 10px 0 0; font-size: 16px; font-weight: 600; line-height: 1.25; }
.mr-bento-tile p { margin: 0; color: color-mix(in oklab, var(--foreground) 64%, transparent); font-size: 13px; line-height: 1.45; }
.mr-bento-cta { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-size: 13px; font-weight: 500; }
.mr-bento-cta .mr-icon { transition: transform .2s; }
a.mr-bento-tile:hover .mr-bento-cta .mr-icon { transform: translateX(3px); }
.mr-bento-terminal { margin-bottom: auto; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: color-mix(in oklab, var(--foreground) 70%, transparent); }
.mr-bento-terminal b { color: var(--link); font-weight: 600; }

/* Icon cloud of popular tags */
.mr-tag-cloud { position: relative; min-height: 300px; margin-bottom: auto; }
.mr-tag-cloud ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mr-tag-cloud a {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px;
  background: var(--muted); color: var(--foreground); font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none;
}
.mr-tag-cloud a:hover, .mr-tag-cloud a:focus-visible { color: var(--link); background: color-mix(in oklab, var(--primary) 14%, var(--muted)); }
.mr-tag-cloud a small { color: color-mix(in oklab, var(--foreground) 55%, transparent); font-size: 11px; }
.mr-tag-cloud.is-3d { height: 340px; cursor: grab; touch-action: pan-y; }
.mr-tag-cloud.is-3d ul { display: block; position: absolute; inset: 0; }
.mr-tag-cloud.is-3d li { position: absolute; top: 50%; left: 50%; will-change: transform, opacity; }
.mr-tag-cloud.is-dragging { cursor: grabbing; }

/* Globe of server and visitor countries */
.mr-globe { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin: 8px auto 0; touch-action: pan-y; }
.mr-globe canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.mr-globe-caption { margin-top: 6px; text-align: center; color: color-mix(in oklab, var(--foreground) 65%, transparent); font-size: 13px; }

/* Animated list: new live events slide in */
.mr-list-enter { animation: mr-list-in .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes mr-list-in {
  0% { opacity: 0; transform: translateY(-12px) scale(.96); background-color: color-mix(in oklab, var(--primary) 16%, transparent); }
  60% { opacity: 1; transform: none; }
  100% { background-color: transparent; }
}

/* Terminal for status checks */
.mr-terminal {
  overflow: hidden; border-radius: calc(var(--radius) * 2.2); background: #0b100d; color: #d6e4da;
  box-shadow: 0 18px 40px -26px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .06);
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.mr-terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgb(255 255 255 / .07); color: #8fa196; font-size: 12px; }
.mr-terminal-bar i { width: 10px; height: 10px; border-radius: 999px; background: #ff5f57; }
.mr-terminal-bar i:nth-child(2) { background: #febc2e; }
.mr-terminal-bar i:nth-child(3) { background: #28c840; }
.mr-terminal-bar span { margin-left: 8px; }
.mr-terminal-body { min-height: 96px; margin: 0; padding: 12px 16px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mr-terminal-line { display: block; }
.mr-terminal-line.is-command::before { content: "$ "; color: #4ade80; }
.mr-terminal-line.is-ok { color: #86efac; }
.mr-terminal-line.is-error { color: #fca5a5; }
.mr-terminal-line.is-muted { color: #8fa196; }
.mr-terminal-caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: currentColor; animation: mr-caret 1s steps(1) infinite; }
@keyframes mr-caret { 50% { opacity: 0; } }
.mr-status-check-result > .mr-terminal + * { margin-top: 1rem; }

/* Numbered catalog pagination */
.mr-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 28px 0 8px; }
.mr-pagination-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mr-pagination-page, .mr-pagination-step {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 14px; color: color-mix(in oklab, var(--foreground) 78%, transparent); font-size: 15px; font-variant-numeric: tabular-nums;
  text-decoration: none; transition: background-color .2s, color .2s, transform .2s cubic-bezier(.2, .8, .2, 1);
}
a.mr-pagination-page:hover, a.mr-pagination-step:hover { background: var(--muted); color: var(--foreground); }
a.mr-pagination-page:active, a.mr-pagination-step:active { transform: scale(.94); }
.mr-pagination-page:focus-visible, .mr-pagination-step:focus-visible { outline: 2px solid var(--ring, var(--primary)); outline-offset: 2px; }
.mr-pagination-page.is-current {
  background: var(--card); color: var(--foreground); font-weight: 650;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent), 0 8px 20px -14px rgb(0 0 0 / .55);
}
.mr-pagination-step.is-disabled { opacity: .42; }
.mr-pagination-step .is-back { transform: scaleX(-1); }
.mr-pagination-gap { display: inline-grid; place-items: center; min-width: 28px; height: 44px; color: color-mix(in oklab, var(--foreground) 48%, transparent); }
@media (max-width: 640px) {
  .mr-pagination-pages .is-far { display: none; }
  .mr-pagination-step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mr-pagination-page, .mr-pagination-step { min-width: 40px; padding: 0 10px; }
}

/* Every dialog shares the sign-in dialog: frosted page, one card surface,
   a spring entrance and a short exit where the browser animates top-layer exits. */
:is(dialog.modal, dialog.mr-account-menu, dialog.mr-account-topup-overlay, dialog.mr-telegram-dialog,
  dialog.mr-reaction-popover, dialog.mr-library-dialog, dialog.mr-image-editor, dialog.mr-admin-confirm) {
  border: 0; border-radius: calc(var(--radius) * 2.6); background: var(--card); color: var(--foreground);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .55), 0 0 0 1px color-mix(in oklab, var(--foreground) 9%, transparent);
}
:is(dialog.modal, dialog.mr-account-menu, dialog.mr-account-topup-overlay, dialog.mr-telegram-dialog,
  dialog.mr-reaction-popover, dialog.mr-library-dialog, dialog.mr-image-editor, dialog.mr-admin-confirm,
  dialog.mr-auth-dialog, dialog.mr-filter-dialog)::backdrop {
  background: color-mix(in oklab, var(--background, #000) 45%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  transition: opacity .25s ease, overlay .3s allow-discrete, display .3s allow-discrete;
}
:is(dialog.modal, dialog.mr-account-menu, dialog.mr-account-topup-overlay, dialog.mr-telegram-dialog,
  dialog.mr-reaction-popover, dialog.mr-library-dialog, dialog.mr-image-editor, dialog.mr-admin-confirm,
  dialog.mr-auth-dialog, dialog.mr-filter-dialog) {
  transition: opacity .2s ease, transform .32s cubic-bezier(.2, .8, .2, 1), overlay .32s allow-discrete, display .32s allow-discrete;
}
:is(dialog.modal, dialog.mr-account-menu, dialog.mr-account-topup-overlay, dialog.mr-telegram-dialog,
  dialog.mr-reaction-popover, dialog.mr-library-dialog, dialog.mr-image-editor, dialog.mr-admin-confirm,
  dialog.mr-auth-dialog):not([open]) { opacity: 0; transform: translateY(10px) scale(.97); }
:is(dialog.modal, dialog.mr-account-menu, dialog.mr-account-topup-overlay, dialog.mr-telegram-dialog,
  dialog.mr-reaction-popover, dialog.mr-library-dialog, dialog.mr-image-editor, dialog.mr-admin-confirm,
  dialog.mr-auth-dialog, dialog.mr-filter-dialog):not([open])::backdrop { opacity: 0; }
@starting-style {
  :is(dialog.modal, dialog.mr-account-menu, dialog.mr-account-topup-overlay, dialog.mr-telegram-dialog,
    dialog.mr-reaction-popover, dialog.mr-library-dialog, dialog.mr-image-editor, dialog.mr-admin-confirm,
    dialog.mr-auth-dialog)[open] { opacity: 0; transform: translateY(14px) scale(.97); }
  :is(dialog.modal, dialog.mr-account-menu, dialog.mr-account-topup-overlay, dialog.mr-telegram-dialog,
    dialog.mr-reaction-popover, dialog.mr-library-dialog, dialog.mr-image-editor, dialog.mr-admin-confirm,
    dialog.mr-auth-dialog, dialog.mr-filter-dialog)[open]::backdrop { opacity: 0; }
}
dialog.modal > .modal-box { border-radius: inherit; background: transparent; }
dialog.modal .modal-header { border-bottom: 0; padding-bottom: 4px; }
dialog.modal .modal-title { letter-spacing: -.01em; }
dialog.modal .modal-footer { border-top-color: color-mix(in oklab, var(--foreground) 7%, transparent); }
dialog :is(.btn-close, [data-mr-account-menu-close]),
.mr-tag-popover-head .btn-icon {
  width: 36px; height: 36px; min-width: 36px; border-radius: 999px;
  background: color-mix(in oklab, var(--muted) 80%, transparent);
  transition: background-color .2s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
dialog :is(.btn-close, [data-mr-account-menu-close]):hover,
.mr-tag-popover-head .btn-icon:hover { background: var(--muted); transform: rotate(90deg); }
/* The vote and owner dialogs carry the moving beam of the sign-in card. */
dialog.modal[open]::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--mr-beam-angle), transparent 0 72%,
    color-mix(in oklab, var(--link, var(--primary)) 85%, white) 82%, #38bdf8 88%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: mr-border-beam-once 1.8s cubic-bezier(.4, 0, .2, 1) both;
}
.mr-vote-server {
  border-radius: calc(var(--radius) * 2); background: color-mix(in oklab, var(--muted) 75%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--foreground) 6%, transparent);
}
.mr-vote-server > img { box-shadow: 0 6px 16px -8px rgb(0 0 0 / .5); }
.mr-post-vote-success-icon { animation: mr-success-pop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes mr-success-pop { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
/* Catalog filters drop from their trigger on desktop and rise as a sheet on phones. */
dialog.mr-filter-dialog:not([open]) { opacity: 0; transform: translateY(-6px) scale(.98); }
@starting-style { dialog.mr-filter-dialog[open] { opacity: 0; transform: translateY(-6px) scale(.98); } }
@media (min-width: 768px) { dialog.mr-filter-dialog::backdrop { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 767px) {
  dialog.mr-filter-dialog:not([open]) { transform: translateY(100%); }
  @starting-style { dialog.mr-filter-dialog[open] { transform: translateY(100%); } }
}
/* Tag popovers pop out of the tag that opened them. */
.mr-tag-popover {
  border: 0; border-radius: calc(var(--radius) * 2.4); background: var(--card);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .5), 0 0 0 1px color-mix(in oklab, var(--foreground) 9%, transparent);
  transition: opacity .18s ease, transform .26s cubic-bezier(.2, .8, .2, 1), overlay .26s allow-discrete, display .26s allow-discrete;
}
.mr-tag-popover:not(:popover-open) { opacity: 0; transform: translateY(-4px) scale(.97); }
@starting-style { .mr-tag-popover:popover-open { opacity: 0; transform: translateY(-4px) scale(.97); } }
.mr-tag-proposal-options { margin-inline: -6px; padding-inline: 6px; }
.mr-tag-proposal-option {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  white-space: normal; border-radius: 12px; border-bottom-color: transparent; padding: 10px 10px;
}
.mr-tag-proposal-option + .mr-tag-proposal-option { box-shadow: 0 -1px 0 color-mix(in oklab, var(--foreground) 6%, transparent); }
.mr-tag-proposal-option:hover + .mr-tag-proposal-option, .mr-tag-proposal-option:hover { box-shadow: none; }
.mr-tag-proposal-option .mr-tag-option-title { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.mr-tag-proposal-option .mr-tag-icon { flex: none; }
.mr-tag-proposal-option > [data-mr-proposal-label] {
  white-space: nowrap; padding: 5px 10px; border-radius: 999px; font-weight: 600;
  background: color-mix(in oklab, var(--primary) 12%, transparent); transition: background-color .2s, color .2s;
}
.mr-tag-proposal-option:hover > [data-mr-proposal-label] { color: var(--primary-foreground, #fff); background: var(--primary); }
.mr-tag-proposal-option:disabled > [data-mr-proposal-label] { color: var(--muted-foreground); background: var(--muted); }
/* Human check: a quiet inline card instead of a framed fieldset. */
.mr-human-verification {
  position: relative; gap: 8px; margin: 12px 0; padding: 12px 14px; border: 0; border-radius: calc(var(--radius) * 2);
  background: color-mix(in oklab, var(--muted) 72%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--foreground) 6%, transparent);
}
.mr-human-verification > legend {
  float: left; display: flex; align-items: center; gap: 8px; width: 100%; padding: 0;
  font-size: 13px; font-weight: 600; color: var(--foreground);
}
.mr-human-verification > legend .mr-icon { font-size: 16px; color: var(--link); }
.mr-human-verification [data-mr-human-status] { font-size: 13px; }
.mr-human-verification[aria-busy="true"] [data-mr-human-status]::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; border-radius: 999px;
  border: 2px solid color-mix(in oklab, var(--link) 30%, transparent); border-top-color: var(--link); animation: mr-spin .8s linear infinite;
}
.mr-human-verification [data-mr-human-retry][aria-disabled="true"] { display: none; }
.mr-human-widget:empty { display: none; }
@keyframes mr-spin { to { transform: rotate(360deg); } }

/* Long selection descriptions fold under a blurred edge; the full text stays in the page. */
.mr-selection-intro { position: relative; margin-top: 12px; color: color-mix(in oklab, var(--foreground) 78%, transparent); font-size: 14px; line-height: 1.6; }
.mr-selection-intro > p { margin: 0 0 8px; }
.mr-selection-intro .mr-tag-descriptions { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mr-selection-intro .mr-tag-descriptions strong { color: var(--foreground); font-weight: 600; }
.mr-selection-intro.is-clamped:not(.is-expanded, .is-fit) {
  max-height: 7.4em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent);
}
.mr-selection-intro.is-clamped:not(.is-expanded, .is-fit)::after {
  content: ""; position: absolute; inset: auto 0 0; height: 3.4em; pointer-events: none;
  -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px);
}
.mr-selection-intro.is-expanded { overflow: hidden; }
.mr-selection-intro-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 12px 6px 14px; border: 0; border-radius: 999px;
  background: color-mix(in oklab, var(--muted) 85%, transparent); color: var(--foreground); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background-color .2s;
}
.mr-selection-intro-toggle:hover { background: var(--muted); }
.mr-selection-intro-toggle:focus-visible { outline: 2px solid var(--ring, var(--primary)); outline-offset: 2px; }
.mr-selection-intro-toggle .mr-icon { font-size: 14px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.mr-selection-intro-toggle[aria-expanded="true"] .mr-icon { transform: rotate(180deg); }
.mr-selection-intro-toggle[hidden] { display: none; }

/* Sticker picker: pack covers, sections and roomy cells */
dialog.mr-reaction-popover { width: min(30rem, calc(100vw - 1.5rem)); padding: 16px 16px 12px; scrollbar-width: thin; }
dialog.mr-reaction-popover .mr-reaction-popover-head strong { font-size: 16px; letter-spacing: -.01em; }
.mr-reaction-search {
  height: 42px; padding: 0 12px; border-radius: 12px; background: color-mix(in oklab, var(--muted) 80%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--foreground) 7%, transparent);
}
.mr-reaction-search:focus-within { box-shadow: inset 0 0 0 2px var(--ring, var(--primary)); }
.mr-reaction-search input { height: 100%; border: 0; background: transparent; font-size: 14px; }
/* The global field focus outline would draw a box inside these rounded fields;
   the field container shows focus instead. */
body .mr-reaction-search input[type="search"]:is(:focus, :focus-visible) { outline: none; box-shadow: none; border-color: transparent; }
.mr-reaction-pack-tabs {
  position: sticky; top: -16px; z-index: 2; display: flex; gap: 4px; margin: 10px -16px 6px; padding: 8px 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  background: color-mix(in oklab, var(--card) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.mr-reaction-pack-tabs::-webkit-scrollbar { display: none; }
.mr-reaction-pack-tab {
  display: inline-flex; flex: none; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 5px; border: 0; border-radius: 12px;
  background: transparent; color: color-mix(in oklab, var(--foreground) 72%, transparent); font-size: 12.5px; font-weight: 500;
  white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, transform .2s cubic-bezier(.2, .8, .2, 1);
}
.mr-reaction-pack-tab img { width: 28px; height: 28px; object-fit: contain; }
.mr-reaction-pack-tab .mr-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; font-size: 17px; color: #f59e0b; }
.mr-reaction-pack-tab:hover { background: var(--muted); color: var(--foreground); }
.mr-reaction-pack-tab:active { transform: scale(.94); }
.mr-reaction-pack-tab.is-active { background: color-mix(in oklab, var(--primary) 14%, transparent); color: var(--foreground); }
.mr-reaction-pack-tab:focus-visible { outline: 2px solid var(--ring, var(--primary)); outline-offset: 1px; }
.mr-reaction-catalog-grid { gap: 2px; grid-template-columns: repeat(auto-fill, minmax(3.25rem, 1fr)); }
.mr-reaction-section {
  grid-column: 1 / -1; padding: 12px 4px 4px; color: color-mix(in oklab, var(--foreground) 58%, transparent);
  font-size: 12px; font-weight: 500;
}
.mr-reaction-section:first-child { padding-top: 2px; }
.mr-reaction-catalog-item { height: 3.25rem; border-radius: 12px; transition: background-color .15s, transform .18s cubic-bezier(.2, .8, .2, 1); }
.mr-reaction-catalog-item:hover { transform: scale(1.12); background: var(--muted); }
.mr-reaction-catalog-item:active { transform: scale(.92); }
.mr-reaction-catalog-grid img { width: 40px; height: 40px; object-fit: contain; }
.mr-reaction-sentinel { height: 1px; }
.mr-reaction-icon, .mr-reaction-icon img { object-fit: contain; }

/* Comment editor: one rounded field, focus on the whole field */
body .mr-comment-editor textarea[data-mr-comment-text]:is(:focus, :focus-visible) { outline: none; box-shadow: none; border-color: transparent; }
.mr-comment-editor { transition: border-color .2s, box-shadow .2s; }
.mr-comment-editor:focus-within {
  border-color: color-mix(in oklab, var(--primary) 45%, var(--border)) !important;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 16%, transparent), 0 12px 30px -22px color-mix(in oklab, var(--primary) 70%, transparent);
}
.mr-comment-editor-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
:is(.mr-attach-control, [data-mr-comment-reaction-insert]) { border-radius: 10px; transition: color .2s, background-color .2s; }
:is(.mr-attach-control, [data-mr-comment-reaction-insert]):hover { color: var(--link, var(--primary)) !important; }
/* The comment reaction picker opens as a card under its button */
.mr-comment-editor-tools > .mr-comment-reaction-picker {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: min(25rem, calc(100vw - 2.5rem)); max-width: none;
  max-height: min(27rem, 62dvh); margin: 0; padding: 14px 14px 10px; border: 0; border-radius: calc(var(--radius) * 2.6);
  background: var(--card); scrollbar-width: thin;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .6), 0 0 0 1px color-mix(in oklab, var(--foreground) 9%, transparent);
  animation: mr-pop-in .26s cubic-bezier(.2, .8, .2, 1);
}
.mr-comment-editor-tools > .mr-comment-reaction-picker[hidden] { display: none; }
.mr-comment-reaction-picker-head > strong { font-size: 15px; }
.mr-comment-reaction-search {
  height: 40px; border: 0 !important; border-radius: 12px; background: color-mix(in oklab, var(--muted) 85%, transparent) !important;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--foreground) 7%, transparent);
}
.mr-comment-reaction-picker .mr-reaction-pack-tabs { top: -14px; margin: 8px -14px 4px; padding: 8px 14px; }
.mr-comment-reaction-grid { gap: 2px; grid-template-columns: repeat(auto-fill, minmax(2.9rem, 1fr)); }
.mr-comment-reaction-option { height: 2.9rem; border-radius: 12px; transition: background-color .15s, transform .18s cubic-bezier(.2, .8, .2, 1); }
.mr-comment-reaction-option:hover { transform: scale(1.12); background: var(--muted); }
.mr-comment-reaction-option > img { width: 34px; height: 34px; }

/* The slapped sticker: a die-cut white edge and a shadow that lands with it */
.mr-sticker-layer { position: fixed; inset: 0; z-index: 95; overflow: hidden; pointer-events: none; }
.mr-sticker {
  position: absolute; object-fit: contain; will-change: transform, filter;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 3px 4px rgb(0 0 0 / .32));
}
.mr-sticker-ring {
  position: absolute; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 999px;
  border: 3px solid color-mix(in oklab, var(--link, var(--primary)) 65%, white);
}
.mr-sticker-dust {
  position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 2px;
  background: color-mix(in oklab, var(--link, var(--primary)) 70%, #fbbf24);
}
.mr-sticker-dust:nth-child(3n) { background: #f472b6; }
.mr-sticker-dust:nth-child(4n) { background: #38bdf8; border-radius: 999px; }

/* Scroll progress on long reading pages */
.mr-scroll-progress {
  position: fixed; top: 0; right: 0; left: 0; z-index: 70; height: 3px; pointer-events: none;
  transform: scaleX(var(--mr-progress, 0)); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--link, var(--primary)), color-mix(in oklab, var(--link, var(--primary)) 45%, #38bdf8));
}
@supports (animation-timeline: scroll()) {
  .mr-scroll-progress { animation: mr-scroll-progress linear both; animation-timeline: scroll(root block); }
}
@keyframes mr-scroll-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Border beam around the sign-in dialog */
@property --mr-beam-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.mr-auth-dialog-card { position: relative; }
.mr-border-beam {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--mr-beam-angle), transparent 0 72%,
    color-mix(in oklab, var(--link, var(--primary)) 85%, white) 82%, #38bdf8 88%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: mr-border-beam-once 1.8s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes mr-border-beam { to { --mr-beam-angle: 360deg; } }
/* One pass when a dialog opens. A looping beam repainted the conic gradient on
   the main thread for every frame while the visitor typed in the dialog. */
@keyframes mr-border-beam-once { 0% { --mr-beam-angle: 0deg; opacity: 1; } 75% { opacity: 1; } 100% { --mr-beam-angle: 360deg; opacity: 0; } }

/* Shiny rank badges for the podium: the ring turns while the card is hovered */
.mr-server-card-rank:is(.is-gold, .is-silver, .is-platinum)::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--mr-beam-angle), transparent 0 55%, var(--mr-rank-shine, #fde047) 75%, #fff 80%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.mr-server-card-rank.is-silver { --mr-rank-shine: #e2e8f0; }
.mr-server-card-rank.is-platinum { --mr-rank-shine: #a5b4fc; }
.mr-server-list-card:hover > .mr-server-card-rank:is(.is-gold, .is-silver, .is-platinum)::after { opacity: 1; animation: mr-border-beam 2.4s linear infinite; }

/* Vote buttons: a quick shimmer on hover */
:is(.mr-server-vote-action, [data-mr-vote-submit]) { position: relative; overflow: hidden; }
:is(.mr-server-vote-action, [data-mr-vote-submit])::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .45), transparent); transform: skewX(-18deg);
}
:is(.mr-server-vote-action, [data-mr-vote-submit]):is(:hover, :focus-visible)::before { animation: mr-shine .8s ease; }

/* Shine across the promotion button on hover */
.mr-topbar-promote { position: relative; overflow: hidden; isolation: isolate; }
.mr-topbar-promote::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; z-index: -1; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .7), transparent); transform: skewX(-18deg);
}
.mr-topbar-promote:is(:hover, :focus-visible)::after { animation: mr-shine .8s ease; }
/* The promotion button keeps its yellow on hover in both themes; the dark-theme
   hover of the other header links is more specific and used to grey it out. */
.mr-topbar .mr-topbar-link.mr-topbar-promote:is(:hover, :focus-visible), a.mr-topbar-promote.mr-topbar-link:is(:hover, :focus-visible) {
  color: #422006; background-color: #fde047;
  box-shadow: 0 0 0 1px rgb(250 204 21 / .55), 0 10px 26px -10px rgb(250 204 21 / .75);
}
@keyframes mr-shine { to { left: 130%; } }

/* Dot pattern behind section heroes */
:is(.mr-status-check-hero, .mr-articles-hero, .mr-server-widget-hero, .mr-content-liquidity-hero) {
  background-image: linear-gradient(to left, transparent, var(--card) 68%),
    radial-gradient(color-mix(in oklab, var(--foreground) 16%, transparent) 1px, transparent 1.3px);
  background-size: auto, 16px 16px;
}

/* Live indicator */
.mr-analytics-live i { animation: mr-live-pulse 1.8s ease-in-out infinite; }
@keyframes mr-live-pulse { 50% { opacity: .35; transform: scale(.7); } }

@media (prefers-reduced-motion: reduce) {
  img.mr-blur-fade { opacity: 1; filter: none; transform: none; }
  .mr-list-enter, .mr-terminal-caret, .mr-post-vote-success-icon, dialog.modal[open]::before { animation: none; }
  dialog, dialog::backdrop, .mr-tag-popover { transition: none !important; }
  .mr-dock, .mr-dock a, .mr-bento-tile, .mr-play-here-avatar, [data-mr-theme-toggle] .mr-icon { transition: none; }
  .mr-topbar-promote::after, :is(.mr-server-vote-action, [data-mr-vote-submit])::before { display: none; }
  .mr-server-list-card:hover > .mr-server-card-rank::after { animation: none; }
  .mr-disclosure[open] > :not(summary) { animation: none; }
  .mr-border-beam, .mr-analytics-live i { animation: none; }
}
