:root {
  --bg: #0f0a1f;
  --ink: #f8f7ff;
  --muted: #b7accf;
  --panel: rgba(30, 22, 51, .86);
  --panel-strong: #171024;
  --line: rgba(248, 247, 255, .16);
  --night: #100a20;
  --night-2: #1a1030;
  --violet: #6944d3;
  --rose: #cf3f87;
  --teal: #0c8c9a;
  --mint: #8dc63f;
  --amber: #8dc63f;
  --red: #c9475a;
  --shadow: 0 20px 60px rgba(0, 0, 0, .34);
  --nav-overlay-layer: 2147483600;
  --nav-flyout-layer: 2147483647;
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(207, 63, 135, .82) rgba(16, 10, 32, .82);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(16, 10, 32, .96), rgba(26, 16, 48, .92));
}

::-webkit-scrollbar-thumb {
  border: 3px solid rgba(16, 10, 32, .96);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rose), var(--violet) 48%, var(--teal));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 0 18px rgba(207, 63, 135, .28);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff5fac, #8d6cff 48%, #18bfd0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 0 24px rgba(207, 63, 135, .44);
}

body,
h1,
h2,
h3,
h4,
p,
li,
span,
strong,
a,
.pill {
  overflow-wrap: anywhere;
}

@keyframes slowRainbowGlow {
  0% {
    box-shadow: 0 0 0 3px rgba(207, 63, 135, .28), 0 0 20px rgba(207, 63, 135, .5), 0 0 58px rgba(207, 63, 135, .34);
  }
  25% {
    box-shadow: 0 0 0 3px rgba(105, 68, 211, .3), 0 0 22px rgba(105, 68, 211, .54), 0 0 60px rgba(105, 68, 211, .36);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(12, 140, 154, .32), 0 0 22px rgba(12, 140, 154, .58), 0 0 62px rgba(12, 140, 154, .38);
  }
  75% {
    box-shadow: 0 0 0 3px rgba(141, 198, 63, .3), 0 0 22px rgba(141, 198, 63, .5), 0 0 58px rgba(141, 198, 63, .32);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(141, 198, 63, .3), 0 0 22px rgba(141, 198, 63, .52), 0 0 58px rgba(141, 198, 63, .34);
  }
}

@keyframes stickerRainbowGlow {
  0% { filter: brightness(1.18) saturate(1.26) drop-shadow(0 0 4px rgba(255, 255, 255, .34)) drop-shadow(0 0 13px rgba(207, 63, 135, .72)) drop-shadow(0 0 30px rgba(207, 63, 135, .36)); }
  25% { filter: brightness(1.2) saturate(1.28) drop-shadow(0 0 4px rgba(255, 255, 255, .34)) drop-shadow(0 0 13px rgba(105, 68, 211, .74)) drop-shadow(0 0 30px rgba(105, 68, 211, .38)); }
  50% { filter: brightness(1.21) saturate(1.3) drop-shadow(0 0 4px rgba(255, 255, 255, .36)) drop-shadow(0 0 13px rgba(12, 140, 154, .76)) drop-shadow(0 0 32px rgba(12, 140, 154, .4)); }
  75% { filter: brightness(1.2) saturate(1.28) drop-shadow(0 0 4px rgba(255, 255, 255, .34)) drop-shadow(0 0 13px rgba(141, 198, 63, .72)) drop-shadow(0 0 30px rgba(141, 198, 63, .36)); }
  100% { filter: brightness(1.21) saturate(1.3) drop-shadow(0 0 4px rgba(255, 255, 255, .36)) drop-shadow(0 0 13px rgba(141, 198, 63, .76)) drop-shadow(0 0 32px rgba(141, 198, 63, .38)); }
}

@keyframes stickerRainbowAura {
  0% { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .26)) drop-shadow(0 0 12px rgba(207, 63, 135, .72)) drop-shadow(0 0 32px rgba(207, 63, 135, .38)); }
  25% { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .26)) drop-shadow(0 0 12px rgba(105, 68, 211, .76)) drop-shadow(0 0 34px rgba(105, 68, 211, .4)); }
  50% { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .24)) drop-shadow(0 0 12px rgba(12, 140, 154, .78)) drop-shadow(0 0 34px rgba(12, 140, 154, .42)); }
  75% { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .26)) drop-shadow(0 0 12px rgba(141, 198, 63, .76)) drop-shadow(0 0 34px rgba(141, 198, 63, .4)); }
  100% { filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .26)) drop-shadow(0 0 12px rgba(255, 95, 172, .76)) drop-shadow(0 0 34px rgba(255, 95, 172, .4)); }
}

@keyframes stickerIdleGlow {
  0% {
    filter: drop-shadow(0 8px 16px rgba(12, 140, 154, .2)) saturate(1.05);
  }
  50% {
    filter: drop-shadow(0 8px 18px rgba(207, 63, 135, .26)) saturate(1.11);
  }
  100% {
    filter: drop-shadow(0 8px 16px rgba(141, 198, 63, .22)) saturate(1.07);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font-size: 12.2px;
  background:
    radial-gradient(circle at 10% 0, rgba(207, 63, 135, .22), transparent 30%),
    radial-gradient(circle at 92% 6%, rgba(12, 140, 154, .2), transparent 28%),
    linear-gradient(135deg, #0f0a1f, #171024 48%, #080511);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

button,
.button,
.vault-link {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 800;
  font-size: .78rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: center;
  transition: border-color .45s ease, box-shadow .6s ease, transform .25s ease, background-color .45s ease, filter .45s ease;
}

button:hover,
.button:hover,
.vault-link:hover,
.current-quest-link:hover,
.current-quest-list a:hover,
.profile-login-card button:hover,
.echo-score-card .button:hover,
.progress-panel summary:hover,
.quest-more summary:hover {
  border-color: rgba(156, 230, 236, .78);
  animation: slowRainbowGlow 5.5s ease-in-out infinite alternate;
  filter: brightness(1.08) saturate(1.16);
  transform: translateY(-1px);
}

.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--rose));
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  isolation: isolate;
  position: relative;
  z-index: 1;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 12000;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 10px;
  color: #fff;
  background: linear-gradient(180deg, rgba(16, 10, 32, .97), rgba(26, 16, 48, .96));
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.mobile-sidebar-bar {
  display: none;
}

.sidebar-content {
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--rose), var(--violet) 54%, var(--teal));
  box-shadow: 0 18px 44px rgba(207, 63, 135, .35);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 { font-size: 1rem; }

.brand p,
.eyebrow {
  color: #9ce6ec;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  min-width: 0;
  max-width: 100%;
}

.nav-group {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.nav-group-toggle {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: start;
  align-items: center;
  gap: 1px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: #eee9ff;
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
  text-align: left;
  overflow: hidden;
  transition: border-color .35s ease, background .35s ease, box-shadow .35s ease, transform .25s ease;
}

.nav-group-toggle::after {
  content: ">";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  color: #d8cfff;
  font-size: .76rem;
  font-weight: 950;
  line-height: 1;
  transition: transform .22s ease, color .22s ease;
}

.nav-group.is-open {
  z-index: 12100;
}

.nav-overlay-root {
  position: fixed !important;
  inset: 0;
  z-index: var(--nav-overlay-layer) !important;
  pointer-events: none;
  isolation: isolate;
  overflow: visible;
  contain: none;
  display: block;
  transform: none !important;
}

.nav-overlay-root.is-active,
body.nav-flyout-open .nav-overlay-root {
  z-index: var(--nav-overlay-layer) !important;
  pointer-events: none;
}

.nav-overlay-root::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: opacity .18s ease;
}

.nav-group-toggle span {
  grid-column: 1;
  font-size: .66rem;
  line-height: 1;
  font-weight: 890;
  min-width: 0;
}

