/**
 * Project overrides.
 * Adapts tone and contrast for the site themes.
 * Cinzel Decorative is used only for the site name.
 * Licensed under the SIL Open Font License 1.1. See fonts/OFL.txt.
 */

@font-face {
  font-family: "Cinzel Decorative";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cinzel-decorative-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent-color: #c99a42;
  --accent-soft: rgba(201, 154, 66, 0.16);
  --surface-color: #17120d;
  --contrast-color: #1d1308;
  --nav-hover-color: #c99a42;
  --nav-dropdown-hover-color: #c99a42;
  --page-title-bg: linear-gradient(180deg, #24180f 0%, #14110d 100%);
  --page-title-color: #f4e7c8;
  --page-title-link: #e6c57a;
  --page-title-muted: #cbb892;
  --page-title-border: rgba(201, 154, 66, 0.4);
  --scrollbar-track: #14110d;
  --scrollbar-thumb: #8a6a2e;
  --scrollbar-thumb-hover: #c99a42;
  --m2h-footer-bg: #14110d;
  --m2h-footer-heading: #f4e7c8;
  --m2h-footer-text: #e6d7b8;
  --m2h-footer-link: #e6c57a;
  --m2h-footer-link-hover: #fff8e8;
  --m2h-footer-border: #c99a42;
  --m2h-hero-overlay: linear-gradient(180deg, rgba(10, 7, 5, 0.78), rgba(20, 12, 8, 0.62));
  --m2h-hero-title: #ffffff;
  --m2h-hero-text: #f4e7c8;
  --m2h-hero-control-bg: rgba(0, 0, 0, 0.46);
  --m2h-hero-control-color: #fff8e8;
}

.zeryon-theme-toggle {
  align-items: center;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #ffffff 20%));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px 0 0 999px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  color: #1d1308;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.04em;
  padding: 12px 14px 12px 16px;
  position: fixed;
  right: 0;
  text-transform: uppercase;
  top: 42%;
  transform: translateY(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 998;
}

.zeryon-theme-toggle:hover,
.zeryon-theme-toggle:focus {
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46);
  color: #1d1308;
  outline: none;
  transform: translateY(-50%) translateX(-4px);
}

.zeryon-theme-toggle i {
  font-size: 18px;
  line-height: 1;
}

.zeryon-theme-offcanvas {
  background:
    radial-gradient(circle at 20% 0%, var(--accent-soft), transparent 34%),
    color-mix(in srgb, var(--surface-color), #000000 8%);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--default-color);
}

.zeryon-theme-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.zeryon-theme-offcanvas .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.76;
}

.theme-royal-parchment .zeryon-theme-offcanvas .btn-close,
.theme-frost-arcane .zeryon-theme-offcanvas .btn-close,
.theme-desert-mirage .zeryon-theme-offcanvas .btn-close {
  filter: none;
}

.zeryon-theme-offcanvas .offcanvas-title {
  color: var(--heading-color);
  font-weight: 900;
}

.zeryon-theme-eyebrow {
  color: var(--accent-color);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.zeryon-theme-help {
  color: color-mix(in srgb, var(--default-color), transparent 28%);
  font-size: 14px;
  margin-bottom: 18px;
}

.zeryon-theme-list {
  display: grid;
  gap: 10px;
}

.zeryon-theme-choice {
  align-items: center;
  background: color-mix(in srgb, var(--surface-color), #ffffff 6%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: var(--default-color);
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr 22px;
  padding: 12px;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  width: 100%;
}

.zeryon-theme-choice:hover,
.zeryon-theme-choice:focus,
.zeryon-theme-choice.is-active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent-color), transparent 35%);
  color: var(--heading-color);
  outline: none;
  transform: translateX(-2px);
}

.zeryon-theme-choice strong,
.zeryon-theme-choice small {
  display: block;
}

.zeryon-theme-choice strong {
  color: var(--heading-color);
  font-weight: 800;
}

.zeryon-theme-choice small {
  color: color-mix(in srgb, var(--default-color), transparent 34%);
  font-size: 12px;
  margin-top: 3px;
}

