/* Metin2Toplist UI System — Obsidian & Forged Mahogany RPG Portal (Impeccable + Web Motion Stack) */
@import url("./tokens.css");
@import url("./base.css");

/* Atmospheric Canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--color-paper);
}
.m2-bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.m2-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
html[data-theme="light"] .m2-bg-video { opacity: 0.35; }
@media (max-width: 768px) {
  .m2-bg-video-wrap { display: none; }
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--color-overlay-glow-top), var(--color-overlay-scrim);
}

/* Sticky Navigation */
.m2-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-gold-border);
  box-shadow: var(--shadow-menu);
}
.m2-nav__wrap {
  max-width: var(--container-nav);
  margin: 0 auto;
  padding: 0 var(--space-md);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.m2-nav__left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  flex: 0 0 auto;
}
.m2-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-ink-strong);
  flex-shrink: 0;
}
.m2-nav__brand-name {
  display: block;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
}
.m2-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
  flex-shrink: 0;
}
.m2-nav__menu a {
  position: relative;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-xs);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.m2-nav__menu a:hover, .m2-nav__menu a.is-active {
  color: var(--color-ink-strong);
  background: var(--color-gold-dim);
}
.m2-nav__menu a.is-active::after {
  content: "";
  position: absolute;
  left: var(--space-sm);
  right: var(--space-sm);
  bottom: 2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
.m2-nav__mobile-auth { display: none; }

.m2-nav__right {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}
.m2-nav__auth {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.m2-nav__finder {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 36px;
  padding: 0 var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--color-surface-well);
  border: 1px solid var(--color-rule-strong);
  color: var(--color-ink);
  white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.m2-nav__finder:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-gold-border);
  color: var(--color-ink-strong);
}

.m2-nav__search {
  display: flex;
  align-items: center;
  background: var(--color-surface-input);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-sm);
  height: 36px;
  width: 144px;
  transition: border-color var(--dur-micro) var(--ease-out);
}
.m2-nav__search:focus-within { border-color: var(--color-focus); }
.m2-nav__search input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--color-ink);
  font-size: var(--text-xs);
  outline: none;
}
.m2-nav__search input::placeholder { color: var(--color-muted-2); }

.m2-nav__iconbtn { position: relative; width: 36px; min-width: 36px; padding: 0; }
.m2-nav__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 var(--space-2xs);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-ink-bright);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.lang-select, .m2-theme-toggle {
  background: var(--color-surface-input);
  color: var(--color-ink);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  height: 36px;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}
.lang-select { padding: 0 var(--space-xs); }
.m2-flag-svg { display: inline-block; flex-shrink: 0; border-radius: 2px; vertical-align: middle; }
.m2-lang-dd { position: relative; }
.m2-lang-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  height: 36px;
  padding: 0 var(--space-sm);
  background: var(--color-surface-input);
  color: var(--color-ink);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
}
.m2-lang-dd__btn:hover { border-color: var(--color-gold-border); }
.m2-lang-dd__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: var(--z-dropdown);
  width: min(320px, 90vw);
  padding: var(--space-xs);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-md);
}
.m2-lang-dd.is-open .m2-lang-dd__menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2xs);
}
.m2-lang-dd__opt {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 500;
}
.m2-lang-dd__opt:hover { background: var(--color-accent-soft); color: var(--color-ink-strong); }
.m2-lang-dd__opt.is-active { background: var(--color-accent-soft-h); color: var(--color-ink-bright); font-weight: 700; }
.m2-lang-dd__code { width: 24px; font-weight: 700; font-size: var(--text-xs); color: var(--color-ink); }
.m2-lang-dd__native { font-size: var(--text-xs); color: var(--color-muted); }

.m2-theme-toggle {
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.m2-theme-toggle:hover { border-color: var(--color-gold-border); }

.mobile-toggle {
  display: none;
  background: var(--color-surface-input);
  color: var(--color-ink);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Desktop Docked Quick Tools Rail */
.m2-tools-rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-sticky);
  width: 56px;
  background: var(--color-surface-solid);
  border: 1px solid var(--color-rule-strong);
  border-left: 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
}
.m2-tools-rail:hover, .m2-tools-rail:focus-within, .m2-tools-rail.is-open { width: 256px; }
.m2-tools-rail__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm);
  background: var(--color-surface-elevated);
  border: 0;
  border-bottom: 1px solid var(--color-rule);
  color: var(--color-gold);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.m2-tools-rail__toggle-icon, .m2-nav__tools-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: var(--color-gold-dim);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  color: var(--color-gold);
}
.m2-tools-rail__panel { display: flex; flex-direction: column; padding: var(--space-2xs) 0; }
.m2-tools-rail__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-ink);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
}
.m2-tools-rail__title,
.m2-tools-rail__item > span:last-child {
  opacity: 0;
  transition: opacity var(--dur-micro) var(--ease-out);
}
.m2-tools-rail:hover .m2-tools-rail__title,
.m2-tools-rail:focus-within .m2-tools-rail__title,
.m2-tools-rail.is-open .m2-tools-rail__title,
.m2-tools-rail:hover .m2-tools-rail__item > span:last-child,
.m2-tools-rail:focus-within .m2-tools-rail__item > span:last-child,
.m2-tools-rail.is-open .m2-tools-rail__item > span:last-child {
  opacity: 1;
}
.m2-tools-rail__item:hover { background: var(--color-accent-soft); color: var(--color-ink-bright); }

/* Desktop-Only Docked Upcoming Launches Strip */
.m2-left-dock {
  position: fixed;
  left: var(--space-md);
  bottom: var(--space-md);
  width: 244px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  z-index: var(--z-sticky);
}
.m2-floater {
  width: 100%;
  background: var(--color-surface-solid);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--dur-short) var(--ease-out);
}
.m2-floater__title--caps {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.m2-v4b-card__body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  text-decoration: none;
  color: var(--color-ink);
  transition: background-color var(--dur-micro) var(--ease-out);
}
.m2-v4b-card__body:hover { background: var(--color-gold-dim); }
.m2-v4b-card__thumb {
  width: 56px;
  height: 58px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-gold-border);
  background: var(--color-media-bg);
  box-shadow: var(--shadow-media);
}
.m2-v4b-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m2-v4b-card__content { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.m2-v4b-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-gold);
  background: var(--color-gold-dim);
  border: 1px solid var(--color-gold-border);
}
.m2-v4b-card__title { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-bright); line-height: 1.2; }
html[data-theme="light"] .m2-v4b-card__title { color: var(--color-ink-strong); }
.m2-v4b-card__desc { font-size: 11px; line-height: 1.42; color: var(--color-muted); }
.m2-v4b-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-gold);
}
.m2-v4b-card__body:hover .m2-v4b-card__cta { color: var(--color-gold-hover); }
.m2-floater:hover { border-color: var(--color-gold-border); }
.m2-floater__head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--color-rule);
}
.m2-floater__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-green);
  flex-shrink: 0;
}
.m2-floater__title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-ink-strong);
}
.m2-floater__icon-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--text-md);
  line-height: 1;
}
.m2-floater__icon-btn:hover { background: var(--color-gold-dim); color: var(--color-ink-strong); }
.m2-floater__list {
  padding: var(--space-xs);
  display: flex;
  flex-direction: row;
  gap: var(--space-xs);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--space-xs);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.m2-floater__list::-webkit-scrollbar { display: none; }
.m2-floater__row {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2xs) var(--space-sm);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
}
.m2-floater__row:hover { background: var(--color-gold-dim); color: var(--color-ink-strong); }
.m2-floater__logo {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--color-gold);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-rule-strong);
}
.m2-floater__body { min-width: 0; }
.m2-floater__name { display: block; font-size: var(--text-xs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-floater__sub { display: block; font-size: var(--text-xs); color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-floater__when {
  grid-column: 2;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-green-ink);
  font-variant-numeric: tabular-nums;
}
.m2-floater__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  border-top: 1px solid var(--color-rule);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* Main Content Canvas (De-Carded Editorial Scrim — No Nested Outer Box) */
.m2-shell {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  background: var(--color-shell-scrim);
  border-left: 1px solid var(--color-rule);
  border-right: 1px solid var(--color-rule);
  flex: 1 0 auto;
}
.m2-shell--wide { max-width: var(--container-wide); }
.m2-shell--admin { max-width: var(--container-admin); }
.m2-shell--admin .m2-admin-layout { grid-template-columns: 208px minmax(0, 1fr); gap: var(--space-lg); }
.m2-shell--admin table { font-size: var(--text-xs); }
.m2-shell--admin .table-wrap { max-height: 72vh; overflow: auto; }
.m2-shell--admin thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-surface-solid);
  box-shadow: 0 1px 0 var(--color-rule-strong);
}
.m2-shell--admin th, .m2-shell--admin td { padding: var(--space-xs); overflow-wrap: anywhere; }
.m2-shell--admin td select.form-control,
.m2-shell--admin td input.form-control { width: auto; min-width: 0; max-width: 148px; min-height: 32px; padding: var(--space-2xs) var(--space-xs); font-size: var(--text-xs); }
.m2-shell--admin td form { flex-wrap: nowrap; align-items: center; }
.m2-shell--admin td .btn-sm { padding: var(--space-2xs) var(--space-xs); font-size: var(--text-xs); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 36px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--color-rule-strong);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 32px; padding: 0 var(--space-sm); font-size: var(--text-xs); }
.btn-gold {
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  color: var(--color-accent-ink);
  border-color: var(--color-gold-border);
  box-shadow: var(--shadow-btn-gold);
}
.btn-gold:hover {
  background: linear-gradient(180deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
  border-color: var(--color-gold);
  color: var(--color-ink-bright);
}
.btn-green {
  background: linear-gradient(180deg, var(--color-green-2) 0%, var(--color-green-3) 100%);
  color: var(--color-ink-bright);
  border-color: var(--color-green-border);
  box-shadow: var(--shadow-btn-green);
}
.btn-green:hover {
  background: var(--color-green);
  color: var(--color-ink-bright);
}
.btn-secondary {
  background: var(--color-surface-well);
  color: var(--color-ink);
  border-color: var(--color-rule-strong);
}
.btn-secondary:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-gold-border);
  color: var(--color-ink-strong);
}
.btn-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger-ink);
  border-color: var(--color-danger-border);
}

/* Top Sponsored Banner */
.m2-ad {
  position: relative;
  width: 100%;
  min-height: 76px;
  margin: 0 0 var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(168deg, var(--color-surface-elevated) 0%, var(--color-surface-well) 100%);
  border: 1px solid var(--color-gold-border);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  gap: var(--space-md);
}
.m2-ad__hint {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  font-size: var(--text-xs);
  padding: var(--space-3xs) var(--space-xs);
  border-radius: var(--radius-sm);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-rule-strong);
  color: var(--color-gold);
  font-weight: 600;
}
.m2-ad__thumb {
  width: 96px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gold-border);
  flex-shrink: 0;
}
.m2-ad--banner {
  max-width: 802px;
  min-height: 0;
  margin: 0 auto var(--space-md);
  padding: 0;
  justify-content: center;
  background: #140c08;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.m2-ad--banner:hover {
  transform: translateY(-1px);
  border-color: var(--color-gold);
}
.m2-ad__banner-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 802 / 90;
  object-fit: cover;
}
.m2-ad--banner .m2-ad__hint {
  top: 6px;
  right: 6px;
  font-size: 10px;
  padding: 2px 6px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 2;
}
.m2-ad-foot {
  max-width: 802px;
  margin: calc(-1 * var(--space-xs)) auto var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.m2-ad-foot__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-muted);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-micro) var(--ease-out);
}
.m2-ad-foot__cta:hover { color: var(--color-gold); }
.m2-ad-foot__cta--donor {
  color: var(--color-gold);
}
.m2-ad-foot__cta--donor:hover { color: var(--color-gold-hover); }