.nav-group-toggle small {
  grid-column: 1;
  color: #bfb7d8;
  font-size: .56rem;
  font-weight: 760;
  line-height: 1.05;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-flyout {
  position: fixed;
  inset: auto;
  left: var(--nav-flyout-left, 232px);
  top: var(--nav-flyout-top, 14px);
  right: auto;
  bottom: auto;
  margin: 0;
  z-index: calc(var(--nav-flyout-layer) - 1);
  width: var(--nav-flyout-width, min(220px, calc(100vw - 24px)));
  max-width: calc(100vw - 24px);
  max-height: min(320px, calc(100vh - 24px));
  display: grid;
  gap: 5px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px;
  border: 2px solid rgba(255, 97, 247, .78);
  border-radius: 8px;
  background:
    linear-gradient(145deg, #321166 0%, #16052f 58%, #080315 100%),
    #090314;
  background-color: #090314;
  background-clip: padding-box;
  box-shadow:
    0 34px 118px rgba(0, 0, 0, .94),
    0 0 0 1px rgba(255, 255, 255, .18),
    0 0 0 5px rgba(8, 5, 18, .58),
    0 0 46px rgba(255, 97, 247, .56),
    0 0 84px rgba(119, 91, 255, .44);
  isolation: isolate;
  contain: none;
  will-change: transform, opacity;
  transform: translateY(-4px) scale(.98);
  transform-origin: top;
  transition: opacity .18s ease, transform .18s ease;
}

.nav-flyout::backdrop {
  display: none;
}

.nav-group.is-open .nav-flyout,
.nav-flyout.is-open {
  position: fixed !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.nav-overlay-root .nav-flyout {
  position: fixed !important;
  z-index: calc(var(--nav-flyout-layer) - 1) !important;
  inset: auto auto auto auto !important;
  left: var(--nav-flyout-left, 232px) !important;
  top: var(--nav-flyout-top, 14px) !important;
  right: auto !important;
  bottom: auto !important;
}

.nav-overlay-root .nav-flyout.is-open {
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body:has(.nav-overlay-root .nav-flyout.is-open) .nav-overlay-root::before,
body.nav-flyout-open .nav-overlay-root::before {
  opacity: 0;
  pointer-events: none;
}

body.nav-flyout-open main > section:not([hidden]) {
  filter: none;
  transition: filter .18s ease;
}

body.nav-flyout-open .sidebar {
  overflow: visible;
}

body.nav-flyout-open main,
body.nav-flyout-open .app-shell > main,
body:has(.nav-overlay-root .nav-flyout.is-open) main {
  pointer-events: auto !important;
  user-select: auto;
}

body.nav-flyout-open .app-shell {
  z-index: 1;
}

body.nav-flyout-open #navOverlayRoot {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--nav-overlay-layer) !important;
}

body.nav-flyout-open .nav-flyout,
body.nav-flyout-open .nav-flyout * {
  pointer-events: auto;
  user-select: auto;
}

.nav-flyout:popover-open {
  position: fixed !important;
  display: grid;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

.nav-group.is-open .nav-group-toggle::after {
  color: #fff;
  transform: rotate(90deg);
}

.nav-group:has(.is-active) .nav-group-toggle {
  color: #fff;
  border-color: rgba(157, 94, 255, .9);
  background:
    linear-gradient(135deg, rgba(157, 94, 255, .3), rgba(105, 68, 211, .22) 48%, rgba(207, 63, 135, .16)),
    rgba(15, 8, 34, .32);
  box-shadow:
    inset 3px 0 0 rgba(157, 94, 255, .94),
    0 0 16px rgba(157, 94, 255, .4);
}

.nav-group-toggle:hover,
.nav-group-toggle:focus-visible {
  color: #fff;
  border-color: rgba(157, 94, 255, .86);
  background:
    linear-gradient(135deg, rgba(157, 94, 255, .3), rgba(105, 68, 211, .24) 54%, rgba(207, 63, 135, .16)),
    rgba(255, 255, 255, .07);
  box-shadow:
    0 0 0 1px rgba(157, 94, 255, .24),
    0 0 20px rgba(157, 94, 255, .36),
    0 0 28px rgba(207, 63, 135, .18);
  transform: translateY(-1px);
  animation: none;
  filter: none;
}

.side-nav a {
  color: #eee9ff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  min-height: 29px;
  padding: 6px 8px;
  text-decoration: none;
  background: rgba(255, 255, 255, .05);
  font-size: .56rem;
  font-weight: 690;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: border-color .35s ease, background .35s ease, box-shadow .35s ease, transform .25s ease;
}

.side-nav a.is-active,
.side-nav a[aria-current="page"] {
  color: #fff;
  border-color: rgba(157, 94, 255, .9);
  background:
    linear-gradient(135deg, rgba(157, 94, 255, .34), rgba(105, 68, 211, .28) 52%, rgba(207, 63, 135, .18)),
    rgba(15, 8, 34, .26);
  box-shadow:
    inset 3px 0 0 rgba(157, 94, 255, .94),
    0 0 16px rgba(157, 94, 255, .5),
    0 0 24px rgba(105, 68, 211, .35);
}

.side-nav a:hover,
.side-nav a:focus-visible {
  color: #fff;
  border-color: rgba(157, 94, 255, .82);
  background:
    linear-gradient(135deg, rgba(157, 94, 255, .28), rgba(105, 68, 211, .22) 54%, rgba(207, 63, 135, .15)),
    rgba(255, 255, 255, .07);
  box-shadow:
    0 0 0 1px rgba(157, 94, 255, .22),
    0 0 18px rgba(157, 94, 255, .34),
    0 0 24px rgba(207, 63, 135, .16);
  transform: translateY(-1px);
}

.side-nav a:active {
  color: #fff;
  border-color: rgba(157, 94, 255, .84);
  background:
    linear-gradient(135deg, rgba(157, 94, 255, .34), rgba(105, 68, 211, .28) 48%, rgba(207, 63, 135, .2)),
    rgba(255, 255, 255, .09);
  box-shadow:
    inset 3px 0 0 rgba(157, 94, 255, .9),
    0 0 16px rgba(157, 94, 255, .34),
    0 0 18px rgba(207, 63, 135, .2);
  transform: translateY(0);
}

.sidebar-card {
  margin: 0 0 10px;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
}

.current-quest-card {
  position: relative;
  overflow: visible;
  min-height: 82px;
  padding-right: 60px;
}

.sidebar-quest-art-link {
  position: absolute;
  top: 8px;
  right: 7px;
  width: 44px;
  max-width: 44px;
  min-height: 0;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  text-decoration: none;
  box-shadow: none;
  transition: transform .25s ease;
  overflow: visible;
  isolation: isolate;
  outline: none;
  border-radius: 12px;
}

.sidebar-quest-art-link::before {
  content: "";
  display: none;
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    var(--rose),
    var(--violet),
    var(--mint),
    var(--amber),
    var(--teal),
    var(--rose)
  );
  opacity: 0;
  transition: opacity .25s ease;
  transform: scale(0.97) rotate(0deg);
  z-index: 0;
  pointer-events: none;
  filter: blur(4px);
}

.sidebar-quest-art-link:hover::before,
.sidebar-quest-art-link:focus-visible::before {
  opacity: 1;
  animation: interactiveRainbowAura 6s linear infinite;
}

.sidebar-quest-art {
  width: 100%;
  max-width: 44px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .26))
    drop-shadow(0 0 10px rgba(207, 63, 135, .18));
  transition: filter .55s ease, transform .25s ease;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.sidebar-quest-art-link:hover {
  transform: none;
}

.sidebar-quest-art-link:hover .sidebar-quest-art {
  animation: stickerRainbowAura 5.5s ease-in-out infinite alternate;
  transform: none;
}

.sidebar-quest-art-link:focus-visible {
  outline: 0;
}

.sidebar-quest-art-link:focus-visible::before,
.sidebar-quest-art-link:focus-visible .sidebar-quest-art {
  opacity: 1;
  animation: interactiveRainbowAura 6s linear infinite;
}

.mail-sticker {
  border: 0;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .26))
    drop-shadow(0 0 10px rgba(207, 63, 135, .18));
}

.sidebar-card span {
  display: block;
  color: #bfb7d8;
  font-size: .72rem;
  margin-bottom: 6px;
}

.sidebar-card strong {
  display: block;
  line-height: 1.3;
  font-size: .86rem;
  font-weight: 780;
}

.sidebar-card small {
  display: block;
  margin-top: 8px;
  color: #9ce6ec;
  font-size: .72rem;
  line-height: 1.35;
}

