@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  color-scheme: dark;
  --page: #08010c;
  --bg: #0b0311;
  --surface: #13091d;
  --surface-soft: #20112d;
  --text: #f4eff8;
  --muted: #b7aebf;
  --border: #24132f;
  --primary: #8b18ff;
  --primary-2: #5b5ff7;
  --footer: #0b0311;
  --footer-line: rgba(255, 255, 255, 0.08);
  --header: rgba(13, 6, 20, 0.94);
  --dropdown: #070b15;
  --wave: #0b0311;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f3f3f4;
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-soft: #eeeeef;
  --text: #17121d;
  --muted: #6b6572;
  --border: #e0e0e2;
  --footer: #ffffff;
  --footer-line: rgba(0, 0, 0, 0.08);
  --header: rgba(255, 255, 255, 0.88);
  --dropdown: #ffffff;
  --wave: #f4f4f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

.nav-links > a,
.nav-dropdown-button,
.language-button,
.theme-toggle,
.store-button,
.button,
.news-more,
.news-tile,
.news-close-button,
.news-open-button,
.server-copy-button,
.footer-cta,
.theme-button,
.hero-side-action,
.card {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-links > a:focus-visible,
.nav-dropdown-button:focus-visible,
.language-button:focus-visible,
.theme-toggle:focus-visible,
.store-button:focus-visible,
.button:focus-visible,
.news-more:focus-visible,
.news-tile:focus-visible,
.news-close-button:focus-visible,
.news-open-button:focus-visible,
.server-copy-button:focus-visible,
.footer-cta:focus-visible,
.theme-button:focus-visible,
.hero-side-action:focus-visible,
.card:focus-visible {
  outline: 3px solid rgba(196, 119, 255, 0.72);
  outline-offset: 4px;
}

.store-button,
.button,
.news-more,
.news-close-button,
.news-open-button,
.server-copy-button,
.footer-cta {
  transform: translateY(0);
}

.store-button:hover,
.button:hover,
.news-more:hover,
.news-close-button:hover,
.news-open-button:hover,
.server-copy-button:hover,
.footer-cta:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.store-button:active,
.button:active,
.news-more:active,
.news-close-button:active,
.news-open-button:active,
.server-copy-button:active,
.footer-cta:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.48);
}

.nav-links > a:hover,
.nav-dropdown-button:hover,
.language-button:hover,
.theme-toggle:hover,
.theme-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.nav-links > a:active,
.nav-dropdown-button:active,
.language-button:active,
.theme-toggle:active,
.theme-button:active {
  transform: translateY(1px);
}

.app {
  min-height: 100vh;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 82px;
  width: min(1520px, calc(100% - 56px));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 96px;
  height: 46px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  align-items: center;
  min-height: 46px;
  padding: 4px 6px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: var(--header);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 800;
  text-transform: none;
}

.nav-links > a,
.nav-dropdown-button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.nav-icon .ui-icon {
  width: 16px;
  height: 16px;
}

:root[data-theme="light"] .nav-icon {
  color: #ffffff;
}

.nav-links > a:hover,
.nav-dropdown-button:hover,
.nav-links .active,
.nav-dropdown-button.active {
  background: rgba(139, 24, 255, 0.22);
  color: #ffffff;
}

:root[data-theme="light"] .nav-links {
  color: #2a2530;
}

:root[data-theme="light"] .nav-dropdown-menu a {
  color: #2a2530;
}

:root[data-theme="light"] .nav-links a:hover,
:root[data-theme="light"] .nav-links .active,
:root[data-theme="light"] .nav-dropdown-button:hover,
:root[data-theme="light"] .nav-dropdown-button.active {
  color: #ffffff;
  background: var(--primary);
}

.nav-links > a,
.nav-dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.nav-links a:hover,
.nav-links .active,
.nav-dropdown-button:hover,
.nav-dropdown-button.active {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
  padding: 0;
}

.nav-dropdown-button {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dropdown-arrow {
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  opacity: 0.9;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow {
  transform: translateY(1px) rotate(225deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  display: none;
  min-width: 170px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--dropdown);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32), inset 0 -4px 0 rgba(139, 24, 255, 0.22);
  padding: 8px;
}

.language-dropdown {
  position: relative;
  padding: 12px 0;
}

.language-button,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: none;
}

.language-button:hover,
.theme-toggle:hover {
  background: transparent;
}

.theme-toggle .ui-icon {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

:root[data-theme="light"] .theme-toggle .ui-icon {
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  min-width: 168px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--dropdown);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  padding: 8px;
}

.language-dropdown:hover .language-menu,
.language-dropdown:focus-within .language-menu {
  display: grid;
  gap: 4px;
}

.language-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 0 10px;
  text-align: left;
}

.language-menu button:hover,
.language-menu button.active {
  background: rgba(139, 24, 255, 0.16);
}

.flag {
  font-size: 1.15rem;
  line-height: 1;
}

.flag-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 15px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.flag-it {
  background: linear-gradient(90deg, #009246 0 33.33%, #fff 33.33% 66.66%, #ce2b37 66.66%);
}

.flag-es {
  background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%);
}

.flag-en {
  background:
    linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(180deg, transparent 36%, #fff 36% 64%, transparent 64%),
    linear-gradient(90deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
    linear-gradient(180deg, transparent 42%, #c8102e 42% 58%, transparent 58%),
    #012169;
}

.flag-image {
  display: block;
  object-fit: cover;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
  gap: 4px;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 6px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(139, 24, 255, 0.18);
  transform: translateX(3px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.store-button {
  padding: 0 24px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  box-shadow: 0 6px 0 #4a0f86;
}

.store-button:hover,
.button:hover,
.footer-cta:hover,
.footer-store-button:hover,
.pre-footer-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.store-button:active,
.button:active,
.footer-cta:active,
.footer-store-button:active,
.pre-footer-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.42);
}

.hero {
  position: relative;
  min-height: 850px;
  padding: 260px 0 210px;
  background:
    radial-gradient(circle at 50% 38%, rgba(139, 24, 255, 0.18), transparent 28%),
    linear-gradient(0deg, rgba(8, 1, 12, 0.86), rgba(8, 1, 12, 0.48)),
    url('/assets/banner.jpg') center / cover no-repeat;
  color: white;
  overflow: hidden;
}

.particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particles span {
  position: absolute;
  left: var(--left);
  bottom: -24px;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(196, 119, 255, 0.5) 45%, rgba(139, 24, 255, 0) 72%);
  box-shadow: 0 0 14px rgba(196, 119, 255, 0.72);
  opacity: 0;
  animation: particle-rise var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.hero-grid {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(250px, 0.86fr) auto minmax(250px, 0.86fr);
  align-items: center;
  gap: clamp(10px, 2.2vw, 30px);
  width: min(980px, 100%);
}

.hero h1,
.page-title h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1;
}

.hero h1 {
  color: #c477ff;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: 0 6px 0 #4b176c, 0 0 28px rgba(196, 119, 255, 0.6);
  text-transform: uppercase;
}

.hero-logo {
  display: block;
  width: min(430px, 82vw);
  height: auto;
  margin: 0 auto;
  animation: floatLogo 3.8s ease-in-out infinite;
}

.hero-side-action {
  --side-x: 0px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 270px;
  color: #fff;
  text-align: left;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.36);
  animation: sideButtonFloat 4s ease-in-out infinite;
}

.hero-server-widget {
  position: relative;
  justify-self: end;
  width: min(320px, 100%);
  min-height: 210px;
  display: grid;
  align-items: center;
  justify-items: end;
}

.hero-help-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #a92dff, #711ac9);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 8px 0 #46107f, 0 18px 34px rgba(139, 24, 255, 0.32);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease;
  animation: helpPulse 2.2s ease-in-out infinite;
}

.hero-help-button:hover,
.hero-help-button.active {
  transform: translateY(-5px) rotate(8deg) scale(1.05);
  filter: brightness(1.08);
}

.hero-help-button:active {
  transform: translateY(2px) scale(0.96);
  box-shadow: 0 3px 0 #46107f;
}

.hero-server-window {
  position: absolute;
  right: 72px;
  top: 50%;
  width: 300px;
  overflow: hidden;
  border: 1px solid rgba(196, 119, 255, 0.28);
  border-radius: 16px;
  background: rgba(15, 10, 22, 0.92);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.36), 0 0 36px rgba(139, 24, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(24px) rotateY(34deg) scale(0.88);
  transform-origin: right center;
  transition: opacity 220ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(14px);
}

.hero-server-window.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0) rotateY(0deg) scale(1);
}

.hero-window-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.hero-window-bar span:nth-child(1) {
  background: #ff5f57;
}

.hero-window-bar span:nth-child(2) {
  background: #ffbd2e;
}

.hero-window-bar span:nth-child(3) {
  background: #28c840;
}

.hero-window-content {
  display: grid;
  gap: 8px;
  padding: 16px;
  text-align: left;
}

.hero-window-content label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-window-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 12px;
  transition: transform 180ms ease, background 180ms ease, filter 180ms ease;
}

.hero-window-field:hover {
  background: rgba(139, 24, 255, 0.25);
  transform: translateY(-2px);
}

.hero-window-field:active {
  transform: translateY(2px);
}

.hero-window-field.copied,
.hero-play-button.copied {
  background: linear-gradient(180deg, #20d67a, #0ba85b);
  color: #fff;
}

.hero-window-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.hero-window-bottom small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.hero-play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #a92dff, #711ac9);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 18px;
  box-shadow: 0 5px 0 #46107f;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.hero-play-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.hero-play-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

@keyframes helpPulse {
  0%,
  100% {
    box-shadow: 0 8px 0 #46107f, 0 18px 34px rgba(139, 24, 255, 0.32);
  }

  50% {
    box-shadow: 0 8px 0 #46107f, 0 0 0 9px rgba(139, 24, 255, 0.14), 0 22px 42px rgba(139, 24, 255, 0.4);
  }
}

.hero-side-right {
  justify-self: start;
  --side-x: 28px;
  text-align: left;
  animation-delay: 0.4s;
}

.hero-side-left {
  justify-self: end;
  --side-x: 16px;
}

.hero-side-action:hover {
  transform: translateY(-6px) scale(1.03);
  filter: brightness(1.1);
}

.hero-side-left:hover {
  transform: translateX(16px) translateY(-6px) scale(1.03);
}

.hero-side-right:hover {
  transform: translateX(28px) translateY(-6px) scale(1.03);
}

.hero-side-action:active {
  transform: translateY(2px) scale(0.98);
}

.hero-side-left:active {
  transform: translateX(16px) translateY(2px) scale(0.98);
}

.hero-side-right:active {
  transform: translateX(28px) translateY(2px) scale(0.98);
}

.hero-side-action.copied .hero-action-orb {
  background: linear-gradient(180deg, #20d67a, #0ba85b);
  box-shadow: 0 8px 0 #076b3d, 0 18px 34px rgba(24, 201, 104, 0.32);
}

.hero-side-action strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  line-height: 1.1;
}

.hero-side-action small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: none;
}

.hero-action-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #a92dff, #7a12e8);
  box-shadow: 0 8px 0 #4d0c8a, 0 18px 34px rgba(139, 24, 255, 0.32);
}

.hero-action-orb::before {
  content: '';
  display: block;
}