/* Homepage Hero Header */
.m2-hero {
  position: relative;
  margin: 0 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.m2-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 600;
  color: var(--color-hero-cream);
  text-shadow: var(--shadow-hero-title);
  max-width: 34ch;
}
.m2-hero__sub { margin: 0; font-size: var(--text-sm); color: var(--color-muted); }
.m2-hero__reset {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-xs);
  max-width: 100%;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-gold-border);
  box-shadow: var(--shadow-card);
}
.m2-hero__reset-clock { display: inline-block; min-width: 14ch; color: var(--color-gold); font-weight: 700; }

/* Quick Filter Bar */
.m2-quickfilters {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-well) 100%);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.m2-quickfilters__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.m2-quickfilters__list { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.m2-catbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--color-rule);
}
.m2-quickfilters__cats {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 1px 0;
}
.m2-quickfilters__cats::-webkit-scrollbar { display: none; }
.m2-quickfilters__cats .m2-qf-pill--cat { flex-shrink: 0; white-space: nowrap; }
.m2-catbar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-rule-strong);
  background: var(--color-surface);
  color: var(--color-muted);
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out);
}
.m2-catbar__nav:hover:not(:disabled) { border-color: var(--color-gold); color: var(--color-gold); }
.m2-catbar__nav:disabled { opacity: 0.3; cursor: default; }
.m2-qf-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.m2-qf-pill--cat { min-height: 30px; }
.m2-qf-pill:hover { color: var(--color-ink-strong); border-color: var(--color-gold-border); background: var(--color-gold-dim); }
.m2-qf-pill.is-active {
  background: var(--color-accent-soft-h);
  border-color: var(--color-accent-border);
  color: var(--color-ink-bright);
}
.m2-qf-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 32px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold);
  white-space: nowrap;
}
.m2-qf-tour-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 32px;
  padding: 0 var(--space-xs);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-rule-strong);
  background: transparent;
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.m2-qf-tour-btn:hover { color: var(--color-ink-strong); border-color: var(--color-gold-border); background: var(--color-gold-dim); }