.zeryon-theme-choice .bi-check2 {
  color: var(--accent-color);
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.zeryon-theme-choice.is-active .bi-check2 {
  opacity: 1;
}

.zeryon-theme-swatch {
  background: linear-gradient(135deg, #17120d, #c99a42);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  display: block;
  height: 42px;
  width: 42px;
}

.zeryon-theme-swatch.theme-abyss-neon {
  background: linear-gradient(135deg, #080a18, #00f0ff 48%, #ff2bd6);
}

.zeryon-theme-swatch.theme-royal-parchment {
  background: linear-gradient(135deg, #f5e4bc, #8a4d1d 52%, #2f1d12);
}

.zeryon-theme-swatch.theme-frost-arcane {
  background: linear-gradient(135deg, #eefbff, #70d6ff 50%, #304c89);
}

.zeryon-theme-swatch.theme-emerald-alchemy {
  background: linear-gradient(135deg, #071b12, #10b981 48%, #f4c95d);
}

.zeryon-theme-swatch.theme-crimson-obsidian {
  background: linear-gradient(135deg, #050506, #8b0000 52%, #ff6b35);
}

.zeryon-theme-swatch.theme-desert-mirage {
  background: linear-gradient(135deg, #f8deb2, #c0842c 52%, #16a3a3);
}

.zeryon-theme-swatch.theme-ocean-depths {
  background: linear-gradient(135deg, #061826, #0ea5e9 52%, #ff8a7a);
}

.zeryon-theme-swatch.theme-violet-cosmos {
  background: linear-gradient(135deg, #0b0620, #7c3aed 50%, #f472b6);
}

.zeryon-theme-swatch.theme-iron-citadel {
  background: linear-gradient(135deg, #111827, #64748b 52%, #f59e0b);
}

.zeryon-theme-swatch.theme-sakura-twilight {
  background: linear-gradient(135deg, #fff7fa, #d84f87 52%, #8b3b70);
}

.zeryon-theme-swatch.theme-plague-witch {
  background: linear-gradient(135deg, #030501, #b6ff2e 50%, #e56bff);
}

.zeryon-theme-swatch.theme-marble-sanctum {
  background: linear-gradient(135deg, #ffffff, #1f4ea3 52%, #d4a845);
}

.zeryon-theme-reset {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--default-color);
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 16px;
  width: 100%;
}

.zeryon-theme-reset:hover,
.zeryon-theme-reset:focus {
  background: color-mix(in srgb, var(--surface-color), #ffffff 8%);
  color: var(--heading-color);
  outline: none;
}

.theme-royal-parchment .zeryon-theme-offcanvas,
.theme-frost-arcane .zeryon-theme-offcanvas,
.theme-desert-mirage .zeryon-theme-offcanvas {
  border-left-color: color-mix(in srgb, var(--accent-color), transparent 72%);
  box-shadow: -18px 0 50px rgba(75, 46, 30, 0.12);
}

.theme-royal-parchment .zeryon-theme-choice,
.theme-frost-arcane .zeryon-theme-choice,
.theme-desert-mirage .zeryon-theme-choice {
  border-color: color-mix(in srgb, var(--accent-color), transparent 78%);
}

.theme-royal-parchment .zeryon-theme-reset,
.theme-frost-arcane .zeryon-theme-reset,
.theme-desert-mirage .zeryon-theme-reset {
  border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
}

@media (max-width: 576px) {
  .zeryon-theme-toggle {
    padding: 11px 12px;
    top: 25%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .zeryon-theme-toggle:hover,
  .zeryon-theme-toggle:focus {
    transform: translateY(-50%) translateX(-3px);
  }

  .zeryon-theme-toggle span {
    display: none;
  }
}

@media (max-width: 1199px) {
  body.theme-abyss-neon .header,
  body.theme-frost-arcane .header,
  body.theme-ocean-depths .header,
  body.theme-violet-cosmos .header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .mobile-nav-active .header,
  .mobile-nav-active .navmenu,
  .mobile-nav-active .navmenu > ul,
  .mobile-nav-active .mobile-nav-toggle {
    z-index: auto;
  }

  .mobile-nav-active .zeryon-theme-toggle,
  .mobile-nav-active .scroll-top {
    opacity: 0;
    pointer-events: none;
  }
}

.zeryon-ranking-search {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.zeryon-ranking-search input {
  background: color-mix(in srgb, var(--surface-color), #ffffff 4%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--default-color);
  flex: 1 1 260px;
  min-height: 48px;
  padding: 0 18px;
}

.zeryon-ranking-search button,
.zeryon-ranking-search a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  padding: 0 18px;
}

.zeryon-ranking-search button {
  background: var(--accent-color);
  border: 0;
  color: #1d1308;
}

.zeryon-account-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zeryon-account-grid > div,
.zeryon-admin-module {
  background: color-mix(in srgb, var(--surface-color), #ffffff 5%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px;
}

.zeryon-character-cell {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 190px;
}

.zeryon-character-cell img {
  background: color-mix(in srgb, var(--surface-color), #ffffff 7%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  flex: 0 0 auto;
  object-fit: cover;
  padding: 3px;
}

.zeryon-character-cell strong,
.zeryon-character-cell span {
  display: block;
}

.zeryon-character-cell span {
  color: color-mix(in srgb, var(--default-color), transparent 38%);
  font-size: 12px;
  margin-top: 2px;
}

.zeryon-account-grid span,
.zeryon-admin-module span {
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zeryon-account-grid strong,
.zeryon-admin-module strong {
  color: var(--heading-color);
  display: block;
  margin-top: 6px;
}

.zeryon-account-suggestions {
  background: color-mix(in srgb, var(--surface-color), #ffffff 6%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  margin-top: 8px;
  max-height: 340px;
  overflow: auto;
  padding: 8px;
}

.zeryon-account-suggestion {
  background: transparent;
  border: 0;
  border-radius: 14px;
  color: var(--default-color);
  gap: 16px;
  padding: 12px 14px;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease;
  width: 100%;
}

.zeryon-account-suggestion:hover,
.zeryon-account-suggestion:focus {
  background: var(--accent-soft);
  color: var(--heading-color);
  outline: none;
}

.zeryon-account-suggestion strong {
  color: var(--heading-color);
}

.zeryon-account-suggestion small {
  color: color-mix(in srgb, var(--default-color), transparent 28%);
}

.zeryon-bonus-dropdown {
  background: color-mix(in srgb, var(--surface-color), #ffffff 6%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
}

.zeryon-bonus-option {
  background: transparent;
  border: 0;
  border-radius: 14px;
  color: var(--default-color);
  display: block;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.zeryon-bonus-option:hover,
.zeryon-bonus-option:focus {
  background: var(--accent-soft);
  color: var(--heading-color);
  outline: none;
}

.zeryon-bonus-option strong,
.zeryon-bonus-option small {
  display: block;
}

.zeryon-bonus-option small {
  color: color-mix(in srgb, var(--default-color), transparent 32%);
  margin-top: 2px;
}

.dashboard-tabs a {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--default-color);
  display: block;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
}

.dashboard-tabs a:hover {
  background: var(--accent-soft);
  color: var(--accent-color);
}

.dashboard-tabs a.active {
  background: var(--accent-soft);
  color: var(--accent-color);
}

.zeryon-admin-group {
  color: var(--accent-color);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 18px 0 6px;
  text-transform: uppercase;
}

.zeryon-admin-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 30px;
}

.zeryon-admin-module-group {
  margin-top: 30px;
}

.zeryon-admin-module i {
  color: var(--accent-color);
  font-size: 26px;
  margin-bottom: 10px;
}

a.zeryon-admin-module {
  color: inherit;
  display: block;
  text-decoration: none;
}

.zeryon-admin-form {
  margin-bottom: 24px;
}

.zeryon-muted {
  color: color-mix(in srgb, var(--default-color), transparent 42%);
  display: block;
  font-size: 13px;
  margin-top: 6px;
}

.zeryon-ranking-table .btn-sm {
  align-items: center;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  margin: 2px;
  padding: 0;
  width: 32px;
}

.hero::before {
  background: linear-gradient(135deg, rgba(10, 7, 5, 0.84), rgba(54, 31, 12, 0.58));
}

.hero h1,
.hero h2,
.hero p {
  color: #ffffff;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
}

.hero-kicker {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-family: var(--nav-font);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
  padding: 9px 18px;
  text-transform: uppercase;
}

.hero .social-links a {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.1);
}

.inner-page .header,
.page-404 .header {
  --background-color: rgba(15, 10, 7, 0.96);
}

.page-title {
  padding-top: 110px;
}

.section-title p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.profile-card,
.content-wrapper,
.service-item,
.exp-card,
.education-timeline,
.info-item,
.contact-preview-form,
.error-box {
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.28);
}

.profile-card,
.content-wrapper,
.service-item,
.exp-card,
.education-timeline,
.info-item,
.contact-preview-form {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-card .rating i {
  color: var(--accent-color);
}

.service-item p,
.exp-card .description,
.timeline-content .description,
.bio-section p,
.info-item p,
.form-note {
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.details-grid .detail-item strong {
  color: var(--heading-color);
}

.home-about-copy .bio-section {
  margin-bottom: 50px;
}

.home-about-copy .bio-section .section-tag,
.home-about-copy .skills-showcase .section-tag {
  background: var(--accent-soft);
  border-radius: 20px;
  color: var(--accent-color);
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding: 6px 16px;
  text-transform: uppercase;
}

.home-about-copy .bio-section h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.home-about-copy .bio-section p {
  font-size: 16px;
  line-height: 1.8;
}

.home-about-copy .details-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 50px;
}

.home-about-copy .details-grid .detail-item {
  align-items: center;
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  display: flex;
  gap: 15px;
  padding: 22px;
  transition: 0.3s;
}

.home-about-copy .details-grid .detail-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.home-about-copy .details-grid .detail-item i {
  color: var(--accent-color);
  font-size: 28px;
}

.home-about-copy .details-grid .detail-item .detail-content span {
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  display: block;
  font-size: 13px;
  text-transform: uppercase;
}

.home-about-copy .details-grid .detail-item .detail-content strong {
  color: var(--heading-color);
  display: block;
  font-size: 16px;
}

.home-about-copy .skills-showcase h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.home-about-copy .skills-showcase .skills-list .skill-item {
  margin-bottom: 28px;
}

.home-about-copy .skills-showcase .skills-list .skill-item .skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.home-about-copy .skills-showcase .skills-list .skill-item .skill-name {
  font-size: 15px;
  font-weight: 600;
}

.home-about-copy .skills-showcase .skills-list .skill-item .skill-percent {
  color: var(--accent-color);
  font-size: 15px;
  font-weight: 700;
}

.home-about-copy .skills-showcase .skills-list .skill-item .progress {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 10px;
  height: 10px;
}

.home-about-copy .skills-showcase .skills-list .skill-item .progress .progress-bar {
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #ffffff 20%));
  border-radius: 10px;
  height: 100%;
  position: relative;
  width: 0;
}

.story-section .section-header {
  margin-bottom: 40px;
}

.story-timeline {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.story-timeline .timeline-track {
  max-width: 940px;
  margin: 0 auto;
}

.resume .education-section .story-timeline .timeline-track .timeline-item .timeline-content.story-card {
  padding: 34px;
}

.resume .education-section .story-timeline .timeline-track .timeline-item .timeline-content.story-card h4 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin-bottom: 10px;
}

.resume .education-section .story-timeline .timeline-track .timeline-item .timeline-content.story-card .institution {
  color: var(--accent-color);
  font-family: var(--nav-font);
  font-weight: 700;
  margin-bottom: 18px;
}

.resume .education-section .story-timeline .timeline-track .timeline-item .timeline-content.story-card .description {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 22px;
}

.story-mini-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
  padding-left: 28px;
  position: relative;
}

.story-mini-timeline::before {
  background: linear-gradient(180deg, var(--accent-color), color-mix(in srgb, var(--accent-color), transparent 60%));
  bottom: 10px;
  content: "";
  left: 7px;
  position: absolute;
  top: 10px;
  width: 2px;
}

.story-mini-item {
  display: block;
  padding: 0 0 22px;
  position: relative;
}

.story-mini-item:last-child {
  padding-bottom: 0;
}

.story-mini-item::before {
  background: var(--accent-color);
  border: 3px solid var(--surface-color);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 80%);
  content: "";
  height: 16px;
  left: -28px;
  position: absolute;
  top: 4px;
  width: 16px;
}

.story-mini-item span {
  background: color-mix(in srgb, var(--accent-color), transparent 86%);
  border-radius: 999px;
  color: var(--accent-color);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: flex-start;
  margin-bottom: 8px;
  padding: 6px 10px;
  text-align: left;
  white-space: nowrap;
}

.story-mini-item strong {
  color: var(--heading-color);
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 6px;
}

.story-mini-item p {
  color: color-mix(in srgb, var(--default-color), transparent 22%);
  font-size: 0.94rem;
  line-height: 1.7;
  margin: 0;
}

.resume .education-section .story-timeline .timeline-track .timeline-item .timeline-content.story-card .story-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resume .education-section .story-timeline .timeline-track .timeline-item .timeline-content.story-card .story-card-tags span {
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 78%);
  border-radius: 999px;
  color: var(--accent-color);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 7px 13px;
}

.contact-preview-form {
  background: var(--surface-color);
  border-radius: 18px;
  padding: 30px;
}

.contact .php-email-form .form-control:-webkit-autofill,
.contact .php-email-form .form-control:-webkit-autofill:hover,
.contact .php-email-form .form-control:-webkit-autofill:focus,
.contact .php-email-form textarea.form-control:-webkit-autofill,
.contact .php-email-form textarea.form-control:-webkit-autofill:hover,
.contact .php-email-form textarea.form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface-color) inset;
  -webkit-text-fill-color: var(--default-color);
  caret-color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  transition: background-color 9999s ease-in-out 0s;
}

.contact .php-email-form .form-control:-webkit-autofill:focus,
.contact .php-email-form textarea.form-control:-webkit-autofill:focus {
  border-color: var(--accent-color);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-color) inset, 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 80%);
}

.contact-preview-form .form-control:disabled {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
}

.contact-preview-form button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.contact-social-links {
  display: flex;
  gap: 10px;
}

.contact-social-links a {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.compact-section {
  padding: 0;
}

.scroll-top {
  right: 24px;
  bottom: 24px;
}

.credits {
  font-size: 13px;
}

.header .logo img.site-logo,
.footer .footer-about .logo img.footer-logo {
  background-color: #110c09;
  border-radius: 12px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--default-color), transparent 72%);
  flex-shrink: 0;
  object-fit: contain;
}

.header .logo img.site-logo {
  height: 52px;
  margin-right: 10px;
  max-height: 52px;
  max-width: 52px;
  width: 52px;
}

.footer .footer-about .logo img.footer-logo {
  height: 72px;
  margin-right: 10px;
  max-height: 72px;
  max-width: 72px;
  width: 72px;
}

@media (max-width: 430px) {
  .header .logo img.site-logo {
    height: 42px;
    margin-right: 8px;
    max-height: 42px;
    max-width: 42px;
    width: 42px;
  }
}

@media (min-width: 1440px) {
  .header .logo img.site-logo {
    height: 58px;
    max-height: 58px;
    max-width: 58px;
    width: 58px;
  }
}

.footer .social-links a.website-social-link img {
  border-radius: 50%;
  height: 22px;
  object-fit: cover;
  width: 22px;
}

.navmenu a.dashboard-nav-link {
  color: var(--accent-color);
  font-weight: 800;
}

.navmenu a.dashboard-nav-link:hover,
.navmenu a.dashboard-nav-link.active {
  color: color-mix(in srgb, var(--accent-color), white 18%);
}

.zeryon-stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, 1fr);
}

.zeryon-stat-card,
.zeryon-panel,
.zeryon-article-card,
.zeryon-game-preview,
.zeryon-evolution-row,
.zeryon-step {
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.24);
}

.zeryon-stat-card {
  padding: 22px;
  text-align: center;
}

.zeryon-stat-card i {
  color: var(--accent-color);
  display: block;
  font-size: 28px;
  margin-bottom: 12px;
}

.zeryon-stat-card strong {
  color: var(--heading-color);
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.zeryon-stat-card span {
  color: color-mix(in srgb, var(--default-color), transparent 22%);
  display: block;
  font-size: 0.92rem;
  margin-top: 8px;
}

.zeryon-panel {
  padding: 28px;
}

.zeryon-panel-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.zeryon-panel-header h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin: 6px 0 0;
}

.zeryon-link {
  color: var(--accent-color);
  font-weight: 800;
  white-space: nowrap;
}

.zeryon-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.zeryon-tabs-center {
  justify-content: center;
}

.zeryon-tabs button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--default-color);
  font-weight: 800;
  padding: 9px 16px;
}

.zeryon-tabs button.active,
.zeryon-tabs button:hover {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent-color), transparent 50%);
  color: var(--accent-color);
}

.zeryon-news-mini {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
}

.zeryon-news-mini:last-child {
  border-bottom: 0;
}

.zeryon-news-mini span,
.zeryon-article-card span {
  color: var(--accent-color);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.zeryon-news-mini h3,
.zeryon-article-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.zeryon-news-mini p,
.zeryon-article-card p,
.zeryon-article-card div {
  color: color-mix(in srgb, var(--default-color), transparent 18%);
  line-height: 1.7;
  margin: 0;
}

.zeryon-rank-row {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
  grid-template-columns: 46px 1fr auto;
  padding: 11px 0;
}

.zeryon-rank-row:last-child {
  border-bottom: 0;
}

.zeryon-rank-row .rank {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--accent-color);
  display: inline-flex;
  font-weight: 900;
  height: 36px;
  justify-content: center;
}

.zeryon-rank-row strong,
.zeryon-rank-row small {
  display: block;
}

.zeryon-rank-row small {
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  font-size: 0.78rem;
  margin-top: 2px;
}

.zeryon-rank-row b {
  color: var(--heading-color);
}

.zeryon-ranking-card {
  padding: 22px;
}

.zeryon-ranking-card .zeryon-panel-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.zeryon-ranking-card .zeryon-link {
  display: inline-flex;
  font-size: 0.82rem;
  margin-top: 0;
}

.zeryon-ranking-card .zeryon-tabs {
  gap: 8px;
}

.zeryon-ranking-card .zeryon-tabs button {
  font-size: 0.82rem;
  padding: 8px 12px;
}

.zeryon-ranking-card .zeryon-rank-row {
  grid-template-columns: 40px 1fr auto;
  padding: 9px 0;
}

.zeryon-ranking-card .zeryon-rank-row .rank {
  height: 32px;
}

.zeryon-article-card {
  height: 100%;
  padding: 26px;
}

.zeryon-ranking-table {
  color: var(--default-color);
  margin: 0;
}

.zeryon-ranking-table th {
  color: var(--accent-color);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zeryon-ranking-table td,
.zeryon-ranking-table th {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 14px 12px;
}

.zeryon-game-preview {
  overflow: hidden;
  padding: 24px;
}

.zeryon-preview-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.zeryon-preview-topbar span {
  color: var(--accent-color);
  font-weight: 800;
  text-transform: uppercase;
}

.zeryon-inventory-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.zeryon-item-slot {
  align-items: center;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 30%, rgba(201, 154, 66, 0.22), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(201, 154, 66, 0.28);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}

.zeryon-item-slot i {
  color: #f6cc73;
  font-size: 30px;
}

.zeryon-item-slot img {
  image-rendering: pixelated;
  max-height: 38px;
  max-width: 38px;
}

.zeryon-npc-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.zeryon-npc-row div {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.zeryon-npc-row i {
  color: var(--accent-color);
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.zeryon-evolution-group {
  margin-bottom: 34px;
}

.zeryon-evolution-group h3 {
  margin-bottom: 18px;
}

.zeryon-evolution-table {
  display: grid;
  gap: 14px;
}

.zeryon-evolution-row {
  align-items: center;
  background: color-mix(in srgb, var(--surface-color), #ffffff 4%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: grid;
  gap: 18px;
  grid-template-columns: 190px 1fr;
  padding: 18px;
}

.zeryon-evolution-row-title {
  align-items: center;
  display: flex;
  gap: 12px;
}

.zeryon-evolution-row-title i {
  color: var(--accent-color);
  font-size: 24px;
}

.zeryon-evolution-items {
  align-items: stretch;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.zeryon-evolution-item {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: grid;
  flex: 0 0 150px;
  gap: 10px;
  justify-items: center;
  min-height: 112px;
  padding: 14px 10px;
  text-align: center;
}

.zeryon-evolution-icon {
  align-items: center;
  background: radial-gradient(circle, rgba(201, 154, 66, 0.24), rgba(0, 0, 0, 0.15));
  border: 1px solid rgba(201, 154, 66, 0.28);
  border-radius: 14px;
  display: flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.zeryon-evolution-icon img {
  image-rendering: pixelated;
  max-height: 42px;
  max-width: 42px;
}

.zeryon-evolution-item span {
  color: var(--heading-color);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.zeryon-evolution-item small {
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  font-size: 11px;
  font-weight: 700;
}

.zeryon-evolution-arrow {
  align-self: center;
  color: var(--accent-color);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.zeryon-download-meta {
  display: grid;
  gap: 7px;
  margin: 18px 0;
}

.zeryon-download-requirements-section {
  padding-bottom: 30px;
}

.zeryon-requirements-table th:first-child {
  color: var(--accent-color);
  font-weight: 800;
  width: 180px;
}

.zeryon-requirements-table td {
  font-weight: 700;
}

.zeryon-download-meta span,
.zeryon-step p {
  color: color-mix(in srgb, var(--default-color), transparent 18%);
  margin: 0;
}

.zeryon-step {
  align-items: center;
  display: flex;
  gap: 16px;
  padding: 18px;
}

.zeryon-step span {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent-color);
  display: inline-flex;
  flex: 0 0 40px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
}

.zeryon-empty-state {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed color-mix(in srgb, var(--accent-color), transparent 50%);
  border-radius: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 12%);
  grid-column: 1 / -1;
  line-height: 1.7;
  padding: 22px;
  text-align: center;
}

.auth-section {
  align-items: center;
  display: flex;
  min-height: 70vh;
}

.auth-card {
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.28);
  padding: 34px;
}

.auth-card-header {
  margin-bottom: 26px;
}

.auth-card-header h2 {
  font-size: 30px;
  margin: 12px 0;
}

.auth-card-header p,
.auth-form .form-label {
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.auth-form .form-control {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  color: var(--default-color);
  min-height: 50px;
}

.auth-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 80%);
}

.auth-form .form-control:-webkit-autofill,
.auth-form .form-control:-webkit-autofill:hover,
.auth-form .form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface-color) inset;
  -webkit-text-fill-color: var(--default-color);
  caret-color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  transition: background-color 9999s ease-in-out 0s;
}

.auth-submit {
  background: var(--accent-color);
  border: 0;
  border-radius: 50px;
  color: var(--contrast-color);
  font-weight: 700;
  padding: 13px 32px;
  transition: 0.3s;
  width: 100%;
}

.auth-submit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  transform: translateY(-2px);
}

.auth-logged-in {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px;
}

.auth-logged-in i {
  color: var(--accent-color);
  font-size: 28px;
}

.auth-logged-in p {
  margin: 0;
}

.dashboard-sidebar,
.dashboard-panel {
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.22);
  padding: 28px;
}

.dashboard-user {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), black 25%));
  border-radius: 50%;
  color: var(--contrast-color);
  display: inline-flex;
  font-weight: 800;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.dashboard-user h3 {
  font-size: 19px;
  margin: 0 0 4px;
}

.dashboard-user p,
.dashboard-note,
.dashboard-heading p,
.dashboard-form .form-label {
  color: color-mix(in srgb, var(--default-color), transparent 18%);
}

.dashboard-user p,
.dashboard-note {
  margin: 0;
}

.dashboard-logout-form {
  margin-top: 22px;
}

.dashboard-logout-form button {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 55%);
  border-radius: 50px;
  color: var(--accent-color);
  font-weight: 700;
  padding: 11px 20px;
  transition: 0.3s;
  width: 100%;
}

.dashboard-logout-form button:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.dashboard-tabs {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.dashboard-tabs button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--default-color);
  font-weight: 700;
  padding: 13px 16px;
  text-align: left;
  transition: 0.3s;
}