.current-quest-list,
.sidebar-leaderboard {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.current-quest-details {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.current-quest-details[hidden] {
  display: none !important;
}

.current-quest-details .current-quest-list {
  margin-top: 0;
}

.current-quest-toggle {
  width: fit-content;
  min-height: 26px;
  margin-top: 7px;
  padding: 4px 9px;
  border-color: rgba(157, 94, 255, .34);
  border-radius: 999px;
  background: rgba(157, 94, 255, .12);
  color: #f9f3ff;
  font-size: .62rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.current-quest-toggle::after {
  content: " +";
  color: #9ce6ec;
}

.current-quest-toggle[aria-expanded="true"]::after {
  content: " -";
}

.current-quest-list a,
.current-quest-link,
.sidebar-leaderboard a {
  min-height: 26px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  padding: 6px 8px;
  color: #eee9ff;
  background: rgba(255, 255, 255, .055);
  font-size: .7rem;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
}

.current-quest-list a {
  justify-content: space-between;
  gap: 8px;
  padding: 6px 7px;
}

.current-quest-list a span {
  min-width: 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-quest-list a em {
  flex: 0 0 auto;
  color: var(--amber);
  font-size: .7rem;
  font-style: normal;
  font-weight: 950;
}

.current-quest-link {
  width: fit-content;
  margin-top: 2px;
  color: #9ce6ec;
}

.sidebar-level-card {
  padding: 7px 9px 8px;
}

.sidebar-level-card span {
  margin-bottom: 3px;
  font-size: .62rem;
}

.sidebar-level-card strong {
  font-size: .78rem;
  line-height: 1.12;
}

.sidebar-level-card small {
  margin-top: 3px;
  font-size: .62rem;
  line-height: 1.18;
}

.sidebar-level-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  margin-top: 6px;
  background: rgba(7, 5, 18, .62);
  border: 1px solid rgba(255, 255, 255, .11);
}

.sidebar-level-track span {
  display: block;
  width: 0;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--amber), var(--rose));
  box-shadow: 0 0 18px rgba(156, 230, 236, .32);
}

.vault-link {
  width: 100%;
  margin-top: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
}

main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.hero {
  display: grid;
  gap: 0;
  position: relative;
  border-radius: 0;
  overflow: visible;
  background: #100a20;
  box-shadow: none;
  border: 0;
  transform: none !important;
  animation: none !important;
}

.hero-banner {
  display: grid;
  place-items: center;
  padding: 0;
  background: #100a20;
  overflow: visible;
  border: 0;
  pointer-events: none;
  transform: none !important;
  animation: none !important;
  filter: none !important;
  box-shadow: none !important;
}

.hero:hover,
.hero:focus-within,
.hero-banner:hover,
.hero-banner:focus-within {
  transform: none !important;
  animation: none !important;
  filter: none !important;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  line-height: 0;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #100a20;
  border: 0;
}

.hero-banner-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  line-height: 0;
  object-fit: contain;
  padding: 0;
  background: #100a20;
  border: 0;
  border-radius: 0;
  filter: none !important;
  animation: none !important;
  transition: none !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
  cursor: default;
  will-change: auto;
}

.hero:hover .hero-banner-art,
.hero-banner:hover .hero-banner-art,
.hero-banner:focus-within .hero-banner-art,
.hero-banner-art:hover,
.hero-banner-art:focus-visible {
  filter: none !important;
  animation: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.hero-content {
  position: relative;
  max-width: none;
  min-height: 318px;
  padding: 32px clamp(170px, 18vw, 260px) 112px 32px;
  color: #fff;
  overflow: visible;
  background: linear-gradient(135deg, rgba(23, 16, 36, .98), rgba(32, 20, 58, .92));
  border-top: 0;
}

.hero h2 {
  max-width: 820px;
  margin-top: 8px;
  font-size: 3.9rem;
  line-height: .94;
}

.hero p {
  max-width: 680px;
  margin-top: 12px;
  color: #eee9ff;
  font-size: .88rem;
  line-height: 1.45;
}

.portal-chooser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 18px;
}

.portal-chooser article {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(157, 94, 255, .22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(157, 94, 255, .14), rgba(207, 63, 135, .08)),
    rgba(16, 10, 32, .52);
}

.portal-chooser strong {
  display: block;
  color: #fff;
  font-size: .96rem;
  line-height: 1.2;
}

.portal-chooser p {
  max-width: none;
  margin: 0;
  color: #cfc6e8;
  font-size: .72rem;
  line-height: 1.35;
}

.portal-chooser article > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.launch-status-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  max-width: 900px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(141, 198, 63, .28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(141, 198, 63, .13), rgba(12, 140, 154, .1)),
    rgba(16, 10, 32, .68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.launch-status-strip strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
}

.launch-status-strip p {
  max-width: 640px;
  margin: 6px 0 0;
  color: #e9e3ff;
  font-size: .9rem;
  line-height: 1.42;
}

.launch-status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.launch-status-actions .button {
  white-space: nowrap;
  min-width: max-content;
}

.hero-sticker-cloud {
  position: absolute;
  right: clamp(56px, 10vw, 160px);
  top: 32px;
  bottom: auto;
  display: grid;
  grid-template-columns: max-content;
  align-items: end;
  justify-items: center;
  gap: 0;
  pointer-events: auto;
  z-index: 2;
  opacity: .98;
  overflow: visible;
  width: fit-content;
  min-height: 0;
  padding: 2px 0 34px;
  will-change: transform;
}

.sticker,
.section-sticker {
  display: block;
  width: clamp(88px, 10.4vw, 124px);
  height: auto;
  max-width: none;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: 0;
  filter: drop-shadow(0 16px 30px rgba(207, 63, 135, .28))
    drop-shadow(0 0 12px rgba(12, 140, 154, .24));
  transition: filter .55s ease, transform .25s ease;
  transform-origin: center bottom;
  pointer-events: auto;
  will-change: transform, filter;
  box-sizing: content-box;
}

.glow-image {
  display: block;
  max-width: 100%;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .26));
  transition: filter .55s ease, transform .25s ease, box-shadow .55s ease;
  transform-origin: center;
  pointer-events: auto;
  will-change: transform, filter;
  overflow: visible;
  object-fit: contain;
  object-position: center center;
  padding: 0;
  border-radius: 12px;
}

.image-lightup,
.glow-image {
  transition:
    filter .55s ease,
    transform .25s ease,
    box-shadow .55s ease;
  cursor: default;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .34))
    drop-shadow(0 16px 28px rgba(141, 198, 63, .16))
    saturate(1.05);
  animation: stickerIdleGlow 10s ease-in-out infinite;
}

.interactive-glow {
  position: relative;
  cursor: pointer;
  display: inline-block;
  isolation: isolate;
  border-radius: 18px;
}

.interactive-glow::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 20px;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease, transform .5s ease;
  transform: scale(0.9) rotate(0deg);
  background: conic-gradient(
    from 0deg at 50% 50%,
    #ff5fac,
    #8d6cff,
    #18bfd0,
    #8dc63f,
    #cf3f87,
    #ff5fac
  );
  filter: blur(8px) saturate(1.24);
  padding: 2px;
}

.interactive-glow:hover::before,
.interactive-glow:focus-visible::before {
  opacity: 1;
  animation: interactiveRainbowAura 6s linear infinite;
  transform: scale(1) rotate(0deg);
}

@keyframes interactiveRainbowAura {
  from { transform: scale(0.95) rotate(0deg); }
  to { transform: scale(0.95) rotate(360deg); }
}

.glow-image,
.section-sticker,
.role-card-banner,
.profile-card-banner,
.worker-profile-banner,
#roleImage {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #100a20;
}

.sticker.glow-image,
.section-sticker.glow-image,
.forms-error-sticker.glow-image,
.mail-sticker {
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.interactive-glow:hover,
.interactive-glow:focus-visible,
.sidebar-quest-art-link:hover .sidebar-quest-art,
.sidebar-quest-art-link:focus-visible .sidebar-quest-art {
  animation: stickerRainbowAura 5.5s ease-in-out infinite alternate;
  box-shadow: none;
}

.interactive-glow:focus-visible::before,
.interactive-glow:hover::before {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .1), 0 0 30px rgba(255, 95, 172, .16), 0 0 42px rgba(156, 230, 236, .3);
}

.sidebar-quest-art-link:hover .mail-sticker,
.sidebar-quest-art-link:focus-visible .mail-sticker,
.forms-error-sticker:hover,
.forms-error-sticker:focus-visible {
  animation: stickerRainbowAura 5.5s ease-in-out infinite alternate;
  box-shadow: none;
}

.interactive-glow:hover,
.interactive-glow:focus-visible {
  transform: translateY(-2px) scale(1.05);
}

.glow-image:hover,
.glow-image:focus-visible,
.sticker:hover,
.sticker:focus-visible {
  animation: stickerRainbowAura 5.5s ease-in-out infinite alternate;
}

