@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --accent: #6849bd;
  --accent-rgb: 104, 73, 189;
  --accent-light: #b29be9;
  --purchase: #5b3fa8;
  --background: #13151d;
  --bar-background: #101114;
  --topbar-height: 64px;
  --text: #f1f0f4;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: clip;
  background: var(--background);
  color-scheme: dark;
}

body {
  min-height: 100svh;
  isolation: isolate;
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('/assets/background-stars.svg') center / 100% 100% no-repeat;
  animation: stars-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

.restriction-page {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.freeze-page {
  display: flex;
  flex-direction: column;
  padding: var(--topbar-height) 0 0;
}

.freeze-layout {
  display: grid;
  flex: 1;
  place-items: center;
  box-sizing: border-box;
  padding: 48px 24px;
}

.freeze-card {
  width: min(100%, 440px);
  box-sizing: border-box;
  padding: 44px 28px;
  border: 1px solid rgba(178, 155, 233, 0.2);
  border-radius: 18px;
  background: #191b25;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.restriction-page h1 {
  margin: 0;
  font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.6px;
}

.freeze-card p {
  margin: 14px 0 22px;
  color: #aaa6b5;
  font-size: 15px;
  line-height: 1.6;
}

.freeze-discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.freeze-discord-button:hover {
  background: #7655cd;
}

.freeze-discord-button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

.blacklist-page::before {
  content: none;
}

html {
  scroll-behavior: smooth;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  border: 0;
  border-radius: 0;
  background: var(--bar-background);
  overflow: hidden;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  transition: transform 439.216ms cubic-bezier(0.16, 1, 0.3, 1);
}

.background-meteors {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.background-meteor {
  position: absolute;
  top: var(--meteor-y);
  left: var(--meteor-x);
  width: 35.2px;
  height: 2.2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.25) 45%, var(--accent));
  opacity: 0;
  pointer-events: none;
  offset-path: var(--meteor-path, path("M -40 -24 L 220 126"));
  offset-distance: 0%;
  offset-rotate: auto;
  offset-anchor: 100% 50%;
  animation: background-meteor var(--meteor-duration) linear var(--meteor-delay) infinite;
  will-change: offset-distance, opacity;
}

.background-meteor:nth-child(1) { --meteor-x: 16%; --meteor-y: 18%; --meteor-duration: 14s; --meteor-delay: -1s; }
.background-meteor:nth-child(2) { --meteor-x: 70%; --meteor-y: 12%; --meteor-duration: 22s; --meteor-delay: -7s; width: 24.2px; }
.background-meteor:nth-child(3) { --meteor-x: 44%; --meteor-y: 55%; --meteor-duration: 18s; --meteor-delay: -3s; }
.background-meteor:nth-child(4) { --meteor-x: 6%; --meteor-y: 58%; --meteor-duration: 16s; --meteor-delay: -9s; }
.background-meteor:nth-child(5) { --meteor-x: 58%; --meteor-y: 22%; --meteor-duration: 20s; --meteor-delay: -12s; }
.background-meteor:nth-child(6) { --meteor-x: 12%; --meteor-y: 66%; --meteor-duration: 17s; --meteor-delay: -2s; }
.background-meteor:nth-child(7) { --meteor-x: 34%; --meteor-y: 10%; --meteor-duration: 13s; --meteor-delay: -9s; }
.background-meteor:nth-child(8) { --meteor-x: 65%; --meteor-y: 72%; --meteor-duration: 19s; --meteor-delay: -13s; }
.background-meteor:nth-child(9) { --meteor-x: 80%; --meteor-y: 42%; --meteor-duration: 15s; --meteor-delay: -5s; }
.background-meteor:nth-child(10) { --meteor-x: 2%; --meteor-y: 32%; --meteor-duration: 21s; --meteor-delay: -19s; }

.topbar.is-hidden {
  transform: translateY(-105%);
  pointer-events: none;
}

.topbar-reveal-zone {
  position: fixed;
  inset: 0 0 auto;
  height: 24px;
  z-index: 11;
  pointer-events: none;
}

.topbar-reveal-zone.is-active {
  pointer-events: auto;
}

.topbar-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--topbar-height);
  margin: 0 auto;
  padding: 8px 32px;
}

.topbar-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #f3edff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.topbar-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: auto;
  gap: 12px;
}

.topbar-wordmark {
  order: 1;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.topbar-inner > .dashboard-button,
.topbar-inner > .logout-form,
.topbar-account-actions {
  justify-self: end;
}

.topbar-account-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-public-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
  margin-right: clamp(0px, 5vw, 64px);
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--purchase);
  border-radius: 11px;
  background: transparent;
  color: #ffffff;
  font: 550 14px/1.4 'Inter', 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease;
}

.topbar-link:hover {
  border-color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.1);
  color: #ffffff;
}

.guest-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: var(--bar-background);
  color: #d8d4e1;
  font: 550 14px/1.4 'Inter', 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.guest-profile:hover,
.guest-profile[aria-expanded="true"] {
  border-color: rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.12);
}

.guest-profile:focus-visible,
.account-menu-item:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.account-menu-chevron {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 200ms ease;
}

.guest-profile[aria-expanded="true"] .account-menu-chevron {
  transform: rotate(180deg);
}

.dashboard-page .topbar {
  overflow: visible;
}

.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  box-sizing: border-box;
  width: 208px;
  padding: 6px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 13px;
  background: var(--bar-background);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.account-menu[hidden] {
  display: none;
}