.dashboard-tabs button:hover,
.dashboard-tabs button.active {
  background: color-mix(in srgb, var(--accent-color), transparent 88%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  color: var(--accent-color);
}

.dashboard-heading {
  margin-bottom: 24px;
}

.dashboard-heading h2 {
  font-size: 32px;
  margin: 12px 0;
}

.dashboard-tab-content {
  display: none;
}

.dashboard-tab-content.active {
  display: block;
}

.dashboard-tab-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.dashboard-form .form-control {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  color: var(--default-color);
  min-height: 50px;
}

.dashboard-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 80%);
}

.dashboard-form .form-control:-webkit-autofill,
.dashboard-form .form-control:-webkit-autofill:hover,
.dashboard-form .form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface-color) inset;
  -webkit-text-fill-color: var(--default-color);
  caret-color: var(--default-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  transition: background-color 9999s ease-in-out 0s;
}

.dashboard-submit {
  background: var(--accent-color);
  border: 0;
  border-radius: 50px;
  color: var(--contrast-color);
  font-weight: 700;
  padding: 13px 30px;
  transition: 0.3s;
}

.dashboard-submit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .header .btn-getstarted {
    display: none;
  }

  .footer .footer-about .logo {
    justify-content: center;
  }

  .footer .footer-about .social-links {
    justify-content: center;
  }

  .hero h1,
  .hero h2 {
    font-size: 44px;
  }

  .story-mini-timeline {
    padding-left: 26px;
  }

  .story-mini-item::before {
    left: -26px;
  }

  .page-title {
    padding-top: 96px;
  }

  .home-about-copy .bio-section h2 {
    font-size: 30px;
  }

  .home-about-copy .details-grid {
    grid-template-columns: 1fr;
  }

  .zeryon-stats-grid,
  .zeryon-inventory-grid,
  .zeryon-npc-row {
    grid-template-columns: 1fr 1fr;
  }

  .zeryon-panel-header {
    display: block;
  }

  .zeryon-evolution-items {
    align-items: stretch;
    flex-direction: column;
    overflow-x: visible;
  }

  .zeryon-evolution-arrow {
    transform: rotate(90deg);
  }

  .zeryon-evolution-item {
    flex: 1 1 auto;
  }
}