.sidebar-quest-art-link:hover .sidebar-quest-art,
.sidebar-quest-art-link:focus-visible .sidebar-quest-art {
  transform: none;
}

.sticker-heart-focus {
  width: clamp(194px, 16.8vw, 236px);
  max-width: none;
  transform: translate(-38px, 2px) rotate(-7deg);
  margin: 0;
  margin-bottom: 0;
  padding: 0;
  transform-origin: center center;
  z-index: 2;
  align-self: end;
  object-fit: contain;
  will-change: transform, filter;
  overflow: visible;
  max-height: none;
  padding-bottom: 0;
  object-position: center center;
}

.sticker-fox {
  width: clamp(176px, 14.4vw, 218px);
  max-width: none;
  transform: translate(-18px, 12px) rotate(6deg);
  margin: 0;
  margin-bottom: 4px;
  padding: 0;
  object-position: center center;
  transform-origin: center center;
  z-index: 1;
  align-self: end;
  overflow: visible;
  padding-bottom: 0;
}

@media (hover:hover) {
  .hero-sticker-cloud:hover .sticker-heart-focus,
  .sticker-heart-focus:hover {
    transform: translate(-12px, -1px) rotate(-7deg) scale(1.05);
  }

  .hero-sticker-cloud .sticker-fox,
  .hero-sticker-cloud:hover .sticker-fox {
    transform: translate(-8px, 8px) rotate(6deg) scale(1.05);
  }

  .section-sticker:hover {
    transform: translateX(-8px) scale(1.05);
  }

  .section-sticker-kandi:hover {
    transform: translateX(-8px) rotate(-4deg) scale(1.06);
  }

  .section-sticker-heart:hover {
    transform: translateX(-8px) rotate(-5deg) scale(1.06);
  }

  .section-sticker-fox:hover {
    transform: translateX(-8px) rotate(5deg) scale(1.06);
  }

  .forms-error-sticker:hover {
    transform: translateY(-2px) scale(1.04);
  }

  .section-heading:focus-within .section-sticker,
  .sidebar-quest-art-link:hover .sidebar-quest-art,
  .worker-profile-banner:hover,
  .worker-profile-banner:focus-visible,
  .role-card-banner:hover,
  .role-card-banner:focus-visible,
  .profile-card-banner:hover,
  .profile-card-banner:focus-visible {
    transform: translateY(-1px) scale(1.04);
  }

  .sidebar-quest-art-link:hover .sidebar-quest-art {
    transform: none;
  }
}

.rule-strip,
.start-panel,
.workflow-grid,
.role-grid,
.profile-grid,
.form-grid,
.audit-grid,
.system-grid,
.list-grid,
.folder-grid,
.guide-grid,
.emoji-grid,
.coverage-grid,
.player-bar,
.quest-layout,
.proof-grid {
  display: grid;
  gap: 12px;
}

.rule-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.start-panel {
  grid-template-columns: minmax(320px, 1.25fr) repeat(2, minmax(220px, .85fr));
  align-items: stretch;
}

.start-card {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(30, 22, 51, .9), rgba(18, 12, 32, .92));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
  padding: 18px;
  min-width: 0;
}

.primary-start-card {
  border-color: rgba(207, 63, 135, .34);
  background:
    linear-gradient(135deg, rgba(105, 68, 211, .34), rgba(207, 63, 135, .2)),
    rgba(23, 16, 36, .96);
}

.start-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.start-card p,
.start-card li {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.start-card ul {
  margin: 0;
  padding-left: 18px;
}

.start-card > span:not(.eyebrow) {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 950;
  text-transform: lowercase;
}

.start-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rule-strip article,
.workflow-card,
.role-card,
.profile-card,
.form-card,
.audit-card,
.system-card,
.list-card,
.setup-action-card,
.folder-card,
.player-bar > div,
.player-bar > label,
.quest-panel,
.role-panel,
.proof-grid article,
.reward-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
  transition: border-color .45s ease, box-shadow .6s ease, transform .25s ease;
  min-width: 0;
}

.rule-strip article,
.workflow-card,
.role-card,
.profile-card,
.form-card,
.audit-card,
.system-card,
.list-card,
.setup-action-card,
.folder-card,
.player-bar > div,
.player-bar > label,
.proof-grid article {
  padding: 16px;
}

.rule-strip span,
.player-bar span,
.mini-heading span,
.form-meta,
.quest-meta,
.proof-log span {
  color: var(--muted);
  font-size: .75rem;
}

.rule-strip strong {
  display: block;
  margin-top: 6px;
  line-height: 1.25;
}

.section-grid,
.workflow,
.quest-section,
.proof-section {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 10, 32, .56);
}

.section-heading {
  display: grid;
  gap: 6px;
  max-width: 820px;
}

.sticker-heading {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 190px);
  gap: 16px;
  align-items: center;
  justify-content: start;
}

.section-sticker {
  width: clamp(138px, 12rem, 196px);
  max-height: 142px;
  max-width: 184px;
  justify-self: start;
  margin-left: -72px;
  pointer-events: auto;
  overflow: visible;
}

.section-sticker-kandi {
  max-width: 164px;
  max-height: 118px;
  transform: rotate(-4deg);
}

.section-sticker-fox {
  max-height: 88px;
  transform: rotate(5deg);
}

.section-sticker-heart {
  max-width: 202px;
  max-height: 162px;
  transform: rotate(-5deg);
}

.section-sticker-focus {
  max-width: 158px;
  max-height: 124px;
  transform: rotate(5deg);
}

.level-section .section-sticker,
.proof-heading .section-sticker {
  width: clamp(268px, 26vw, 324px);
  max-width: 284px;
  max-height: 264px;
}

.level-section .section-sticker {
  width: clamp(240px, 22vw, 286px);
  max-width: 252px;
  max-height: 226px;
  margin-left: -96px;
}

.proof-heading .section-sticker {
  margin-left: -178px;
}

.creator-section .section-sticker {
  margin-left: -44px;
}

.proof-heading.sticker-heading,
.level-section .sticker-heading {
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(252px, 308px);
}

.section-heading h3 {
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
}

.section-heading p {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.43;
}

.proof-heading,
.level-section .section-heading,
.proof-heading .sticker-heading {
  gap: 4px;
}

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

.workflow-card {
  min-height: 160px;
}

.workflow-card .step-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  box-shadow: 0 0 18px rgba(12, 140, 154, .4);
}

.workflow-card:nth-child(2) .step-number {
  background: linear-gradient(135deg, var(--rose), var(--violet));
  box-shadow: 0 0 18px rgba(207, 63, 135, .42);
}

.workflow-card:nth-child(3) .step-number {
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 0 18px rgba(141, 198, 63, .38);
}

.workflow-card:nth-child(4) .step-number {
  background: linear-gradient(135deg, var(--mint), var(--teal));
  box-shadow: 0 0 18px rgba(141, 198, 63, .36);
}

.workflow-card:nth-child(5) .step-number {
  background: linear-gradient(135deg, #18bfd0, #ff5fac);
  box-shadow: 0 0 18px rgba(156, 230, 236, .38);
}

.workflow-card h4 {
  margin-top: 14px;
}

.workflow-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}

.level-current-card,
.level-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
  padding: 16px;
  min-width: 0;
}

.level-current-card {
  display: grid;
  align-content: start;
  gap: 12px;
  grid-column: 1 / -1;
  border-color: rgba(207, 63, 135, .36);
  background:
    linear-gradient(135deg, rgba(105, 68, 211, .32), rgba(207, 63, 135, .18)),
    rgba(23, 16, 36, .96);
}

.level-current-card p,
.level-card p,
.level-card dt {
  color: var(--muted);
  line-height: 1.4;
}

.level-meter {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

.level-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--amber), var(--rose));
}

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

.level-stat-row span {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: .78rem;
}

.level-stat-row strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.info-pop,
.level-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 4px;
  border: 1px solid rgba(157, 94, 255, .72);
  border-radius: 999px;
  color: #fff;
  background: rgba(105, 68, 211, .32);
  font-size: .66rem;
  font-weight: 950;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}