.account-menu:not([hidden]) {
  animation: account-menu-enter 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d8d4e1;
  font: 550 14px/1.4 'Inter', 'Segoe UI', sans-serif;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu-item svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: #a19aaa;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--text);
}

.account-menu .logout-form {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-menu-logout {
  color: #edacb8;
}

.guest-profile img {
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

#profile-username {
  min-width: 0;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-discord {
  justify-self: start;
  display: grid;
  place-items: center;
  width: 40px;
  height: 48px;
  border-radius: 12px;
}

.topbar-discord img {
  display: block;
  width: 28px;
  height: 28px;
  -webkit-user-select: none;
  user-select: none;
}

.topbar-logo:visited,
.topbar-logo:active {
  color: #f3edff;
}

.topbar-logo img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  -webkit-user-select: none;
  user-select: none;
}

.dashboard-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 11px;
  background: linear-gradient(145deg, #222428, #1b1d21);
  color: var(--text);
  text-decoration: none;
  font: 600 14px/1.4 'Inter', 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.topbar-public-actions .dashboard-button {
  border-color: var(--purchase);
  background: rgba(32, 34, 38, 0.75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: calc(100vw - 48px);
  margin-top: 8px;
  animation: actions-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.hero-actions button,
.hero-actions a {
  box-sizing: border-box;
  min-width: 136px;
  min-height: 48px;
  padding: 12px 24px;
  font: 600 15px/1.4 'Inter', 'Segoe UI', sans-serif;
}

.buy-button {
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  border-radius: 11px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.hero-actions .purchase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  border: 0;
  background: var(--purchase);
  box-shadow: 0 7px 26px rgba(var(--accent-rgb), 0.2);
  font-weight: 700;
  text-decoration: none;
}

.feature-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--purchase);
  border-radius: 11px;
  background: transparent;
  color: #bdbac9;
  text-decoration: none;
  transition: box-shadow 250ms ease, color 250ms ease;
}

.dashboard-button,
.feature-button,
.buy-button {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.topbar-logo:focus-visible,
.topbar-discord:focus-visible,
.topbar-link:focus-visible,
.dashboard-button:focus-visible,
.feature-button:focus-visible,
.buy-button:focus-visible,
.sidebar-link:focus-visible,
.auth-switch a:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

.site-footer {
  padding: 24px 32px;
  background: var(--bar-background);
  color: #aaa8b2;
  text-align: left;
  font: 500 14px/1.6 'Inter', 'Segoe UI', sans-serif;
}

.site-footer p {
  margin: 0;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer-copyright {
  flex: none;
  white-space: nowrap;
}

.footer-disclaimer {
  color: #8e8b99;
  font-size: 12px;
}

.footer-legal {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px 32px;
  color: #b8b5c3;
  font-size: 13px;
  white-space: nowrap;
}

.footer-legal span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

.footer-legal span:hover {
  color: #eeeaf8;
  text-decoration-color: currentColor;
}

.page-entering > .topbar,
.page-entering > main,
.page-entering > .dashboard-sidebar,
.page-entering > .site-footer,
.dashboard-view.is-entering {
  animation: page-enter 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-leaving > .topbar,
.page-leaving > main,
.page-leaving > .dashboard-sidebar,
.page-leaving > .site-footer {
  animation: page-leave 240ms cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

.dashboard-view.is-leaving {
  animation: page-leave 180ms ease-in forwards;
  pointer-events: none;
}

.hero {
  box-sizing: border-box;
  min-height: 100svh;
  padding: 76px 24px 0;
  display: grid;
  place-items: center;
}

.gallery {
  scroll-margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1344px;
  margin: 0 auto;
  padding: 48px 32px 144px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-optical-sizing: auto;
}

.video-gallery {
  max-width: 1466.4px;
}

.features-heading {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0 0 12px;
  color: var(--accent-light);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.8px;
  background: linear-gradient(45deg, #e4d9ff, var(--accent-light) 45%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gallery figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 20px;
  background: var(--bar-background);
  box-shadow: 0 20px 56px rgba(6, 4, 12, 0.3);
  transition:
    opacity 800ms ease,
    filter 800ms ease,
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 350ms ease,
    box-shadow 350ms ease;
}

.gallery figure.will-reveal {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(36px) scale(0.98);
}

.gallery figure.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-gallery video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--bar-background);
}

.video-progress {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 3px;
  background: rgba(var(--accent-rgb), 0.22);
  pointer-events: none;
}

.video-progress-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.video-card-open {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .video-gallery figure:hover {
    transform: scale(1.025);
  }
}

.video-card-open:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: -3px;
}

html:has(.feature-video-dialog[open]),
html:has(.plan-card-dialog[open]),
body.video-view-open,
body.plan-view-open {
  overflow: hidden;
}

.feature-video-dialog {
  box-sizing: border-box;
  width: min(1120px, calc(100vw - 48px), max(320px, calc((100svh - 260px) * 16 / 9)));
  max-width: none;
  max-height: calc(100svh - 48px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 20px;
  background: var(--bar-background);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
}

.feature-video-dialog::backdrop {
  background: rgba(8, 8, 12, 0.9);
}

.feature-video-dialog[open] {
  animation: dialog-enter 220ms ease-out;
}

.feature-video-caption {
  padding: clamp(24px, 2.5vw, 36px);
}

.feature-video-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.feature-video-heading h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 750;
  letter-spacing: -0.6px;
}

.feature-video-close,
.plan-card-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #202226;
  color: #c6c3cd;
  font: 500 20px/1 'Inter', 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.feature-video-close:hover,
.plan-card-close:hover {
  background: #2d2f34;
  color: var(--text);
}

.feature-video-close:focus-visible,
.plan-card-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.feature-video-dialog video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.feature-video-description {
  margin: 0;
  color: #c3c1cb;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: -0.15px;
}

@media (max-width: 600px) {
  .feature-video-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
    border-radius: 14px;
  }

  .feature-video-caption {
    padding: 24px;
  }
}

.footer-panorama {
  position: relative;
  width: 100%;
  min-height: 180px;
  aspect-ratio: calc(1919 / 1079 * 25 / 14);
  overflow: hidden;
  background: linear-gradient(to bottom, var(--background), var(--bar-background));
}

.footer-panorama img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.04) 5%, rgba(0, 0, 0, 0.2) 12%, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0.8) 28%, #000 38%, #000 62%, rgba(0, 0, 0, 0.8) 72%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.2) 88%, rgba(0, 0, 0, 0.04) 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.04) 5%, rgba(0, 0, 0, 0.2) 12%, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0.8) 28%, #000 38%, #000 62%, rgba(0, 0, 0, 0.8) 72%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.2) 88%, rgba(0, 0, 0, 0.04) 95%, transparent 100%);
}