@media (max-width: 992px) {
  .zeryon-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zeryon-evolution-row {
    grid-template-columns: 1fr;
  }
}

.zeryon-panel label,
.platform-text {
  color: var(--default-color);
}

.zeryon-panel label {
  display: block;
  width: 100%;
}

.platform-avatar,
.platform-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 55%);
}

.platform-banner {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.tool-wheel-wrap {
  position: relative;
  width: min(280px, 80vw);
  margin: 20px auto;
}

.tool-wheel {
  width: min(280px, 80vw);
  height: min(280px, 80vw);
  border-radius: 50%;
  border: 8px solid var(--accent-color);
  background: var(--surface-color);
  transition: transform 4s cubic-bezier(.15, .8, .2, 1);
}

.tool-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 16px solid var(--accent-color);
  z-index: 2;
}

.table {
  color: var(--default-color);
}

.platform-code {
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: var(--background-color);
  color: var(--default-color);
  border: 1px solid var(--accent-color);
}

.platform-text img {
  max-width: 100%;
  height: auto;
}

.event-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.event-cal span,
.event-cal a {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0.25rem;
  border: 1px solid var(--accent-color);
  color: var(--default-color);
}

@media (min-width: 1200px) {
  .navmenu a:link,
  .navmenu a:visited,
  .navmenu .nav-disclosure {
    color: var(--nav-color);
    font-weight: 500;
  }

  .navmenu a:hover,
  .navmenu .nav-disclosure:hover {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul a[aria-current="page"] {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown ul a:link,
  .navmenu .dropdown ul a:visited {
    color: var(--nav-dropdown-color);
  }

  .navmenu a.active,
  .navmenu .nav-disclosure.active {
    color: color-mix(in srgb, var(--nav-hover-color) 65%, var(--nav-color));
    font-weight: 700;
  }

  .navmenu a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 currentColor;
    color: var(--nav-hover-color);
    font-weight: 700;
  }
}

.header .btn-getstarted,
.header .btn-getstarted:link,
.header .btn-getstarted:visited,
.header .btn-getstarted:focus {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--nav-color);
  font-size: 16px;
  font-weight: 600;
  margin-left: 12px;
  padding: 18px 8px;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  background: transparent;
  color: var(--nav-hover-color);
}