.info-pop em,
.level-help em {
  position: absolute;
  display: none;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: min(260px, 72vw);
  padding: 9px 10px;
  border: 1px solid rgba(157, 94, 255, .42);
  border-radius: 8px;
  color: #f8f7ff;
  background:
    linear-gradient(135deg, rgba(105, 68, 211, .92), rgba(33, 19, 62, .98)),
    #171024;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .42), 0 0 18px rgba(157, 94, 255, .22);
  font-size: .72rem;
  font-style: normal;
  font-weight: 720;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  text-transform: none;
  transform: translate(-50%, 4px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.info-pop:hover em,
.info-pop:focus-visible em,
.level-help:hover em,
.level-help:focus-visible em {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.level-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.level-card.current {
  border-color: rgba(156, 230, 236, .48);
  box-shadow: 0 0 0 1px rgba(156, 230, 236, .16), 0 18px 46px rgba(12, 140, 154, .16);
}

.level-dot {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .72rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  box-shadow: 0 0 18px rgba(12, 140, 154, .38);
}

.level-card:nth-child(3) .level-dot {
  background: linear-gradient(135deg, var(--rose), var(--violet));
  box-shadow: 0 0 18px rgba(207, 63, 135, .4);
}

.level-card:nth-child(4) .level-dot {
  background: linear-gradient(135deg, var(--amber), var(--rose));
  box-shadow: 0 0 18px rgba(141, 198, 63, .38);
}

.level-card:nth-child(5) .level-dot {
  background: linear-gradient(135deg, var(--mint), var(--teal));
  box-shadow: 0 0 18px rgba(141, 198, 63, .36);
}

.level-card:nth-child(6) .level-dot {
  background: linear-gradient(135deg, #18bfd0, #ff5fac);
  box-shadow: 0 0 18px rgba(156, 230, 236, .38);
}

.level-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.level-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 6px;
}

.level-card dt,
.level-card dd {
  margin: 0;
  font-size: .76rem;
}

.level-card dd {
  color: var(--ink);
  font-weight: 900;
}

.mission-control-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(180px, .9fr));
  gap: 12px;
}

.mission-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(248, 247, 255, .14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(30, 22, 51, .88), rgba(18, 12, 32, .94));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
  padding: 16px;
}

.mission-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .34;
  background:
    linear-gradient(120deg, transparent, rgba(156, 230, 236, .18), transparent 46%),
    radial-gradient(circle at 12% 18%, rgba(207, 63, 135, .36), transparent 28%);
}

.primary-mission-card {
  border-color: rgba(156, 230, 236, .42);
  background:
    linear-gradient(135deg, rgba(12, 140, 154, .26), rgba(207, 63, 135, .18)),
    rgba(23, 16, 36, .98);
}

.mission-card span {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(156, 230, 236, .2);
  border-radius: 999px;
  background: rgba(156, 230, 236, .08);
  color: #c8f3f6;
  padding: 4px 8px;
  font-size: .68rem;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-card h4 {
  font-size: 1.06rem;
}

.mission-card p {
  color: var(--muted);
  line-height: 1.45;
}

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

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

.profile-access-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
}

.profile-login-card,
.profile-panel,
.echo-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
}

.profile-login-card small,
.profile-panel p,
.echo-card p,
.echo-card li {
  color: var(--muted);
  line-height: 1.45;
}

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

.profile-stat-grid span {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: var(--muted);
  font-size: .78rem;
}

.profile-stat-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.profile-step-list {
  display: grid;
  gap: 8px;
}

.profile-step-list span {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(156, 230, 236, .18);
  background: rgba(255, 255, 255, .055);
  color: #eee9ff;
  font-size: .82rem;
  font-weight: 820;
}

.profile-open-button {
  width: fit-content;
  white-space: nowrap;
}

.cashout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 12px;
}

.cashout-summary,
.cashout-control-card,
.cashout-history-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
}

.cashout-summary p,
.cashout-control-card p,
.cashout-note {
  color: var(--muted);
  line-height: 1.45;
}

.cashout-control-card label {
  display: grid;
  gap: 8px;
  color: #eee9ff;
  font-size: .8rem;
  font-weight: 850;
}

.cashout-history-panel {
  margin-top: 12px;
}

.cashout-history {
  display: grid;
  gap: 8px;
}

.cashout-history-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
}

.cashout-history-row time {
  color: #9ce6ec;
  font-size: .76rem;
  font-weight: 900;
}

.cashout-history-row h4 {
  font-size: .92rem;
}

.cashout-history-row p {
  margin-top: 3px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.cashout-history-row strong {
  color: #8dc63f;
  white-space: nowrap;
}

.cashout-timeline {
  display: grid;
  gap: 8px;
}

.cashout-timeline-item {
  display: grid;
  grid-template-columns: 92px minmax(86px, .35fr) minmax(160px, 1fr) minmax(72px, auto);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(156, 230, 236, .16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(157, 94, 255, .1), rgba(12, 140, 154, .07)),
    rgba(255, 255, 255, .04);
  min-width: 0;
}

.cashout-timeline-item time,
.cashout-timeline-daily {
  color: #c8f3f6;
  font-size: .76rem;
  font-weight: 900;
  white-space: nowrap;
}

.cashout-timeline-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 5, 18, .58);
}

.cashout-timeline-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9d5eff, var(--rose), var(--teal), var(--mint));
  box-shadow: 0 0 16px rgba(157, 94, 255, .34);
}

.cashout-timeline-item strong {
  color: #8dc63f;
  justify-self: end;
  white-space: nowrap;
}

.cashout-mini-link {
  align-self: stretch;
  min-width: max-content;
}

.worker-profile-modal {
  max-height: min(86vh, 760px);
  overflow: auto;
}

.worker-profile-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #100a20;
}

.worker-profile-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.worker-profile-grid article,
.profile-availability,
.admin-lock-panel,
.admin-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  padding: 12px;
}

.worker-profile-grid ul,
.admin-grid ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.profile-availability strong {
  display: block;
  margin-top: 4px;
}

.admin-lock-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-color: rgba(201, 71, 90, .3);
  background: rgba(201, 71, 90, .12);
}

.admin-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
}

.admin-grid p {
  color: var(--muted);
  line-height: 1.45;
}

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

.setup-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(196, 181, 253, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
}

.setup-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.setup-card h4 {
  margin-top: 4px;
}

.setup-card p {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.45;
}

.setup-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.setup-card small {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .72rem;
  color: var(--soft);
  overflow-wrap: anywhere;
}

.setup-card.safe {
  border-color: rgba(163, 230, 53, .32);
  background:
    radial-gradient(circle at 92% 0%, rgba(163, 230, 53, .14), transparent 36%),
    rgba(255, 255, 255, .055);
}

.setup-card.urgent {
  border-color: rgba(244, 114, 182, .38);
  background:
    radial-gradient(circle at 90% 0%, rgba(244, 114, 182, .18), transparent 34%),
    rgba(255, 255, 255, .055);
}

.setup-card.warning {
  border-color: rgba(141, 198, 63, .38);
  background:
    radial-gradient(circle at 90% 0%, rgba(141, 198, 63, .16), transparent 34%),
    rgba(255, 255, 255, .055);
}

.setup-summary {
  grid-column: 1 / -1;
}

.setup-summary h4 {
  max-width: 780px;
}

.setup-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.setup-metrics span {
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .075);
  color: var(--soft);
  font-size: .76rem;
  overflow-wrap: anywhere;
}

.setup-metrics strong {
  color: #fff;
}

.setup-evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.setup-evidence-links a,
.setup-evidence-links span {
  max-width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--soft);
  font-size: .74rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.setup-evidence-links a:hover {
  color: #fff;
  border-color: rgba(255, 98, 200, .55);
  background: rgba(255, 98, 200, .14);
  box-shadow: var(--stickerRainbowGlow);
}

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

.setup-action-summary {
  grid-column: span 3;
}

.setup-action-card.urgent {
  border-color: rgba(244, 114, 182, .34);
  background:
    radial-gradient(circle at 92% 0%, rgba(244, 114, 182, .14), transparent 34%),
    var(--panel);
}

.setup-action-card.warning {
  border-color: rgba(141, 198, 63, .36);
}

.setup-action-card .directory-meta {
  align-items: stretch;
}

.launch-gate-board,
.live-gate-audit-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.launch-gate-summary,
.live-gate-summary {
  grid-column: 1 / -1;
}

.launch-gate-card,
.live-gate-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(196, 181, 253, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
}

.launch-gate-card.safe,
.live-gate-card.safe {
  border-color: rgba(163, 230, 53, .32);
  background:
    radial-gradient(circle at 92% 0%, rgba(163, 230, 53, .12), transparent 36%),
    rgba(255, 255, 255, .05);
}