.help-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  color: #ffffff;
  text-align: center;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.help-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  max-width: 100%;
  padding: clamp(14px, 2vw, 26px) clamp(12px, 2.5vw, 32px);
  border-radius: 16px;
  background: #14161a;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48), 0 6px 20px rgba(0, 0, 0, 0.3);
}

.help-content h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.8px;
}

.help-highlight {
  display: inline-block;
  background: linear-gradient(110deg, #a88ae8, #e6d7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 750;
  filter: drop-shadow(0 0 16px rgba(var(--accent-rgb), 0.45));
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: min(120px, 30vw);
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #1a1c20;
  color: #ffffff;
  font: 600 14px/1.4 'Inter', 'Segoe UI', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms ease;
}

.help-join-glow {
  position: relative;
  display: inline-flex;
  isolation: isolate;
}

.help-join-glow::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 11px;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5), 0 0 44px rgba(var(--accent-rgb), 0.28);
  pointer-events: none;
  content: '';
}

.help-button-join {
  border-color: transparent;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .help-button:hover {
    transform: scale(1.05);
  }
}

.help-button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

.card-image {
  overflow: hidden;
  aspect-ratio: 1919 / 1079;
  border-bottom: 1px solid rgba(191, 164, 234, 0.1);
}

.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 750ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery figcaption {
  padding: 26px;
}

.gallery figcaption h2,
.gallery figcaption h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 22px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

.gallery p {
  margin: 0;
  color: #c3c1cb;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: -0.15px;
}

.video-gallery figcaption {
  padding: 28.6px;
}

.video-gallery figcaption h3 {
  font-size: 24.2px;
}

.video-gallery p {
  font-size: 17.6px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .dashboard-button:hover {
    border-color: rgba(var(--accent-rgb), 0.8);
    box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.14);
  }

  .topbar-public-actions .dashboard-button:hover {
    border-color: var(--accent-light);
    background: rgba(43, 45, 50, 0.75);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.16);
  }

  .buy-button:hover {
    border-color: var(--accent-light);
    box-shadow: 0 9px 30px rgba(var(--accent-rgb), 0.38);
  }

  .hero-actions .purchase-button:hover {
    background: #6748b8;
    box-shadow: 0 9px 30px rgba(var(--accent-rgb), 0.3);
  }

  .feature-button:hover {
    box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.24);
    color: var(--text);
  }

  .gallery:not(.video-gallery) figure:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 26px 64px rgba(6, 4, 12, 0.4), 0 0 32px rgba(var(--accent-rgb), 0.12);
  }

  .gallery:not(.video-gallery) figure:hover img {
    transform: scale(1.045);
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 760px;
  transform: translateY(-6vh);
}