.play-orb::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #160324;
}

.discord-orb::before {
  display: none;
}

.discord-orb .ui-icon {
  width: 28px;
  height: 28px;
  color: #160324;
  stroke-width: 0;
}

.hero-side-action {
  min-width: 292px;
}

.hero-side-action > span:not(.hero-action-orb) {
  min-width: 188px;
}

@keyframes sideButtonFloat {
  0%,
  100% {
    transform: translateX(var(--side-x)) translateY(0);
  }

  50% {
    transform: translateX(var(--side-x)) translateY(-8px);
  }
}

.hero p,
.page-title p {
  margin: 0;
  margin-inline: auto;
  max-width: 740px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.32);
}

.hero-panel,
.content-box,
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
  color: var(--text);
}

.hero-panel p {
  color: var(--muted);
}

.hero-panel h2 {
  margin: 0 0 8px;
}

.hero-panel p {
  margin-bottom: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  min-width: 260px;
  padding: 0 32px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(180deg, #a92dff, #711ac9);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 7px 0 #46107f, 0 16px 28px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button.primary {
  background: linear-gradient(180deg, #a92dff, #711ac9);
  color: white;
}

.button.discord {
  background: linear-gradient(180deg, #6874ff, #4d55df);
  box-shadow: 0 7px 0 #3037a8, 0 16px 28px rgba(0, 0, 0, 0.28);
}

.button.server-button {
  background: linear-gradient(180deg, #a92dff, #711ac9);
  box-shadow: 0 7px 0 #46107f, 0 16px 28px rgba(0, 0, 0, 0.28);
  text-transform: lowercase;
}

.hero-wave {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 135px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 220' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%230b0311' d='M0 72C160 112 318 138 492 132C682 126 790 72 964 48C1136 24 1288 36 1440 74V220H0V72Z'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
  pointer-events: none;
}

:root[data-theme="light"] .hero-wave {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 220' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%23f4f4f5' d='M0 72C160 112 318 138 492 132C682 126 790 72 964 48C1136 24 1288 36 1440 74V220H0V72Z'/%3E%3C/svg%3E");
}

@keyframes particle-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.7);
  }

  12% {
    opacity: 0.85;
  }

  55% {
    transform: translate3d(calc(var(--drift) * 0.45), -48vh, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -96vh, 0) scale(0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .particles span,
  .hero-logo {
    animation: none;
  }
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.section {
  padding: 42px 0;
  background: var(--bg);
}

.news-preview {
  padding: 86px 0 58px;
  background: var(--bg);
  position: relative;
}

.news-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.news-preview h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(139, 24, 255, 0.22);
}

.news-preview h2 span {
  color: #b65cff;
}

.news-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 6px 0 #4a0f86;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.news-more::after {
  content: '>';
  margin-left: 10px;
}

.news-more:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  perspective: 1000px;
}

.news-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transform-style: preserve-3d;
  background:
    linear-gradient(180deg, rgba(9, 3, 15, 0.08), rgba(9, 3, 15, 0.26)),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #6d19c9, #b34cff);
  color: #fff;
  padding: 22px;
  display: grid;
  align-content: space-between;
  box-shadow: 0 8px 0 #3e0f75, 0 18px 34px rgba(0, 0, 0, 0.22);
}

.news-tile::before {
  content: '';
  position: absolute;
  inset: auto -24px -38px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.news-tile:hover {
  transform: translateY(-6px) rotateY(8deg) rotate(-0.4deg);
  box-shadow: 0 10px 0 #3e0f75, 0 24px 44px rgba(0, 0, 0, 0.28);
}

.news-tile:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 3px 0 #3e0f75, 0 12px 24px rgba(0, 0, 0, 0.2);
}

.news-tile-2 {
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #4d138f, #8f2ee8);
}

.news-tile-3 {
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #7b22d8, #c85bff);
}

.news-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(5, 214, 220, 0.95);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.news-tile .news-tag,
.news-article .news-tag,
.composer-preview .news-tag {
  width: fit-content;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.16);
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  perspective: 1200px;
  transition: opacity 180ms ease;
}

.news-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 2, 8, 0.42);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.news-modal-card {
  position: relative;
  width: min(760px, 100%);
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 430ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease;
}

.news-modal-card.from-left {
  transform: translateX(-90px) rotateY(-72deg) scale(0.9);
  transform-origin: left center;
}

.news-modal-card.from-right {
  transform: translateX(90px) rotateY(72deg) scale(0.9);
  transform-origin: right center;
}

.news-modal-card.from-top {
  transform: translateY(-90px) rotateX(68deg) scale(0.9);
  transform-origin: top center;
}

.news-modal.active .news-modal-card {
  transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale(1);
  opacity: 1;
}

.news-modal-inner {
  border: 1px solid rgba(210, 130, 255, 0.22);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  min-height: min(560px, calc(100vh - 96px));
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 12px 0 #160326, 0 30px 70px rgba(0, 0, 0, 0.42);
}

.news-modal-preview-card {
  overflow: hidden;
  align-content: start;
  min-height: 0;
  padding: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.news-modal-body {
  display: grid;
  align-content: start;
  padding: clamp(22px, 4vw, 32px);
  min-width: 0;
}

.news-modal-image {
  min-height: 230px;
  background: url('/assets/banner.jpg') center / cover no-repeat;
}

.news-modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(11, 3, 17, 0.86);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
}

.news-modal-tag {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  margin-top: 0;
  margin-bottom: 14px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tag-color, rgba(5, 214, 220, 0.95));
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.news-modal h3 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.news-modal p,
.news-modal-text {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 500;
  max-height: 160px;
  overflow: auto;
  min-width: 0;
}

.news-modal-text p {
  margin: 0 0 10px;
}

.news-modal-meta {
  color: var(--muted);
  font-weight: 700;
}

.news-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 0;
}

.server-access {
  padding: 70px 0 76px;
  background: var(--bg);
}

.server-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: 64px;
}

.server-access-copy h2 {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.server-access-copy h2 span {
  color: #b65cff;
}

.server-access-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.75;
}

.server-access-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.server-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 230px;
  border-radius: 10px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  font-weight: 900;
  text-transform: lowercase;
  box-shadow: 0 7px 0 #4a0f86, 0 18px 34px rgba(0, 0, 0, 0.22);
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #18c968;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(24, 201, 104, 0.26);
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.minecraft-panel {
  position: relative;
  min-height: 430px;
  border: 1px solid rgba(182, 92, 255, 0.34);
  border-radius: 20px;
  background: rgba(16, 7, 24, 0.92);
  padding: 30px;
  box-shadow: 0 12px 0 rgba(40, 10, 64, 0.6);
}

.flip-panel {
  cursor: pointer;
  perspective: 1200px;
  overflow: visible;
}

.minecraft-flip-card {
  position: relative;
  width: 100%;
  height: 370px;
  transform-style: preserve-3d;
  transition: transform 820ms cubic-bezier(0.18, 0.86, 0.25, 1);
  will-change: transform;
}

.flip-panel.flipped .minecraft-flip-card {
  transform: rotateY(180deg);
}

.minecraft-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.minecraft-card-front {
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px solid rgba(150, 255, 220, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #171c26;
  padding: 28px;
}

.minecraft-card-back {
  display: grid;
  transform: rotateY(180deg);
}

.server-question-mark {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a92dff, #711ac9);
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
  box-shadow: 0 10px 0 #46107f, 0 22px 42px rgba(139, 24, 255, 0.28);
}

.minecraft-card-front h3 {
  margin: 18px 0 8px;
  color: #b65cff;
  font-size: 1.55rem;
  font-weight: 900;
  text-transform: uppercase;
}

.minecraft-card-front p {
  max-width: 360px;
  margin: 0;
  color: #aeb8ce;
  font-weight: 600;
}

:root[data-theme="light"] .minecraft-panel {
  background: rgba(255, 255, 255, 0.94);
}

.minecraft-version {
  position: absolute;
  top: -8px;
  left: 28px;
  z-index: 4;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(180deg, #c477ff, #8b18ff);
  color: #fff;
  font-weight: 900;
}

.minecraft-screen {
  position: relative;
  z-index: 1;
  border: 2px solid rgba(150, 255, 220, 0.12);
  border-radius: 12px;
  background: #171c26;
  min-height: 0;
  height: 100%;
  padding: 26px 28px;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.minecraft-card-back .minecraft-screen {
  height: calc(100% - 18px);
  margin-top: 18px;
}

.minecraft-screen::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 70px;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #8b18ff 0 18px, transparent 18px 26px, #b65cff 26px 44px, transparent 44px 52px, #18c968 52px 70px);
  opacity: 0.85;
}

.minecraft-screen-title {
  margin-bottom: 22px;
  color: #b65cff;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.minecraft-screen label {
  display: block;
  margin: 16px 0 8px;
  color: #aeb8ce;
  font-size: 0.95rem;
  font-weight: 600;
}

.minecraft-input {
  min-height: 50px;
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #252b38;
  color: #fff;
  cursor: pointer;
  padding: 0 16px;
  font-family: Consolas, Monaco, monospace;
  font-weight: 800;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease;
}

.minecraft-input:hover {
  background: #303748;
  transform: translateY(-2px);
}

.minecraft-input:active {
  transform: translateY(2px);
}

.minecraft-input.copied {
  background: #0ba85b;
}

.minecraft-input.with-copy {
  justify-content: space-between;
}

.copy-mark {
  color: #b65cff;
  font-family: inherit;
  font-size: 0.78rem;
}

.minecraft-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  color: #18c968;
  font-weight: 800;
}

.minecraft-status .offline {
  color: #ff5f7a;
}

.minecraft-status small {
  color: #8f9bb2;
  font-weight: 600;
}

.news-close-button,
.news-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}

.news-close-button {
  background: rgba(255, 255, 255, 0.12);
}

.news-open-button {
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  box-shadow: 0 5px 0 #4a0f86;
}

.news-tile h3 {
  position: relative;
  margin: 0 0 18px;
  font-size: 1.12rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
}

.section h2 {
  margin: 0 0 18px;
  font-size: 2rem;
}

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

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

.section-gap {
  margin-top: 18px;
}

.card {
  min-height: 170px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  border-color: rgba(139, 24, 255, 0.45);
  box-shadow: 0 16px 34px rgba(15, 17, 23, 0.14);
  transform: translateY(-5px) rotate(-0.5deg);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.page-title {
  padding: 68px 0 24px;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.78), rgba(8, 10, 16, 0.42)),
    url('/assets/banner.jpg') center / cover no-repeat;
  color: white;
}

.content-box {
  padding: 28px;
}

.content-box h2 {
  margin-top: 0;
}

.legal-content {
  display: grid;
  gap: 22px;
}

.legal-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.legal-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  color: var(--text);
}

.legal-section p,
.legal-note {
  color: var(--muted);
}

.legal-note {
  margin: 8px 0 0;
  font-size: 0.94rem;
}

.legal-document-section,
.staff-panel-section {
  padding: 120px 0 70px;
  background: var(--bg);
}

.legal-document-wrap,
.staff-panel {
  width: min(1060px, calc(100% - 32px));
}