/* Featured Ads */
.m2-featured-ads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.m2-featured-ad {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-gold-border);
  color: var(--color-ink);
  transition: border-color var(--dur-micro) var(--ease-out);
}
.m2-featured-ad:hover { border-color: var(--color-gold); }
.m2-featured-ad__img { width: 112px; height: 46px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--color-rule-strong); flex-shrink: 0; }
.m2-featured-ad__body { min-width: 0; display: flex; flex-direction: column; gap: var(--space-3xs); }
.m2-featured-ad__body strong { font-size: var(--text-sm); color: var(--color-ink-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Interactive Cursor Spotlight (React Bits Vanilla Pattern) */
.rb-spotlight {
  position: relative;
  overflow: hidden;
  --mx: -999px;
  --my: -999px;
}
.rb-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(280px circle at var(--mx) var(--my), var(--color-spotlight), transparent 72%);
}
.rb-spotlight > * { position: relative; z-index: 2; }

/* Server Ranking Rows */
.m2-rows { display: flex; flex-direction: column; gap: var(--space-md); }
.m2-server-row {
  position: relative;
  display: grid;
  grid-template-columns: 204px minmax(0, 468px) 164px;
  column-gap: var(--space-sm);
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  background: linear-gradient(168deg, var(--color-row-1) 0%, var(--color-row-2) 100%);
  border: 1px solid var(--color-row-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.m2-server-row:hover {
  transform: translateY(-2px);
  background: linear-gradient(168deg, var(--color-row-1h) 0%, var(--color-row-2h) 100%);
  border-color: var(--color-row-border-h);
  box-shadow: var(--shadow-card-hover);
}
.m2-server-row--rank-1 {
  border-color: var(--color-rank-1-border);
  box-shadow: var(--shadow-card), inset 0 0 28px -10px var(--color-rank-1-glow);
}
.m2-server-row--rank-1 .m2-rank-num { color: #f5d27a; }
.m2-server-row--rank-2 {
  border-color: var(--color-rank-2-border);
  box-shadow: var(--shadow-card), inset 0 0 24px -10px var(--color-rank-2-glow);
}
.m2-server-row--rank-2 .m2-rank-num { color: #dce3ec; }
.m2-server-row--rank-3 {
  border-color: var(--color-rank-3-border);
  box-shadow: var(--shadow-card), inset 0 0 24px -10px var(--color-rank-3-glow);
}
.m2-server-row--rank-3 .m2-rank-num { color: #dfa16c; }
html[data-theme="light"] .m2-server-row--rank-1 .m2-rank-num { color: #633300; }
html[data-theme="light"] .m2-server-row--rank-2 .m2-rank-num { color: #243242; }
html[data-theme="light"] .m2-server-row--rank-3 .m2-rank-num { color: #5c2708; }
.m2-server-row--featured { border-color: var(--color-gold-border); }
.m2-server-row__title {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  margin: 0 0 var(--space-xs);
  padding: 0 var(--space-xl);
  overflow: hidden;
  background: url('../img/main/f_651_36.png?v=3') center / 100% 100% no-repeat;
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.2;
}
html[data-theme="light"] .m2-server-row__title {
  background-image: url('../img/main/f_651_36-light.png?v=1');
}
.m2-server-row__title a {
  color: var(--color-ink-bright);
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.m2-server-row__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m2-server-row__title .m2-rank-num,
.m2-server-row__title .m2-rank-delta,
.m2-server-row__title .m2-verified-seal { flex-shrink: 0; }
.m2-server-row__title a:hover { color: var(--color-gold-hover); }
html[data-theme="light"] .m2-server-row__title a { color: var(--color-ink-strong); }
html[data-theme="light"] .m2-server-row__title a:hover { color: var(--color-accent-2); }
html[data-theme="light"] .m2-server-row__title .m2-rank-delta--up { background: #1c4e22; color: #fff8ed; border-color: #133818; }
html[data-theme="light"] .m2-server-row__title .m2-rank-delta--down { background: #7d1e14; color: #fff8ed; border-color: #5b140d; }
html[data-theme="light"] .m2-server-row__title .m2-rank-delta--same { color: #24140a; }
.m2-rank-num { font-family: var(--font-display); color: var(--color-gold); margin-right: var(--space-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.m2-rank-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xs) var(--space-xs);
  margin-right: var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.m2-rank-delta--up { background: var(--color-green-tint); color: var(--color-green-ink); border: 1px solid var(--color-green-border); }
.m2-rank-delta--down { background: var(--color-danger-bg); color: var(--color-danger-ink); border: 1px solid var(--color-danger-border); }
.m2-rank-delta--same { background: transparent; color: var(--color-muted); border: 0; padding: 0; }

.m2-server-row__body { display: contents; }
.m2-server-row__meta { grid-column: 1; grid-row: 2; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); min-width: 0; }
.m2-server-row__pills { display: flex; flex-wrap: wrap; gap: var(--space-2xs); align-items: center; }

.m2-server-row__verified {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-green-ink);
  background: var(--color-green-tint);
  border: 1px solid var(--color-green-border);
  border-radius: var(--radius-sm);
}
.backlink-check {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-green);
}

.m2-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2xs) var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-rule-strong);
  color: var(--color-muted);
  background: var(--color-gold-dim);
}
.m2-chip[data-type="oldschool"] { color: var(--color-chip-old-ink); background: var(--color-chip-old-bg); }
.m2-chip[data-type="middleschool"] { color: var(--color-chip-mid-ink); background: var(--color-chip-mid-bg); }
.m2-chip[data-type="newschool"] { color: var(--color-chip-new-ink); background: var(--color-chip-new-bg); }
.m2-chip[data-type="official-like"] { color: var(--color-chip-off-ink); background: var(--color-chip-off-bg); }
.m2-chip[data-type="pvp"] { color: var(--color-chip-pvp-ink); background: var(--color-chip-pvp-bg); }

.m2-meta-list { display: flex; flex-direction: column; gap: var(--space-2xs); font-size: var(--text-xs); color: var(--color-muted); width: 100%; }
.m2-meta-list .row { display: flex; align-items: flex-start; gap: var(--space-xs); line-height: 1.35; }
.m2-meta-list .row > svg { margin-top: 2px; flex-shrink: 0; color: var(--color-gold); opacity: 0.85; }
.m2-meta-list .lbl { color: var(--color-muted); white-space: nowrap; flex-shrink: 0; }
.m2-meta-list .val { color: var(--color-ink); font-weight: 600; min-width: 0; }

/* 468x190 Center Banner */
.m2-server-row__banner {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  display: block;
  width: 100%;
  max-width: 468px;
  aspect-ratio: 468 / 190;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-gold-border);
  box-shadow: var(--shadow-media);
  background: var(--color-media-bg);
}
.m2-server-row__banner img, .m2-server-row__banner video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Donor Rank Badges & Web Motion Stack Card/Banner Effects */
.m2-donor-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  line-height: 1.25;
}
.m2-donor-badge__ico { flex-shrink: 0; }
.m2-donor-badge--hero {
  background: linear-gradient(135deg, #10324a 0%, #3a230b 100%);
  color: #ffe9a8;
  border-color: rgba(118, 224, 255, 0.56);
}
.m2-donor-badge--noble {
  background: rgba(88, 38, 128, 0.34);
  color: #eed6ff;
  border-color: rgba(196, 138, 255, 0.54);
}
.m2-donor-badge--good {
  background: rgba(28, 86, 148, 0.34);
  color: #cfe9ff;
  border-color: rgba(102, 182, 255, 0.52);
}
.m2-donor-badge--friendly {
  background: rgba(34, 108, 62, 0.34);
  color: #ccf7d5;
  border-color: rgba(94, 212, 132, 0.52);
}
.m2-donor-badge--neutral {
  background: rgba(132, 92, 46, 0.28);
  color: #f6dfb8;
  border-color: rgba(217, 167, 90, 0.45);
}
html[data-theme="light"] .m2-donor-badge--hero { background: #14354d; color: #fff6d6; border-color: #21608a; }
html[data-theme="light"] .m2-donor-badge--noble { background: #4c236e; color: #fbf4ff; border-color: #6b3596; }
html[data-theme="light"] .m2-donor-badge--good { background: #1c4e80; color: #f2f8ff; border-color: #2b6dad; }
html[data-theme="light"] .m2-donor-badge--friendly { background: #1c5730; color: #f1fff5; border-color: #2c7a47; }
html[data-theme="light"] .m2-donor-badge--neutral { background: #5a3c1c; color: #fff8ed; border-color: #7c562c; }

.m2-server-row--donor {
  position: relative;
}
.m2-donor--hero {
  border-color: rgba(118, 224, 255, 0.54);
  background: linear-gradient(164deg, rgba(22, 34, 42, 0.94) 0%, rgba(36, 22, 14, 0.96) 100%);
}
.m2-donor--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--m2-star-angle, 0deg), rgba(118, 224, 255, 0.72), rgba(245, 210, 122, 0.85), rgba(118, 224, 255, 0.2), rgba(245, 210, 122, 0.85), rgba(118, 224, 255, 0.72));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: m2-donor-ring 7s linear infinite;
}
.m2-donor--noble {
  border-color: rgba(196, 138, 255, 0.5);
  background: linear-gradient(164deg, rgba(42, 24, 54, 0.94) 0%, rgba(24, 14, 12, 0.96) 100%);
}
.m2-donor--good { border-color: rgba(102, 182, 255, 0.44); }
.m2-donor--friendly { border-color: rgba(94, 212, 132, 0.42); }
.m2-donor--neutral { border-color: rgba(217, 167, 90, 0.44); }

html[data-theme="light"] .m2-donor--hero {
  background: linear-gradient(164deg, rgba(228, 238, 244, 0.96) 0%, rgba(242, 224, 188, 0.98) 100%);
  border-color: rgba(32, 98, 138, 0.62);
}
html[data-theme="light"] .m2-donor--noble {
  background: linear-gradient(164deg, rgba(240, 228, 246, 0.96) 0%, rgba(238, 220, 190, 0.98) 100%);
  border-color: rgba(107, 53, 150, 0.55);
}

.m2-donor--hero.rb-spotlight::after {
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(118, 224, 255, 0.16), rgba(245, 210, 122, 0.08) 45%, transparent 72%);
}
.m2-donor--noble.rb-spotlight::after {
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(196, 138, 255, 0.14), transparent 72%);
}
.m2-donor--good.rb-spotlight::after {
  background: radial-gradient(250px circle at var(--mx) var(--my), rgba(102, 182, 255, 0.13), transparent 72%);
}
.m2-donor--friendly.rb-spotlight::after {
  background: radial-gradient(250px circle at var(--mx) var(--my), rgba(94, 212, 132, 0.12), transparent 72%);
}

/* Specular Light Sweep on Donor Card Banner (Resim1 area) */
.m2-donor-banner {
  border-width: 1.5px;
}
.m2-donor-banner--hero { border-color: rgba(118, 224, 255, 0.72); }
.m2-donor-banner--noble { border-color: rgba(196, 138, 255, 0.66); }
.m2-donor-banner--good { border-color: rgba(102, 182, 255, 0.6); }
.m2-donor-banner--friendly { border-color: rgba(94, 212, 132, 0.58); }
.m2-donor-banner--neutral { border-color: rgba(243, 203, 120, 0.6); }
.m2-donor-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(112deg, transparent 30%, rgba(255, 248, 232, 0.22) 50%, transparent 70%);
  transform: translate3d(-120%, 0, 0);
  animation: m2-donor-sweep 5.5s ease-in-out infinite;
}
.m2-donor-banner--hero::after {
  background: linear-gradient(112deg, transparent 26%, rgba(162, 240, 255, 0.28) 48%, rgba(255, 228, 152, 0.22) 55%, transparent 74%);
  animation-duration: 4.2s;
}
@property --m2-star-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes m2-donor-ring {
  to { --m2-star-angle: 360deg; }
}
@keyframes m2-donor-sweep {
  0%, 35% { transform: translate3d(-120%, 0, 0); }
  68%, 100% { transform: translate3d(120%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .m2-donor--hero::before,
  .m2-donor-banner::after,
  .m2-vote-wrap::before,
  .m2-vote-wrap::after,
  .m2-vote-wrap .m2-vote-btn::after { animation: none; }
}
.m2-fallback-banner {
  width: 100%;
  height: 100%;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--color-paper-3) 0%, var(--color-paper) 60%, var(--color-paper-3) 100%);
  position: relative;
}
.m2-fallback-banner__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-gold);
  font-weight: 700;
}
.m2-fallback-banner__name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--color-ink-bright); line-height: 1.15; }
.m2-fallback-banner__tagline { font-size: var(--text-xs); color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-fallback-banner__foot { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.m2-fallback-banner__tag { font-size: var(--text-xs); padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-ink); border: 1px solid var(--color-rule); }

/* Vote Action Button */
.m2-server-row__vote { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-xs); }
.m2-vote-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-width: 148px;
  min-height: 48px;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid var(--color-green-border);
  background: linear-gradient(180deg, var(--color-green-2) 0%, var(--color-green-3) 100%);
  color: var(--color-ink-bright);
  box-shadow: var(--shadow-btn-green);
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.m2-vote-btn:hover {
  background: var(--color-green-2);
  border-color: var(--color-green);
  color: var(--color-ink-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-green), var(--shadow-card);
}
.m2-vote-btn .num { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.m2-vote-btn__sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
  width: 100%;
}

/* Donor Talisman Aura & Rising Motes around Oy Ver Button */
.m2-vote-wrap {
  position: relative;
  display: inline-flex;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: visible;
  isolation: isolate;
  --tali-c1: rgba(243, 203, 120, 0.55);
  --tali-c2: rgba(255, 227, 166, 0.35);
  --tali-rim: rgba(243, 203, 120, 0.42);
}
.m2-vote-wrap--block {
  display: flex;
  width: 100%;
  margin-bottom: var(--space-sm);
}
.m2-vote-wrap--block .m2-vote-btn,
.m2-actioncard .m2-vote-wrap .m2-vote-btn {
  width: 100%;
  margin-bottom: 0;
}
.m2-vote-wrap::before {
  content: "";
  position: absolute;
  inset: -4px -6px;
  border-radius: calc(var(--radius-sm) + 6px);
  background: radial-gradient(85% 90% at 50% 50%, var(--tali-c1), var(--tali-c2) 55%, transparent 78%);
  filter: blur(8px);
  opacity: 0.72;
  z-index: 0;
  pointer-events: none;
  animation: m2-tali-breathe 3.6s ease-in-out infinite alternate;
}
.m2-vote-wrap::after {
  content: "";
  position: absolute;
  left: 14%;
  bottom: 18%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--tali-c2);
  box-shadow:
    18px 2px 0 0 var(--tali-c1),
    54px -4px 0 0.5px var(--tali-c2),
    92px 0 0 0 var(--tali-c1),
    118px -2px 0 0.5px var(--tali-c2);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: m2-tali-motes 3.8s ease-out infinite;
}
.m2-vote-wrap > .m2-vote-btn {
  position: relative;
  z-index: 1;
  border-color: var(--tali-rim);
  box-shadow: 0 0 0 1px var(--tali-rim), 0 6px 18px -6px var(--tali-c1);
}
.m2-vote-wrap > .m2-vote-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 250, 235, 0.22) 50%, transparent 70%);
  transform: translate3d(-120%, 0, 0);
  animation: m2-donor-sweep 5.2s ease-in-out infinite;
}
@keyframes m2-tali-breathe {
  0%   { opacity: 0.52; transform: scale(0.97); }
  100% { opacity: 0.92; transform: scale(1.04); }
}
@keyframes m2-tali-motes {
  0%   { opacity: 0; transform: translate3d(0, 4px, 0) scale(0.7); }
  25%  { opacity: 0.9; }
  80%  { opacity: 0.45; }
  100% { opacity: 0; transform: translate3d(0, -22px, 0) scale(1.05); }
}
.m2-vote-wrap--hero {
  --tali-c1: rgba(118, 224, 255, 0.62);
  --tali-c2: rgba(245, 210, 122, 0.65);
  --tali-rim: rgba(118, 224, 255, 0.52);
}
.m2-vote-wrap--hero::before { animation-duration: 2.8s; }
.m2-vote-wrap--noble {
  --tali-c1: rgba(201, 140, 255, 0.58);
  --tali-c2: rgba(245, 210, 122, 0.52);
  --tali-rim: rgba(213, 158, 255, 0.48);
}
.m2-vote-wrap--noble::before { animation-duration: 3.2s; }
.m2-vote-wrap--good {
  --tali-c1: rgba(94, 184, 255, 0.55);
  --tali-c2: rgba(204, 233, 255, 0.45);
  --tali-rim: rgba(116, 196, 255, 0.45);
}
.m2-vote-wrap--friendly {
  --tali-c1: rgba(76, 217, 123, 0.52);
  --tali-c2: rgba(245, 210, 122, 0.4);
  --tali-rim: rgba(94, 212, 132, 0.42);
}
.m2-vote-wrap--neutral {
  --tali-c1: rgba(217, 167, 90, 0.46);
  --tali-c2: rgba(255, 227, 166, 0.36);
  --tali-rim: rgba(217, 167, 90, 0.38);
}
.m2-vote-btn--preview {
  min-width: 96px;
  min-height: 34px;
  padding: 4px 12px;
  pointer-events: none;
  font-size: var(--text-sm);
}
.m2-row-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2xs); font-size: var(--text-xs); max-width: 100%; }
.m2-row-links a { padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-sm); background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); color: var(--color-muted); white-space: nowrap; }
.m2-row-links a:hover { color: var(--color-ink-strong); border-color: var(--color-accent); }