.hero-heading {
  margin: 0;
  color: #ffffff;
  text-align: center;
  font: 650 clamp(20px, 2.6875vw, 35px)/1.45 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: -0.4px;
  animation: actions-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-emphasis {
  color: var(--purchase);
}

.auth-page,
.dashboard-page {
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.error-page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: var(--topbar-height);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.error-page > main {
  display: grid;
  flex: 1;
  place-items: center;
  box-sizing: border-box;
  padding: 48px 24px;
  text-align: center;
}

.error-page > main p {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.5;
}

.auth-page {
  --accent: #7048dc;
  --accent-rgb: 112, 72, 220;
  --accent-light: #8c62f0;
  --purchase: #6540c8;
}

.auth-layout {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 100svh;
  padding: 100px 32px;
}

.auth-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  justify-self: center;
  padding: 40px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 22px;
  background: var(--bar-background);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
  animation: actions-reveal 900ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
}

.auth-panel h2 {
  margin: 0 0 30px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.8px;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 9px;
  color: #d9d7df;
  font-size: 14px;
  font-weight: 600;
}

.form-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  border: 1px solid #414047;
  border-radius: 10px;
  background: var(--bar-background);
  color: var(--text);
  font: 400 16px/1.4 'Inter', 'Segoe UI', sans-serif;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-field input::placeholder {
  color: #8b8995;
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #aaa8b4;
  cursor: pointer;
}

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

.password-toggle:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 1px;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-eye-slash {
  display: none;
}

.password-toggle.is-visible .password-eye-slash {
  display: block;
}

.field-help {
  margin: 8px 0 0;
  color: #aaa8b4;
  font-size: 12px;
  line-height: 1.5;
}

.form-message {
  margin: 0 0 20px;
  color: #f3abb9;
  font-size: 13px;
  line-height: 1.6;
}

.remember-option {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 38px;
  margin-bottom: 18px;
  padding: 8px 10px;
  border: 1px solid #34343a;
  border-radius: 10px;
  background: var(--bar-background);
  color: #bdb7cb;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 200ms ease;
}

.remember-option input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.remember-option:hover {
  border-color: #484850;
}

.remember-option:has(input:checked) {
  border-color: var(--accent);
}

.remember-option:has(input:focus-visible) {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  padding: 15px 20px;
  font: 600 15px/1.4 'Inter', 'Segoe UI', sans-serif;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.auth-switch {
  margin: 24px 0 0;
  color: #b8b5c1;
  text-align: center;
  font-size: 14px;
  line-height: 1.65;
}

.auth-switch a {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-forgot {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  color: var(--accent-light);
  font-size: 13px;
  text-decoration: none;
}

.auth-forgot:hover { text-decoration: underline; }
.auth-forgot:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
.reset-description { margin: 0 0 20px; color: #b8b5c1; font-size: 14px; line-height: 1.65; }
.reset-request, .reset-confirmation { min-width: 0; margin: 0; padding: 0; border: 0; }
.reset-request[hidden], .reset-confirmation[hidden], .reset-message[hidden] { display: none; }
.reset-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 16px; }
.reset-message[data-success="true"] { color: var(--accent-light); }
.password-reset-form button:disabled { opacity: 0.6; cursor: wait; }

.dashboard-page {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  box-sizing: border-box;
  padding-top: var(--topbar-height);
}

.dashboard-page .topbar-inner {
  max-width: none;
}

.dashboard-sidebar {
  position: sticky;
  top: var(--topbar-height);
  z-index: 5;
  align-self: stretch;
  box-sizing: border-box;
  width: 80px;
  max-height: calc(100svh - var(--topbar-height));
  padding: 28px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bar-background);
  overflow: hidden;
  transition: width 360ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 360ms ease;
}

.dashboard-sidebar.is-expanded {
  width: 248px;
  box-shadow: 16px 0 44px rgba(0, 0, 0, 0.12);
}

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

.sidebar-selection {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  border: 1px solid rgba(157, 124, 222, 0.65);
  border-radius: 11px;
  background: transparent;
  pointer-events: none;
}

.sidebar-selection.is-ready {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), height 200ms ease;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: 50px;
  padding: 14px 18px;
  border: 0;
  border-radius: 11px;
  color: #aaa7b5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
  transition: background 200ms ease, color 200ms ease;
}

.sidebar-link svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.sidebar-link span {
  flex: none;
  opacity: 0;
  transform: translateX(-8px);
  white-space: nowrap;
  transition: opacity 160ms ease, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-sidebar.is-expanded .sidebar-link span {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 80ms;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sidebar-link[aria-current="page"] {
  background: transparent;
  color: #eee5ff;
}

.sidebar-link[aria-current="page"] svg {
  color: var(--accent-light);
}

.dashboard-content {
  display: grid;
  min-width: 0;
  padding: 48px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

.dashboard-view {
  display: grid;
  place-items: center;
  min-width: 0;
  text-align: center;
}

.dashboard-view[hidden] {
  display: none;
}

.dashboard-overview {
  align-content: start;
  justify-items: stretch;
  gap: 28px;
  text-align: left;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  width: 100%;
  max-width: 308px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 636px);
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.dashboard-account-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  box-sizing: border-box;
  min-width: 0;
  height: 310px;
  padding: 24px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 16px;
  background: var(--bar-background);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.dashboard-card:hover,
.dashboard-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.62);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), 0 0 24px rgba(var(--accent-rgb), 0.08);
}

.dashboard-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.accounts-button {
  background: transparent;
}

.minecraft-accounts-card {
  align-self: start;
  height: auto;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
}

.discord-account-card {
  height: auto;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
}

.discord-account-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.discord-account-profile[hidden] {
  display: none;
}

.discord-account-profile img {
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.discord-account-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.discord-account-name,
.discord-account-handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-account-name {
  font-size: 14px;
  font-weight: 600;
}

.discord-account-handle {
  color: #aaa4b5;
  font-size: 12px;
}

.settings-view {
  align-content: center;
  justify-items: center;
  gap: 24px;
  text-align: left;
}

.account-settings-card {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 4 / 5;
  align-items: stretch;
  justify-content: flex-start;
  gap: 32px;
  padding: 32px;
}

.account-settings-card:hover,
.account-settings-card:focus-within {
  transform: none;
}

.settings-discord {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  text-align: center;
}

.settings-discord .discord-account-profile {
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}

.settings-discord .discord-account-profile img {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-discord .discord-account-identity {
  max-width: 100%;
}

.settings-discord .discord-account-name {
  font-size: 16px;
}

.settings-fields {
  width: 100%;
  margin-block: auto;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.settings-value {
  min-width: 0;
  margin: 0;
  color: #aaa4b5;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.settings-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
}

.settings-value .settings-label {
  margin-right: 6px;
}

.settings-password {
  letter-spacing: 2px;
}

.settings-change {
  flex: none;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}

.settings-change:disabled {
  opacity: 0.5;
  cursor: default;
}

.settings-2fa-copy {
  min-width: 0;
}

.settings-2fa-copy p {
  margin: 6px 0 0;
  color: #aaa4b5;
  font-size: 12px;
  line-height: 1.6;
}

.settings-switch {
  position: relative;
  display: inline-flex;
  flex: none;
}

.settings-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.settings-switch-track {
  display: block;
  box-sizing: border-box;
  width: 42px;
  height: 24px;
  padding: 3px;
  border: 1px solid #36383d;
  border-radius: 20px;
  background: #1e2025;
  pointer-events: none;
}

.settings-switch-track::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #bcb6c7;
}

.settings-switch input:checked + .settings-switch-track {
  border-color: var(--accent);
  background: var(--purchase);
}

.settings-switch input:checked + .settings-switch-track::after {
  transform: translateX(18px);
  background: #fff;
}

.settings-switch input:focus-visible + .settings-switch-track {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

.settings-switch input:disabled {
  cursor: not-allowed;
}

.settings-switch input:disabled + .settings-switch-track {
  opacity: 0.5;
}

.settings-message,
.settings-form-message {
  margin: 0;
  color: var(--accent-light);
  font-size: 13px;
  line-height: 1.6;
}

.settings-form-message {
  margin-bottom: 18px;
  color: #e4a3ac;
}

.settings-message[hidden],
.settings-form-message[hidden] {
  display: none;
}

.settings-details,
.settings-verification {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.settings-details[hidden],
.settings-verification[hidden] {
  display: none;
}

.settings-verification-copy,
.settings-verification-status {
  margin: 0 0 22px;
  color: #aaa4b5;
  font-size: 13px;
  line-height: 1.6;
}

.settings-verification-copy strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-weight: 550;
  overflow-wrap: anywhere;
}

.form-field .settings-code-input {
  text-align: center;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
}

.settings-verification .dialog-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.settings-verification-back {
  width: 100%;
  margin-top: 12px;
}

.discord-link-message[hidden] {
  display: none;
}

.discord-link-message {
  margin: 0;
  max-width: 636px;
  color: #aaa4b5;
  font-size: 13px;
  line-height: 1.6;
}

.discord-link-form {
  width: 100%;
  margin: 0;
}

.discord-link-form .dashboard-button {
  width: 100%;
  gap: 8px;
  border-color: rgba(var(--accent-rgb), 0.55);
  background: var(--purchase);
}

.discord-account-card .dashboard-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.discord-account-card .dashboard-button.is-linked {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.1);
  background: #1a1c20;
  color: #aaa4b5;
}

.scripting-card {
  height: auto;
  justify-content: flex-start;
  gap: 16px;
  cursor: pointer;
}

.scripting-card:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

.dashboard-value {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.8px;
  transition: color 250ms ease;
}

.scripting-card:hover .dashboard-value {
  color: var(--accent-light);
}

.minecraft-account-list {
  display: grid;
  grid-auto-rows: 54px;
  gap: 8px;
  width: 100%;
  max-height: 178px; /* Three rows and two gaps. */
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
}

.minecraft-account-list[hidden] {
  display: none;
}

.minecraft-account-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.06);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.minecraft-account-list li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.minecraft-account-list img {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  image-rendering: pixelated;
  object-fit: contain;
}

.account-remove {
  flex: none;
  margin-left: auto;
  padding: 3px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #a19caa;
  font-size: 18px;
  cursor: pointer;
}

.account-remove:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.purchase-view {
  --plan-height: max(396px, calc((100svh - var(--topbar-height) - 72px) * 0.715));
  align-content: start;
  justify-items: stretch;
  gap: 28px;
  text-align: left;
}

.purchases-view,
.statistics-view {
  align-content: start;
  justify-items: stretch;
  gap: 28px;
  text-align: left;
}

.purchase-history-card {
  --muted: #aaa7b5;
  width: 100%;
  max-width: 1000px;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 18px;
  background: var(--bar-background);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.purchase-history-heading {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.purchase-history-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.purchase-history-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.purchase-history-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

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

.purchase-history-table th,
.purchase-history-table td {
  padding: 20px 28px;
}

.purchase-history-table th {
  padding-block: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.purchase-history-table td {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.purchase-history-table th:first-child {
  width: 55%;
}

.purchase-history-table th:last-child,
.purchase-history-table td:last-child {
  text-align: right;
}

.purchase-history-table time,
.purchase-history-price {
  white-space: nowrap;
}

.purchase-history-product {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.purchase-history-description {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.purchase-history-price {
  font-weight: 600;
  color: #eee5ff;
}

.purchase-history-state {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 56px 24px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.purchase-history-state svg {
  width: 36px;
  height: 36px;
  color: var(--accent-light);
}

.purchase-history-state p {
  margin: 0;
  line-height: 1.6;
}

.purchase-history-state[hidden],
.purchase-history-state .dashboard-button[hidden] {
  display: none;
}

.purchase-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  align-items: start;
  gap: 24px;
  width: 100%;
  max-width: 1267.68px;
  margin: 0 auto;
  box-sizing: border-box;
  padding-top: calc(var(--plan-height) * 0.05);
}

.plan-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 406.56px;
  min-height: var(--plan-height);
  padding: 28px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 18px;
  background: var(--bar-background);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.plan-card-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.plan-card-open:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: -3px;
}

.plan-card-placeholder {
  width: 100%;
  max-width: 406.56px;
}

.plan-options,
.plan-actions {
  position: relative;
  z-index: 2;
}

.plan-card-dialog {
  box-sizing: border-box;
  width: min(var(--expanded-card-width, 480px), calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: var(--bar-background);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5);
}

.plan-card-dialog::backdrop {
  background: rgba(8, 8, 12, 0.48);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.plan-card-dialog .plan-card {
  width: var(--original-card-width, 406.56px);
  max-width: none;
  height: var(--original-card-height, 500px);
  min-height: var(--original-card-height, 500px);
  padding: var(--original-card-padding, 28px);
  box-shadow: none;
  translate: none;
  transform: scale(var(--expanded-card-scale, 1.18));
  transform-origin: top left;
}

.plan-card-dialog-content {
  height: var(--expanded-card-height, 590px);
}

.plan-card-dialog .plan-card-open {
  display: none;
}

.plan-card-primary {
  border-color: rgba(var(--accent-rgb), 0.5);
  translate: 0 -5%;
}

.plan-card:hover,
.plan-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.75);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2), 0 0 28px rgba(var(--accent-rgb), 0.09);
}

.plan-card-dialog .plan-card:hover,
.plan-card-dialog .plan-card:focus-within {
  transform: scale(var(--expanded-card-scale, 1.18));
  box-shadow: none;
}

.plan-heading {
  text-align: left;
}

.plan-heading h2 {
  margin: 0;
  font-size: 32.2px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.8px;
}

.plan-heading .plan-brand {
  color: var(--accent);
}

.plan-duration {
  color: #aaa4b5;
  font-size: 0.75em;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.plan-heading p {
  margin: 8px 0 0;
  color: #c1bbc9;
  font-size: 15px;
}

.plan-heading .plan-promo {
  margin-top: 10px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
}

.plan-options {
  align-self: start;
  min-width: 0;
  padding-top: 20px;
}

.plan-option-label {
  display: block;
  margin: 0 0 10px;
  color: #aaa4b5;
  font-size: 13px;
  font-weight: 500;
}

.plan-period-options {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: #15171b;
}

.plan-period-options::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  z-index: 0;
  width: calc((100% - 12px) / 2);
  border-radius: 7px;
  background: var(--purchase);
  pointer-events: none;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-period-options.is-quarterly::before {
  transform: translateX(calc(100% + 4px));
}

.plan-period-option {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.plan-savings-badge {
  position: absolute;
  top: -12px;
  right: -5px;
  z-index: 10;
  padding: 3px 6px;
  border-radius: 5px;
  outline: 1px solid var(--accent-light);
  background: var(--purchase);
  color: #ffffff;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}

.plan-period-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
}

.plan-period-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px;
  border-radius: 7px;
  color: #aaa4b5;
  font-size: 13px;
  font-weight: 600;
  transition: background 200ms ease, color 200ms ease;
}

.plan-period-option:hover span {
  background: rgba(var(--accent-rgb), 0.12);
  color: #ffffff;
}

.plan-period-option input:checked + span {
  background: transparent;
  color: #ffffff;
}

.plan-period-option input:focus-visible + span,
.plan-count-input:focus-visible,
.plan-count-button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.plan-count-control {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: #15171b;
}

.plan-count-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #ffffff;
  text-align: center;
  font: 600 14px/1.4 'Inter', 'Segoe UI', sans-serif;
  -moz-appearance: textfield;
  appearance: textfield;
}

.plan-count-input::-webkit-inner-spin-button,
.plan-count-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.plan-count-button {
  display: grid;
  place-items: center;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d8d1e3;
  font: 500 22px/1 'Inter', 'Segoe UI', sans-serif;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.plan-count-button:hover:not(:disabled) {
  background: rgba(var(--accent-rgb), 0.2);
  color: #ffffff;
}

.plan-count-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.plan-features {
  align-self: start;
  padding: 20px 0 0;
  text-align: left;
}

.plan-features h3 {
  margin: 0 0 14px;
  color: #aaa4b5;
  font-size: 14px;
  font-weight: 550;
}

.plan-features p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.plan-actions {
  display: grid;
  grid-row: 3;
  grid-template-rows: auto 48px 18px;
  gap: 14px;
}

.plan-price {
  margin: 0;
  text-align: left;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.7px;
}

.plan-price small {
  margin-left: 3px;
  color: #a9a2b6;
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0;
}

.plan-price-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-original-price {
  color: #a9a2b6;
  font-size: 14px;
  font-weight: 450;
  letter-spacing: 0;
}

.plan-price .plan-discount {
  margin: 0;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.plan-purchase-button,
.dialog-submit {
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  background: var(--purchase);
  font: 600 13px/1.5 'Inter', 'Segoe UI', sans-serif;
}

.plan-purchase-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.plan-purchase-button:hover,
.dialog-submit:hover {
  background: #6748b8;
}

.plan-purchase-button[data-owned="true"] {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--accent-light);
  cursor: default;
}

.plan-features-link {
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a9a2b6;
  font: 450 12px/1.5 'Inter', 'Segoe UI', sans-serif;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

.plan-features-link:hover {
  color: var(--accent-light);
  text-decoration-color: currentColor;
}

.dashboard-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 40px));
  max-height: calc(100svh - 40px);
  padding: 28px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 18px;
  background: var(--bar-background);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.dashboard-dialog::backdrop {
  background: rgba(12, 11, 16, 0.72);
}

.dashboard-dialog[open] {
  animation: dialog-enter 220ms ease-out;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.6px;
}

.dialog-close {
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: #a9a2b6;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

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

.dialog-submit {
  width: 100%;
}

.minecraft-account-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.06);
}

.minecraft-account-preview img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  image-rendering: pixelated;
  object-fit: contain;
}

.minecraft-account-preview strong {
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.minecraft-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dialog-price {
  margin: 0 0 16px;
  color: var(--accent-light);
  font-size: 28px;
  font-weight: 600;
}

.dialog-description,
.dialog-note {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
}

.dialog-note {
  color: #a9a2b6;
}

.dialog-close:focus-visible,
.account-remove:focus-visible,
.plan-features-link:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

.dashboard-page .site-footer {
  grid-column: 1 / -1;
  position: relative;
  z-index: 6;
}

.logout-form {
  margin: 0;
}

.dashboard-page h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.8px;
}

@keyframes background-meteor {
  0% {
    opacity: 0;
    offset-distance: 0%;
  }

  5% { opacity: 0.7; }
  17% { opacity: 0.7; }

  20%, 100% {
    opacity: 0;
    offset-distance: 100%;
  }
}

@keyframes stars-drift {
  from { transform: translate3d(-3px, 3px, 0); }
  to { transform: translate3d(5px, -5px, 0); }
}

@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes account-menu-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translate3d(28px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes page-leave {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
  }
}

@keyframes actions-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 680px;
    padding: 32px 24px 96px;
  }

  .video-gallery {
    max-width: 743.2px;
  }
}

@media (max-width: 480px) {
  .topbar-inner {
    padding: 8px 16px;
  }

  .topbar-wordmark {
    font-size: 16px;
  }

  .topbar-branding {
    gap: 8px;
  }

  .topbar-branding img {
    width: 32px;
    height: 32px;
  }

  .topbar-inner > .dashboard-button {
    padding: 11px 10px;
    font-size: 12px;
  }

  .hero-heading {
    letter-spacing: -0.2px;
  }

  .gallery figcaption {
    padding: 22px;
  }

  .video-gallery figcaption {
    padding: 24.2px;
  }

  .hero {
    padding-top: 68px;
  }

}

@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .topbar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .topbar.is-hidden {
    transform: none;
    pointer-events: auto;
  }

  .topbar-reveal-zone {
    display: none;
  }

  .topbar-logo,
  .topbar-logo:hover,
  .topbar-logo:active {
    background: transparent;
    transform: none;
  }

}