.legal-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.legal-document,
.staff-card {
  overflow: hidden;
  border: 1px solid rgba(139, 24, 255, 0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(19, 9, 29, 0.98), rgba(9, 3, 15, 0.98));
  box-shadow: 0 12px 0 rgba(45, 8, 68, 0.55);
}

:root[data-theme="light"] .legal-document,
:root[data-theme="light"] .staff-card {
  background: #fff;
}

.legal-document-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 34px;
  border-bottom: 1px solid var(--border);
  background: rgba(139, 24, 255, 0.08);
}

.legal-document-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 5px 0 #4a0f86;
}

.legal-document h1,
.staff-card h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  font-weight: 900;
}

.legal-document-head p,
.staff-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.legal-document-body {
  display: grid;
  gap: 26px;
  padding: 34px;
}

.terms-block h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.05rem;
}

.terms-block p,
.terms-block li,
.legal-warning p {
  color: var(--muted);
  font-size: 0.95rem;
}

.terms-block ul {
  margin: 0;
  padding-left: 20px;
}

.legal-warning {
  border-left: 4px solid #ff4d6d;
  border-radius: 8px;
  background: rgba(255, 77, 109, 0.08);
  padding: 18px 20px;
}

.legal-warning strong {
  display: block;
  margin-bottom: 10px;
  color: #ff5f7a;
}

.staff-card {
  padding: 34px;
}

.staff-card-wide {
  max-width: 920px;
  margin: 0 auto;
}

.staff-admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-kicker {
  margin: 0 0 10px;
  color: #b65cff;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.staff-form label {
  color: var(--text);
  font-weight: 800;
}

.staff-form input,
.staff-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
}

.staff-submit {
  border: 0;
  margin-top: 10px;
  cursor: pointer;
}

.staff-logout {
  min-width: 130px;
}

.form-status {
  min-height: 22px;
  color: #ff5f7a;
  font-weight: 800;
}

.news-zone-hero,
.news-zone {
  background: var(--bg);
}

.news-zone-hero {
  padding: 130px 0 34px;
}

.news-zone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 50%, rgba(255, 255, 255, 0.14), transparent 20%),
    linear-gradient(135deg, #7b22d8, #bf58ff);
  color: #fff;
  padding: 38px;
  box-shadow: 0 8px 0 #4a0f86;
}

.news-admin-actions,
.staff-inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-icon-button {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: #0b0311;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.staff-icon-button:hover,
.staff-login-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.staff-icon-button:active,
.staff-login-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.news-zone-head h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
}

.news-zone-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.staff-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  background: #0b0311;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.news-zone {
  padding: 42px 0 86px;
}

.news-zone-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.news-zone-toolbar h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.8rem;
}

.news-zone-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-zone-filters span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 800;
}

.news-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.news-composer {
  margin-bottom: 34px;
  border: 1px solid rgba(139, 24, 255, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(182, 92, 255, 0.14), transparent 30%),
    var(--surface);
  padding: 26px;
  box-shadow: 0 8px 0 rgba(45, 8, 68, 0.45);
}

.composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.composer-head h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.composer-head p {
  margin: 0;
  color: var(--muted);
}

.composer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.composer-preview {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  box-shadow: 0 8px 0 rgba(45, 8, 68, 0.35);
}

.composer-preview-image {
  min-height: 210px;
  background: url('/assets/banner.jpg') center / cover no-repeat;
}

.composer-preview-body {
  padding: 22px;
}

.composer-preview h3 {
  margin: 14px 0 10px;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.08;
}

.composer-preview p {
  color: var(--muted);
}