.header .btn-getstarted[aria-current="page"] {
  background: transparent;
  box-shadow: inset 0 -2px 0 currentColor;
  color: var(--nav-hover-color);
}

.navmenu a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.navmenu .dropdown ul.nav-tools {
  max-height: min(70vh, 26rem);
  overflow: auto;
}

.navmenu .nav-tools .nav-label {
  color: color-mix(in srgb, var(--nav-dropdown-color, var(--default-color)) 68%, transparent);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem 0.15rem;
  pointer-events: none;
  text-transform: uppercase;
}

.navmenu .dropdown-divider {
  border-top: 1px solid color-mix(in srgb, var(--nav-dropdown-color, var(--default-color)) 28%, transparent);
  height: 0;
  list-style: none;
  margin: 0.35rem 0.85rem;
  overflow: hidden;
  padding: 0;
}

.forum-online,
.forum-reading {
  overflow-wrap: anywhere;
}

html[data-text="large"] { font-size: 112.5%; }
html[data-text="xlarge"] { font-size: 125%; }
html[data-motion="reduce"] [data-aos] {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.password-field { position: relative; }
.password-field .form-control { padding-right: 3rem; }
.password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--default-color);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
}
.password-toggle:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
.php-email-form[aria-busy="true"] button[type="submit"] { opacity: 0.7; }
.password-rules { margin: 0; padding-left: 1.1rem; }
.password-rules li.is-met { font-weight: 700; }

.m2h-prefs {
  bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 998;
}
.m2h-prefs-toggle {
  align-items: center;
  background: var(--accent-color);
  border: 2px solid var(--contrast-color, #1d1308);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  color: var(--contrast-color, #1d1308);
  display: inline-flex;
  font-weight: 800;
  gap: 0.35rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.55rem 0.8rem;
}
.m2h-prefs-toggle:focus-visible,
.m2h-prefs-panel button:focus-visible,
.m2h-prefs-panel a:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
.m2h-prefs-panel {
  background: color-mix(in srgb, var(--surface-color), #000 8%);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  border-radius: 16px;
  bottom: 58px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  color: var(--default-color);
  max-height: min(70vh, 34rem);
  overflow: auto;
  padding: 0.9rem;
  position: absolute;
  right: 0;
  width: min(20rem, calc(100vw - 1.5rem));
}
.m2h-prefs-panel[hidden] { display: none; }
.m2h-prefs-head { align-items: center; display: flex; justify-content: space-between; gap: 0.5rem; }
.m2h-prefs-head h2, .m2h-prefs-panel h3 { color: var(--heading-color); font-size: 0.95rem; margin: 0.8rem 0 0.4rem; }
.m2h-prefs-head h2 { margin-top: 0; }
.m2h-prefs-help { font-size: 0.85rem; margin: 0; }
.m2h-prefs-close { background: transparent; border: 0; color: inherit; min-height: 44px; min-width: 44px; }
.m2h-prefs-row, .m2h-theme-grid { display: grid; gap: 0.4rem; }
.m2h-prefs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m2h-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m2h-prefs-row a, .m2h-prefs-row button, .m2h-theme-card, .m2h-theme-reset {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  border-radius: 10px;
  color: inherit;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  text-align: left;
  text-decoration: none;
}
.m2h-theme-card { align-items: center; display: flex; gap: 0.4rem; }
.m2h-prefs-row .is-active, .m2h-theme-card.is-active, .m2h-lang-list a.is-active, .m2h-segment button.is-active {
  border-color: var(--accent-color);
  box-shadow: inset 0 -2px 0 var(--accent-color);
  font-weight: 700;
}
.m2h-reset-mark {
  align-items: center;
  background: color-mix(in srgb, var(--surface-color) 55%, var(--default-color)) !important;
  color: var(--heading-color);
  display: inline-flex;
  justify-content: center;
}
.m2h-lang-list {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  border-radius: 10px;
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  width: max-content;
}
.m2h-lang-list a {
  position: relative;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  display: flex;
  justify-content: center;
  min-height: 44px;
  min-width: 3.25rem;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
}
.m2h-lang-list a + a {
  border-left: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
}
.m2h-lang-name {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  clip: rect(0 0 0 0);
}
.m2h-lang-code { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }
.m2h-segment {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  border-radius: 10px;
  display: flex;
  overflow: hidden;
}
.m2h-segment button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 0.1rem;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 0.3rem 0.25rem;
}
.m2h-segment button + button { border-left: 1px solid color-mix(in srgb, var(--default-color), transparent 75%); }
.m2h-segment button span { font-size: 0.72rem; line-height: 1.15; }
.m2h-segment button[data-text="large"] .m2h-type-sample { font-size: 1.05rem; }
.m2h-segment button[data-text="xlarge"] .m2h-type-sample { font-size: 1.2rem; }
.m2h-type-sample { font-size: 0.9rem; font-weight: 700; }
.masked-word { white-space: nowrap; }
.mask-info {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  margin-left: 0.15rem;
  min-height: 1.5rem;
  min-width: 1.5rem;
  padding: 0.15rem 0.35rem;
  position: relative;
}
.mask-info:focus-visible { outline: 2px solid var(--accent-color); }
.mask-info:hover::after, .mask-info:focus::after {
  background: var(--surface-color, #1c1a16);
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  color: inherit;
  content: attr(data-tip);
  display: block;
  font-size: 0.8rem;
  left: 0;
  max-width: 16rem;
  padding: 0.4rem 0.55rem;
  position: absolute;
  top: 1.6rem;
  white-space: normal;
  width: max-content;
  z-index: 5;
}

/*
 * Layers: header 1030, preferences toggle 1032, backdrop 1044, drawers 1048.
 * Bootstrap modals stay above the drawers.
 */
.header {
  z-index: 1030;
}

.header .logo {
  flex-shrink: 0;
  min-width: max-content;
}

.header .logo .sitename,
.nav-drawer-bar .sitename {
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--accent-color) 55%, #fff), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--accent-color);
  filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--heading-color) 28%, transparent));
  font-family: "Cinzel Decorative", Cinzel, Georgia, serif;
  font-size: clamp(1.55rem, 1.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  .header .logo .sitename {
    font-size: clamp(1.2rem, 3.2vw, 1.45rem);
  }
}

@media (max-width: 380px) {
  .header .logo .sitename,
  .nav-drawer-bar .sitename {
    font-size: 1.2rem;
  }
}

.navmenu .nav-disclosure {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--nav-color);
  cursor: pointer;
  display: flex;
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 600;
  gap: 0.35rem;
  justify-content: space-between;
  min-height: 44px;
  padding: 18px 15px;
  text-align: left;
  width: auto;
}

.navmenu .nav-disclosure i {
  font-size: 12px;
  transition: transform 200ms ease-out;
}

.navmenu .nav-disclosure[aria-expanded="true"] i,
.navmenu .dropdown:hover > .nav-disclosure i {
  transform: rotate(180deg);
}