/* Editorial Forged Telemetry Strip */
.m2-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: var(--space-xl) 0 var(--space-lg);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-well) 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.m2-stats__tile {
  padding: var(--space-md) var(--space-lg);
  border-right: 1px solid var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.m2-stats__tile:last-child { border-right: 0; }
.m2-stats__v { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.m2-stats__l { font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }

/* Comparison Table */
.m2-compare { margin-top: var(--space-xl); }
.m2-compare h2 { font-size: var(--text-section); margin: 0 0 var(--space-md); }
.m2-compare__table {
  background: var(--color-surface);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.m2-compare__hrow, .m2-compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-rule);
  font-size: var(--text-sm);
}
.m2-compare__hrow {
  background: var(--color-surface-well);
  font-weight: 700;
  color: var(--color-ink-strong);
  font-size: var(--text-sm);
}
.m2-compare__row:last-child { border-bottom: 0; }
.m2-cell { width: 28px; height: 28px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; margin: 0 auto; }
.m2-cell--good { background: var(--color-green-tint); color: var(--color-green-ink); border: 1px solid var(--color-green-border); }
.m2-cell--bad { background: var(--color-danger-bg); color: var(--color-danger-ink); border: 1px solid var(--color-danger-border); }

/* Owner Promo & SEO Ledger */
.m2-captcha-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-md);
}
.m2-captcha-promo__main { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.m2-captcha-promo__icon { color: var(--color-gold); flex-shrink: 0; }
.m2-seo {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  border-top: 1px solid var(--color-rule-strong);
  background: var(--color-surface-well);
  border-radius: var(--radius-md);
}
.m2-article-shell { max-width: 820px; margin: 0 auto; padding: var(--space-xs) 0; }
.m2-seo p, .m2-detail-desc p, .m2-article-body p, .m2-article-body li { max-width: 58ch; text-wrap: pretty; }
.m2-article-body { color: var(--color-ink); line-height: 1.72; font-size: 0.95rem; }
.m2-article-body h2 { margin: var(--space-lg) 0 var(--space-xs); font-size: var(--text-xl); color: var(--color-ink-strong); border-bottom: 1px solid var(--color-rule); padding-bottom: var(--space-2xs); }
.m2-article-body h3 { margin: var(--space-md) 0 var(--space-xs); font-size: var(--text-md); color: var(--color-gold); }
.m2-article-body ul, .m2-article-body ol { margin: 0 0 var(--space-sm); padding-left: 1.35rem; display: flex; flex-direction: column; gap: 6px; }
.m2-article-body pre { margin: var(--space-xs) 0 var(--space-md); padding: var(--space-sm); border-radius: var(--radius-md); background: var(--color-surface-code); border: 1px solid var(--color-rule-strong); overflow-x: auto; font-size: 0.84rem; color: var(--color-code-green); }
.m2-article-body a { color: var(--color-gold); text-decoration: underline; text-underline-offset: 3px; }
.m2-article-fig {
  margin: var(--space-md) 0 var(--space-lg);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--color-surface-well);
  border: 1px solid var(--color-rule-strong);
  box-shadow: var(--shadow-media);
}
.m2-article-fig--compact {
  max-width: 380px;
}
.m2-article-fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-rule);
}
.m2-article-fig figcaption {
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--color-muted);
}
.m2-hl--gold { color: var(--color-gold); font-weight: 700; }
.m2-hl--green { color: var(--color-green-ink); font-weight: 700; }
.m2-hl--red { color: var(--color-danger-ink); font-weight: 700; }
.m2-callout {
  margin: var(--space-sm) 0 var(--space-md);
  padding: 12px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-rule-strong);
  background: var(--color-surface-well);
}
.m2-callout--warn { border-color: var(--color-gold-border); background: var(--color-gold-dim); }
.m2-callout--tip { border-color: var(--color-green-border); background: var(--color-green-tint); }
.m2-callout--info { border-color: var(--color-discord-border); background: var(--color-discord-bg); }
.m2-callout__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--color-ink-strong);
}
.m2-callout--warn .m2-callout__title { color: var(--color-gold); }
.m2-callout--tip .m2-callout__title { color: var(--color-green-ink); }
.m2-callout--info .m2-callout__title { color: var(--color-discord-ink); }
.m2-callout p { margin: 0; font-size: 0.88rem; line-height: 1.6; }
.m2-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-sm) 0 var(--space-md);
  font-size: 0.86rem;
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-well);
}
.m2-article-body th, .m2-article-body td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-rule);
}
.m2-article-body th {
  font-weight: 700;
  color: var(--color-ink-strong);
  background: var(--color-surface-elevated);
}
.m2-article-body tr:last-child td { border-bottom: 0; }
.m2-code-embed {
  margin: var(--space-xs) 0 var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-rule-strong);
  background: var(--color-surface-code);
  box-shadow: var(--shadow-media);
}
.m2-code-embed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  padding: 7px 12px;
  background: rgba(255, 224, 178, 0.06);
  border-bottom: 1px solid rgba(243, 203, 120, 0.16);
}
.m2-code-embed__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.76rem;
  color: #e8d8be;
}
.m2-code-embed__lang {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(243, 203, 120, 0.16);
  border: 1px solid rgba(243, 203, 120, 0.36);
  color: #f3cb78;
}
.m2-code-embed__file {
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m2-code-embed__copy {
  padding: 4px 10px;
  min-height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(243, 203, 120, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #f4e6cf;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.m2-code-embed__copy:hover { border-color: #f3cb78; color: #f3cb78; }
.m2-code-embed__copy.is-copied { border-color: rgba(86, 184, 104, 0.7); color: #a8f0b0; background: rgba(86, 184, 104, 0.14); }
.m2-code-embed pre {
  margin: 0;
  padding: 13px 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  line-height: 1.58;
  color: #f2e8d5;
  overflow-x: auto;
  tab-size: 4;
}
.tok-mac { color: #ddb4ff; font-weight: 600; }
.tok-kw { color: #f48e7e; font-weight: 600; }
.tok-type { color: #f3cb78; }
.tok-fn { color: #ffd992; }
.tok-str { color: #8be098; }
.tok-num { color: #90c4ff; }
.tok-cmt { color: rgba(236, 214, 182, 0.54); font-style: italic; }

/* Highlights Lists */
.m2-home-panels { margin-top: var(--space-lg); }
.m2-home-panels h2 { font-family: var(--font-ui); font-weight: 600; }
.m2-home-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-xs); font-size: var(--text-sm); }
.m2-home-list__item { display: flex; justify-content: space-between; align-items: center; gap: var(--space-xs); border-bottom: 1px solid var(--color-rule); padding-bottom: var(--space-xs); }
.m2-home-list__item:last-child { border-bottom: 0; padding-bottom: 0; }
.m2-home-list__link { color: var(--color-ink-strong); font-weight: 600; }

/* Server Detail Page */
.m2-detail-title { max-width: 680px; margin: 0 auto var(--space-md); text-align: center; }
.m2-detail-title h1 { font-size: var(--text-2xl); }
.m2-detail-title p { margin: var(--space-xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); }
.m2-verified-seal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: var(--space-xs);
  cursor: help;
}
.m2-verified-seal::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-green-border);
  color: var(--color-green-ink);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: var(--z-tooltip);
}
.m2-verified-seal:hover::after,
.m2-verified-seal:focus-visible::after { opacity: 1; }
.m2-verified-seal--sm { margin-left: 6px; }
.m2-verified-seal--sm::after { display: none; }
.m2-detail-banner { max-width: 468px; margin: 0 auto var(--space-lg); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-gold-border); aspect-ratio: 468 / 190; background: var(--color-media-bg); box-shadow: var(--shadow-media); }
.m2-detail-banner img, .m2-detail-banner video { width: 100%; height: 100%; object-fit: contain; display: block; }
.m2-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: var(--space-lg); align-items: start; }
.m2-detail-statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--color-rule-strong); border: 1px solid var(--color-gold-border); border-radius: var(--radius-card); margin-bottom: var(--space-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.m2-detail-statgrid__cell { padding: var(--space-sm); background: var(--color-surface); }
.m2-detail-statgrid__lbl { font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); margin-bottom: var(--space-2xs); }
.m2-detail-statgrid__v { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; }
.m2-detail-statgrid__sub { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-2xs); line-height: 1.35; }
.m2-detail-statgrid__langs { grid-column: 1 / -1; padding: var(--space-sm); background: var(--color-surface-well); }
.m2-detail-lang-list { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xs); }
.m2-detail-lang-pill {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-sm);
  background: var(--color-surface); border: 1px solid var(--color-rule-strong);
  font-size: var(--text-xs); font-weight: 600; color: var(--color-ink);
}
.m2-features-block { margin-top: var(--space-md); padding: var(--space-lg); background: linear-gradient(170deg, var(--color-surface) 0%, var(--color-surface-well) 100%); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.m2-features-block h2 { margin: 0 0 var(--space-sm); font-size: var(--text-lg); }
.m2-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs) var(--space-md); }
.m2-feature-item { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink); }
.m2-feature-check {
  width: 20px; height: 20px; border-radius: var(--radius-sm);
  background: var(--color-green-tint);
  border: 1px solid var(--color-green-border);
  color: var(--color-green-ink);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.m2-actioncard { width: 100%; background: linear-gradient(168deg, var(--color-row-1) 0%, var(--color-row-2) 100%); border: 1px solid var(--color-gold-border); border-radius: var(--radius-card); padding: var(--space-lg); position: sticky; top: 76px; box-shadow: var(--shadow-card); }
.m2-rank-medal { display: flex; align-items: center; gap: var(--space-sm); padding: 0 0 var(--space-md); margin-bottom: var(--space-md); border-bottom: 1px solid var(--color-rule-strong); }
.m2-actioncard .m2-vote-btn { width: 100%; margin-bottom: var(--space-sm); }
.website-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-xs); background: var(--color-surface-elevated); border: 1px solid var(--color-rule-strong); color: var(--color-ink); }
.website-btn--primary { border-color: var(--color-gold-border); color: var(--color-gold-hover); font-weight: 700; }
html[data-theme="light"] .website-btn--primary { color: var(--color-accent-2); border-color: var(--color-gold-border); }
.website-btn:hover { border-color: var(--color-accent); color: var(--color-gold); }
.discord-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-xs); background: var(--color-discord-bg); border: 1px solid var(--color-discord-border); color: var(--color-discord-ink); }

.m2-trailer-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-rule-strong); background: var(--color-media-bg); }
.m2-trailer-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.m2-rank-context__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); border-top: 1px solid var(--color-rule); padding-top: var(--space-sm); }
.m2-rank-context__item { padding: var(--space-xs) var(--space-xs) var(--space-2xs); display: flex; flex-direction: column; gap: var(--space-2xs); font-size: var(--text-xs); }
.m2-rank-context__item strong { font-size: var(--text-md); color: var(--color-ink-strong); }
.presentation-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); width: 100%; min-height: 40px; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-xs); background: var(--color-gold-dim); border: 1px solid var(--color-gold-border); color: var(--color-ink-strong); }
.presentation-btn:hover { border-color: var(--color-gold); color: var(--color-ink-bright); }
.m2-share-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.m2-share-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 var(--space-xs); border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: 700; cursor: pointer; background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); color: var(--color-muted); }
.m2-share-btn:hover { border-color: var(--color-gold); color: var(--color-ink-strong); }

/* New Servers */
.m2-newgrid { display: flex; flex-direction: column; gap: var(--space-sm); }
.m2-newcard { display: grid; grid-template-columns: 468px minmax(0, 1fr); border-radius: var(--radius-card); overflow: hidden; background: linear-gradient(168deg, var(--color-row-1) 0%, var(--color-row-2) 100%); border: 1px solid var(--color-row-border); box-shadow: var(--shadow-card); transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.m2-newcard:hover { transform: translateY(-2px); border-color: var(--color-row-border-h); box-shadow: var(--shadow-card-hover); }
.m2-newcard__banner { width: 468px; height: 190px; overflow: hidden; background: var(--color-media-bg); color: var(--color-ink-bright); }
.m2-newcard__banner img, .m2-newcard__banner video { width: 100%; height: 100%; object-fit: contain; display: block; }
.m2-newcard__body { padding: var(--space-md) var(--space-lg); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.m2-newcard__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); margin-bottom: var(--space-xs); flex-wrap: wrap; }