.news-article {
  color: inherit;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 0 rgba(45, 8, 68, 0.45);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.news-article:hover {
  transform: translateY(-6px);
  filter: brightness(1.06);
  box-shadow: 0 12px 0 rgba(45, 8, 68, 0.5), 0 24px 42px rgba(0, 0, 0, 0.2);
}

.news-article.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.news-article.featured .news-article-link {
  height: 100%;
}

.news-article.featured .news-article-image {
  height: 100%;
  min-height: 100%;
}

.news-article-image {
  min-height: 235px;
  background-position: center;
  background-size: cover;
}

.news-article-body {
  display: grid;
  align-content: start;
  padding: 26px;
}

.news-article h3 {
  margin: 12px 0;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.news-article p {
  color: var(--muted);
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.news-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  font-weight: 900;
}

.news-detail {
  padding: 122px 0 86px;
  background: var(--bg);
}

.news-detail-layout {
  width: min(980px, calc(100% - 32px));
}

.news-detail-card {
  overflow: hidden;
  border: 1px solid rgba(139, 24, 255, 0.28);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 0 rgba(45, 8, 68, 0.5);
}

.news-detail-cover {
  min-height: 360px;
  background-position: center;
  background-size: cover;
}

.news-detail-body {
  padding: clamp(26px, 5vw, 44px);
}

.news-detail h1 {
  margin: 16px 0;
  color: var(--text);
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1;
}

.news-detail-excerpt {
  margin: 26px 0;
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 700;
}

.news-detail-content {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.list {
  padding-left: 20px;
}

.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.map-placeholder h2 {
  color: var(--text);
}

.site-footer {
  margin-top: 0;
  background: #0b0311;
  border-top: 0;
  color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  align-items: start;
  padding: 52px 0 50px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-block {
  min-height: 210px;
  padding: 0 54px;
}

.footer-block + .footer-block {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-block h3 {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  font-weight: 700;
}

.footer-description {
  max-width: 430px;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.02rem;
  line-height: 1.5;
}

.footer-links,
.social-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: rgba(255, 255, 255, 0.62);
}

:root[data-theme="light"] .footer-links,
:root[data-theme="light"] .social-links,
:root[data-theme="light"] .small,
:root[data-theme="light"] .footer-bottom {
  color: var(--muted);
}

.footer-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.social-links {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 22px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

.social-links a:hover {
  background: transparent;
  transform: translateY(-3px) rotate(-3deg);
}

.footer-cta,
.theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(139, 24, 255, 0.16);
  color: #a923ff;
  font: inherit;
  font-weight: 1000;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.footer-cta {
  gap: 8px;
  padding: 0 18px;
  background: rgba(139, 24, 255, 0.18);
  color: #9b18ff;
  box-shadow: 0 5px 0 rgba(45, 8, 68, 0.85);
}

.footer-cta.solid {
  background: #8b18ff;
  color: #08010c;
  padding: 0 26px;
  box-shadow: 0 5px 0 #4b0a83;
}

.footer-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 148px;
  border-radius: 10px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 6px 0 #4a0f86;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.theme-button {
  width: 42px;
  margin: 20px auto 0;
  color: #ffffff;
  background: rgba(139, 24, 255, 0.18);
  cursor: pointer;
}

.small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 34px;
  color: rgba(255, 255, 255, 0.58);
}

.footer-brandline {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.footer-brandline strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.footer-brandline p,
.footer-bottom p,
.footer-company p {
  margin: 0;
}

.footer-company {
  display: grid;
  gap: 3px;
  text-align: right;
  font-size: 0.88rem;
  line-height: 1.35;
  max-width: 540px;
}

.footer-company p:first-child {
  margin-bottom: 3px;
  font-size: 1rem;
}

.footer-mini-logo {
  width: 40px;
  height: 28px;
  object-fit: contain;
}

.primary-link {
  color: #9b18ff;
  font-weight: 1000;
}

.pre-footer-cta {
  position: relative;
  overflow: hidden;
  background: #2584ff;
  color: #fff;
  padding: 82px 0 78px;
}

.pre-footer-green-field {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50.6%;
  background: #24b64f;
  clip-path: polygon(
    2.8% 0,
    1.6% 12%,
    3.4% 26%,
    1.8% 40%,
    3.8% 55%,
    2.1% 70%,
    4.1% 86%,
    2.6% 100%,
    100% 100%,
    100% 0
  );
  z-index: 0;
}

.pre-footer-wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 86px;
  z-index: 4;
  pointer-events: none;
  background: var(--wave);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 96' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 38C62 56 118 60 176 42C252 18 306 12 382 40C466 72 536 70 622 42C714 12 782 18 866 42C956 68 1030 72 1116 44C1210 14 1278 18 1366 42C1398 50 1420 48 1440 38V0H0V38Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 96' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 38C62 56 118 60 176 42C252 18 306 12 382 40C466 72 536 70 622 42C714 12 782 18 866 42C956 68 1030 72 1116 44C1210 14 1278 18 1366 42C1398 50 1420 48 1440 38V0H0V38Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.pre-footer-wave::before,
.pre-footer-wave::after {
  content: none;
}

.pre-footer-wave::before {
  background: linear-gradient(90deg, #194694 0 50%, #16863c 50% 100%);
}

.pre-footer-wave::after {
  background: linear-gradient(90deg, #308fff 0 50%, #29c55d 50% 100%);
  opacity: 0.38;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 96' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 26C62 42 116 44 180 28C254 8 314 8 390 30C468 52 534 52 620 28C710 4 784 6 868 30C956 54 1030 56 1114 30C1206 4 1284 8 1366 30C1398 38 1422 38 1440 30V20C1416 26 1394 26 1366 20C1284 0 1206 -2 1112 22C1030 44 960 42 872 20C786 -2 710 -4 618 20C534 42 470 42 392 20C314 -2 252 -2 178 18C118 34 62 30 0 16V26Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 96' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 26C62 42 116 44 180 28C254 8 314 8 390 30C468 52 534 52 620 28C710 4 784 6 868 30C956 54 1030 56 1114 30C1206 4 1284 8 1366 30C1398 38 1422 38 1440 30V20C1416 26 1394 26 1366 20C1284 0 1206 -2 1112 22C1030 44 960 42 872 20C786 -2 710 -4 618 20C534 42 470 42 392 20C314 -2 252 -2 178 18C118 34 62 30 0 16V26Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  animation-delay: -3s;
}

.pre-footer-wave.top {
  top: -2px;
}

.pre-footer-wave.bottom {
  bottom: -2px;
  transform: scaleY(-1);
  transform-origin: center;
}

.pre-footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 34%, rgba(255, 255, 255, 0.28) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 68%, rgba(255, 255, 255, 0.22) 0 4px, transparent 5px),
    radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 18px 18px;
  opacity: 0.34;
  animation: preFooterDots 8s ease-in-out infinite;
  z-index: 1;
}

.pre-footer-sparkles span {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  opacity: 0.7;
  animation: sparkleDrift 5s ease-in-out infinite;
}

.pre-footer-sparkles span:nth-child(1) { left: 12%; top: 28%; }
.pre-footer-sparkles span:nth-child(2) { left: 28%; top: 72%; animation-delay: 0.7s; border-radius: 999px; }
.pre-footer-sparkles span:nth-child(3) { left: 46%; top: 20%; animation-delay: 1.2s; }
.pre-footer-sparkles span:nth-child(4) { left: 63%; top: 68%; animation-delay: 1.8s; border-radius: 999px; }
.pre-footer-sparkles span:nth-child(5) { left: 82%; top: 24%; animation-delay: 2.4s; }
.pre-footer-sparkles span:nth-child(6) { left: 90%; top: 76%; animation-delay: 3s; border-radius: 999px; }

.pre-footer-sparkles::before,
.pre-footer-sparkles::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  animation: sparkleDrift 6s ease-in-out infinite;
}

.pre-footer-sparkles::before {
  left: 18%;
  top: 42%;
}

.pre-footer-sparkles::after {
  right: 14%;
  top: 62%;
  animation-delay: 1.6s;
}

.pre-footer-cta::after {
  content: none;
}

.pre-footer-grid {
  position: relative;
  z-index: 3;
  width: min(1500px, calc(100% - 80px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.pre-footer-panel {
  min-height: 315px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 34px 64px;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 34px;
}

.discord-panel {
  grid-template-columns: 350px minmax(250px, 340px);
  justify-content: end;
  padding-left: 30px;
  padding-right: 46px;
}

.vote-panel {
  grid-template-columns: 280px minmax(260px, 390px);
  justify-content: start;
  background: transparent;
  padding-left: 78px;
  padding-right: 42px;
}

.pre-footer-art {
  justify-self: center;
  max-width: 280px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 0 rgba(0, 0, 0, 0.15)) drop-shadow(0 28px 34px rgba(0, 0, 0, 0.22));
  animation: bannerFloat 4.2s ease-in-out infinite;
}

.discord-art {
  max-width: 370px;
  justify-self: end;
  margin-right: -18px;
  transform: rotate(-7deg);
}

.minecraft-italia-art {
  max-width: 295px;
  justify-self: start;
  margin-left: 8px;
  animation-name: cubeFloat;
  animation-delay: 0.35s;
}

.discord-panel > div {
  margin-left: -18px;
}

.vote-panel > div {
  margin-left: 8px;
}

.pre-footer-panel h2 {
  margin: 24px 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.22);
}

.pre-footer-panel p {
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

.pre-footer-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: 100%;
  max-width: 390px;
  border-radius: 10px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.pre-footer-button::after {
  content: '';
  position: absolute;
  pointer-events: none;
  inset: 0 auto 0 -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  animation: buttonSheen 3.6s ease-in-out infinite;
}

.pre-footer-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}

.pre-footer-button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

.pre-footer-button.yellow {
  background: #ffdb2e;
  color: #0d1322;
  box-shadow: 0 7px 0 #b79300;
}

.pre-footer-button.purple {
  background: linear-gradient(180deg, #a92dff, #711ac9);
  color: #fff;
  box-shadow: 0 7px 0 #46107f;
}

.pre-footer-button.green {
  background: #ffdb2e;
  color: #0d1322;
  box-shadow: 0 7px 0 #b79300;
}

@keyframes bannerFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

@keyframes buttonSheen {
  0%,
  52% {
    left: -45%;
  }

  72%,
  100% {
    left: 120%;
  }
}

@keyframes sparkleDrift {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-16px) rotate(24deg) scale(1.15);
  }
}

@keyframes preFooterDots {
  0%,
  100% {
    background-position: 0 0, 0 0, 0 0;
  }

  50% {
    background-position: 0 -16px, 0 18px, 9px 12px;
  }
}

@keyframes wavePropagate {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(-12px) translateY(2px);
  }
}

@keyframes cubeFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav,
  .footer-grid,
  .grid,
  .grid.two {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-dropdown-menu {
    left: 0;
    transform: none;
  }

  .hero {
    min-height: 650px;
    padding-top: 140px;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-logo {
    grid-row: 1;
  }

  .hero-server-widget {
    grid-row: 2;
    justify-self: center;
    justify-items: center;
    width: 100%;
    min-height: 250px;
  }

  .hero-server-window {
    top: 78px;
    right: auto;
    left: 50%;
    width: min(320px, calc(100vw - 32px));
    transform: translateX(-50%) translateY(20px) rotateX(24deg) scale(0.9);
    transform-origin: top center;
  }

  .hero-server-window.active {
    transform: translateX(-50%) translateY(0) rotateX(0deg) scale(1);
  }

  .hero-side-left,
  .hero-side-right {
    justify-self: center;
    --side-x: 0px;
  }

  .hero-side-left {
    grid-row: 2;
  }

  .hero-side-right {
    grid-row: 3;
  }

  .brand-logo {
    width: 112px;
    height: 46px;
  }

  .button {
    width: 100%;
  }

  .news-preview-head {
    display: grid;
    align-items: start;
  }

  .news-preview-grid {
    grid-template-columns: 1fr;
  }

  .news-zone-head,
  .news-zone-toolbar,
  .staff-admin-head,
  .composer-head {
    display: grid;
  }

  .news-zone-grid,
  .news-article.featured,
  .composer-grid {
    grid-template-columns: 1fr;
  }

  .composer-preview {
    position: static;
  }

  .news-zone-head {
    padding: 28px;
  }

  .news-more {
    width: 100%;
  }

  .server-access-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .server-copy-button {
    width: 100%;
  }

  .minecraft-panel {
    min-width: 0;
    padding: 18px;
    min-height: 420px;
  }

  .minecraft-card-face {
    inset: 0;
  }

  .minecraft-status {
    align-items: flex-start;
    display: grid;
  }

  .pre-footer-cta {
    padding: 70px 0;
  }

  .pre-footer-grid,
  .pre-footer-panel,
  .discord-panel,
  .vote-panel {
    grid-template-columns: 1fr;
  }

  .pre-footer-panel {
    padding: 26px;
    text-align: center;
  }

  .pre-footer-art {
    max-width: 210px;
  }

  .footer-block {
    min-height: 0;
    padding: 28px 0;
  }

  .footer-block + .footer-block {
    border-left: 0;
    border-top: 1px solid var(--footer-line);
  }

  .footer-bottom,
  .footer-brandline {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .footer-company {
    text-align: center;
  }
}

/* Latest polish: staff news tools, map page, fixed UK flag and cleaner access card. */
.flag-en {
  background:
    linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(180deg, transparent 36%, #fff 36% 64%, transparent 64%),
    linear-gradient(90deg, transparent 46%, #c8102e 46% 54%, transparent 54%),
    linear-gradient(180deg, transparent 42%, #c8102e 42% 58%, transparent 58%),
    linear-gradient(33deg, transparent 43%, #fff 43% 48%, #c8102e 48% 52%, #fff 52% 57%, transparent 57%),
    linear-gradient(-33deg, transparent 43%, #fff 43% 48%, #c8102e 48% 52%, #fff 52% 57%, transparent 57%),
    #012169;
}

.access-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.access-steps span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(139, 24, 255, 0.28);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  padding: 0 13px;
  font-size: 0.82rem;
  font-weight: 900;
}

.minecraft-panel {
  min-height: 470px;
}

.minecraft-flip-card {
  height: 410px;
}

.minecraft-card-back .minecraft-screen {
  height: calc(100% - 22px);
}

.minecraft-screen {
  padding: 24px 28px 22px;
}

.minecraft-status {
  align-items: flex-start;
}

.minecraft-status small {
  max-width: 290px;
  line-height: 1.35;
}

.access-card-v2 {
  background:
    linear-gradient(145deg, rgba(23, 10, 38, 0.94), rgba(12, 5, 20, 0.96)),
    var(--surface);
  border-color: rgba(159, 45, 255, 0.42);
}

.access-card-v2 .minecraft-card-front {
  position: relative;
  overflow: hidden;
  align-content: center;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(159, 45, 255, 0.18), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px),
    #111722;
}

.access-card-glow {
  position: absolute;
  inset: auto -20% -32% -20%;
  height: 170px;
  background: radial-gradient(circle, rgba(159, 45, 255, 0.34), transparent 70%);
  animation: accessGlow 3.4s ease-in-out infinite;
}

.access-server-icon {
  position: relative;
  display: grid;
  gap: 9px;
  width: min(230px, 72%);
  border: 1px solid rgba(150, 255, 220, 0.18);
  border-radius: 16px;
  background: #1b2230;
  padding: 18px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.24), inset 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.access-server-icon span {
  height: 28px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 18px 50%, #24d878 0 4px, transparent 5px),
    linear-gradient(90deg, rgba(159, 45, 255, 0.7), rgba(104, 116, 255, 0.55));
}

.access-mini-ip {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(139, 24, 255, 0.2);
  color: #fff;
  font-family: Consolas, Monaco, monospace;
  font-weight: 900;
  padding: 0 16px;
}

@keyframes accessGlow {
  0%,
  100% { transform: translateY(0) scale(1); opacity: 0.75; }
  50% { transform: translateY(-12px) scale(1.08); opacity: 1; }
}

.news-zone-filters button,
.tag-add-button,
.news-pagination button {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.tag-filter-wrap {
  display: contents;
}

.tag-filter-wrap > button:first-child {
  padding-right: 30px;
}

.tag-delete-button {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ff4f6d, #bc1635) !important;
  color: #fff !important;
  font-size: 1rem !important;
  line-height: 1;
  box-shadow: 0 3px 0 #72101f;
}

.tag-delete-button:hover {
  transform: translateY(-2px) scale(1.05) !important;
}

.tag-manager {
  margin: 0 0 28px;
  border: 1px solid rgba(139, 24, 255, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(159, 45, 255, 0.18), transparent 28%),
    var(--surface);
  padding: 18px;
  box-shadow: 0 8px 0 rgba(45, 8, 68, 0.36);
}

.tag-manager-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.tag-manager-head strong {
  color: var(--text);
  font-size: 1.15rem;
}

.tag-manager-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.tag-edit-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.tag-edit-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 58px repeat(4, auto);
  gap: 9px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 10px;
}

.tag-edit-row input {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  padding: 0 10px;
}

.tag-edit-row button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: rgba(139, 24, 255, 0.18);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 12px;
}

.tag-edit-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tag-edit-row .tag-row-delete {
  background: linear-gradient(180deg, #ff4f6d, #bc1635);
  color: #fff;
}

.news-zone-filters button:hover,
.tag-add-button:hover,
.news-pagination button:hover:not(:disabled) {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.news-zone-filters button.active {
  background: linear-gradient(180deg, var(--tag-color, #9f2dff), #6410ad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 0 rgba(45, 8, 68, 0.8);
}

.tag-add-button {
  width: 44px;
  padding: 0;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
}

.tag-create-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  border: 1px solid rgba(139, 24, 255, 0.26);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
}

.tag-form-close {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 16px;
}

.tag-form-close:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.site-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: dialogFade 180ms ease both;
}

.site-dialog.closing {
  animation: dialogFadeOut 180ms ease both;
}

.site-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(5, 1, 10, 0.72);
  backdrop-filter: blur(8px);
}

.site-dialog-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  border: 1px solid rgba(196, 119, 255, 0.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(159, 45, 255, 0.24), transparent 32%),
    var(--surface);
  box-shadow: 0 10px 0 rgba(45, 8, 68, 0.55), 0 28px 70px rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 28px;
  text-align: center;
  animation: dialogCardIn 220ms cubic-bezier(0.18, 0.86, 0.25, 1) both;
}

.site-dialog-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 1000;
  box-shadow: 0 7px 0 #4a0f86;
}

.site-dialog-card h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
}

.site-dialog-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.site-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.site-dialog-button {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 20px;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.site-dialog-button.primary {
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  box-shadow: 0 5px 0 #4a0f86;
}

.site-dialog-button.danger {
  background: linear-gradient(180deg, #ff4f6d, #bc1635);
  color: #fff;
  box-shadow: 0 5px 0 #72101f;
}

.site-dialog-button.ghost {
  background: var(--surface-soft);
  color: var(--text);
}

.site-dialog-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.site-dialog-button:active {
  transform: translateY(2px);
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 8px;
}

.rich-toolbar button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 10px;
}

.rich-toolbar button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.rich-preview,
.news-card-excerpt,
.news-detail-excerpt,
.news-detail-content {
  overflow-wrap: anywhere;
}

.rich-preview p,
.news-card-excerpt p,
.news-detail-excerpt p,
.news-detail-content p {
  margin: 0 0 10px;
}

.rich-big {
  font-size: 1.18em;
  font-weight: 900;
}

.rich-huge {
  display: inline-block;
  font-size: 1.42em;
  font-weight: 1000;
  line-height: 1.05;
}

.rich-font-serif {
  font-family: Georgia, 'Times New Roman', serif;
}

.rich-font-mono {
  font-family: Consolas, Monaco, monospace;
}

.rich-font-display {
  font-weight: 1000;
  text-transform: uppercase;
}

.rich-size-small {
  font-size: 0.86em;
}

.rich-size-large {
  font-size: 1.2em;
}

.rich-size-xl {
  font-size: 1.48em;
  font-weight: 900;
  line-height: 1.12;
}

.rich-figure {
  margin: 18px 0;
  width: min(var(--image-width, 100%), 100%);
  max-width: 100%;
}

.rich-figure img,
.rich-inline-image {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(139, 24, 255, 0.24);
  box-shadow: 0 8px 0 rgba(45, 8, 68, 0.28);
}

.rich-inline-image {
  margin: 12px 0;
  width: min(var(--image-width, 100%), 100%);
}

.rich-align-center {
  text-align: center;
}

.rich-align-right {
  text-align: right;
}

.discord-emoji {
  display: inline-block;
  width: 1.45em;
  height: 1.45em;
  object-fit: contain;
  vertical-align: -0.32em;
  margin: 0 0.04em;
}

.discord-small {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.86em;
  font-weight: 600;
}

.discord-quote {
  margin: 0.7rem 0;
  border-left: 4px solid rgba(159, 45, 255, 0.7);
  color: var(--muted);
  font-weight: 650;
  padding: 0.25rem 0 0.25rem 0.9rem;
}

.discord-mention {
  display: inline-flex;
  align-items: center;
  min-height: 1.45em;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.16);
  color: #9aa8ff;
  font-weight: 800;
  padding: 0 0.35em;
}

.discord-spoiler {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  color: transparent;
  padding: 0 0.25em;
  transition: color 160ms ease, background 160ms ease;
}

.discord-spoiler:hover {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.discord-code {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.05em 0.28em;
}

.news-card-admin {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.news-card-admin button {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0 11px;
  box-shadow: 0 4px 0 #4a0f86;
}

.news-card-admin button.danger {
  background: linear-gradient(180deg, #ff4f6d, #bc1635);
  box-shadow: 0 4px 0 #72101f;
}

.detail-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@keyframes dialogFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialogFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes dialogCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tag-create-form strong {
  color: var(--text);
}

.tag-create-form input[type="text"],
.tag-create-form input:not([type]),
.tag-create-form input[type="color"],
.staff-form select {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0 12px;
}

.composer-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.composer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 1, 8, 0.74);
  backdrop-filter: blur(10px);
}

.composer-modal .news-composer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 36px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  margin: 0;
  animation: composerIn 260ms cubic-bezier(0.18, 0.86, 0.25, 1);
}

.composer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff4f6d, #bc1635);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 6px 0 #72101f;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.composer-close:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.composer-close:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #72101f;
}

@keyframes composerIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.news-article {
  position: relative;
}

.news-article-link {
  display: block;
  color: inherit;
}

.news-tag {
  border: 0;
  background: var(--tag-color, #18cbd1);
  cursor: pointer;
}

.news-tag:hover {
  filter: brightness(1.08);
}

.image-avatar {
  object-fit: cover;
}

.author-link {
  color: var(--text);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(159, 45, 255, 0.5);
  text-underline-offset: 3px;
}

.delete-news-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #ff4f6d, #bc1635);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 12px;
  box-shadow: 0 4px 0 #72101f;
}

.detail-delete {
  position: static;
  margin-top: 18px;
}

.empty-news {
  grid-column: 1 / -1;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  padding: 34px;
  text-align: center;
  font-weight: 800;
}

.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  color: var(--muted);
  font-weight: 900;
}

.news-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.applications-hero {
  padding: 140px 0 52px;
  background: var(--bg);
}

.applications-hero-copy {
  width: 100%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 36%, rgba(255, 255, 255, 0.15), transparent 24%),
    linear-gradient(135deg, #7b22d8, #bf58ff);
  color: #fff;
  padding: clamp(30px, 5vw, 54px);
  box-shadow: 0 8px 0 #4a0f86, 0 24px 54px rgba(0, 0, 0, 0.2);
}

.applications-hero-copy .section-kicker,
.applications-hero-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.applications-hero-copy h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.applications-hero-copy > p {
  max-width: 760px;
  margin: 0;
  font-weight: 800;
  line-height: 1.55;
}

.applications-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.applications-primary,
.applications-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 1000;
  padding: 0 16px;
}

.applications-primary {
  background: #fff;
  color: #441076;
  box-shadow: 0 5px 0 rgba(45, 8, 68, 0.42);
}

.applications-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.applications-section-head > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  box-shadow: 0 6px 0 #4a0f86;
}