.navmenu li:hover > .nav-disclosure,
.navmenu .nav-disclosure.active,
.navmenu .nav-disclosure:focus-visible {
  color: var(--nav-hover-color);
}

.navmenu .nav-disclosure:focus-visible,
.nav-drawer-close:focus-visible,
.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.mobile-nav-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--nav-color);
  display: inline-flex;
  font-size: 28px;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}

.nav-drawer-bar,
.nav-drawer-account {
  display: none;
}

@media (min-width: 1200px) {
  .nav-drawer,
  .nav-drawer-scroll {
    display: contents;
  }

  .navmenu .dropdown.is-open > ul,
  .navmenu .dropdown:focus-within > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }
}

@media (max-width: 1199.98px) {
  .nav-drawer {
    background: var(--nav-mobile-background-color, var(--surface-color));
    color: var(--nav-dropdown-color, var(--default-color));
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    inset: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    pointer-events: none;
    position: fixed;
    transform: translateX(-100%);
    transition: transform 260ms ease-out;
    visibility: hidden;
    z-index: 1048;
  }

  .nav-drawer.is-open {
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
  }

  .nav-drawer-bar {
    align-items: center;
    border-bottom: 1px solid color-mix(in srgb, var(--nav-dropdown-color, var(--default-color)) 18%, transparent);
    display: flex;
    flex: 0 0 auto;
    gap: 0.75rem;
    justify-content: space-between;
    min-height: 64px;
    padding: 0.75rem 0.9rem;
  }

  .nav-drawer-bar .logo {
    color: inherit;
    flex: 0 1 auto;
    gap: 0.55rem;
    justify-content: flex-start;
    min-width: 0;
    order: 0;
    text-decoration: none;
  }

  .nav-drawer-bar .sitename {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-drawer-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    margin-left: auto;
    min-height: 44px;
    min-width: 44px;
    order: 1;
  }

  .nav-drawer-close:hover {
    color: var(--accent-color);
  }

  .nav-drawer-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-bottom: 1rem;
  }

  .navmenu ul,
  .navmenu .dropdown ul {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    inset: auto;
    list-style: none;
    margin: 0;
    overflow: visible;
    padding: 0.25rem 0;
    position: static;
  }

  .navmenu .dropdown > ul {
    display: none;
    padding: 0 0 0.35rem 0.85rem;
  }

  .navmenu .dropdown > ul.dropdown-active {
    background: transparent;
    display: block;
  }

  .navmenu a,
  .navmenu .nav-disclosure {
    border-bottom: 1px solid color-mix(in srgb, var(--nav-dropdown-color, var(--default-color)) 12%, transparent);
    color: var(--nav-dropdown-color, var(--default-color));
    font-size: 1.05rem;
    min-height: 48px;
    padding: 0.7rem 1rem;
    width: 100%;
  }

  .navmenu .dropdown ul a {
    font-size: 0.98rem;
    padding-left: 1.25rem;
  }

  .navmenu a.active,
  .navmenu .nav-disclosure.active {
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--accent-color) 45%, transparent);
    color: color-mix(in srgb, var(--nav-dropdown-hover-color, var(--accent-color)) 70%, var(--nav-dropdown-color, var(--default-color)));
  }

  .navmenu a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--accent-color);
    color: var(--nav-dropdown-hover-color, var(--accent-color));
  }

  .navmenu .nav-disclosure i,
  .navmenu a i {
    background: transparent;
    border-radius: 0;
    height: auto;
    width: auto;
  }

  .nav-drawer-account {
    display: list-item;
    margin-top: 0.5rem;
  }

  .navmenu .dropdown-divider {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .navmenu .dropdown ul.nav-tools {
    max-height: none;
    overflow: visible;
  }
}

.m2h-prefs {
  z-index: 1032;
}

body.m2h-prefs-open .m2h-prefs {
  z-index: 1046;
}

.m2h-prefs-toggle {
  position: relative;
  z-index: 1032;
}

.m2h-prefs-panel {
  background: var(--surface-color);
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--default-color) 18%, transparent);
  border-radius: 0;
  bottom: 0;
  box-shadow: none;
  color: var(--default-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 260ms ease-out;
  visibility: hidden;
  width: min(24rem, 100%);
  z-index: 1048;
}

.m2h-prefs-panel.is-open {
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.m2h-prefs-panel[hidden] {
  display: none;
}

.m2h-prefs-head {
  align-items: flex-start;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color) 16%, transparent);
  flex: 0 0 auto;
  padding: 0.9rem 0.9rem 0.7rem;
}

.m2h-prefs-head h2 {
  font-size: 1.35rem;
  margin: 0;
}

.m2h-prefs-sub,
.m2h-prefs-kicker {
  color: color-mix(in srgb, var(--default-color) 72%, transparent);
  margin: 0.2rem 0 0;
}

.m2h-prefs-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0.85rem 0 0.35rem;
  text-transform: uppercase;
}

.m2h-prefs-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.2rem 0.9rem 1rem;
}

.m2h-prefs-scroll h3 {
  font-size: 0.95rem;
  margin: 1rem 0 0.45rem;
}

.m2h-prefs-row[data-pref-group] {
  grid-template-columns: 1fr;
}

.m2h-backdrop {
  background: color-mix(in srgb, #000 42%, transparent);
  inset: 0;
  position: fixed;
  z-index: 1044;
}

.m2h-backdrop[hidden] {
  display: none;
}

@media (max-width: 1199.98px) {
  .m2h-prefs-panel {
    width: 100%;
  }

  .m2h-backdrop {
    display: none;
  }
}

body.m2h-scroll-lock {
  left: 0;
  overflow: hidden;
  position: fixed;
  right: 0;
  width: 100%;
}

body.m2h-nav-open .m2h-prefs-toggle,
body.m2h-prefs-open .m2h-prefs-toggle,
body.m2h-nav-open .scroll-top,
body.m2h-prefs-open .scroll-top {
  pointer-events: none;
  visibility: hidden;
}

html[data-motion="reduce"] .nav-drawer,
html[data-motion="reduce"] .m2h-prefs-panel,
html[data-motion="reduce"] .navmenu .nav-disclosure i {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer,
  .m2h-prefs-panel,
  .navmenu .nav-disclosure i {
    transition: none;
  }
}

.m2h-account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin-bottom: 1rem;
}

.m2h-account-nav a {
  color: var(--default-color);
  font-weight: 600;
  text-decoration: none;
}

.m2h-account-nav a:hover,
.m2h-account-nav a:focus-visible {
  color: var(--accent-color);
}

.m2h-member {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  vertical-align: middle;
}

.m2h-avatar {
  border-radius: 50%;
  flex: 0 0 auto;
  object-fit: cover;
}

.m2h-avatar-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.m2h-avatar-choice {
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: block;
  margin: 0;
  position: relative;
}

.m2h-avatar-choice img,
.m2h-avatar-card img {
  border-radius: 12px;
  display: block;
  height: auto;
  width: 100%;
}

.m2h-avatar-choice input {
  position: absolute;
  opacity: 0;
}

.m2h-avatar-choice:has(input:checked),
.m2h-avatar-choice:has(input:focus-visible) {
  border-color: var(--accent-color);
}

.m2h-avatar-card.is-off {
  opacity: 0.45;
}

.m2h-signature {
  border-top: 1px solid color-mix(in srgb, var(--default-color) 18%, transparent);
  color: color-mix(in srgb, var(--default-color) 75%, transparent);
  font-size: 0.92rem;
  margin-top: 0.75rem;
  padding-top: 0.45rem;
}

.m2h-live {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  min-height: 1.5rem;
}

.m2h-live-mark {
  border: 1px solid color-mix(in srgb, var(--default-color) 45%, transparent);
  border-radius: 999px;
  display: inline-flex;
  height: 1.35rem;
  justify-content: center;
  min-width: 1.35rem;
}