/* Standard Panels & Grids */
.panel { background: linear-gradient(170deg, var(--color-surface) 0%, var(--color-surface-well) 100%); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-card); padding: var(--space-md); box-shadow: var(--shadow-card); }
.m2-tool-card { transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.m2-tool-card:hover { transform: translateY(-2px); border-color: var(--color-gold-border); box-shadow: var(--shadow-card-hover); }
.panel-subtle { background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); padding: var(--space-md); }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin: 0 0 var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--color-rule-strong); flex-wrap: wrap; }
.section-header h1 { font-size: var(--text-display); font-weight: 600; color: var(--color-hero-cream); text-shadow: var(--shadow-hero-title); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.m2-home-panels { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: var(--space-lg); align-items: start; }
.layout-finder { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.m2-admin-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.m2-admin-nav {
  background: linear-gradient(170deg, var(--color-surface) 0%, var(--color-surface-well) 100%);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-card);
  padding: var(--space-sm);
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  box-shadow: var(--shadow-card);
}
.m2-admin-nav__group { font-size: var(--text-xs); color: var(--color-muted-2); margin: var(--space-sm) var(--space-xs) var(--space-2xs); font-weight: 700; }
.m2-admin-nav__group:first-child { margin-top: var(--space-2xs); }
.m2-admin-cat { border-bottom: 1px solid var(--color-rule); padding: var(--space-2xs) 0; }
.m2-admin-cat:last-child { border-bottom: 0; padding-bottom: 0; }
.m2-admin-cat:first-child { padding-top: 0; }
.m2-admin-cat__head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.m2-admin-cat__head::-webkit-details-marker { display: none; }
.m2-admin-cat__head:hover { background: var(--color-gold-dim); color: var(--color-ink); }
.m2-admin-cat[open] > .m2-admin-cat__head { color: var(--color-gold); }
.m2-admin-cat__head::after {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--dur-micro) var(--ease-out);
  margin-left: auto;
}
.m2-admin-cat[open] > .m2-admin-cat__head::after { transform: rotate(45deg); }
.m2-admin-cat__badge { padding: 1px 6px; font-size: 10px; }
.m2-admin-cat__links { padding: var(--space-2xs) 0 var(--space-xs); display: flex; flex-direction: column; gap: 2px; }
.m2-admin-nav a { display: flex; justify-content: space-between; align-items: center; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-3xs); }
.m2-admin-nav a:hover { background: var(--color-gold-dim); color: var(--color-ink); }
.m2-admin-nav a.active { background: var(--color-accent-soft-h); color: var(--color-ink-bright); font-weight: 600; border: 1px solid var(--color-accent-border); }

.stat-tile { background: linear-gradient(170deg, var(--color-surface) 0%, var(--color-surface-well) 100%); border: 1px solid var(--color-gold-border); border-radius: var(--radius-card); padding: var(--space-md); box-shadow: var(--shadow-card); }
.stat-tile__label { font-size: var(--text-xs); color: var(--color-muted); }
.stat-tile__value { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; margin-top: var(--space-2xs); font-variant-numeric: tabular-nums; }

.badge { display: inline-flex; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-sm); font-size: var(--text-xs); font-weight: 600; }
.badge-gold { background: var(--color-gold-dim); color: var(--color-gold); border: 1px solid var(--color-gold-border); }
.badge-green { background: var(--color-green-tint); color: var(--color-green-ink); border: 1px solid var(--color-green-border); }
.badge-neutral { background: var(--color-surface-well); color: var(--color-muted); border: 1px solid var(--color-rule-strong); }
.badge-danger { background: var(--color-danger-bg); color: var(--color-danger-ink); border: 1px solid var(--color-danger-border); }

/* Forms, Alerts & Tables */
.form-group { margin-bottom: var(--space-sm); }
.form-label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2xs); }
.form-control, select.form-control, textarea.form-control {
  width: 100%;
  background: var(--color-surface-input);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  color: var(--color-ink);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-sm);
  min-height: 40px;
}
textarea.form-control { min-height: 104px; resize: vertical; }
.form-control:focus { outline: 2px solid var(--color-focus); outline-offset: 0; }
.form-control:user-invalid { border-color: var(--color-error); }
.form-control:user-valid { border-color: var(--color-green-border); }
.form-hint { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-2xs); }

.alert { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); margin-bottom: var(--space-md); font-size: var(--text-sm); border: 1px solid var(--color-rule-strong); }
.alert-success { background: var(--color-green-tint); border-color: var(--color-green-border); color: var(--color-green-ink); }
.alert-error { background: var(--color-danger-bg); border-color: var(--color-danger-border); color: var(--color-danger-ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th, td { padding: var(--space-sm); text-align: left; border-bottom: 1px solid var(--color-rule); }
th { background: var(--color-surface-well); color: var(--color-ink-strong); font-weight: 600; font-size: var(--text-xs); }
tr:last-child td { border-bottom: 0; }

/* Pagination */
.pagination { display: flex; gap: var(--space-xs); justify-content: center; margin-top: var(--space-lg); padding: var(--space-xs) 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 var(--space-sm);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600; font-family: var(--font-display);
  background: var(--color-surface); border: 1px solid var(--color-rule-strong); color: var(--color-muted);
}
.pagination .active {
  background: var(--color-accent-soft-h);
  color: var(--color-ink-bright);
  border-color: var(--color-accent-border);
}

/* Footer */
.m2-foot {
  border-top: 1px solid var(--color-rule-strong);
  padding: var(--space-xl) var(--space-md) 0;
  background: var(--color-nav-bg);
  margin-top: var(--space-xl);
}
.m2-foot__wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 3fr;
  gap: var(--space-lg);
}
.m2-foot__logo { display: flex; align-items: center; gap: var(--space-sm); }
.m2-foot__discord {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-md);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-discord-ink);
  background: var(--color-discord-bg);
  border: 1px solid var(--color-discord-border);
  border-radius: var(--radius-sm);
}
.m2-foot__discord:hover { color: var(--color-ink-bright); border-color: var(--color-discord-ink); }
.m2-foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); }
.m2-foot__col h3 { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-strong); margin: 0 0 var(--space-xs); }
.m2-foot__col ul { list-style: none; padding: 0; margin: 0; }
.m2-foot__col li { margin-bottom: var(--space-xs); }
.m2-foot__col a { font-size: var(--text-sm); color: var(--color-muted); }
.m2-foot__col a:hover { color: var(--color-gold); }
.m2-foot__base {
  max-width: var(--container);
  margin: var(--space-lg) auto 0;
  padding: var(--space-md) 0 var(--space-lg);
  border-top: 1px solid var(--color-rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-muted-2);
}

/* Auth Card & Edit Studio */
.m2-auth-card {
  max-width: 560px;
  margin: var(--space-lg) auto;
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-lg);
}
.m2-auth-card__icon {
  width: 48px; height: 48px; margin: 0 auto var(--space-md);
  color: var(--color-gold);
  display: flex; align-items: center; justify-content: center;
}
.m2-edit-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: var(--space-md); align-items: start; }
.m2-side-tabs {
  position: sticky; top: 76px;
  background: var(--color-surface);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-md); padding: var(--space-xs);
  display: flex; flex-direction: column; gap: var(--space-2xs);
}
.m2-side-tab {
  display: flex; align-items: center; gap: var(--space-sm); width: 100%; text-align: left; padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--color-muted);
  cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.m2-side-tab:hover { background: var(--color-gold-dim); color: var(--color-ink); }
.m2-side-tab.is-active {
  background: var(--color-accent-soft-h);
  border-color: var(--color-accent-border);
  color: var(--color-ink-strong);
}
.m2-side-tab__num {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: var(--radius-pill);
  background: var(--color-surface-well); border: 1px solid var(--color-rule-strong);
  display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: 700; color: var(--color-muted);
}
.m2-side-tab.is-active .m2-side-tab__num { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-ink-bright); }
.m2-side-tab__txt { min-width: 0; }
.m2-side-tab__title { display: block; font-size: var(--text-sm); font-weight: 600; line-height: 1.25; }
.m2-side-tab__sub { display: block; font-size: var(--text-xs); color: var(--color-muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: var(--space-3xs); }

.m2-edit-pane { background: var(--color-surface); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); padding: var(--space-lg); min-width: 0; }
.m2-tab-panel { display: none; }
.m2-tab-panel.is-active { display: block; }
.m2-edit-group { padding-bottom: var(--space-md); margin-bottom: var(--space-md); border-bottom: 1px solid var(--color-rule); }
.m2-edit-group:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }

.m2-lang-box {
  background: var(--color-surface-well);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
}
.m2-lang-box__head {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  padding-bottom: var(--space-sm); margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-rule);
  font-size: var(--text-xs); line-height: 1.45; color: var(--color-muted);
}
.m2-lang-box__tag {
  display: inline-flex; align-items: center; gap: var(--space-2xs); flex-shrink: 0;
  font-size: var(--text-xs); font-weight: 700; color: var(--color-ink);
}
.m2-lang-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.m2-lang-chip {
  padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); background: var(--color-surface); border: 1px solid var(--color-rule-strong);
  color: var(--color-muted); font-size: var(--text-xs); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-xs);
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.m2-lang-chip:hover { color: var(--color-ink); border-color: var(--color-accent-border); }
.m2-lang-chip.is-active { background: var(--color-accent-soft-h); border-color: var(--color-accent); color: var(--color-ink-bright); }
.m2-lang-chip.has-val::after { content: ""; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--color-green); }

.m2-input-icon, .m2-input-icon-wrap { position: relative; display: flex; align-items: center; }
.m2-input-icon > svg, .m2-input-icon-wrap svg { position: absolute; left: var(--space-sm); color: var(--color-muted-2); pointer-events: none; }
.m2-input-icon > .form-control, .m2-input-icon-wrap .form-control { padding-left: 36px; }

.m2-tabs-row--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m2-tabs-row--3 .m2-tab-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); }
.m2-tabs-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); padding: var(--space-2xs); margin-bottom: var(--space-md); }
.m2-tabs-row--equal { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.m2-tab-btn { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--color-muted); font-size: var(--text-sm); font-weight: 600; cursor: pointer; text-align: center; transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.m2-tab-btn:hover { color: var(--color-ink); }
.m2-tab-btn.is-active { background: var(--color-accent-soft-h); border-color: var(--color-accent-border); color: var(--color-ink-bright); }

.m2-api-lbl { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); margin-bottom: var(--space-xs); }
.m2-api-arg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xs); }
.m2-api-arg-list li { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--color-surface-well); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); font-size: var(--text-sm); }
.m2-api-arg-list code { color: var(--color-ink-strong); font-weight: 700; background: none; padding: 0; font-family: var(--font-mono); }
.m2-api-test-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; margin-bottom: var(--space-sm); }

/* Navbar Tools Dropdown & Tool Pages */
.m2-nav__dd { position: relative; display: inline-flex; align-items: center; }
.m2-nav__dd-btn { display: inline-flex; align-items: center; gap: var(--space-2xs); background: transparent; border: 1px solid transparent; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; cursor: pointer; }
.m2-nav__dd-btn:hover, .m2-nav__dd-btn.is-active, .m2-nav__dd.is-open .m2-nav__dd-btn { color: var(--color-ink-bright); background: var(--color-gold-dim); }
.m2-tools-menu {
  position: absolute; top: calc(100% + 8px); left: 0; width: 272px; z-index: var(--z-dropdown);
  display: none; flex-direction: column; gap: var(--space-2xs); padding: var(--space-xs);
  background: var(--color-surface-solid); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md);
}
.m2-nav__dd:hover .m2-tools-menu, .m2-nav__dd:focus-within .m2-tools-menu, .m2-nav__dd.is-open .m2-tools-menu { display: flex; }
.m2-tools-menu__head { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-xs) var(--space-sm); border-bottom: 1px solid var(--color-rule); font-size: var(--text-xs); font-weight: 700; color: var(--color-ink-strong); }
.m2-tools-menu__ico { width: 32px; height: 32px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--color-gold-dim); border: 1px solid var(--color-gold-border); color: var(--color-gold); }
.m2-tools-menu__item { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs); border-radius: var(--radius-sm); text-decoration: none; color: var(--color-ink); transition: background-color var(--dur-micro) var(--ease-out); }
.m2-tools-menu__item:hover { background: var(--color-gold-dim); }
.m2-tools-menu__item strong { display: block; font-size: var(--text-sm); color: var(--color-ink-strong); line-height: 1.25; }
.m2-tools-menu__item small { display: block; font-size: var(--text-xs); color: var(--color-muted); line-height: 1.25; }
.m2-tools-menu__foot { padding: var(--space-xs) var(--space-sm) var(--space-2xs); border-top: 1px solid var(--color-rule); text-align: right; font-size: var(--text-xs); font-weight: 600; color: var(--color-gold); }