.applications-open {
  padding: 28px 0 56px;
  background: var(--bg);
}

.applications-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.applications-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.applications-roles {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.applications-role-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(139, 24, 255, 0.22);
  border-radius: 18px;
  background: var(--surface);
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 20px 24px;
  text-align: left;
  box-shadow: 0 6px 0 rgba(45, 8, 68, 0.3), 0 18px 36px rgba(0, 0, 0, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.applications-role-card:hover,
.applications-role-card.active {
  transform: translateY(-4px);
  border-color: rgba(139, 24, 255, 0.42);
  box-shadow: 0 9px 0 rgba(45, 8, 68, 0.38), 0 24px 44px rgba(0, 0, 0, 0.16);
}

.applications-role-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.35rem;
}

.applications-role-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.applications-role-card small {
  display: block;
  margin-top: 8px;
  color: #b65cff;
  font-weight: 500;
}

.applications-role-line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b65cff;
}

.applications-role-line-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.applications-role-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(139, 24, 255, 0.16);
  color: #b65cff;
  font-size: 0.86rem;
  font-weight: 1000;
  padding: 0 14px;
  box-shadow: inset 0 0 0 1px rgba(139, 24, 255, 0.28);
}

.applications-check-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: start;
  justify-items: center;
  overflow: auto;
  background: rgba(6, 2, 10, 0.62);
  backdrop-filter: blur(6px);
  padding: 24px;
  overscroll-behavior: contain;
}

.applications-check-panel.active {
  display: grid;
}

.applications-modal-card {
  width: min(820px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid rgba(139, 24, 255, 0.26);
  border-radius: 18px;
  background: var(--surface);
  padding: clamp(22px, 4vw, 34px);
  margin: auto 0;
  box-shadow: 0 8px 0 rgba(45, 8, 68, 0.34), 0 24px 48px rgba(0, 0, 0, 0.34);
}

.applications-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.applications-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
  padding: 0;
}

.applications-back .ui-icon {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
}

.applications-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 1000;
  padding: 0 12px;
}

.applications-check-head {
  margin-top: 10px;
  margin-bottom: 28px;
}

.applications-check-head > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  box-shadow: 0 6px 0 #4a0f86;
  flex: 0 0 auto;
}

.applications-check-head h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1;
}

.applications-check-head p:not(.section-kicker) {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.applications-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  max-width: 100%;
}

.applications-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-weight: 1000;
}

.applications-steps span.active {
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
}

.applications-steps i {
  width: 48px;
  max-width: 100%;
  flex: 1 1 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.applications-requirements-card {
  border: 1px solid rgba(139, 24, 255, 0.2);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: clamp(20px, 4vw, 28px);
}

.applications-requirements-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
}

.applications-requirements-card > p {
  margin: 6px 0 20px;
  color: var(--muted);
  font-weight: 500;
}

.applications-check-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.applications-check-panel li {
  position: relative;
  border: 1px solid rgba(139, 24, 255, 0.18);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 500;
  padding: 14px 14px 14px 44px;
}

.applications-check-panel li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #9f5cff;
  border-radius: 999px;
  color: #b65cff;
  font-size: 0.78rem;
  transform: translateY(-50%);
}

.applications-choice {
  display: none;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 12px;
  margin-top: 20px;
  border: 1px solid rgba(139, 24, 255, 0.2);
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 18px;
}

.applications-form {
  display: none;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(139, 24, 255, 0.2);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: clamp(18px, 4vw, 26px);
  box-sizing: border-box;
}

.applications-form.active {
  display: grid;
}

.applications-form [data-application-intro-fields],
.applications-form [data-application-final-fields] {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.applications-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

.applications-form span {
  font-size: 0.92rem;
}

.applications-question-group {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.applications-form [hidden],
.applications-question-group[hidden],
.applications-form-actions [hidden] {
  display: none !important;
}

.applications-question-group h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
}

.applications-question-group > p {
  margin: -4px 0 4px;
  color: var(--muted);
  font-weight: 500;
}

.applications-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin-top: 6px;
}

.applications-form-actions .applications-continue,
.applications-form-actions .applications-choice-back {
  width: auto;
  flex: 1 1 190px;
  margin-top: 0;
}

.applications-form input,
.applications-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(139, 24, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  padding: 13px 14px;
  outline: none;
}

.applications-form textarea {
  min-height: 96px;
  resize: vertical;
}

.applications-form input:focus,
.applications-form textarea:focus {
  border-color: #b65cff;
  box-shadow: 0 0 0 3px rgba(159, 45, 255, 0.18);
}

.applications-form .application-field-error {
  border-color: #ff4f6d !important;
  background: rgba(255, 79, 109, 0.1) !important;
  box-shadow: 0 0 0 3px rgba(255, 79, 109, 0.2) !important;
}

.applications-form .application-label-error > span {
  color: #ff6b84;
}