.m2h-live[data-state="available"] .m2h-live-mark {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.m2h-help {
  color: color-mix(in srgb, var(--default-color) 88%, var(--background-color));
  font-size: 0.86rem;
  margin: 0.25rem 0 0;
}

.m2h-badge {
  border: 1px solid color-mix(in srgb, var(--accent-color) 55%, transparent);
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  margin: 0 0.25rem 0.25rem 0;
  padding: 0.15rem 0.55rem;
}

.m2h-lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.zeryon-panel label.m2h-lang {
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--default-color) 25%, transparent);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 0.25rem;
  line-height: 1.2;
  max-width: 100%;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
  width: auto;
}

.m2h-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.m2h-steps li {
  border: 1px solid color-mix(in srgb, var(--default-color) 30%, transparent);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.m2h-steps li.is-done {
  border-color: var(--accent-color);
}

.m2h-catalog { display: grid; gap: 1rem; }
.m2h-server {
  background: color-mix(in srgb, var(--background-color) 88%, var(--default-color));
  border: 1px solid color-mix(in srgb, var(--default-color) 18%, transparent);
  border-radius: 16px;
  color: var(--default-color);
  display: grid;
  gap: 0.8rem;
  grid-template-areas: "side main vote";
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr) minmax(8.5rem, 11rem);
  padding: 0.9rem;
}
.m2h-server-side { grid-area: side; }
.m2h-server-main { grid-area: main; min-width: 0; }
.m2h-server-vote { display: flex; flex-direction: column; gap: 0.45rem; grid-area: vote; }
.m2h-server h3 { font-size: 1.2rem; margin: 0 0 0.45rem; }
.m2h-server p { margin: 0 0 0.25rem; }
.m2h-server-main > p:not(.m2h-feature) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.m2h-banner {
  aspect-ratio: 16 / 5;
  background: color-mix(in srgb, var(--default-color) 8%, var(--background-color));
  border-radius: 12px;
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}
.m2h-banner-empty {
  align-items: center;
  color: var(--accent-color);
  display: grid;
  font-size: 2rem;
  place-items: center;
}
.m2h-place { font-weight: 700; }
.m2h-votes strong { display: block; font-size: 1.6rem; line-height: 1; }
.m2h-lang-row { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.m2h-lang-row span, .m2h-view-toggle button {
  border: 1px solid color-mix(in srgb, var(--default-color) 25%, transparent);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
.m2h-view-toggle { display: flex; gap: 0.35rem; }
.m2h-view-toggle button { background: transparent; color: inherit; }
.m2h-view-toggle button[aria-pressed="true"] { border-color: var(--accent-color); }
.m2h-server.is-podium { border-color: var(--accent-color); }
.m2h-pages { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.m2h-pages a.active { font-weight: 700; }
.m2h-catalog.is-grid { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.m2h-catalog.is-grid .m2h-server { grid-template-areas: "main" "vote" "side"; grid-template-columns: 1fr; }
@media (max-width: 767px) {
  .m2h-server { grid-template-areas: "main" "vote" "side"; grid-template-columns: 1fr; }
}

.m2h-editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.m2h-editor-tools button,
.m2h-code {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--default-color) 30%, transparent);
  color: inherit;
}

.m2h-code {
  font-size: 1.4rem;
  letter-spacing: 0.35rem;
  text-align: center;
}

.m2h-editor-preview,
.m2h-codeblock {
  border: 1px solid color-mix(in srgb, var(--default-color) 18%, transparent);
  border-radius: 0.6rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem;
  white-space: pre-wrap;
}

.m2h-copy {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.m2h-server-card .platform-logo {
  max-width: 72px;
}

.m2h-layout {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.m2h-main,
.m2h-side-wrap {
  min-width: 0;
}

.m2h-filter-open {
  margin-bottom: 0.75rem;
}

.m2h-side {
  display: grid;
  gap: 0.75rem;
}

.m2h-side .m2h-filter-form {
  display: none;
}

.m2h-side.is-open .m2h-filter-form {
  display: block;
}

.m2h-filter-form label,
.m2h-api label {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
}

.m2h-catalog-tools {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 30;
}

.m2h-tool {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.m2h-tool > span {
  color: var(--m2h-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
}

.m2h-catalog-tools .dropdown {
  position: static;
}

.m2h-catalog-tools .form-control {
  min-width: 12rem;
  width: auto;
}

.m2h-catalog-tools .dropdown-toggle {
  background-color: var(--m2h-input-bg);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239aa0a6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  border: 1px solid var(--m2h-input-border);
  color: var(--m2h-input-text);
  cursor: pointer;
  padding-right: 2.25rem;
  text-align: left;
}

.m2h-catalog-tools .dropdown-toggle::after {
  display: none;
}

.m2h-catalog-tools .dropdown-toggle:hover,
.m2h-catalog-tools .dropdown-toggle:focus,
.m2h-catalog-tools .dropdown-toggle.show {
  background-color: var(--m2h-input-bg);
  border-color: var(--m2h-focus);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--m2h-focus) 20%, transparent);
  color: var(--m2h-input-text);
}

.m2h-catalog-tools .dropdown-menu {
  background-color: var(--m2h-input-bg);
  border-color: var(--m2h-input-border);
  color: var(--m2h-input-text);
  max-height: min(70vh, 34rem);
  width: min(22rem, calc(100vw - 2rem));
}

.m2h-catalog-tools .dropdown-menu.show {
  display: flex;
  flex-direction: column;
  left: 0;
  overflow: hidden;
  padding: 0;
  right: auto;
  top: 100%;
  transform: none;
  width: min(22rem, 100%);
}

.m2h-catalog-tools .m2h-filter-scroll {
  overflow: auto;
  padding: 0.85rem 1rem 0.25rem;
}

.m2h-catalog-tools .dropdown-menu label {
  margin-bottom: 0;
}

.m2h-catalog-tools .dropdown-menu label:has(input[type="checkbox"]) {
  align-items: center;
  display: flex;
  gap: 0.45rem;
}

.m2h-catalog-tools .dropdown-menu hr {
  margin: 0.65rem 0;
}

.m2h-catalog-tools .m2h-filter-actions {
  background: var(--m2h-input-bg);
  padding: 0.65rem 1rem 0.85rem;
}

.m2h-side details:not([open]) > :not(summary) {
  display: none !important;
}

.m2h-side details > summary {
  cursor: pointer;
  list-style: none;
}

.m2h-side-summary {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.m2h-side details > summary::-webkit-details-marker,
.m2h-side details > summary::marker {
  content: "";
  display: none;
}

.m2h-side details > summary h2 {
  margin: 0;
}

.m2h-side-chevron {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  flex: 0 0 auto;
  height: 0.45rem;
  margin-top: -0.2rem;
  transform: rotate(45deg);
  width: 0.45rem;
}

.m2h-side details[open] > summary {
  margin-bottom: 0.75rem;
}

.m2h-side details[open] .m2h-side-chevron {
  margin-top: 0.15rem;
  transform: rotate(-135deg);
}

.m2h-filter-form h2,
.m2h-side h2 {
  font-size: 1rem;
}

.m2h-filter-form h2 span,
.m2h-stat span,
.m2h-note,
.m2h-mini span {
  color: var(--m2h-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.m2h-stat,
.m2h-mini li {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin: 0 0 0.35rem;
}

.m2h-mini {
  margin: 0;
  padding: 0;
}

ul.m2h-mini {
  list-style: none;
}

ol.m2h-mini {
  padding-left: 1.1rem;
}

.m2h-votes strong {
  font-size: 1.7rem;
  line-height: 1;
}

.m2h-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.m2h-tabs button {
  background: var(--m2h-surface);
  border: 1px solid var(--m2h-border-strong);
  border-radius: 999px;
  color: var(--m2h-text);
  padding: 0.35rem 0.7rem;
}

.m2h-tabs button[aria-selected="true"] {
  background: var(--m2h-button-primary);
  border-color: var(--m2h-button-primary);
  color: var(--m2h-button-primary-text);
}

.m2h-api .m2h-codeblock,
.m2h-api textarea,
.m2h-api input {
  max-width: 100%;
}

@media (min-width: 992px) {
  .m2h-layout {
    align-items: start;
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .m2h-side {
    max-height: none;
    overflow: visible;
  }

  .m2h-side details:not([open]) > :not(summary) {
    display: block !important;
  }

  .m2h-side details > summary {
    cursor: default;
    margin-bottom: 0.75rem;
    pointer-events: none;
  }

  .m2h-side-chevron {
    display: none;
  }

  .m2h-side .m2h-filter-form {
    display: block;
  }

  .m2h-filter-open {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m2h-live, .m2h-badge { transition: none; }
}

#vot {
  scroll-margin-top: 6.5rem;
}

.m2h-page-heading {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.m2h-page-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
}

a.m2h-item-iconbtn,
a.m2h-item-iconbtn:hover,
a.m2h-item-iconbtn:focus {
  color: var(--m2h-input-text);
  text-decoration: none;
}

#iteme-info,
#timp-info,
#cronometru-info {
  scroll-margin-top: 6.5rem;
}

.m2h-time-result.m2h-timer-view {
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-align: center;
}

.m2h-timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.m2h-timer-actions .btn {
  min-height: 3rem;
  min-width: 8.5rem;
}

.m2h-timer-sound {
  align-items: center;
  color: var(--default-color);
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin: 0.95rem 0 0;
}

#cronometru:fullscreen {
  background: var(--background-color, var(--surface-color));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

#cronometru:fullscreen .m2h-timer-view {
  font-size: clamp(4rem, 14vw, 9rem);
}

.m2h-time-result {
  color: var(--heading-color);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1.15rem;
}

.m2h-time-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.m2h-time-field {
  display: flex;
  flex: 0 0 calc(25% - 0.6375rem);
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  max-width: calc(25% - 0.6375rem);
  min-width: 0;
}

.m2h-time-field span {
  color: var(--m2h-text-muted, var(--default-color));
  font-size: 0.95rem;
}

.m2h-time-field input {
  background: var(--m2h-input-bg);
  border: 1px solid var(--m2h-input-border);
  border-radius: 16px;
  color: var(--m2h-input-text);
  font-family: inherit;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  height: 5rem;
  padding: 0 0.75rem;
  text-align: center;
  width: 100%;
}

.m2h-time-field input:focus {
  border-color: var(--m2h-focus);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--m2h-focus) 22%, transparent);
  outline: none;
}

@media (max-width: 767.98px) {
  .m2h-time-field {
    flex-basis: calc(50% - 0.425rem);
    max-width: calc(50% - 0.425rem);
  }
}

.m2h-faq-item {
  border-top: 1px solid color-mix(in srgb, var(--default-color) 18%, transparent);
}

.m2h-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1.6rem 0.85rem 0;
  position: relative;
}

.m2h-faq-item summary::-webkit-details-marker {
  display: none;
}

.m2h-faq-item summary::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 0.45rem;
  position: absolute;
  right: 0.15rem;
  top: 1.15rem;
  transform: rotate(45deg);
  width: 0.45rem;
}

.m2h-faq-item[open] summary::after {
  top: 1.05rem;
  transform: rotate(225deg);
}

.m2h-faq-item p {
  margin: 0 0 0.85rem;
}

.m2h-page-heading h1 {
  margin: 0;
  min-width: 0;
}

.m2h-page-lead {
  color: var(--page-title-color, var(--heading-color));
  margin: 0.45rem 0 0;
}

#item-count {
  margin: 0 0 0.45rem;
}

.m2h-item-bar {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.m2h-item-search {
  flex: 1 1 12rem;
  max-width: 36rem;
  min-width: 0;
}

.m2h-item-search input {
  background-color: var(--m2h-input-bg);
  border: 1px solid var(--m2h-input-border);
  border-radius: 24px;
  color: var(--m2h-input-text);
  height: 44px;
  padding: 0 1.15rem;
  width: 100%;
}

.m2h-item-search input:hover {
  box-shadow: 0 1px 6px color-mix(in srgb, var(--default-color) 22%, transparent);
}

.m2h-item-search input:focus {
  background-color: var(--m2h-input-bg);
  border-color: var(--m2h-focus);
  box-shadow: 0 1px 6px color-mix(in srgb, var(--default-color) 22%, transparent);
  color: var(--m2h-input-text);
  outline: none;
}

.m2h-item-iconbtn {
  align-items: center;
  background: var(--m2h-input-bg);
  border: 1px solid var(--m2h-input-border);
  border-radius: 50%;
  color: var(--m2h-input-text);
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  position: relative;
  width: 44px;
}

.m2h-item-iconbtn[data-title]:hover::after,
.m2h-item-iconbtn[data-title]:focus-visible::after {
  background: var(--surface-color);
  border: 1px solid var(--m2h-input-border);
  border-radius: 8px;
  bottom: calc(100% + 0.4rem);
  color: var(--m2h-input-text);
  content: attr(data-title);
  font-size: 0.75rem;
  left: 50%;
  line-height: 1.2;
  padding: 0.3rem 0.5rem;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 6;
}

.m2h-page-heading .m2h-item-iconbtn[data-title]:hover::after,
.m2h-page-heading .m2h-item-iconbtn[data-title]:focus-visible::after,
.m2h-item-bar .m2h-item-iconbtn[data-title]:hover::after,
.m2h-item-bar .m2h-item-iconbtn[data-title]:focus-visible::after {
  left: auto;
  right: 0;
  transform: none;
}

.m2h-item-iconbtn:hover,
.m2h-item-iconbtn:focus,
.m2h-item-iconbtn.show,
.m2h-item-iconbtn.is-active,
.m2h-item-iconbtn.is-copied {
  background: var(--m2h-input-bg);
  border-color: var(--m2h-focus);
  color: var(--m2h-input-text);
}

.m2h-item-types {
  background: var(--m2h-input-bg);
  border-color: var(--m2h-input-border);
  max-height: min(60vh, 24rem);
  overflow: auto;
  width: min(16rem, calc(100vw - 2rem));
}

.m2h-item-types .dropdown-item {
  color: var(--m2h-input-text);
}

.m2h-item-types .dropdown-item.is-current,
.m2h-item-types .dropdown-item:hover,
.m2h-item-types .dropdown-item:focus {
  background: color-mix(in srgb, var(--accent-color) 18%, transparent);
  color: var(--m2h-input-text);
}

.m2h-item-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
}

.m2h-item-card {
  align-items: center;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--default-color) 18%, transparent);
  border-radius: 12px;
  color: inherit;
  contain-intrinsic-size: auto 9rem;
  content-visibility: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: flex-start;
  min-height: 8rem;
  padding: 0.6rem 0.45rem;
  text-align: center;
}