.m2-tool-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-md); }
.m2-tool-title-row { display: flex; align-items: center; gap: var(--space-sm); }
.m2-tool-title-row h1 { font-size: var(--text-xl); }
.m2-tool-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-xs); flex-wrap: wrap; padding: var(--space-sm); background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); margin-bottom: var(--space-md); }
.m2-tool-bar__group { display: flex; gap: var(--space-xs); flex-wrap: wrap; align-items: center; }

.m2-modal-backdrop { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--color-shadow-deep); display: flex; align-items: center; justify-content: center; padding: var(--space-md); }
.m2-modal-backdrop[hidden] { display: none; }
.m2-modal-card { width: min(640px, 100%); max-height: 88vh; overflow-y: auto; background: var(--color-surface-solid); color: var(--color-ink); border: 1px solid var(--color-gold-border); border-radius: var(--radius-lg); padding: var(--space-lg); }

/* Mini-Games */
.m2-ctk-deck { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); flex-wrap: wrap; padding: var(--space-sm) var(--space-md); background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); margin-bottom: var(--space-md); }
.m2-ctk-pill { min-width: 68px; height: 36px; padding: 0 var(--space-sm); border-radius: var(--radius-sm); border: 1px solid var(--color-rule-strong); color: var(--color-ink-bright); font-weight: 600; font-size: var(--text-md); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs); cursor: pointer; transition: transform var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out); }
.m2-ctk-pill:hover { transform: translateY(-1px); }
.m2-ctk-pill.is-active { outline: 2px solid var(--color-gold); outline-offset: 1px; }
.m2-ctk-pill.is-empty { opacity: 0.35; cursor: not-allowed; }
.m2-ctk-pill small { font-size: var(--text-xs); font-weight: 700; opacity: 0.9; }
.m2-ctk-c1 { background: linear-gradient(180deg, var(--color-ctk-1a), var(--color-ctk-1b)); }
.m2-ctk-c2 { background: linear-gradient(180deg, var(--color-ctk-2a), var(--color-ctk-2b)); }
.m2-ctk-c3 { background: linear-gradient(180deg, var(--color-ctk-3a), var(--color-ctk-3b)); }
.m2-ctk-c4 { background: linear-gradient(180deg, var(--color-ctk-4a), var(--color-ctk-4b)); }
.m2-ctk-c5 { background: linear-gradient(180deg, var(--color-ctk-5a), var(--color-ctk-5b)); }
.m2-ctk-cK { background: linear-gradient(180deg, var(--color-ctk-ka), var(--color-ctk-kb)); }
.m2-ctk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-sm); padding: var(--space-md); background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); }
.m2-ctk-cell {
  position: relative; height: 64px; border-radius: var(--radius-sm); border: 1px solid var(--color-rule-strong);
  background: linear-gradient(180deg, var(--color-ctk-cell-a), var(--color-ctk-cell-b));
  color: var(--color-ink-bright); font-size: var(--text-xl); font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.m2-ctk-cell.is-selected { outline: 2px solid var(--color-green); outline-offset: 2px; }
.m2-ctk-cell.is-hint-5 { border-color: var(--color-accent); }
.m2-ctk-cell.is-hint-safe { border-color: var(--color-green); }
.m2-ctk-cell.is-locked-5 { border-color: var(--color-ctk-hint-info); }
.m2-ctk-badge { position: absolute; top: var(--space-2xs); right: var(--space-2xs); font-size: var(--text-xs); font-weight: 700; padding: var(--space-3xs) var(--space-2xs); border-radius: var(--radius-sm); background: var(--color-surface-code); color: var(--color-ink-bright); }

.m2-okey-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-sm); max-width: 680px; margin: 0 auto; }
.m2-okey-card {
  height: 92px; border-radius: var(--radius-md); border: 2px solid var(--color-rule-strong);
  font-size: var(--text-2xl); font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out);
}
.m2-okey-card:hover { transform: translateY(-2px); }
.m2-okey-card.is-red { background: linear-gradient(180deg, var(--color-okey-red-a), var(--color-okey-red-b)); color: var(--color-okey-red-ink); border-color: var(--color-okey-red-bd); }
.m2-okey-card.is-yellow { background: linear-gradient(180deg, var(--color-okey-yel-a), var(--color-okey-yel-b)); color: var(--color-okey-yel-ink); border-color: var(--color-okey-yel-bd); }
.m2-okey-card.is-blue { background: linear-gradient(180deg, var(--color-okey-blu-a), var(--color-okey-blu-b)); color: var(--color-okey-blu-ink); border-color: var(--color-okey-blu-bd); }
.m2-okey-card.is-used { background: var(--color-okey-used-bg) !important; border-color: var(--color-okey-used-bd) !important; color: var(--color-okey-used-ink) !important; opacity: 0.5; }

.m2-atlas-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: var(--space-md); align-items: start; }
.m2-atlas-canvas-wrap { overflow: auto; max-height: 600px; background: var(--color-surface-code); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); padding: var(--space-sm); display: flex; justify-content: center; }
.m2-atlas-list { max-height: 232px; overflow-y: auto; border: 1px solid var(--color-rule); border-radius: var(--radius-sm); background: var(--color-surface-well); }
.m2-atlas-item { width: 100%; text-align: left; padding: var(--space-xs) var(--space-sm); background: transparent; border: 0; border-bottom: 1px solid var(--color-rule); color: var(--color-ink); font-size: var(--text-xs); cursor: pointer; font-family: var(--font-mono); display: flex; align-items: center; gap: var(--space-xs); }
.m2-atlas-item:hover, .m2-atlas-item.is-active { background: var(--color-gold-dim); color: var(--color-ink-bright); }

.m2-rem-stat { padding: var(--space-xs) var(--space-md); background: var(--color-gold-dim); border: 1px solid var(--color-gold-border); border-radius: var(--radius-md); text-align: center; min-width: 120px; }
.m2-rem-stat strong { display: block; font-size: var(--text-xl); color: var(--color-gold); line-height: 1.1; }
.m2-rem-stat span { font-size: var(--text-xs); color: var(--color-muted); font-weight: 600; }
.m2-rem-choice { display: block; padding: var(--space-sm); border-radius: var(--radius-sm); background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); cursor: pointer; }
.m2-rem-choice:has(input:checked) { border-color: var(--color-gold); background: var(--color-gold-dim); }
.m2-rem-choice input { display: none; }
.m2-rem-firing-btn { width: 100%; text-align: left; padding: var(--space-sm); border-radius: var(--radius-sm); border: 1px solid var(--color-danger-border); background: var(--color-danger-bg); color: var(--color-ink-bright); cursor: pointer; margin-bottom: var(--space-xs); }

.m2-dropzone { border: 2px dashed var(--color-gold-border); border-radius: var(--radius-lg); padding: var(--space-xl) var(--space-lg); text-align: center; cursor: pointer; background: var(--color-surface-well); transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.m2-dropzone:hover, .m2-dropzone.is-dragover { border-color: var(--color-gold); background: var(--color-gold-dim); }

.m2-feature-grid-pills { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.m2-feature-chip { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); color: var(--color-muted); font-size: var(--text-xs); font-weight: 500; cursor: pointer; user-select: none; }
.m2-feature-chip:has(input:checked) { background: var(--color-green-tint); border-color: var(--color-green-border); color: var(--color-green-ink); }
.m2-feature-chip input { accent-color: var(--color-green); }

.m2-banner-stage { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-md); align-items: start; }
.m2-banner-preview-box { width: 100%; max-width: 468px; aspect-ratio: 468 / 190; background: var(--color-media-bg); border: 1px dashed var(--color-gold-border); border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--color-muted); font-size: var(--text-sm); }
.m2-banner-preview-box img, .m2-banner-preview-box video { width: 100%; height: 100%; object-fit: cover; display: block; }

.m2-md-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-2xs); padding: var(--space-xs); background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); border-bottom: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.m2-md-btn { min-width: 32px; height: 28px; padding: 0 var(--space-xs); border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--color-ink); font-size: var(--text-xs); cursor: pointer; }
.m2-md-btn:hover { background: var(--color-gold-dim); border-color: var(--color-rule-strong); }
.m2-md-textarea { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; font-family: var(--font-mono); font-size: var(--text-sm); }
.m2-md-split { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
.m2-md-split.with-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m2-md-preview-box { background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); padding: var(--space-md); min-height: 260px; overflow-wrap: anywhere; font-size: var(--text-sm); }

.m2-api-url { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); padding: var(--space-sm); }
.m2-api-url code { font-family: var(--font-mono); font-size: var(--text-sm); word-break: break-all; color: var(--color-ink); }
.m2-api-url__var { color: var(--color-error); font-weight: 700; }
.m2-codebox { margin: 0; padding: var(--space-md); background: var(--color-surface-code); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); color: var(--color-ink-bright); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.5; overflow-x: auto; max-height: 440px; }
.m2-api-console { margin: var(--space-xs) 0 0; padding: var(--space-sm) var(--space-md); min-height: 112px; max-height: 248px; overflow: auto; background: var(--color-surface-code); border: 1px solid var(--color-green-border); border-radius: var(--radius-md); color: var(--color-code-green); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.m2-api-console.is-error { border-color: var(--color-danger-border); color: var(--color-danger-ink); }
.m2-api-args { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xs); }
.m2-api-args li { display: flex; justify-content: space-between; align-items: center; padding: var(--space-xs) var(--space-sm); background: var(--color-surface-well); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); font-size: var(--text-sm); }

/* Backlink Verification */
.m2-bl-step { background: var(--color-surface); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); margin-bottom: var(--space-md); }
.m2-bl-step__head { display: flex; align-items: flex-start; gap: var(--space-sm); margin-bottom: var(--space-md); }
.m2-bl-num { width: 28px; height: 28px; border-radius: var(--radius-sm); flex-shrink: 0; background: var(--color-accent); border: 1px solid var(--color-accent-border); color: var(--color-ink-bright); font-size: var(--text-sm); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.m2-bl-step__title { margin: 0 0 var(--space-2xs); font-size: var(--text-md); font-weight: 700; color: var(--color-ink-strong); }
.m2-bl-step__sub { margin: 0; font-size: var(--text-sm); color: var(--color-muted); line-height: 1.5; }
.m2-bl-preview { padding: var(--space-sm) var(--space-md); background: var(--color-surface-well); border: 1px solid var(--color-rule); border-radius: var(--radius-md); margin-bottom: var(--space-xs); display: flex; align-items: center; }
.m2-bl-preview--text a { color: var(--color-gold); text-decoration: underline; font-size: var(--text-sm); font-weight: 600; }
.m2-bl-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-sm); align-items: stretch; }
.m2-bl-code { width: 100%; min-height: 64px; resize: none; padding: var(--space-sm); background: var(--color-surface-code); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); color: var(--color-ink-bright); font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.5; }
.m2-bl-checklist { display: flex; flex-direction: column; gap: var(--space-xs); }
.m2-bl-check-item { display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--color-surface-well); border: 1px solid var(--color-rule); border-radius: var(--radius-md); font-size: var(--text-sm); line-height: 1.5; color: var(--color-muted); }
.m2-bl-check-item strong { color: var(--color-ink); }
.m2-bl-check-ico { color: var(--color-green-ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: var(--space-3xs); }
.m2-bl-waf-btn { display: inline-flex; align-items: center; gap: var(--space-2xs); background: transparent; border: 0; padding: 0; color: var(--color-gold); font-size: var(--text-xs); font-weight: 600; cursor: pointer; }
.m2-bl-waf-btn:hover { text-decoration: underline; }
.m2-bl-help { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-md); background: var(--color-discord-bg); border: 1px solid var(--color-discord-border); border-radius: var(--radius-md); }
.m2-bl-help__ico { width: 36px; height: 36px; border-radius: var(--radius-sm); flex-shrink: 0; background: var(--color-discord-bg); border: 1px solid var(--color-discord-border); color: var(--color-discord-ink); display: inline-flex; align-items: center; justify-content: center; }