@media (max-width: 760px), (max-width: 1000px) and (max-height: 500px) {
  :root {
    --mobile-nav-height: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    padding: 24px 20px;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-page {
    display: flex;
    flex-direction: column;
    padding-bottom: var(--mobile-nav-height);
  }

  .dashboard-sidebar,
  .dashboard-sidebar.is-expanded {
    position: fixed;
    inset: auto 0 0;
    z-index: 12;
    width: 100%;
    height: var(--mobile-nav-height);
    max-height: none;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.2);
    transition: none;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    height: 100%;
  }

  .sidebar-selection {
    display: none;
  }

  .sidebar-link {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 60px;
    padding: 6px 2px;
    border: 1px solid transparent;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
  }

  .sidebar-link span,
  .dashboard-sidebar.is-expanded .sidebar-link span {
    min-width: 0;
    opacity: 1;
    transform: none;
    white-space: normal;
    transition: none;
  }

  .sidebar-link[aria-current="page"] {
    border-color: rgba(var(--accent-rgb), 0.5);
    background: rgba(var(--accent-rgb), 0.12);
  }

  .dashboard-content {
    flex: 1;
    box-sizing: border-box;
    width: 100%;
    padding: 28px max(16px, env(safe-area-inset-right, 0px)) 36px max(16px, env(safe-area-inset-left, 0px));
  }

  .dashboard-view {
    align-content: start;
  }

  .dashboard-cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    gap: 16px;
  }

  .dashboard-account-stack {
    gap: 16px;
  }

  .dashboard-card {
    padding: 16px;
  }

  .account-settings-card {
    padding: 24px 18px;
    gap: 24px;
    aspect-ratio: auto;
  }

  .settings-row {
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 12px;
    min-height: 60px;
  }

  .accounts-button {
    max-width: 100%;
    padding-inline: 16px;
    font-size: 14px;
  }

  .settings-change {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .settings-switch {
    align-items: center;
    min-height: 44px;
  }

  .purchase-plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 406.56px;
    padding-top: 0;
  }

  .purchase-history-heading {
    padding: 20px;
  }

  .purchase-history-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .purchase-history-table,
  .purchase-history-table tbody,
  .purchase-history-table tr,
  .purchase-history-table td {
    display: block;
    width: auto;
  }

  .purchase-history-table tr {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .purchase-history-table tr:first-child {
    border-top: 0;
  }

  .purchase-history-table td {
    padding: 0;
    border: 0;
  }

  .purchase-history-table td + td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
  }

  .purchase-history-table td + td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 400;
  }

  .plan-card {
    min-height: 360px;
    padding: 24px 20px;
  }

  .plan-heading h2 {
    font-size: 28px;
  }

  .plan-actions {
    grid-template-rows: auto 48px auto;
  }

  .plan-features-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
  }

  .plan-period-option span,
  .plan-count-input,
  .plan-count-button {
    min-height: 44px;
  }

  .plan-count-input {
    font-size: 16px;
  }

  .plan-card-dialog .plan-card,
  .plan-card-dialog .plan-card:hover,
  .plan-card-dialog .plan-card:focus-within {
    width: 100%;
    height: auto;
    min-height: 360px;
    padding: 56px 20px 24px;
    transform: none;
  }

  .plan-card-dialog-content {
    height: auto;
  }

  .plan-card-primary {
    translate: none;
  }

  .dashboard-page h1 {
    font-size: 24px;
  }

  .auth-layout {
    align-items: start;
    padding: calc(var(--topbar-height) + 32px) max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px));
  }

  .auth-panel {
    padding: 28px 22px;
    border-radius: 18px;
    animation-duration: 400ms;
    animation-delay: 0ms;
  }

  .password-toggle,
  .account-remove,
  .dialog-close,
  .feature-video-close,
  .plan-card-close {
    display: grid;
    place-items: center;
    flex: none;
    min-width: 44px;
    min-height: 44px;
  }

  .remember-option {
    min-height: 44px;
    font-size: 13px;
  }

  .dashboard-dialog {
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .dialog-heading {
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .dialog-heading h2 {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .feature-video-dialog,
  .plan-card-dialog {
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overscroll-behavior: contain;
  }

  .plan-card-dialog {
    width: min(480px, calc(100vw - 32px));
  }

  .feature-video-close,
  .plan-card-close {
    top: 8px;
    right: 8px;
    border-radius: 12px;
  }

  .footer-legal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    width: 100%;
    white-space: normal;
  }

  .footer-disclaimer {
    line-height: 1.7;
  }

  .background-meteor:nth-child(n + 5) {
    display: none;
  }

  body::before {
    animation: none;
    will-change: auto;
  }

  .dashboard-card:hover,
  .dashboard-card:focus-within,
  .plan-card:hover,
  .plan-card:focus-within {
    transform: none;
  }
}

@media (max-width: 600px) {
  :root {
    --topbar-height: calc(64px + env(safe-area-inset-top, 0px));
  }

  .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  }

  .topbar-discord {
    display: none;
  }

  .topbar-branding {
    justify-self: start;
    gap: 8px;
  }

  .topbar-branding img {
    width: 28px;
    height: 28px;
  }

  .topbar-wordmark {
    font-size: 16px;
  }

  .topbar-account-actions {
    gap: 6px;
  }

  .guest-profile {
    min-height: 44px;
    padding: 8px 10px;
    gap: 8px;
    font-size: 13px;
  }

  .guest-profile img {
    width: 24px;
    height: 24px;
  }

  #profile-username {
    max-width: 96px;
  }

  .topbar-account-actions .dashboard-button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .topbar-public-actions {
    margin-right: 0;
    gap: 6px;
  }

  .topbar-public-actions .dashboard-button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .topbar-link {
    min-height: 44px;
    padding: 10px;
    font-size: 13px;
  }

  .account-menu {
    width: min(240px, calc(100vw - 32px));
  }

  .hero {
    min-height: 78svh;
    padding: calc(var(--topbar-height) + 56px) 20px 64px;
  }

  .hero-content {
    gap: 24px;
    transform: none;
  }

  .hero-heading {
    max-width: 20ch;
    font-size: clamp(28px, 7.5vw, 38px);
    line-height: 1.3;
    letter-spacing: -0.7px;
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin-top: 4px;
  }

  .hero-actions button,
  .hero-actions a,
  .hero-actions .purchase-button {
    flex: 1;
    min-width: 0;
    min-height: 50px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .gallery {
    gap: 24px;
    scroll-margin-top: calc(var(--topbar-height) + 16px);
    padding: 24px 16px 64px;
  }

  .gallery figure {
    border-radius: 16px;
  }

  .gallery figcaption,
  .video-gallery figcaption {
    padding: 22px 20px;
  }

  .video-gallery figcaption h3 {
    font-size: 22px;
  }

  .video-gallery p,
  .feature-video-description {
    font-size: 16px;
    line-height: 1.65;
  }

  .feature-video-caption {
    padding: 24px 20px;
  }

  .footer-panorama {
    min-height: 340px;
    aspect-ratio: auto;
  }

  .help-content {
    padding: 20px 16px;
  }

  .help-panel {
    width: 100%;
    max-width: 420px;
    padding: 28px 20px;
  }

  .help-content h2 {
    font-size: 26px;
    line-height: 1.3;
  }

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

  .help-button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 8px;
    font-size: 13px;
  }
}