.applications-checkline {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 500;
  border: 1px solid rgba(139, 24, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.applications-checkline span {
  font-weight: 500;
}

.applications-checkline input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.applications-choice.active {
  display: grid;
}

.applications-check-panel[data-step="2"] .applications-requirements-card,
.applications-check-panel[data-step="3"] .applications-requirements-card,
.applications-check-panel[data-step="4"] .applications-requirements-card {
  display: none;
}

.applications-check-panel[data-step="3"] .applications-choice,
.applications-check-panel[data-step="4"] .applications-choice {
  display: none;
}

.applications-check-panel[data-step="3"] .applications-result,
.applications-check-panel[data-step="4"] .applications-result {
  margin-top: 0;
}

.applications-choice strong {
  grid-column: 1 / -1;
  color: var(--text);
  font-size: 1.25rem;
}

.applications-choice p {
  grid-column: 1 / -1;
  margin: -4px 0 6px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.applications-choice button,
.applications-result a,
.applications-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
  padding: 0 16px;
}

.applications-continue {
  width: 100%;
  margin-top: 18px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  box-shadow: 0 5px 0 #4a0f86;
}

.applications-form .applications-continue {
  width: auto;
  margin-top: 0;
}

.applications-choice button:first-child {
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  box-shadow: 0 5px 0 #4a0f86;
}

.applications-choice button:last-child {
  background: rgba(255, 79, 109, 0.14);
  color: #ff6b84;
  box-shadow: inset 0 0 0 1px rgba(255, 79, 109, 0.26);
}

.applications-choice-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 1000;
  padding: 0 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.applications-result {
  display: none;
  margin-top: 20px;
  border-radius: 14px;
  padding: 18px;
}

.applications-result.success,
.applications-result.danger {
  display: block;
}

.applications-result.success {
  background: rgba(139, 24, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(139, 24, 255, 0.28);
}

.applications-result.danger {
  background: rgba(255, 79, 109, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 79, 109, 0.24);
}

.applications-result strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.applications-result p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.applications-result a {
  background: #fff;
  color: #441076;
  box-shadow: 0 5px 0 rgba(45, 8, 68, 0.45);
}

.staff-application-section {
  padding: 140px 0 70px;
  background: var(--bg);
}

.staff-application-card {
  border: 1px solid rgba(139, 24, 255, 0.26);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 8px 0 rgba(45, 8, 68, 0.34);
}

.staff-application-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.staff-application-card h2,
.staff-application-card h3 {
  margin: 24px 0 10px;
}

.staff-application-card p {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.6;
  white-space: pre-wrap;
}

.staff-application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.staff-application-grid span {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(139, 24, 255, 0.2);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 800;
  padding: 14px;
}

.staff-application-grid b {
  color: var(--text);
}

.map-hero {
  padding: 140px 0 34px;
  background: var(--bg);
}

.map-hero-card {
  width: 100%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 48%, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(135deg, #7b22d8, #bf58ff);
  color: #fff;
  padding: clamp(28px, 4vw, 40px);
  box-shadow: 0 8px 0 #4a0f86;
}

.map-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.map-hero-card .section-kicker,
.map-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.map-section {
  background: var(--bg);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 30px;
  align-items: center;
}

.map-copy {
  border: 1px solid rgba(139, 24, 255, 0.26);
  border-radius: 18px;
  background: var(--surface);
  padding: 30px;
  box-shadow: 0 8px 0 rgba(45, 8, 68, 0.38);
}

.map-copy h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
  text-transform: uppercase;
}

.map-copy p {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 24px;
}

.map-preview-card {
  overflow: hidden;
  border: 2px solid rgba(139, 24, 255, 0.38);
  border-radius: 18px;
  background: #111722;
  box-shadow: 0 12px 0 rgba(45, 8, 68, 0.45), 0 30px 70px rgba(0, 0, 0, 0.22);
}

.map-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  background: #171c26;
  color: #aeb8ce;
  font-size: 0.82rem;
  font-weight: 900;
}

.map-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.map-browser-bar span:nth-child(1) { background: #ff5f57; }
.map-browser-bar span:nth-child(2) { background: #ffbd2e; }
.map-browser-bar span:nth-child(3) { background: #28c840; }

.map-browser-bar strong {
  margin-left: 8px;
}

.map-preview-frame {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  background: #0b0311;
}

@media (max-width: 820px) {
  .composer-modal {
    padding: 16px;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-preview-frame {
    height: 420px;
  }
}

/* Footer matched to the provided reference. Buttons keep the custom site style. */
.site-footer {
  background: var(--footer);
  color: var(--muted);
}

.site-footer .container {
  width: min(1480px, calc(100% - 48px));
}

.footer-grid {
  grid-template-columns: 34% 32% 34%;
  padding: 50px 0 50px;
  border-bottom: 1px solid var(--footer-line);
}

.footer-block {
  min-height: 212px;
  padding: 0 70px;
}

.footer-block + .footer-block {
  border-left: 1px solid var(--footer-line);
}

.footer-block h3 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-description {
  max-width: 520px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
}

.footer-links {
  gap: 12px;
}

.footer-links a {
  display: inline-block;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

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

.social-links {
  gap: 16px;
  margin-top: 24px;
}

.social-links a {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 2px 4px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1;
}

.social-links a:hover {
  background: transparent;
  color: var(--text);
}

.footer-cta,
.theme-button {
  font-weight: 800;
}

.footer-cta {
  background: rgba(139, 24, 255, 0.18);
  color: #9b18ff;
  font-size: 1.08rem;
  box-shadow: 0 5px 0 rgba(45, 8, 68, 0.85);
}

.footer-cta.solid {
  min-width: 144px;
  background: #8b18ff;
  color: #08010c;
  font-size: 0.95rem;
  box-shadow: 0 5px 0 #4b0a83;
}

.theme-button {
  min-height: 40px;
  color: var(--text);
}

.footer-bottom {
  padding: 32px 0 34px;
}

.footer-brandline {
  gap: 16px;
}

.footer-brandline strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
}

.footer-mini-logo {
  width: 40px;
  height: 28px;
}

@media (max-width: 820px) {
  .site-footer .container {
    width: min(1100px, calc(100% - 32px));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-block {
    min-height: 0;
    padding: 28px 0;
  }
}

/* Professional refresh: quick card, news cards, guides, rich editor and adaptive icons. */
.ui-icon {
  width: 1.1em;
  height: 1.1em;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discord-mark {
  fill: currentColor;
  stroke: none;
}

.quick-access-shell {
  position: relative;
  min-height: 440px;
  cursor: pointer;
  perspective: 1200px;
}

.quick-access-flip {
  position: relative;
  width: 100%;
  height: 440px;
  transform-style: preserve-3d;
  transition: transform 780ms cubic-bezier(0.18, 0.86, 0.25, 1);
}

.flip-panel.flipped .quick-access-flip {
  transform: rotateY(180deg);
}

.quick-access-face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(139, 24, 255, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(72, 18, 110, 0.42), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(97, 20, 148, 0.46), transparent 30%),
    linear-gradient(150deg, #141021, #0b0712);
  color: #ffffff;
  padding: 34px;
  text-align: center;
  box-shadow: 0 12px 0 rgba(45, 8, 68, 0.52), 0 28px 70px rgba(0, 0, 0, 0.25);
}

.quick-access-back {
  align-content: start;
  justify-items: stretch;
  transform: rotateY(180deg);
  background:
    linear-gradient(150deg, #101722, #0a0d14),
    #101722;
  text-align: left;
}

.quick-orbit {
  position: absolute;
  inset: 52px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  animation: quickOrbit 18s linear infinite;
}

.quick-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ff4f6d;
  box-shadow: 0 0 20px rgba(255, 79, 109, 0.7);
}

.quick-orbit span:nth-child(1) { top: -6px; left: 50%; }
.quick-orbit span:nth-child(2) { right: 12%; bottom: 9%; background: #b65cff; }
.quick-orbit span:nth-child(3) { left: 10%; bottom: 22%; background: #ffdb2e; }

.quick-pill {
  position: absolute;
  top: 22px;
  left: 22px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 13px;
}

.quick-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: linear-gradient(180deg, #a92dff, #711ac9);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 9px 0 #46107f, 0 24px 45px rgba(139, 24, 255, 0.36);
}

.quick-access-front h3 {
  position: relative;
  margin: 28px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.quick-access-front p {
  position: relative;
  max-width: 380px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.quick-ip-preview {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-family: Consolas, Monaco, monospace;
  font-weight: 900;
  padding: 0 16px;
}

.quick-config-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.quick-config-head > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, #a92dff, #711ac9);
  color: #fff;
  box-shadow: 0 6px 0 #46107f;
}

.quick-config-head strong,
.quick-config-head small {
  display: block;
}

.quick-config-head strong {
  font-size: 1.25rem;
  font-weight: 900;
}

.quick-config-head small {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.quick-config-list {
  display: grid;
  gap: 9px;
}

.quick-config-list label {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-config-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-family: Consolas, Monaco, monospace;
  font-weight: 900;
  padding: 0 16px;
}

.quick-config-row:hover,
.quick-config-row.copied {
  background: rgba(139, 24, 255, 0.32);
}

.quick-status {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  color: #18c968;
  font-weight: 900;
}

.quick-status small {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.quick-status .offline {
  color: #ff5f7a;
}

@keyframes quickOrbit {
  to { transform: rotate(360deg); }
}

.guide-card-icon,
.guide-hero-card > span,
.guide-hub-card > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(159, 45, 255, 0.16);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.access-card-icon {
  position: relative;
  width: 70px;
  height: 70px;
  font-size: 1.45rem;
  background: linear-gradient(180deg, #a92dff, #711ac9);
  box-shadow: 0 7px 0 #46107f, 0 18px 34px rgba(139, 24, 255, 0.34);
}

.access-mini-ip {
  gap: 9px;
}

.access-mini-ip .ui-icon {
  width: 16px;
  height: 16px;
}

:root[data-theme="light"] .quick-access-face {
  background:
    linear-gradient(135deg, rgba(159, 45, 255, 0.12), rgba(24, 201, 104, 0.08)),
    #f8f8fa;
  color: #17121d;
  box-shadow: 0 10px 0 rgba(139, 24, 255, 0.18), 0 24px 54px rgba(24, 14, 36, 0.12);
}

:root[data-theme="light"] .quick-access-front p,
:root[data-theme="light"] .quick-config-list label,
:root[data-theme="light"] .quick-config-head small,
:root[data-theme="light"] .quick-status small {
  color: #6b6572;
}

:root[data-theme="light"] .quick-config-row,
:root[data-theme="light"] .quick-ip-preview,
:root[data-theme="light"] .quick-pill {
  background: #ececf0;
  color: #17121d;
}

.news-preview {
  padding: 88px 0 70px;
}

.news-preview-grid {
  gap: 24px;
  perspective: none;
}

.news-tile {
  min-height: 420px;
  padding: 0;
  display: grid;
  grid-template-rows: 170px 1fr;
  border: 1px solid rgba(139, 24, 255, 0.22);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 0 rgba(45, 8, 68, 0.42), 0 22px 46px rgba(0, 0, 0, 0.16);
  transform-style: flat;
}

.news-tile::before {
  display: none;
}

.news-tile:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 12px 0 rgba(45, 8, 68, 0.5), 0 30px 56px rgba(0, 0, 0, 0.22);
}

.news-tile:hover .news-tile-image {
  transform: scale(1.04);
}

.news-tile-image {
  min-height: 170px;
  background-position: center;
  background-size: cover;
  position: relative;
  transition: transform 260ms ease;
}

.news-tile-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8, 1, 12, 0.46));
}

.news-tile-content {
  display: grid;
  align-content: start;
  padding: 20px;
}

.news-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.news-tile-read {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.news-tile h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.12;
  text-transform: none;
}

.news-tile-excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
}

.news-tile-excerpt p {
  margin: 0;
}

.news-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.news-article {
  border-radius: 14px;
  border-color: rgba(139, 24, 255, 0.22);
}

.news-article-image {
  min-height: 250px;
  position: relative;
}

.news-article h3 {
  text-transform: none;
}

.news-card-excerpt {
  color: var(--muted);
  line-height: 1.6;
}

.news-card-excerpt p {
  margin: 0;
}

.news-detail-content {
  display: block;
}

.news-detail-content p,
.news-detail-excerpt p,
.rich-preview p {
  margin: 0 0 12px;
}

.rich-preview p:last-child,
.news-detail-content p:last-child,
.news-detail-excerpt p:last-child {
  margin-bottom: 0;
}

.rich-toolbar {
  gap: 8px;
  margin: 0 0 10px;
}

.rich-toolbar button {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 9px;
}

.rich-toolbar button .ui-icon {
  width: 18px;
  height: 18px;
}

.editor-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
}

.editor-notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0 10px;
}

.editor-notes .ui-icon {
  width: 15px;
  height: 15px;
}

.guide-preview {
  padding: 72px 0;
  background:
    linear-gradient(180deg, var(--bg), var(--page));
}

.guide-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
}

.guide-preview-copy h2,
.guide-hero h1 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1;
  text-transform: uppercase;
}

.guide-preview-copy h2 span {
  color: #b65cff;
}

.guide-preview-copy h2 strong {
  color: #b65cff;
  font-weight: 1000;
}

.guide-preview-copy p,
.guide-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.guide-preview-list {
  display: grid;
  gap: 12px;
}

.guide-all-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 4px;
  border-radius: 9px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 14px;
  box-shadow: 0 5px 0 #4a0f86;
}

.guide-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 16px;
  min-height: 96px;
  border: 1px solid rgba(139, 24, 255, 0.24);
  border-radius: 14px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 6px 0 rgba(45, 8, 68, 0.34);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.05);
  box-shadow: 0 9px 0 rgba(45, 8, 68, 0.42), 0 20px 36px rgba(0, 0, 0, 0.16);
}

.guide-card strong {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 900;
}

.guide-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.guide-card-arrow {
  color: #b65cff;
}

.guide-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(139, 24, 255, 0.16);
  color: #b65cff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 12px;
  box-shadow: inset 0 0 0 1px rgba(139, 24, 255, 0.28);
}

.guide-hero {
  padding: 136px 0 42px;
  background: var(--bg);
}

.guide-hero-wrap {
  display: grid;
  gap: 18px;
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 28px;
}

.guide-hero-main {
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 50%, rgba(255, 255, 255, 0.14), transparent 20%),
    linear-gradient(135deg, #7b22d8, #bf58ff);
  color: #fff;
  padding: 38px;
  box-shadow: 0 8px 0 #4a0f86;
}

.guide-hero-main .section-kicker,
.guide-hero-main p {
  color: rgba(255, 255, 255, 0.84);
}

.guide-hero-main h1 {
  color: #fff;
}

.guide-hero-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.28);
}