/* Vote4Buff Hero */
.m2-v4b-hero, .m2-v4b-doc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: var(--space-lg); align-items: center; padding: var(--space-lg); background: var(--color-surface); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); }
.m2-v4b-doc { margin-bottom: var(--space-md); background: var(--color-surface-well); }
.m2-v4b-hero__art { display: flex; justify-content: center; }
.m2-v4b-hero__art img { width: 210px; height: auto; object-fit: contain; border-radius: var(--radius-md); display: block; }
.m2-v4b-pill { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-gold-dim); border: 1px solid var(--color-gold-border); color: var(--color-gold); font-size: var(--text-xs); font-weight: 700; }
.m2-v4b-list { margin: 0 0 var(--space-md); padding-left: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); line-height: 1.65; }
.m2-v4b-list strong { color: var(--color-ink); }

.m2-sidebar-ads { margin-top: var(--space-lg); padding: var(--space-md); background: var(--color-surface-well); border: 1px solid var(--color-rule-strong); border-radius: var(--radius-md); }
.m2-sidebar-ad-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-rule-strong); color: var(--color-ink); transition: border-color var(--dur-micro) var(--ease-out); }
.m2-sidebar-ad-card:hover { border-color: var(--color-gold); }
.m2-sidebar-ad-card img { width: 100%; aspect-ratio: 468 / 190; object-fit: cover; display: block; }
.m2-sidebar-ad-card__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); font-size: var(--text-xs); }
.m2-sidebar-ad-card__foot strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Vote Page */
.m2-vote-layout {
  max-width: 1020px;
  margin: var(--space-lg) auto var(--space-xl);
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
}
.m2-vote-card {
  background: linear-gradient(168deg, var(--color-row-1) 0%, var(--color-row-2) 100%);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.m2-vote-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-tint);
  border: 1px solid var(--color-green-border);
  color: var(--color-green-ink);
}
.m2-vote-icon.is-cooldown {
  background: var(--color-gold-dim);
  border-color: var(--color-gold-border);
  color: var(--color-gold);
}
.m2-cd-badge {
  display: table;
  margin: 0 auto var(--space-sm);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  background: var(--color-gold-dim);
  border: 1px solid var(--color-gold-border);
  color: var(--color-gold);
  font-size: var(--text-xs);
  font-weight: 700;
}
.m2-vote-submit[hidden] { display: none; }
.m2-cd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); margin: var(--space-md) 0 var(--space-sm); }
.m2-cd-box { padding: var(--space-sm) var(--space-xs); border-radius: var(--radius-md); background: var(--color-surface-well); border: 1px solid var(--color-gold-border); }
.m2-cd-num { display: block; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; line-height: 1.1; color: var(--color-gold); font-variant-numeric: tabular-nums; }
.m2-cd-unit { display: block; margin-top: var(--space-2xs); font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }
.m2-cd-progress { width: 100%; height: 6px; border-radius: var(--radius-pill); background: var(--color-rule); overflow: hidden; margin-bottom: var(--space-md); }
.m2-cd-fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--color-accent), var(--color-gold)); }
.m2-cd-note { margin: 0 0 var(--space-sm); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); background: var(--color-green-tint); border: 1px solid var(--color-green-border); color: var(--color-green-ink); font-size: var(--text-xs); line-height: 1.45; }
.m2-vote-card__title { margin: 0 0 var(--space-xs); font-size: var(--text-xl); font-weight: 700; color: var(--color-ink-strong); }
.m2-vote-card__sub { margin: 0 0 var(--space-md); font-size: var(--text-sm); line-height: 1.5; color: var(--color-muted); }
.m2-vote-playerchip { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); margin-bottom: var(--space-sm); border-radius: var(--radius-sm); background: var(--color-green-tint); border: 1px solid var(--color-green-border); color: var(--color-green-ink); font-size: var(--text-xs); font-weight: 600; }
.m2-vote-playerinput { text-align: left; margin-bottom: var(--space-sm); }
.m2-vote-captcha { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); margin-bottom: var(--space-md); border-radius: var(--radius-md); background: var(--color-surface-well); border: 1px solid var(--color-row-border); }
.m2-vote-captcha img { border-radius: var(--radius-sm); flex-shrink: 0; display: block; }
.m2-vote-captcha__input { width: 100%; min-width: 96px; min-height: 44px; padding: 0 var(--space-sm); border-radius: var(--radius-sm); border: 1px solid var(--color-gold-border); background: var(--color-surface-input); color: var(--color-ink-strong); font-size: var(--text-md); font-weight: 700; text-align: center; }
.m2-vote-captcha__input:focus { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.m2-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.m2-sec-elevated { display: inline-block; margin-bottom: var(--space-xs); padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-sm); background: var(--color-danger-bg); border: 1px solid var(--color-danger-border); color: var(--color-danger-ink); font-size: var(--text-xs); font-weight: 700; }
.m2-pow-box { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: var(--space-sm); margin-bottom: var(--space-sm); border-radius: var(--radius-md); background: var(--color-surface-well); border: 1px solid var(--color-row-border); transition: border-color var(--dur-micro) var(--ease-out); }
.m2-pow-box.is-verified { border-color: var(--color-green-border); background: var(--color-green-tint); }
.m2-pow-box.is-attention { border-color: var(--color-gold); outline: 2px solid var(--color-gold-border); }
.m2-pow-trigger { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 44px; padding: var(--space-2xs) 0; background: transparent; border: 0; color: var(--color-ink-strong); font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.m2-pow-checkbox { width: 24px; height: 24px; border-radius: var(--radius-sm); background: var(--color-surface-input); border: 1px solid var(--color-rule-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--color-green-ink); flex-shrink: 0; }
.m2-pow-tick, .m2-pow-spinner { display: none; }
.m2-pow-box.is-solving .m2-pow-spinner { display: block; width: 14px; height: 14px; border: 2px solid var(--color-rule-strong); border-top-color: var(--color-gold); border-radius: var(--radius-pill); animation: m2spin 0.7s linear infinite; }
.m2-pow-box.is-verified .m2-pow-checkbox { background: var(--color-green); border-color: var(--color-green-border); color: var(--color-ink-bright); }
.m2-pow-box.is-verified .m2-pow-tick { display: block; }
@keyframes m2spin { to { transform: rotate(360deg); } }
.m2-pow-brand { display: flex; flex-direction: column; align-items: center; gap: var(--space-3xs); font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); flex-shrink: 0; }

.m2-slider-wrap { margin-bottom: var(--space-md); text-align: center; }
.m2-slider-stage-scroll { max-width: 100%; overflow-x: auto; }
.m2-slider-stage { position: relative; margin: 0 auto var(--space-xs); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-row-border); user-select: none; }
.m2-slider-stage > img:first-child { display: block; width: 100%; height: auto; }
.m2-slider-piece { position: absolute; pointer-events: none; }
.m2-slider-track { position: relative; height: 44px; width: 300px; max-width: 100%; margin: 0 auto; border-radius: var(--radius-md); background: var(--color-surface-input); border: 1px solid var(--color-row-border); display: flex; align-items: center; justify-content: center; overflow: hidden; user-select: none; }
.m2-slider-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--color-green-tint); pointer-events: none; }
.m2-slider-hint { position: relative; z-index: 1; font-size: var(--text-xs); color: var(--color-muted); pointer-events: none; }
.m2-slider-wrap.is-placed .m2-slider-hint { color: var(--color-green-ink); }
.m2-slider-thumb { position: absolute; left: 0; top: 0; z-index: 2; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--color-gold); border: 0; color: var(--color-slider-thumb-ink); display: inline-flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; }
.m2-slider-thumb:active { cursor: grabbing; }
.m2-vote-submit { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); border-radius: var(--radius-md); font-size: var(--text-md); font-weight: 700; }
.m2-vote-card__foot { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-rule-strong); display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.m2-vote-card__footlbl { font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); }
.m2-vote-card__footval { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--color-ink-strong); }

.m2-vote-info { min-width: 0; }
.m2-vote-eyebrow { font-size: var(--text-xs); font-weight: 600; color: var(--color-gold); margin-bottom: var(--space-xs); }
.m2-vote-servertitle { margin: 0 0 var(--space-sm); font-size: var(--text-display-s); font-weight: 700; line-height: 1.15; color: var(--color-ink-strong); display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.m2-vote-desc { margin: 0 0 var(--space-md); font-size: var(--text-sm); line-height: 1.6; color: var(--color-muted); }
.m2-vote-banner { width: 100%; max-width: 540px; aspect-ratio: 468 / 190; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-gold-border); margin-bottom: var(--space-md); background: var(--color-media-bg); box-shadow: var(--shadow-media); }
.m2-vote-banner img, .m2-vote-banner video { width: 100%; height: 100%; object-fit: contain; display: block; }
.m2-vote-statgrid { max-width: 540px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); margin-bottom: var(--space-md); }
.m2-vote-statcell { padding: var(--space-sm); border-radius: var(--radius-md); background: linear-gradient(170deg, var(--color-surface) 0%, var(--color-surface-well) 100%); border: 1px solid var(--color-rule-strong); box-shadow: var(--shadow-card); }
.m2-vote-statcell__lbl { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-xs); font-weight: 600; color: var(--color-muted); margin-bottom: var(--space-2xs); }
.m2-vote-statcell__val { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; color: var(--color-ink-strong); }
.m2-vote-how { max-width: 540px; padding: var(--space-md); border-radius: var(--radius-card); background: linear-gradient(170deg, var(--color-surface) 0%, var(--color-surface-well) 100%); border: 1px solid var(--color-rule-strong); box-shadow: var(--shadow-card); }
.m2-vote-how h3 { margin: 0 0 var(--space-xs); font-size: var(--text-md); font-weight: 700; color: var(--color-ink-strong); }
.m2-vote-how p { margin: 0; font-size: var(--text-sm); line-height: 1.55; color: var(--color-muted); }
.m2-vote-pools { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.m2-vote-poolchip { font-size: var(--text-xs); padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-sm); background: var(--color-green-tint); border: 1px solid var(--color-green-border); color: var(--color-green-ink); }