.launch-gate-card.warning,
.live-gate-card.warning {
  border-color: rgba(141, 198, 63, .36);
  background:
    radial-gradient(circle at 90% 0%, rgba(141, 198, 63, .14), transparent 34%),
    rgba(255, 255, 255, .05);
}

.launch-gate-card.urgent,
.live-gate-card.urgent {
  border-color: rgba(244, 114, 182, .38);
  background:
    radial-gradient(circle at 90% 0%, rgba(244, 114, 182, .16), transparent 34%),
    rgba(255, 255, 255, .05);
}

.launch-gate-card header,
.live-gate-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.launch-gate-card h4,
.live-gate-card h4 {
  margin-top: 4px;
}

.launch-gate-card p,
.live-gate-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.launch-gate-card strong,
.live-gate-card strong {
  color: #fff;
}

.launch-gate-number {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(255, 98, 200, .92), rgba(92, 225, 230, .88), rgba(163, 230, 53, .82));
  box-shadow: 0 0 18px rgba(255, 98, 200, .22);
}

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

.echo-card ul {
  margin: 0;
  padding-left: 18px;
}

.audit-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.list-grid,
.folder-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-card {
  display: grid;
  gap: 12px;
}

.role-card header,
.profile-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.role-card p,
.profile-card p,
.audit-card p,
.system-card p,
.list-card p,
.setup-action-card p,
.folder-card p {
  color: var(--muted);
  line-height: 1.5;
}

.role-card img,
.profile-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #100a20;
  padding: 0;
}

.role-card ul,
.profile-card ul,
.audit-card ul,
.system-card ul,
.list-card ul,
.setup-action-card ul,
.folder-card ul,
.proof-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.system-card li,
.list-card li,
.setup-action-card li {
  overflow-wrap: anywhere;
}

.audit-card,
.profile-card,
.system-card,
.list-card,
.setup-action-card,
.folder-card,
.guide-card,
.coverage-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.audit-card header,
.system-card header,
.list-card header,
.setup-action-card header,
.folder-card header,
.guide-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.audit-card.missing {
  border-color: rgba(201, 71, 90, .28);
  background: rgba(201, 71, 90, .06);
}

.compact-heading {
  margin-top: 10px;
}

.form-toolbar,
.board-controls {
  display: grid;
  gap: 12px;
}

.form-toolbar {
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(170px, 1.25fr);
  align-items: end;
  width: 100%;
}

.form-toolbar label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.form-toolbar select,
.form-toolbar input {
  width: 100%;
  font-size: .9rem;
}

.forms-section {
  justify-items: center;
}

.forms-section .section-heading,
.forms-section .form-toolbar,
.forms-section .form-grid {
  width: 100%;
  max-width: 1080px;
}

.forms-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(114px, 146px);
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
  text-align: left;
}

.forms-heading-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.forms-error-sticker {
  flex: 0 0 auto;
  width: clamp(138px, 14vw, 174px);
  max-width: min(174px, 34vw);
  margin-left: -8px;
  justify-self: start;
  height: auto;
  display: block;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: default;
  transition: filter .55s ease, transform .25s ease;
  object-position: center center;
  padding: 0;
  animation: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
}

.sticker.image-lightup:hover,
.sticker.image-lightup:focus-visible,
.section-sticker.image-lightup:hover,
.section-sticker.image-lightup:focus-visible,
.forms-error-sticker:hover,
.forms-error-sticker:focus-visible {
  animation: stickerRainbowAura 5.5s ease-in-out infinite alternate;
  box-shadow: none;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 340px));
  justify-content: center;
}

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

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

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

.form-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.form-card h4 {
  font-size: 1.08rem;
}

.form-card p {
  color: var(--muted);
  line-height: 1.5;
}

.guide-card,
.emoji-card,
.coverage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
}

.guide-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.emoji-card {
  display: grid;
  gap: 10px;
  align-items: start;
}

.emoji-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.emoji-card strong {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .34), rgba(255, 76, 186, .22) 45%, rgba(96, 232, 255, .18));
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 1.15rem;
  box-shadow: 0 0 18px rgba(255, 76, 186, .16);
}

.emoji-card h4 {
  min-width: 0;
  font-size: .96rem;
}

.emoji-card p,
.emoji-card span,
.emoji-card small,
.coverage-card p {
  color: var(--muted);
  line-height: 1.45;
}

.emoji-card span,
.emoji-card small {
  display: block;
  margin-top: 6px;
  font-size: .78rem;
}

.form-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.form-actions button,
.form-actions .button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
  font-size: .77rem;
  text-align: center;
  white-space: nowrap;
}

.form-meta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.form-meta-links .button {
  width: auto;
  min-width: 0;
  justify-content: center;
  padding-inline: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(156, 230, 236, .18);
  background: rgba(156, 230, 236, .08);
  color: #c8f3f6;
  font-size: .72rem;
  font-weight: 800;
}

.pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .07);
  font-size: .78rem;
  font-weight: 800;
}

.pill.urgent { color: var(--red); border-color: rgba(201, 71, 90, .35); }
.pill.safe { color: #217055; border-color: rgba(33, 112, 85, .35); }

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: lowercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 5, 18, .78);
  color: var(--ink);
  padding: 10px 12px;
}

select,
select option,
select optgroup {
  color-scheme: dark;
}

select option,
select optgroup {
  background-color: #171024;
  color: #f8f7ff;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.player-bar {
  grid-template-columns: 150px minmax(160px, 1fr) 160px minmax(220px, 1.2fr) 150px;
}

.player-bar strong {
  display: block;
  margin-top: 4px;
}

.worker-handle {
  text-transform: lowercase;
}

.worker-handle input {
  margin-top: 6px;
}

.xp-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 19, 29, .1);
  margin-top: 8px;
}

.xp-track div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--amber));
  transition: width .25s ease;
}

.quest-layout {
  grid-template-columns: 340px minmax(0, 1fr);
}

.role-panel,
.quest-panel {
  padding: 16px;
}

.graphic-label {
  margin-bottom: 12px;
}

.graphic-label h4 {
  margin-top: 4px;
}

.role-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #100a20;
  padding: 0;
  margin-bottom: 12px;
}

.role-info {
  display: grid;
  gap: 10px;
}

.role-info article {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
}

.role-info h4 {
  margin-bottom: 6px;
}

.role-info ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.leaderboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
}

.plan3-card {
  border-color: rgba(103, 232, 249, .34);
  background:
    radial-gradient(circle at top right, rgba(103, 232, 249, .14), transparent 34%),
    linear-gradient(135deg, rgba(18, 12, 34, .96), rgba(35, 20, 58, .9));
}

.plan3-card:first-child {
  grid-column: 1 / -1;
  border-color: rgba(244, 114, 182, .42);
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 114, 182, .18), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(103, 232, 249, .16), transparent 32%),
    rgba(15, 10, 27, .94);
}

.dispatch-summary-card {
  grid-column: 1 / -1;
  border-color: rgba(163, 230, 53, .36);
  background:
    radial-gradient(circle at 20% 0%, rgba(163, 230, 53, .15), transparent 28%),
    linear-gradient(135deg, rgba(18, 12, 34, .96), rgba(24, 43, 38, .86));
}

.dispatch-plan-card {
  border-color: rgba(196, 181, 253, .28);
}

.dispatch-plan-card li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.planner-directory-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(196, 181, 253, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.planner-directory-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .45fr);
  gap: 12px;
}

.directory-summary {
  color: var(--muted);
  font-size: .84rem;
}

.planner-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.planner-directory-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(248, 247, 255, .12);
  border-radius: 8px;
  background: rgba(16, 10, 32, .72);
}

.planner-directory-card header,
.directory-link-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.planner-directory-card h4 {
  margin-top: 3px;
  font-size: .95rem;
}

.planner-directory-card p {
  color: var(--muted);
  font-size: .82rem;
}

.directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.directory-meta span {
  border: 1px solid rgba(196, 181, 253, .2);
  border-radius: 999px;
  color: var(--soft);
  font-size: .72rem;
  padding: 4px 8px;
}

.directory-link-row code {
  min-width: 0;
  color: var(--soft);
  font-size: .72rem;
  overflow-wrap: anywhere;
}