@media (max-width: 1000px) and (max-height: 500px) {
  .feature-video-dialog {
    width: min(640px, calc(100vw - 32px), calc((100dvh - 80px) * 16 / 9));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .topbar,
  .topbar-logo,
  .topbar-link,
  .guest-profile,
  .account-menu-chevron,
  .dashboard-button,
  .feature-button,
  .buy-button,
  .dashboard-sidebar,
  .sidebar-link,
  .sidebar-link span,
  .sidebar-selection.is-ready,
  .footer-legal span,
  .dashboard-card,
  .dashboard-value,
  .plan-card,
  .plan-features-link,
  .plan-period-options::before,
  .plan-period-option span,
  .remember-option,
  .form-field input {
    transition: none;
  }

  .topbar,
  .background-meteor,
  body::before,
  .hero-heading,
  .hero-actions,
  .auth-panel {
    animation: none;
    will-change: auto;
  }

  .account-menu:not([hidden]),
  .dashboard-dialog[open],
  .feature-video-dialog[open] {
    animation: none;
  }

  .dashboard-card:hover,
  .dashboard-card:focus-within,
  .plan-card:hover,
  .plan-card:focus-within {
    transform: none;
  }

  .gallery figure,
  .gallery figure.will-reveal,
  .gallery figure.is-visible {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .gallery img {
    transition: none;
  }

  .page-entering > .topbar,
  .page-entering > main,
  .page-entering > .dashboard-sidebar,
  .page-entering > .site-footer,
  .page-leaving > .topbar,
  .page-leaving > main,
  .page-leaving > .dashboard-sidebar,
  .page-leaving > .site-footer,
  .dashboard-view.is-entering,
  .dashboard-view.is-leaving {
    animation: none;
  }
}