/* Arabic RTL Support */
[dir="rtl"] .m2-tools-rail { left: auto; right: 0; border-left: 1px solid var(--color-rule-strong); border-right: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
[dir="rtl"] .m2-left-dock { left: auto; right: var(--space-md); }
[dir="rtl"] .m2-atlas-item { text-align: right; }

/* Responsive Breakpoints */
@media (max-width: 1479px) {
  .m2-left-dock, .m2-floater, .m2-tools-rail { display: none; }
}
@media (max-width: 1200px) {
  .m2-nav__menu, .m2-nav__search, .m2-nav__finder { display: none; }
  .m2-nav__menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2xs);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-nav-drawer-bg);
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-rule-strong);
    z-index: var(--z-dropdown);
  }
  .mobile-toggle { display: inline-flex; }
  .m2-nav__mobile-auth {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-rule);
  }
  .m2-nav__mobile-auth .m2-nav__search { display: block; width: 100%; }
  .m2-nav__mobile-auth .m2-nav__search input { width: 100%; min-height: 44px; }
  .m2-nav__mobile-auth .btn { width: 100%; justify-content: center; }
  .m2-nav__mobile-auth-only { display: none; }
}
@media (max-width: 1024px) {
  .m2-detail-grid, .layout-sidebar { grid-template-columns: 1fr; }
  .m2-actioncard { position: static; }
}
@media (max-width: 880px) {
  .m2-server-row { grid-template-columns: 1fr; gap: var(--space-sm); }
  .m2-server-row__title, .m2-server-row__meta, .m2-server-row__banner, .m2-server-row__vote { grid-column: 1; grid-row: auto; }
  .m2-server-row__banner { max-width: 100%; }
  .m2-server-row__vote { align-items: stretch; }
  .m2-row-links { justify-content: flex-start; }
  .m2-server-row__vote .m2-vote-wrap { width: 100%; display: flex; }
  .m2-vote-btn { width: 100%; }
  .m2-detail-grid, .layout-sidebar, .layout-finder, .m2-admin-layout, .m2-vote-layout, .m2-atlas-layout { grid-template-columns: 1fr; }
  .m2-vote-banner, .m2-vote-statgrid, .m2-vote-how { max-width: 100%; }
  .m2-admin-nav, .m2-actioncard { position: static; }
  .m2-edit-layout { grid-template-columns: 1fr; }
  .m2-side-tabs { position: static; flex-direction: row; overflow-x: auto; }
  .m2-side-tab { width: auto; flex-shrink: 0; }
  .m2-banner-stage, .m2-md-split.with-preview, .m2-v4b-hero, .m2-v4b-doc { grid-template-columns: 1fr; }
  .m2-newcard { grid-template-columns: 1fr; }
  .m2-newcard__banner { width: 100%; height: auto; aspect-ratio: 468 / 190; }
  .m2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m2-stats__tile:nth-child(2) { border-right: 0; }
  .m2-stats__tile:nth-child(1), .m2-stats__tile:nth-child(2) { border-bottom: 1px solid var(--color-rule); }
  .m2-detail-statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m2-compare__hrow, .m2-compare__row { grid-template-columns: minmax(0, 1fr) 96px 96px; padding: var(--space-sm); }
  .m2-foot__wrap { grid-template-columns: 1fr; }
  .m2-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .m2-shell { padding: var(--space-md) var(--space-sm) var(--space-lg); }
  .m2-nav__wrap { padding: 0 var(--space-sm); gap: var(--space-xs); }
  .m2-nav__auth { display: none; }
  .m2-nav__mobile-auth-only { display: flex; flex-direction: column; gap: var(--space-xs); }
  .m2-nav__mobile-auth-only .btn { width: 100%; justify-content: center; }
  .m2-server-row__title { padding: var(--space-2xs) var(--space-lg); font-size: var(--text-sm); }
  .m2-server-row__banner img, .m2-server-row__banner video { object-fit: contain; }
  .m2-fallback-banner { padding: var(--space-sm); }
  .m2-fallback-banner__name { font-size: var(--text-lg); }
  .m2-fallback-banner__foot { flex-wrap: nowrap; overflow: hidden; }
  .m2-fallback-banner__tag:nth-child(n+3) { display: none; }
  .grid-2, .grid-3, .grid-4, .m2-home-panels, .m2-foot__cols, .m2-feature-grid, .m2-rank-context__grid, .m2-vote-statgrid, .m2-api-test-row { grid-template-columns: 1fr; }
  .m2-stats { grid-template-columns: 1fr; }
  .m2-stats__tile { border-right: 0; border-bottom: 1px solid var(--color-rule); }
  .m2-stats__tile:last-child { border-bottom: 0; }
  .m2-okey-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-control, select.form-control, textarea.form-control, .m2-vote-captcha__input { font-size: 16px; min-height: 44px; }
  .layout-finder label, .m2-share-btn, .m2-qf-pill, .m2-qf-tour-btn { min-height: 44px; }
}
.layout-finder input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-gold); cursor: pointer; }
.m2-finder-feat-checks { display: flex; gap: 10px; align-items: center; }
.m2-finder-feat-checks label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; min-height: 28px; padding: 0 4px; }

/* ==========================================================================
   Driver.js Interactive Tour Theme (Obsidian-Gold & Light Parchment)
   ========================================================================== */
:root {
  --driver-popover-font-family: var(--font-ui);
}

.driver-overlay {
  fill: rgba(10, 6, 4, 0.74) !important;
}

.driver-popover.m2-driver-popover {
  background: #1f140e;
  color: var(--text-primary, #f5e6cc);
  border: 1px solid var(--color-gold-border, rgba(243, 203, 120, 0.34));
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-card, 0 18px 42px rgba(0, 0, 0, 0.55));
  padding: 18px 20px;
  max-width: 340px;
}

.driver-popover.m2-driver-popover .driver-popover-title {
  font-family: var(--font-display, var(--font-ui));
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold, #f3cb78);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  padding-right: 22px;
}

.driver-popover.m2-driver-popover .driver-popover-description {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary, rgba(245, 230, 204, 0.82));
}

.driver-popover.m2-driver-popover .driver-popover-close-btn {
  color: var(--text-muted, rgba(245, 230, 204, 0.62));
  width: 28px;
  height: 28px;
  top: 10px;
  right: 10px;
  border-radius: 6px;
}

.driver-popover.m2-driver-popover .driver-popover-close-btn:hover,
.driver-popover.m2-driver-popover .driver-popover-close-btn:focus-visible {
  color: var(--text-primary);
  background: rgba(243, 203, 120, 0.12);
}

.driver-popover.m2-driver-popover .driver-popover-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-rule, rgba(245, 230, 204, 0.12));
  align-items: center;
  gap: 8px;
}

.driver-popover.m2-driver-popover .driver-popover-progress-text {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.driver-popover.m2-driver-popover .driver-popover-navigation-btns {
  gap: 6px;
}

.driver-popover.m2-driver-popover .driver-popover-prev-btn,
.driver-popover.m2-driver-popover .driver-popover-next-btn {
  text-shadow: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: var(--radius-sm, 8px);
  min-height: 36px;
  cursor: pointer;
}

.driver-popover.m2-driver-popover .driver-popover-prev-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle, rgba(245, 230, 204, 0.18));
}

.driver-popover.m2-driver-popover .driver-popover-prev-btn:hover {
  border-color: var(--accent-gold);
}

.driver-popover.m2-driver-popover .driver-popover-next-btn,
.driver-popover.m2-driver-popover .driver-popover-done-btn {
  background: linear-gradient(180deg, var(--accent-gold, #f3cb78), #c8963e);
  color: #1c1008;
  border: 1px solid rgba(255, 235, 185, 0.45);
}

.driver-popover.m2-driver-popover .driver-popover-next-btn:hover,
.driver-popover.m2-driver-popover .driver-popover-done-btn:hover {
  filter: brightness(1.06);
}

.driver-popover.m2-driver-popover .driver-popover-arrow-side-left { border-left-color: #1f140e; }
.driver-popover.m2-driver-popover .driver-popover-arrow-side-right { border-right-color: #1f140e; }
.driver-popover.m2-driver-popover .driver-popover-arrow-side-top { border-top-color: #1f140e; }
.driver-popover.m2-driver-popover .driver-popover-arrow-side-bottom { border-bottom-color: #1f140e; }

html[data-theme="light"] .driver-popover.m2-driver-popover {
  background: #f7eedb;
  color: #24160e;
  border-color: rgba(124, 59, 22, 0.32);
}

html[data-theme="light"] .driver-popover.m2-driver-popover .driver-popover-title {
  color: #7c3b16;
}

html[data-theme="light"] .driver-popover.m2-driver-popover .driver-popover-description {
  color: #3d281a;
}

html[data-theme="light"] .driver-popover.m2-driver-popover .driver-popover-arrow-side-left { border-left-color: #f7eedb; }
html[data-theme="light"] .driver-popover.m2-driver-popover .driver-popover-arrow-side-right { border-right-color: #f7eedb; }
html[data-theme="light"] .driver-popover.m2-driver-popover .driver-popover-arrow-side-top { border-top-color: #f7eedb; }
html[data-theme="light"] .driver-popover.m2-driver-popover .driver-popover-arrow-side-bottom { border-bottom-color: #f7eedb; }

.m2-ticket-msg, .m2-ticket-subject {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}
.m2-ticket-list {
  display: flex;
  flex-direction: column;
}
.m2-ticket-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-rule);
}
.m2-ticket-item:first-child {
  padding-top: 0;
  border-top: 0;
}
.m2-ticket-item:last-child {
  padding-bottom: 0;
}
.m2-ticket-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.m2-ticket-item__badges {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.m2-ticket-item__code {
  white-space: nowrap;
  font-size: var(--text-xs);
}
.m2-ticket-item__time {
  font-size: var(--text-xs);
  white-space: nowrap;
}
.m2-ticket-item__title {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-ink-strong);
}
.m2-ticket-item__title:hover {
  color: var(--color-gold);
}
.m2-ticket-item__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.m2-ticket-item__meta {
  font-size: var(--text-xs);
  line-height: 1.4;
  min-width: 0;
  flex: 1 1 auto;
}
.m2-ticket-item__foot .btn {
  flex-shrink: 0;
}
.m2-ticket-msg {
  white-space: pre-line;
  line-height: 1.6;
  font-size: 0.92rem;
  color: var(--color-hero-cream, #ebd8b7);
}
html[data-theme="light"] .m2-ticket-msg {
  color: var(--color-ink);
}

.m2-hash-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 285px;
  min-width: 180px;
}
.m2-hash-full {
  font-size: 11px;
  line-height: 1.35;
  word-break: break-all;
  white-space: normal;
  user-select: all;
  flex: 1 1 auto;
}
.m2-copy-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid rgba(240, 201, 138, 0.25);
  background: rgba(46, 28, 18, 0.65);
  color: var(--color-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.m2-copy-mini:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(65, 40, 25, 0.85);
}
.m2-copy-mini.is-copied {
  border-color: rgba(95, 168, 103, 0.7);
  color: #5fa867;
  background: rgba(95, 168, 103, 0.14);
}
html[data-theme="light"] .m2-copy-mini {
  background: rgba(124, 59, 22, 0.08);
  border-color: rgba(124, 59, 22, 0.24);
  color: #5a3c28;
}
html[data-theme="light"] .m2-copy-mini:hover {
  border-color: #7c3b16;
  color: #7c3b16;
  background: rgba(124, 59, 22, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .driver-active-element,
  .driver-popover.m2-driver-popover {
    transition: none !important;
    animation: none !important;
  }
}