.directory-link-row .button {
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.leaderboard-board {
  display: grid;
  gap: 8px;
}

.leaderboard-panel .panel-title {
  align-items: flex-start;
  flex-wrap: wrap;
}

.leaderboard-controls {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) 1fr;
  gap: 8px;
  flex: 1 1 520px;
  align-items: end;
  max-width: 760px;
}

.leaderboard-controls label {
  min-width: 0;
  position: relative;
}

.leaderboard-controls .leaderboard-compare-pill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px dashed rgba(156, 230, 236, .45);
  background: rgba(156, 230, 236, .1);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 720;
  white-space: nowrap;
  min-height: 34px;
  width: 100%;
  max-width: 260px;
}

.leaderboard-controls .button {
  justify-self: end;
  width: min(170px, 100%);
  margin-bottom: 1px;
  white-space: nowrap;
  min-height: 34px;
}

.leaderboard-window {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border-radius: 999px;
  border-color: rgba(141, 198, 63, .35);
  background: rgba(141, 198, 63, .1);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 850;
}

.leader-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(120px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(248, 247, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
}

.leader-row h5 {
  margin: 0;
  font-size: .95rem;
}

.leader-row span,
.leader-score span {
  color: var(--muted);
  font-size: .78rem;
}

.leader-goal-track,
.goal-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 5, 18, .58);
}

.leader-goal-track span,
.goal-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--amber), var(--rose));
  box-shadow: 0 0 16px rgba(156, 230, 236, .3);
}

.leader-row > strong {
  color: var(--amber);
}

.leader-score {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.leader-score strong {
  font-size: 1.2rem;
}

.leader-score .up {
  color: var(--mint);
}

.leader-score .down {
  color: var(--red);
}

.leader-compare-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.board-controls {
  grid-template-columns: 170px 170px minmax(180px, 1fr);
  align-items: end;
  margin-bottom: 16px;
}

.panel-title,
.mini-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.quest-board,
.reward-shop,
.proof-log {
  display: grid;
  gap: 10px;
}

.quest {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 5, 18, .6);
  padding: 14px;
  min-width: 0;
}

.quest.done {
  border-color: rgba(141, 198, 63, .55);
  background: rgba(141, 198, 63, .16);
}

.quest.needs-assignment {
  border-color: rgba(201, 71, 90, .38);
  background: rgba(201, 71, 90, .09);
}

.quest header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.quest header h4 {
  min-width: 0;
  line-height: 1.25;
}

.quest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.task-contract {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  min-width: 0;
}

.task-contract p {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.handoff-box {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(156, 230, 236, .24);
  background: rgba(12, 140, 154, .09);
  min-width: 0;
}

.handoff-box p,
.handoff-box a,
.handoff-box span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.handoff-box a {
  color: #9ce6ec;
}

.progress-panel,
.quest-more {
  margin-top: 12px;
  min-width: 0;
}

.progress-panel summary,
.quest-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 850;
  list-style: none;
  transition: border-color .45s ease, box-shadow .6s ease, transform .25s ease, filter .45s ease;
}

.progress-panel summary::-webkit-details-marker,
.quest-more summary::-webkit-details-marker {
  display: none;
}

.progress-panel summary strong {
  color: var(--amber);
  white-space: nowrap;
}

.progress-track {
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--amber), var(--rose));
  box-shadow: 0 0 18px rgba(156, 230, 236, .34);
}

.checklist-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.checkline {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(248, 247, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.3;
}

.check-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
}

.checkline strong {
  color: #f8f7ff;
  white-space: nowrap;
}

.check-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.checkline em {
  color: #9ce6ec;
  font-size: .76rem;
  font-style: normal;
}

.checkline.status-in-progress {
  border-color: rgba(141, 198, 63, .34);
  background: rgba(141, 198, 63, .08);
}

.checkline.status-in-progress .check-dot {
  background: var(--amber);
  box-shadow: 0 0 16px rgba(141, 198, 63, .38);
}

.checkline.status-done {
  border-color: rgba(141, 198, 63, .3);
  background: rgba(141, 198, 63, .1);
  color: #e5f5d3;
}

.checkline.status-done .check-dot {
  background: var(--mint);
  box-shadow: 0 0 16px rgba(141, 198, 63, .36);
}

.checkline:has(input:disabled) {
  opacity: .72;
}

.subtask-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subtask-actions button {
  min-height: 30px;
  padding: 0 10px;
  font-size: .78rem;
}

.progress-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.quest-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  align-items: center;
}

.quest-actions button,
.quest-actions .button,
.quest-actions .pill {
  width: auto;
  max-width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.quest-actions button,
.quest-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  font-size: .8rem;
  padding: 8px 10px;
}

.quest-primary-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  margin-top: 10px;
  width: 100%;
}

.quest-primary-actions button,
.quest-primary-actions .button,
.quest-primary-actions .pill {
  width: 100%;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

.quest-primary-actions button,
.quest-primary-actions .button {
  min-height: 40px;
  font-size: .82rem;
  white-space: nowrap;
  padding-inline: 10px;
}

.quest-primary-actions .pill {
  white-space: normal;
}

.reward-card {
  padding: 14px;
  margin-top: 12px;
}

.reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
}

.reward strong {
  color: var(--amber);
}

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

.proof-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.proof-flow article {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 76, 186, .12), rgba(96, 232, 255, .09));
}

.proof-flow span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff4fba, #8d6cff 52%, #18bfd0);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .14), 0 0 18px rgba(255, 76, 186, .34);
}

.proof-flow p {
  color: var(--muted);
  line-height: 1.45;
}