.m2h-item-card.is-open {
  border-color: var(--accent-color);
}

.m2h-item-card[hidden] {
  display: none !important;
}

.m2h-item-card strong {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.m2h-item-card small,
.m2h-item-detail p {
  color: var(--m2h-text-muted);
}

.m2h-item-icon {
  background-image: var(--m2h-item-sprite);
  background-repeat: no-repeat;
  display: inline-block;
}

.m2h-item-icon.is-empty {
  background: color-mix(in srgb, var(--default-color) 12%, transparent);
  border-radius: 6px;
  height: 32px;
  width: 32px;
}

.m2h-item-detail:not([hidden]) {
  background: color-mix(in srgb, var(--surface-color), #ffffff 6%);
  border: 1px solid color-mix(in srgb, var(--default-color) 18%, transparent);
  border-radius: 12px;
  bottom: 1rem;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.35);
  left: 50%;
  max-height: min(46vh, 22rem);
  overflow: auto;
  padding: 0.9rem;
  position: fixed;
  transform: translateX(-50%);
  width: min(40rem, calc(100vw - 1.5rem));
  z-index: 40;
}

.m2h-item-detail-head {
  display: flex;
  gap: 0.9rem;
}

.m2h-item-detail h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.m2h-item-detail p {
  margin: 0 0 0.25rem;
}

.m2h-item-detail p strong {
  color: var(--default-color);
}

.m2h-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