.guide-hero-card strong {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
}

.guide-hero-card small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}

.guide-admin-actions {
  display: flex;
  justify-content: flex-start;
}

.guide-admin-actions .staff-login-button {
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  box-shadow: 0 6px 0 #4a0f86;
}

.guide-hub {
  padding: 34px 0 84px;
  background: var(--bg);
}

.guide-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.guide-library-card {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(139, 24, 255, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(139, 24, 255, 0.05), transparent),
    var(--surface);
  box-shadow: 0 7px 0 rgba(45, 8, 68, 0.34), 0 18px 38px rgba(0, 0, 0, 0.13);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.guide-library-card:hover {
  transform: translateY(-5px);
  filter: brightness(1.05);
  box-shadow: 0 10px 0 rgba(45, 8, 68, 0.42), 0 24px 48px rgba(0, 0, 0, 0.18);
}

.guide-library-media {
  position: relative;
  min-height: 220px;
  background-position: center;
  background-size: cover;
}

.guide-library-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(20, 5, 32, 0.68));
}

.guide-library-media span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(159, 45, 255, 0.94);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 1000;
  padding: 0 12px;
}

.guide-library-body {
  display: grid;
  align-content: start;
  padding: 24px;
}

.guide-library-body h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.08;
}

.guide-library-excerpt {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}

.guide-library-excerpt p {
  margin: 0;
}

.guide-library-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.guide-read-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 40px;
  margin-top: 18px;
  border-radius: 9px;
  background: rgba(139, 24, 255, 0.16);
  color: #b65cff;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 14px;
  box-shadow: inset 0 0 0 1px rgba(139, 24, 255, 0.28);
}

.guide-library-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.guide-library-actions .guide-read-button {
  margin-top: 0;
}

.guide-staff-action {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: rgba(139, 24, 255, 0.16);
  color: #b65cff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 12px;
  box-shadow: inset 0 0 0 1px rgba(139, 24, 255, 0.28);
}

.guide-staff-action.danger {
  background: rgba(255, 79, 109, 0.14);
  color: #ff6b84;
  box-shadow: inset 0 0 0 1px rgba(255, 79, 109, 0.26);
}

.rules-hero {
  padding: 108px 0 0;
  background: var(--bg);
}

.rules-selector-hero {
  position: relative;
  padding: 138px 0 38px;
  background: var(--bg);
  overflow: visible;
}

.rules-selector-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 820px) minmax(260px, 1fr);
  gap: 30px;
  align-items: end;
}

.rules-title-card {
  position: relative;
  width: min(820px, 100%);
  min-width: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 48%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(135deg, #7b22d8, #bf58ff);
  color: #fff;
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 42px) clamp(34px, 4.6vw, 56px);
  box-shadow: 0 8px 0 #4a0f86, 0 22px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.rules-title-card.compact {
  width: min(860px, 100%);
  padding-right: clamp(34px, 5vw, 64px);
}

.rules-title-card.creator-title-card {
  width: min(1100px, 100%);
  padding-right: clamp(86px, 11vw, 170px);
}

.rules-title-card .section-kicker,
.rules-title-card p {
  color: rgba(255, 255, 255, 0.84) !important;
}

.rules-title-card h1 {
  color: #fff !important;
  max-width: none;
  white-space: nowrap;
  overflow-wrap: normal;
  letter-spacing: 0;
}

.rules-selector-hero h1 {
  max-width: 780px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(2.7rem, 6.2vw, 5.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.rules-selector-hero p:not(.section-kicker) {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.rules-selector-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  border: 1px solid rgba(139, 24, 255, 0.28);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(159, 45, 255, 0.22), rgba(18, 14, 24, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 42px);
  box-shadow: 0 9px 0 rgba(45, 8, 68, 0.42), 0 24px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.rules-selector-orbit::before,
.rules-selector-orbit::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
}

.rules-selector-orbit::after {
  inset: auto 26px 30px 26px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b18ff, #b65cff, #5c15a8);
}

.rules-selector-orbit span {
  position: absolute;
  width: 42px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.rules-selector-orbit span:nth-child(1) {
  top: 46px;
  right: 38px;
}

.rules-selector-orbit span:nth-child(2) {
  left: 38px;
  bottom: 58px;
  width: 66px;
  background: rgba(182, 92, 255, 0.5);
}

.rules-selector-orbit span:nth-child(3) {
  top: 86px;
  left: 44px;
  width: 28px;
}

.rules-selector-orbit strong {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 18px;
  background: linear-gradient(180deg, #b65cff, #7315c8);
  color: #fff;
  box-shadow: 0 8px 0 #4a0f86, 0 18px 34px rgba(0, 0, 0, 0.24);
}

.rules-selector-orbit strong .ui-icon {
  width: 46px;
  height: 46px;
}

.rules-hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
}

.rules-hero-showcase .rules-title-card {
  margin: 0;
}

.rules-character {
  position: relative;
  justify-self: start;
  align-self: start;
  width: min(450px, 100%);
  min-height: 330px;
  margin: -34px 0 -28px;
  display: grid;
  place-items: start center;
  isolation: isolate;
}

.rules-character::before {
  display: none;
}

.rules-character img {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.36));
  transform-origin: bottom center;
}

.rules-character-sanzioni img {
  transform: translateY(4px);
}

.rules-character-client-mod img {
  transform: translateY(4px);
}

.rules-character-staff img {
  transform: translateY(4px);
}

.rules-character-creator img {
  transform: translateY(4px);
}

.rules-selector-person {
  position: relative;
  justify-self: start;
  align-self: end;
  width: min(360px, 100%);
  height: 430px;
  overflow: visible;
  display: grid;
  place-items: start center;
  margin-bottom: -142px;
}

.rules-selector-person::before {
  display: none;
}

.rules-selector-person img {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.34));
  transform: translateY(0);
}

.rules-hero h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(2.1rem, 4.4vw, 4.15rem);
  line-height: 1;
  text-transform: uppercase;
}

.rules-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.rules-layout-section {
  padding: 32px 0 90px;
  background: var(--bg);
}

.rules-selector-section {
  padding: 34px 0 90px;
  background: transparent;
  position: relative;
}

.rules-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rules-selector-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 260px;
  border: 1px solid rgba(139, 24, 255, 0.24);
  border-radius: 18px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 7px 0 rgba(45, 8, 68, 0.34), 0 18px 40px rgba(0, 0, 0, 0.14);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.rules-selector-card-creator {
  z-index: 3;
}

.rules-selector-card:hover {
  transform: translateY(-5px);
  filter: brightness(1.05);
  box-shadow: 0 10px 0 rgba(45, 8, 68, 0.42), 0 26px 52px rgba(0, 0, 0, 0.18);
}

.rules-selector-index {
  color: rgba(182, 92, 255, 0.54);
  font-size: 0.82rem;
  font-weight: 1000;
}

.rules-selector-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 18px 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  box-shadow: 0 6px 0 #4a0f86;
}

.rules-selector-icon .ui-icon {
  width: 27px;
  height: 27px;
}

.rules-selector-card strong {
  color: var(--text);
  font-size: 1.22rem;
  line-height: 1.1;
}

.rules-selector-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.rules-selector-action {
  align-self: end;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 20px;
  border-radius: 999px;
  background: rgba(139, 24, 255, 0.16);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 1000;
  padding: 0 15px;
  box-shadow: inset 0 0 0 1px rgba(139, 24, 255, 0.28);
}

.rules-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rules-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.rules-sidebar-group {
  display: grid;
  gap: 7px;
}

.rules-sidebar a,
.rules-sidebar button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 16px;
  text-align: left;
  box-shadow: 0 4px 0 rgba(45, 8, 68, 0.24);
}

.rules-back-link {
  margin-bottom: 4px;
  background: transparent !important;
  color: var(--text) !important;
  border-color: rgba(139, 24, 255, 0.32) !important;
  box-shadow: inset 0 0 0 1px rgba(139, 24, 255, 0.12) !important;
}

.rules-back-link .ui-icon {
  width: 18px;
  height: 18px;
  transform: rotate(180deg);
}

.rules-back-link:hover {
  background: rgba(139, 24, 255, 0.12) !important;
  transform: translateY(-2px);
}

.rules-sidebar a.active,
.rules-sidebar a:hover,
.rules-sidebar button.active,
.rules-sidebar button:hover {
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  border-color: transparent;
}

.rules-subnav {
  display: grid;
  gap: 6px;
  margin: 0 0 8px 24px;
  padding-left: 16px;
  border-left: 2px solid rgba(139, 24, 255, 0.45);
}

.rules-subnav a {
  min-height: 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0 8px;
}

.rules-subnav a:hover {
  background: rgba(139, 24, 255, 0.12);
  color: var(--text);
}

.rules-document {
  display: grid;
  gap: 24px;
}