.proof-requirements {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.proof-requirement {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.proof-requirement header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.proof-requirement strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: .86rem;
}

.proof-requirement ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.proof-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.proof-item p {
  color: var(--muted);
  margin-top: 4px;
}

.proof-link {
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.proof-link-text {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: .78rem;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
}

dialog {
  width: min(680px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(19, 16, 29, .72);
  backdrop-filter: blur(8px);
}

.modal {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 18px;
  box-shadow: 0 28px 90px rgba(19, 16, 29, .28);
}

.icon-button {
  min-width: 42px;
  padding: 0;
}

.modal-purpose {
  color: var(--muted);
  line-height: 1.45;
}

.dynamic-fields {
  display: grid;
  gap: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.safety-note {
  border-radius: 8px;
  border: 1px solid rgba(201, 71, 90, .25);
  background: rgba(201, 71, 90, .14);
  color: #ffd1dc;
  padding: 12px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  body { font-size: 12.1px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; z-index: 12000; height: auto; }
  .side-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body:has(.nav-overlay-root .nav-flyout.is-open) .nav-overlay-root::before,
  body.nav-flyout-open .nav-overlay-root::before {
    opacity: 0;
    pointer-events: none;
  }
  .nav-overlay-root .nav-flyout {
    z-index: var(--nav-flyout-layer) !important;
  }
  .nav-flyout {
    position: fixed;
    left: var(--nav-flyout-left, 12px);
    top: var(--nav-flyout-top, 92px);
    right: auto;
    width: var(--nav-flyout-width, min(260px, calc(100vw - 24px)));
    max-width: calc(100vw - 24px);
    z-index: var(--nav-flyout-layer);
    border-radius: 8px;
    background:
      linear-gradient(145deg, #27104d 0%, #15072c 58%, #080414 100%),
      #0c0619;
    box-shadow:
      0 30px 96px rgba(0, 0, 0, .86),
      0 0 0 2px rgba(13, 255, 240, .12),
      0 0 40px rgba(255, 97, 247, .42),
      0 0 72px rgba(119, 91, 255, .36);
  }
  .side-nav a {
    padding: 7px 8px;
    font-size: .56rem;
  }
  button,
  .button,
  .vault-link {
    min-height: 38px;
    padding: 0 11px;
    font-size: .76rem;
  }
  .hero h2 { font-size: 3rem; }
  .section-heading h3 { font-size: 1.55rem; }
  .hero p,
  .section-heading p { font-size: .78rem; }
  .workflow-grid,
  .level-grid,
  .mission-control-strip,
  .role-grid,
  .profile-grid,
  .profile-access-grid,
  .cashout-grid,
  .form-grid,
  .audit-grid,
  .system-grid,
  .list-grid,
  .folder-grid,
  .guide-grid,
  .emoji-grid,
  .coverage-grid,
  .proof-flow,
  .proof-requirements,
  .proof-grid,
  .echo-grid,
  .worker-profile-grid,
  .admin-grid,
  .setup-readiness-grid,
  .launch-gate-board,
  .live-gate-audit-board,
  .setup-action-board,
  .planner-directory,
  .rule-strip,
  .start-panel,
  .quest-layout,
  .player-bar {
    grid-template-columns: 1fr 1fr;
  }
  .board-controls,
  .leaderboard-controls { grid-template-columns: 1fr 1fr; }
  .planner-directory-controls { grid-template-columns: 1fr; }
  .sticker-heading {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 150px);
  }
  .section-sticker {
    max-width: 132px;
    max-height: 104px;
  }

  .hero-sticker-cloud {
    right: clamp(24px, 5vw, 52px);
    top: 18px;
  }

  .sticker-heart-focus {
    width: 158px;
    transform: translate(-28px, 2px) rotate(-7deg);
  }

  .sticker-fox {
    width: 146px;
    transform: translate(-58px, 8px) rotate(6deg);
  }

  .proof-heading .section-sticker,
  .level-section .section-sticker {
    width: clamp(178px, 34vw, 204px);
    max-width: 204px;
    max-height: 160px;
  }

  .level-section .section-sticker {
    width: clamp(164px, 30vw, 190px);
    max-width: 188px;
    max-height: 148px;
    margin-left: -24px;
  }

  .proof-heading .section-sticker {
    margin-left: -82px;
  }

  .creator-section .section-sticker {
    margin-left: -2px;
  }

  .proof-heading.sticker-heading,
  .level-section .sticker-heading {
    grid-template-columns: minmax(0, 1fr) minmax(178px, 210px);
  }
}

@media (max-width: 720px) {
  body { font-size: 11.95px; }
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100vw;
    overflow-x: hidden;
    padding-top: 52px;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30000;
    width: 100%;
    max-width: 100vw;
    height: auto;
    max-height: min(100dvh, 760px);
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, #100a20, #1a1030);
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  }
  body:has(.nav-overlay-root .nav-flyout.is-open) .nav-overlay-root::before,
  body.nav-flyout-open .nav-overlay-root::before {
    opacity: 0;
    pointer-events: none;
  }
  .mobile-sidebar-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }
  .mobile-sidebar-title {
    display: grid;
    min-width: 0;
    color: #fff;
    line-height: 1.05;
  }
  .mobile-sidebar-title span {
    font-size: .82rem;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-sidebar-title small {
    color: #9ce6ec;
    font-size: .56rem;
    font-weight: 850;
    text-transform: uppercase;
  }
  .mobile-sidebar-toggle {
    flex: 0 0 auto;
    min-height: 34px;
    min-width: 74px;
    padding: 0 12px;
    border-color: rgba(157, 94, 255, .56);
    color: #fff;
    background:
      linear-gradient(135deg, rgba(157, 94, 255, .32), rgba(207, 63, 135, .18)),
      rgba(255, 255, 255, .07);
    box-shadow: 0 0 16px rgba(157, 94, 255, .24);
  }
  .sidebar-content {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding-top: 10px;
  }
  body.mobile-sidebar-open .sidebar-content {
    max-height: calc(100dvh - 62px);
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 8px;
  }
  body.mobile-sidebar-collapsed .sidebar {
    max-height: 52px;
    overflow-y: hidden;
  }
  body.mobile-sidebar-collapsed .sidebar-content {
    display: none;
  }
  body.mobile-sidebar-collapsed .mobile-sidebar-toggle::after {
    content: " +";
  }
  body:not(.mobile-sidebar-collapsed) .mobile-sidebar-toggle::after {
    content: " -";
  }
  body.mobile-sidebar-collapsed .nav-flyout {
    display: none;
  }
  .nav-flyout {
    z-index: var(--nav-flyout-layer);
    background:
      linear-gradient(145deg, #27104d 0%, #15072c 58%, #080414 100%),
      #0c0619;
    box-shadow:
      0 30px 96px rgba(0, 0, 0, .88),
      0 0 0 2px rgba(13, 255, 240, .14),
      0 0 44px rgba(255, 97, 247, .46),
      0 0 76px rgba(119, 91, 255, .38);
  }
  main { padding: 14px; }
  .hero-banner { padding: 0; }
  .hero-banner img { max-height: none; }
  .hero-content {
    padding: 22px;
    min-height: auto;
  }
  .hero h2 { font-size: 2.05rem; }
  .hero p,
  .section-heading p {
    font-size: .76rem;
  }
  .portal-chooser {
    grid-template-columns: 1fr;
  }
  .portal-chooser strong {
    font-size: .88rem;
  }
  .section-heading h3 { font-size: 1.35rem; }
  .eyebrow { font-size: .68rem; }
  button,
  .button,
  .vault-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: .72rem;
  }
  .launch-status-strip {
    grid-template-columns: 1fr;
  }
  .launch-status-actions {
    justify-content: flex-start;
  }
  .side-nav,
  .workflow-grid,
  .level-grid,
  .mission-control-strip,
  .role-grid,
  .profile-grid,
  .profile-access-grid,
  .cashout-grid,
  .form-grid,
  .audit-grid,
  .system-grid,
  .list-grid,
  .folder-grid,
  .guide-grid,
  .emoji-grid,
  .coverage-grid,
  .proof-flow,
  .proof-requirements,
  .proof-grid,
  .echo-grid,
  .worker-profile-grid,
  .admin-grid,
  .setup-readiness-grid,
  .launch-gate-board,
  .live-gate-audit-board,
  .setup-action-board,
  .planner-directory,
  .rule-strip,
  .start-panel,
  .quest-layout,
  .player-bar,
  .board-controls,
  .leaderboard-controls,
  .form-toolbar,
  .two-col {
    grid-template-columns: 1fr;
  }

  .setup-action-summary {
    grid-column: auto;
  }

  .hero-sticker-cloud {
    position: static;
    grid-template-columns: 82px;
    justify-content: start;
    padding: 14px 6px 24px 12px;
    background: linear-gradient(135deg, rgba(23, 16, 36, .98), rgba(32, 20, 58, .92));
    row-gap: 8px;
  }

  .sticker-heart-focus {
    width: 88px;
    transform: translate(-4px, -4px) rotate(-7deg);
  }

  .sticker-fox {
    width: 76px;
    transform: translate(-10px, 6px) rotate(6deg);
  }

  .sticker-heart-focus,
  .sticker-fox {
    width: 76px;
    max-width: 76px;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .sticker-heading {
    grid-template-columns: 1fr;
  }

  .section-sticker {
    justify-self: start;
    max-width: 116px;
    max-height: 92px;
    margin-left: -12px;
  }

  .section-sticker-heart {
    max-height: 104px;
  }

  .proof-heading .section-sticker,
  .level-section .section-sticker {
    width: clamp(162px, 46vw, 176px);
    max-width: 176px;
    max-height: 144px;
  }

  .level-section .section-sticker {
    width: clamp(146px, 40vw, 164px);
    max-width: 164px;
    max-height: 132px;
    margin-left: -14px;
  }

  .proof-heading .section-sticker {
    margin-left: -74px;
  }

  .creator-section .section-sticker {
    margin-left: 0;
  }

  .proof-heading.sticker-heading,
  .level-section .sticker-heading {
    grid-template-columns: minmax(0, 1fr) minmax(168px, 184px);
  }

  .forms-error-sticker {
    width: min(118px, 34vw);
    max-width: 44vw;
  }

  .leaderboard-window {
    width: 100%;
    min-width: 0;
  }

  .leader-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .leader-score {
    grid-column: 2;
    justify-items: start;
  }
}

@media (max-width: 560px) {
  body { font-size: 11.8px; }
  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-group-toggle {
    min-height: 34px;
    padding: 6px 7px;
  }
  .nav-group-toggle span {
    font-size: .62rem;
  }
  .nav-group-toggle small {
    font-size: .5rem;
  }
  .forms-heading {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .cashout-history-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .cashout-timeline-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .cashout-timeline-track,
  .cashout-timeline-item strong {
    width: 100%;
    justify-self: stretch;
  }

  .side-nav a {
    font-size: .52rem;
    line-height: 1.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  button:hover,
  .button:hover,
  .vault-link:hover,
  .side-nav a:hover,
  .leaderboard-window:hover,
  .progress-panel summary:hover,
  .quest-more summary:hover {
    box-shadow: 0 0 0 3px rgba(156, 230, 236, .24), 0 0 34px rgba(207, 63, 135, .34);
  }
}