.rules-panel {
  border: 1px solid rgba(139, 24, 255, 0.24);
  border-radius: 18px;
  background: var(--surface);
  padding: clamp(24px, 4vw, 34px);
  box-shadow: 0 8px 0 rgba(45, 8, 68, 0.38);
}

.rules-panel > header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.rules-panel > header > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, #9f2dff, #7315c8);
  color: #fff;
  box-shadow: 0 6px 0 #4a0f86;
}

.rules-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.rules-panel header p,
.rules-subsection p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.rules-subsection {
  border-left: 4px solid rgba(139, 24, 255, 0.6);
  padding-left: 18px;
  margin-top: 24px;
}

.rules-subsection h3,
.rules-list-block h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.2rem;
}

.rules-rows {
  display: grid;
  gap: 8px;
}

.rules-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(139, 24, 255, 0.18);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 10px 13px;
}

.rules-rows span,
.rules-list-block li {
  color: var(--muted);
  font-weight: 700;
}

.rules-rows strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: rgba(139, 24, 255, 0.16);
  color: #b65cff;
  padding: 0 10px;
  white-space: nowrap;
}

.rules-split,
.creator-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rules-list-block {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 18px;
  margin-top: 16px;
}

.rules-list-block ul {
  margin: 0;
  padding-left: 18px;
}

.rules-list-block.success h3 {
  color: #23d47a;
}

.rules-list-block.danger h3,
.rules-note.danger {
  color: #ff6b84;
}

.rules-note {
  margin: 24px 0 0;
  border: 1px solid rgba(139, 24, 255, 0.24);
  border-radius: 12px;
  background: rgba(139, 24, 255, 0.1);
  color: var(--muted);
  font-weight: 800;
  padding: 14px;
}

.creator-tier {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(139, 24, 255, 0.24);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 18px;
}

.creator-tier strong {
  color: #b65cff;
  font-size: 1.2rem;
}

.creator-tier span {
  color: var(--text);
  font-weight: 900;
}

.creator-tier small {
  color: var(--muted);
  font-weight: 700;
}

.guide-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.guide-hub-card {
  border: 1px solid rgba(139, 24, 255, 0.22);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 6px 0 rgba(45, 8, 68, 0.34);
}

.guide-hub-card h2 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 1.25rem;
}

.guide-hub-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}

:root[data-theme="light"] .guide-card-icon,
:root[data-theme="light"] .guide-hero-card > span,
:root[data-theme="light"] .guide-hub-card > span,
:root[data-theme="light"] .social-links a {
  color: #17121d;
}

.social-links {
  gap: 12px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--footer-line);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.social-links a .ui-icon {
  width: 19px;
  height: 19px;
}

.social-links a:hover {
  background: rgba(139, 24, 255, 0.18);
  color: #ffffff;
}

.footer-staff-slot {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.footer-staff-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid var(--footer-line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0 10px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer-staff-button .ui-icon {
  width: 14px;
  height: 14px;
}

.footer-staff-button:hover {
  color: var(--text);
  background: rgba(139, 24, 255, 0.12);
  transform: translateY(-2px);
}

:root[data-theme="light"] .social-links a:hover {
  color: #17121d;
  background: rgba(139, 24, 255, 0.1);
}

@media (max-width: 920px) {
  .guide-preview-layout,
  .guide-hero-grid,
  .rules-selector-hero-grid,
  .rules-hero-showcase,
  .rules-layout,
  .rules-split,
  .creator-tiers,
  .rules-selector-grid {
    grid-template-columns: 1fr;
  }

  .rules-sidebar {
    position: static;
  }

  .rules-selector-orbit {
    min-height: 190px;
  }

  .rules-selector-person {
    justify-self: center;
    width: min(300px, 100%);
    height: 330px;
    margin-bottom: -90px;
  }

  .rules-selector-person img {
    width: min(300px, 100%);
    transform: translateY(0);
  }

  .rules-title-card,
  .rules-title-card.compact {
    width: 100%;
    min-width: 0;
  }

  .rules-title-card h1 {
    white-space: normal;
  }

  .rules-character {
    justify-self: center;
    width: min(320px, 100%);
    min-height: 250px;
    margin: 10px auto -8px;
  }

  .applications-role-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .applications-role-action {
    grid-column: 2;
    justify-self: start;
  }

  .guide-library-grid,
  .guide-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-tile {
    min-height: 0;
  }

  .guide-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .guide-card-arrow {
    display: none;
  }

  .guide-hub-grid {
    grid-template-columns: 1fr;
  }

  .guide-library-grid,
  .guide-library-card {
    grid-template-columns: 1fr;
  }

  .applications-hero {
    padding-top: 120px;
  }

  .applications-role-card {
    grid-template-columns: 1fr;
  }

  .applications-role-action {
    grid-column: auto;
  }

  .guide-library-media {
    min-height: 190px;
  }
}

:where(
  button,
  .button,
  .store-button,
  .footer-store-button,
  .footer-cta,
  .footer-staff-button,
  .pre-footer-button,
  .server-copy-button,
  .quick-config-row,
  .hero-play-button,
  .hero-help-button,
  .hero-side-action,
  .news-more,
  .news-close-button,
  .news-open-button,
  .news-zone-filters button,
  .news-pagination button,
  .tag-add-button,
  .tag-delete-button,
  .tag-edit-row button,
  .site-dialog-button,
  .rich-toolbar button,
  .news-card-admin button,
  .delete-news-button,
  .staff-icon-button,
  .staff-login-button,
  .guide-read-button,
  .guide-staff-action,
  .guide-all-link,
  .applications-primary,
  .applications-secondary,
  .applications-role-card,
  .applications-choice button,
  .applications-result a,
  .applications-continue,
  .rules-sidebar button,
  .language-menu button,
  .social-links a
) {
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

:where(
  button,
  .button,
  .store-button,
  .footer-store-button,
  .footer-cta,
  .footer-staff-button,
  .pre-footer-button,
  .server-copy-button,
  .quick-config-row,
  .hero-play-button,
  .hero-help-button,
  .hero-side-action,
  .news-more,
  .news-close-button,
  .news-open-button,
  .news-zone-filters button,
  .news-pagination button:not(:disabled),
  .tag-add-button,
  .tag-delete-button,
  .tag-edit-row button:not(:disabled),
  .site-dialog-button,
  .rich-toolbar button,
  .news-card-admin button,
  .delete-news-button,
  .staff-icon-button,
  .staff-login-button,
  .guide-read-button,
  .guide-staff-action,
  .guide-all-link,
  .applications-primary,
  .applications-secondary,
  .applications-role-card,
  .applications-choice button,
  .applications-result a,
  .applications-continue,
  .rules-sidebar button,
  .language-menu button,
  .social-links a
):active {
  transform: translateY(2px) scale(0.97);
  filter: brightness(0.96);
}

.pre-footer-button:active,
.applications-role-card:active,
.applications-choice button:active,
.applications-continue:active,
.applications-result a:active {
  transform: translateY(4px) scale(0.965) !important;
  filter: brightness(0.94) !important;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.42) !important;
}

body.interaction-locked {
  user-select: none;
}

body.interaction-locked img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.maintenance-page,
.admin-panel-page {
  min-height: 72vh;
  padding: 150px 0 70px;
  background: var(--bg);
}

.maintenance-card,
.admin-hero-card {
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 45%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(135deg, #7b22d8, #bf58ff);
  color: #fff;
  padding: clamp(30px, 5vw, 46px);
  box-shadow: 0 8px 0 #4a0f86;
}

.maintenance-card {
  width: min(820px, 100%);
}

.maintenance-card h1,
.admin-hero-card h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
}

.maintenance-card p,
.admin-hero-card p,
.maintenance-card .section-kicker,
.admin-hero-card .section-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.maintenance-card .store-button {
  margin-top: 22px;
  width: fit-content;
}

.admin-panel {
  display: grid;
  gap: 26px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
}

.admin-grid.single {
  grid-template-columns: 1fr;
}

.admin-card {
  border: 1px solid rgba(159, 45, 255, 0.26);
  border-radius: 18px;
  background: var(--surface);
  padding: 26px;
  box-shadow: 0 8px 0 rgba(45, 8, 68, 0.38);
}

.admin-card h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-card-head h2 {
  margin: 0;
}

.admin-card label {
  color: var(--muted);
  font-weight: 800;
}

.admin-card input,
.admin-card textarea {
  width: 100%;
  margin: 7px 0 16px;
  border: 1px solid rgba(159, 45, 255, 0.22);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.admin-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}

.admin-switch input,
.admin-radio-row input,
.admin-page-list input {
  width: auto;
  margin: 0;
}

.admin-radio-row,
.admin-page-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.admin-radio-row label,
.admin-page-list label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(159, 45, 255, 0.22);
  border-radius: 999px;
  background: rgba(159, 45, 255, 0.1);
  padding: 9px 12px;
  color: var(--text);
  font-size: 0.9rem;
}

.admin-global-status {
  min-height: 22px;
}

.admin-users-list {
  display: grid;
  gap: 12px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(190px, 1fr) minmax(140px, 0.7fr) minmax(210px, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(159, 45, 255, 0.18);
  border-radius: 14px;
  background: rgba(159, 45, 255, 0.08);
  padding: 14px;
}

.admin-user-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-user-permissions label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(159, 45, 255, 0.12);
  padding: 7px 9px;
  color: var(--text);
  font-size: 0.78rem;
}

.admin-user-row input {
  margin: 0;
}

.admin-user-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  color: var(--text);
}

.admin-user-active input {
  width: auto;
  margin: 0;
}

.admin-wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-wizard-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 0, 8, 0.76);
  backdrop-filter: blur(12px);
}

.admin-wizard-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  border: 1px solid rgba(159, 45, 255, 0.34);
  border-radius: 20px;
  background: var(--surface);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46), 0 8px 0 rgba(74, 15, 134, 0.72);
}

.admin-wizard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 1000;
}

.admin-wizard-top button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: rgba(159, 45, 255, 0.16);
  color: var(--text);
  font-weight: 1000;
}

.admin-wizard-card h2 {
  margin: 18px 0 12px;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.admin-wizard-card label {
  color: var(--muted);
  font-weight: 800;
}

.admin-wizard-card input {
  width: 100%;
  margin: 7px 0 14px;
  border: 1px solid rgba(159, 45, 255, 0.24);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

.admin-wizard-permissions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.admin-wizard-permissions label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(159, 45, 255, 0.24);
  border-radius: 14px;
  background: rgba(159, 45, 255, 0.1);
  padding: 14px;
  color: var(--text);
}

.admin-wizard-permissions input,
.admin-switch input {
  width: auto;
  margin: 0;
}

.admin-wizard-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.applications-choice-back {
  min-height: 46px;
  border: 1px solid rgba(159, 45, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  padding: 0 18px;
}

.admin-wizard-note {
  color: var(--muted);
}

.interaction-lock-notice,
.admin-toast {
  position: fixed;
  right: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(159, 45, 255, 0.32);
  border-radius: 14px;
  background: rgba(19, 9, 29, 0.92);
  color: #fff;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.interaction-lock-notice {
  bottom: 18px;
}

.admin-toast {
  bottom: 76px;
}

@media (max-width: 900px) {
  .admin-grid,
  .admin-user-row {
    grid-template-columns: 1fr;
  }
}
