@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");
:root {
  color-scheme: dark;
  --bg: #070910;
  --surface: #11141e;
  --surface2: #171a26;
  --line: #282d3d;
  --text: #f5f7ff;
  --muted: #8f98ab;
  --green: #b5ff46;
  --purple: #ad78ff;
  --cyan: #5edcf4;
  font-family: "DM Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
a {
  color: inherit;
}
.boot,
.fatal {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
}
.fatal img {
  width: 80px;
  margin: auto;
}
.fatal p {
  max-width: 560px;
  color: var(--muted);
}
.fatal button {
  margin: auto;
  width: max-content;
  background: var(--green);
  color: #101410;
  border: 0;
  border-radius: 9px;
  padding: 10px 20px;
}
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 35% at 48% -5%, #5d33822c, transparent),
    radial-gradient(ellipse 40% 30% at 95% 24%, #11595a17, transparent);
  z-index: -1;
}
.ambient:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#fff 1px, transparent 1px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.018;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 246px;
  min-width: 246px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 15px 20px;
  background: linear-gradient(180deg, #10111c 0%, #0b0c14 100%);
  border-right: 1px solid #ffffff12;
  box-shadow: 18px 0 50px #0005;
  z-index: 3;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 10px 28px;
  border-bottom: 1px solid var(--line);
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px #ad78ff8a);
}
.brand span,
.brand strong {
  display: block;
}
.brand span {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--green);
  font-weight: 800;
}
.brand strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.side-caption {
  margin: 34px 16px 12px;
  font-size: 9px;
  letter-spacing: 0.22em;
  font-weight: 800;
  color: #666d80;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #a3aabd;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s;
}
.sidebar nav button span {
  font-size: 20px;
  font-weight: 400;
  width: 22px;
  text-align: center;
}
.sidebar nav button:hover {
  color: white;
  background: #ffffff0a;
}
.sidebar nav button.active {
  color: var(--green);
  background: linear-gradient(90deg, #a7ff451a, #a7ff4505);
  border-color: #a7ff452d;
  box-shadow: inset 3px 0 var(--green);
}
.sidebar-footer {
  margin-top: auto;
  padding: 18px 12px 4px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 800;
  color: var(--green);
}
.sidebar-footer small {
  display: block;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  margin: 8px 0 0 16px;
}
.online-dot,
.local-pill i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 11px var(--green);
  margin-right: 6px;
}
.main-content {
  flex: 1;
  min-width: 0;
  max-width: 1700px;
  margin: auto;
  padding: 0 35px;
}
.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff10;
  gap: 20px;
}
.breadcrumb {
  font-size: 10px;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: #677084;
}
.breadcrumb strong {
  color: #c8cfe0;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.local-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--green);
  border: 1px solid #b5ff4633;
  background: #b5ff460b;
  border-radius: 30px;
  padding: 9px 12px;
  white-space: nowrap;
}
.top-actions button,
.gallery-actions button,
.map-tools button {
  background: #171a25;
  border: 1px solid #383e50;
  border-radius: 8px;
  color: #dfe3ed;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 800;
  transition: 0.2s;
}
.top-actions button:hover,
.gallery-actions button:hover,
.map-tools button:hover {
  border-color: var(--cyan);
  color: white;
}
.view-panel {
  padding-bottom: 36px;
}
.view-panel[hidden] {
  display: none;
}
.eyebrow {
  display: block;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 800;
}
.hero {
  min-height: 338px;
  margin: 31px 0 39px;
  padding: 50px 6% 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid #7847a269;
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 72% 49%, #3b276773, transparent 39%),
    linear-gradient(115deg, #151526, #10111d 57%, #1b1530);
  box-shadow:
    inset 0 1px #ffffff19,
    0 24px 70px #0006,
    0 0 35px #a563ff0e;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      transparent 56%,
      #9a63ff12 56.2%,
      transparent 56.5%
    ),
    linear-gradient(150deg, transparent 50%, #9a63ff12 50.2%, transparent 50.5%);
  pointer-events: none;
}
.hero > div:first-child {
  position: relative;
  z-index: 1;
}
.hero h1,
.page-heading h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.055em;
  line-height: 1.03;
  margin: 20px 0 14px;
}
.hero h1 em,
.page-heading h1 em {
  font-style: normal;
  color: var(--green);
  text-shadow: 0 0 31px #b5ff4655;
}
.hero p,
.page-heading p {
  font-size: 14px;
  color: #b4b9c9;
  line-height: 1.6;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 29px;
}
.hero-actions button {
  border-radius: 9px;
  padding: 13px 19px;
  font-size: 12px;
  font-weight: 800;
  transition: 0.2s;
}
.hero-actions button:hover {
  transform: translateY(-2px);
}
.hero-actions .primary {
  border: 1px solid var(--green);
  background: var(--green);
  color: #111613;
  box-shadow: 0 0 22px #b5ff4635;
}
.hero-actions .primary span {
  margin-left: 18px;
  font-size: 17px;
}
.hero-actions .secondary {
  border: 1px solid #826aa3;
  background: #271e38;
  color: #f5eeff;
}
.hero-emblem {
  position: relative;
  width: 290px;
  height: 260px;
  flex: none;
  display: grid;
  place-items: center;
}
.hero-emblem:before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #9d6bed35;
  filter: blur(43px);
}
.hero-emblem img {
  position: relative;
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 29px #aa80ffad);
  animation: float 5s ease-in-out infinite;
}
.orbit {
  position: absolute;
  border: 1px solid #c098ff8a;
  border-radius: 50%;
  box-shadow:
    0 0 20px #9c6aff35,
    inset 0 0 18px #9c6aff26;
}
.orbit-one {
  width: 222px;
  height: 222px;
}
.orbit-two {
  width: 274px;
  height: 135px;
  transform: rotate(-28deg);
  border-color: #a7fa895e;
}
.section-title,
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.section-title {
  margin-bottom: 17px;
}
.section-title h2,
.panel-heading h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 7px 0 0;
  letter-spacing: -0.03em;
}
.section-title h2 {
  font-size: 25px;
}
.section-note {
  color: var(--muted);
  font-size: 11px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.metric,
.glass-panel,
.gallery-panel {
  border: 1px solid #ffffff15;
  background: linear-gradient(145deg, #171924e8, #10131de8);
  box-shadow:
    inset 0 1px #ffffff0d,
    0 14px 36px #0003;
  backdrop-filter: blur(20px);
}
.metric {
  position: relative;
  min-height: 133px;
  padding: 19px 21px;
  border-radius: 13px;
  overflow: hidden;
}
.metric:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.metric.green:before {
  background: linear-gradient(90deg, var(--green), transparent);
}
.metric.purple:before {
  background: linear-gradient(90deg, var(--purple), transparent);
}
.metric.cyan:before {
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.metric > span {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #9ba3b5;
  font-weight: 800;
}
.metric strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  line-height: 1.2;
  display: block;
  margin: 7px 0 0;
}
.metric small {
  font-size: 10px;
  color: var(--muted);
}
.metric-icon {
  position: absolute;
  right: 18px;
  bottom: 11px;
  color: #ffffff12;
  font-size: 64px;
  font-style: normal;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-top: 16px;
}
.glass-panel {
  padding: 22px;
  border-radius: 14px;
}
.panel-heading h3 {
  font-size: 20px;
}
.panel-symbol {
  font-size: 30px;
  color: var(--green);
}
.progress-item {
  margin-top: 25px;
}
.progress-item > div:first-child,
.type-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.progress-item span:first-child {
  font-size: 10px;
  color: #aeb5c5;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.progress-item b {
  color: var(--green);
  font-size: 17px;
}
.rail {
  display: block;
  height: 8px;
  background: #303342;
  border-radius: 50px;
  overflow: hidden;
  margin-top: 10px;
}
.rail > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6ede89, var(--green));
  border-radius: 50px;
  box-shadow: 0 0 14px var(--green);
  transition: width 0.7s ease;
}
.purple-rail > span {
  background: linear-gradient(90deg, #7956ed, var(--purple));
  box-shadow: 0 0 14px var(--purple);
}
.season-callout {
  margin-top: 26px;
  padding: 15px;
  border: 1px solid #a9ff462b;
  border-radius: 9px;
  background: #b5ff4609;
}
.season-callout span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--green);
  font-weight: 800;
}
.season-callout strong {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
}
.type-progress {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.type-row strong {
  font-size: 11px;
}
.type-row span:not(.rail) {
  font-size: 10px;
  color: var(--muted);
}
.type-row .rail {
  height: 5px;
  margin-top: 6px;
}
.achievements-panel {
  margin-top: 16px;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 19px;
}
.achievement {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 13px 10px;
  border: 1px solid #ffffff14;
  border-radius: 9px;
  background: #0b0e16;
  color: #697080;
}
.achievement.done {
  border-color: #b5ff4639;
  color: var(--green);
  background: #b5ff4609;
}
.achievement > span {
  font-size: 24px;
}
.achievement strong,
.achievement small {
  display: block;
}
.achievement strong {
  font-size: 10px;
  color: #d8dbe2;
}
.achievement small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
}
.page-heading {
  padding: 39px 0 26px;
}
.page-heading h1 {
  margin: 11px 0 10px;
  font-size: clamp(40px, 4.5vw, 61px);
}
.gallery-panel {
  border-radius: 14px;
  overflow: hidden;
  padding: 0 20px 23px;
}
.catalog-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.catalog-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 17px 17px 14px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}
.catalog-tabs button.active {
  color: var(--green);
  border-color: var(--green);
}
.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(5, minmax(100px, 1fr));
  gap: 9px;
  margin: 18px 0;
}
.filter-bar select,
.search-wrap {
  height: 42px;
  min-width: 0;
  background: #0b0e17;
  border: 1px solid #333849;
  border-radius: 8px;
  color: #d9deea;
}
.filter-bar select {
  padding: 0 10px;
  font-size: 11px;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.search-wrap span {
  color: var(--green);
  font-size: 23px;
}
.search-wrap input {
  background: none;
  border: 0;
  outline: 0;
  color: white;
  width: 100%;
  font-size: 12px;
}
.search-wrap input::placeholder {
  color: #81899b;
}
.gallery-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.gallery-actions > span {
  color: #c8cede;
  font-size: 11px;
  font-weight: 700;
}
.gallery-actions > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.danger-text {
  color: #ff9ba9 !important;
}
.sprite-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.sprite-card {
  min-width: 0;
  border: 1px solid #373649;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(155deg, #1c1a2a, #11151e 70%);
  position: relative;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.sprite-card:hover {
  transform: translateY(-4px);
  border-color: #9975c7;
  box-shadow:
    0 15px 35px #0007,
    0 0 20px #7c50b11e;
}
.sprite-card.owned {
  border-color: #9bec4b60;
}
.card-top {
  position: absolute;
  z-index: 2;
  left: 11px;
  right: 11px;
  top: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mini-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid #ffffff30;
  border-radius: 5px;
  padding: 5px 7px;
  background: #0d1020ad;
  backdrop-filter: blur(6px);
}
.icon-button {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid #ffffff30;
  background: #0d1020b9;
  color: #f3f0fb;
  font-size: 19px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.icon-button.active {
  color: #ff7eab;
  border-color: #ff7eab88;
}
.art-button {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  height: 180px;
  border: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, #4e3b7459, transparent 52%),
    linear-gradient(130deg, #1f1c31, #161b25);
}
.art-button:before {
  content: "";
  position: absolute;
  width: 135px;
  height: 135px;
  border: 1px solid #9d7ccc2e;
  border-radius: 50%;
  box-shadow: 0 0 25px #ad78ff1f;
}
.art-button img {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px #0008);
  transition: transform 0.25s;
}
.sprite-card:hover .art-button img {
  transform: translateY(-5px) scale(1.05);
}
.card-body {
  padding: 13px;
}
.card-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #aeb6c6;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.dot.live {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.dot.muted {
  background: #808498;
}
.rarity {
  margin-left: auto;
  text-transform: uppercase;
  color: var(--purple);
}
.card-body h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 9px 0 3px;
}
.card-body p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 14px;
}
.card-actions {
  display: flex;
  gap: 6px;
}
.card-actions button {
  height: 34px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}
.track-button {
  flex: 1;
  background: #b5ff4612;
  border: 1px solid #b5ff4650;
  color: var(--green);
}
.track-button.active {
  background: var(--green);
  color: #102013;
}
.master-button {
  width: 38px;
  background: #ad78ff16;
  border: 1px solid #ad78ff62;
  color: var(--purple);
  font-size: 18px !important;
}
.master-button.active {
  background: var(--purple);
  color: #171020;
}
.load-more {
  display: block;
  margin: 24px auto 0;
  padding: 11px 25px;
  border: 1px solid #b5ff4670;
  border-radius: 8px;
  color: var(--green);
  background: #b5ff4610;
  font-weight: 800;
}
.load-more[hidden] {
  display: none;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state strong {
  color: white;
  font-size: 18px;
}
.empty-state button {
  background: var(--green);
  border: 0;
  border-radius: 8px;
  padding: 9px 13px;
  color: #111b10;
  font-weight: 800;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 15px;
}
.map-hint,
.intel-panel > p {
  font-size: 11px;
  line-height: 1.5;
  color: #b8bfd0;
}
.map-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 17px 0;
}
.map-tools select {
  min-width: 180px;
  flex: 1;
  background: #0b0e17;
  color: white;
  border: 1px solid #343a4d;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
}
.map-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1.35;
  border: 1px solid #614f7a;
  border-radius: 10px;
  overflow: hidden;
  background-color: #0c1019;
  background-size: 100% 100%;
  background-position: center;
  cursor: crosshair;
}
.map-board:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#77dfff22 1px, transparent 1px),
    linear-gradient(90deg, #77dfff22 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  pointer-events: none;
}
.map-empty {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  padding: 20px;
  cursor: default;
}
.map-empty span {
  font-size: 70px;
  color: #77689a;
  line-height: 1;
}
.map-empty strong {
  font-size: 16px;
}
.map-empty small {
  color: var(--muted);
  font-size: 11px;
}
.map-overlay {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px #0008;
  pointer-events: none;
}
.map-pin {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green);
  color: #15220f;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 15px var(--green);
}
.pin-list {
  display: grid;
  gap: 5px;
  margin-top: 14px;
}
.pin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ffffff13;
  border-radius: 7px;
  padding: 3px 7px;
}
.pin-row button {
  background: none;
  border: 0;
  color: #e1e4ed;
  font-size: 11px;
  text-align: left;
  padding: 5px;
}
.pin-row button:last-child {
  color: #ff9baa;
  font-size: 22px;
}
.muted-copy {
  font-size: 11px;
  color: var(--muted);
}
.location-groups {
  max-height: 570px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 7px;
  margin-top: 20px;
}
.location-item {
  border: 1px solid #ffffff16;
  border-radius: 8px;
  background: #0b0e17;
}
.location-item summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 12px;
  font-size: 11px;
  line-height: 1.35;
}
.location-item summary b {
  color: var(--green);
  flex: none;
}
.location-item > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 10px 10px;
}
.location-item button {
  border: 1px solid #a778ff4b;
  border-radius: 20px;
  padding: 5px 8px;
  background: #ad78ff0e;
  color: #e7dcfc;
  font-size: 10px;
}
.location-item button:hover {
  border-color: var(--purple);
}
footer {
  padding: 23px 0 29px;
  border-top: 1px solid #ffffff0d;
  color: #788194;
  font-size: 10px;
  text-align: center;
}
footer span {
  padding: 0 10px;
  color: var(--green);
}
.notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 16px;
  border: 1px solid #b5ff466e;
  border-radius: 10px;
  background: #171f1b;
  color: #e6ffdc;
  font-size: 12px;
  box-shadow: 0 12px 40px #0009;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: 0.2s;
}
.notice.show {
  opacity: 1;
  transform: none;
}
.notice.error {
  border-color: #ff98a8;
  background: #261a22;
  color: #ffdce3;
}
dialog {
  width: min(860px, calc(100vw - 26px));
  max-height: min(90vh, 900px);
  padding: 0;
  overflow: auto;
  border: 1px solid #a774da;
  border-radius: 16px;
  background: #11141f;
  color: white;
  box-shadow: 0 30px 110px #000c;
}
dialog::backdrop {
  background: #03040bca;
  backdrop-filter: blur(7px);
}
.close-detail {
  position: sticky;
  top: 12px;
  left: calc(100% - 48px);
  z-index: 3;
  width: 34px;
  height: 34px;
  margin: 12px 12px -46px 0;
  background: #161824d9;
  border: 1px solid #ffffff4d;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  line-height: 1;
}
#detail-content {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
}
.detail-art {
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: 25px;
  background: radial-gradient(circle, #5839888a, transparent 55%), #171525;
}
.detail-art img {
  max-width: 100%;
  max-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 18px 25px #0009);
}
.detail-copy {
  padding: 36px 29px;
}
.detail-copy h2 {
  font:
    700 33px "Space Grotesk",
    sans-serif;
  margin: 10px 0;
}
.detail-copy > p,
.detail-block p,
.detail-block li {
  font-size: 12px;
  line-height: 1.55;
  color: #bcc3d1;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 17px 0;
}
.detail-meta span {
  border: 1px solid #a774da52;
  border-radius: 20px;
  padding: 5px 9px;
  color: #dcc8fa;
  font-size: 10px;
}
.detail-block {
  margin-top: 17px;
}
.detail-block h4 {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-block p {
  margin: 0;
}
.detail-block ul {
  margin: 0;
  padding-left: 17px;
}
.notes-label {
  display: block;
  margin-top: 17px;
  font-size: 11px;
  color: var(--green);
  font-weight: 800;
}
.notes-label textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  margin-top: 7px;
  background: #080b13;
  color: white;
  border: 1px solid #363b4b;
  border-radius: 7px;
  padding: 10px;
  resize: vertical;
  font-size: 12px;
}
.detail-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.detail-buttons button {
  padding: 9px 10px;
  border: 1px solid #a774da67;
  border-radius: 7px;
  background: #a774da19;
  color: white;
  font-size: 11px;
  font-weight: 800;
}
.detail-buttons button:first-child {
  background: #b5ff4617;
  border-color: #b5ff4680;
  color: var(--green);
}
@keyframes float {
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}
@media (max-width: 1200px) {
  .filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .search-wrap {
    grid-column: 1/-1;
  }
  .sprite-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .achievement-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .sidebar {
    width: 75px;
    min-width: 75px;
    padding: 17px 8px;
  }
  .brand {
    padding: 0 4px 20px;
    justify-content: center;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand div,
  .side-caption,
  .sidebar nav button:not(.active) {
    font-size: 0;
  }
  .sidebar nav button {
    justify-content: center;
    padding: 12px 2px;
    font-size: 0;
  }
  .sidebar nav button span {
    font-size: 23px;
  }
  .sidebar-footer {
    font-size: 0;
    text-align: center;
    padding: 15px 2px;
  }
  .sidebar-footer small {
    display: none;
  }
  .main-content {
    padding: 0 22px;
  }
  .hero-emblem {
    width: 210px;
  }
  .hero-emblem img {
    width: 130px;
  }
  .orbit-one {
    width: 170px;
    height: 170px;
  }
  .orbit-two {
    width: 200px;
    height: 95px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    width: 100%;
    min-width: 0;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 7px 10px;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid #ffffff19;
  }
  .brand {
    padding: 0;
    border: 0;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .sidebar nav {
    display: flex;
    flex: 1;
    justify-content: space-around;
  }
  .sidebar nav button,
  .sidebar nav button:not(.active) {
    font-size: 0;
    min-width: 42px;
    padding: 6px;
  }
  .sidebar nav button span {
    font-size: 21px;
  }
  .sidebar-footer {
    display: none;
  }
  .main-content {
    padding: 0 14px;
  }
  .topbar {
    height: 57px;
  }
  .breadcrumb {
    font-size: 8px;
  }
  .top-actions {
    gap: 5px;
  }
  .local-pill {
    font-size: 0;
    padding: 7px;
  }
  .local-pill i {
    margin: 0;
  }
  .top-actions button {
    font-size: 10px;
    padding: 8px;
  }
  .hero {
    margin: 18px 0 31px;
    min-height: 290px;
    padding: 27px 22px;
  }
  .hero h1 {
    font-size: 45px;
  }
  .hero p {
    max-width: 300px;
    font-size: 12px;
  }
  .hero-emblem {
    position: absolute;
    right: -34px;
    top: 25px;
    width: 165px;
    height: 190px;
    opacity: 0.48;
  }
  .hero-emblem img {
    width: 100px;
  }
  .orbit-one {
    width: 135px;
    height: 135px;
  }
  .orbit-two {
    width: 175px;
    height: 80px;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
  .hero-actions button {
    padding: 10px 11px;
    font-size: 10px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 14px;
    min-height: 105px;
  }
  .metric strong {
    font-size: 31px;
  }
  .metric-icon {
    font-size: 42px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 9px;
  }
  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .glass-panel {
    padding: 17px;
  }
  .page-heading {
    padding: 26px 0 20px;
  }
  .gallery-panel {
    padding: 0 11px 18px;
  }
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .filter-bar select {
    font-size: 10px;
  }
  .gallery-actions {
    align-items: start;
    flex-direction: column;
  }
  .gallery-actions button {
    font-size: 10px;
    padding: 8px;
  }
  .sprite-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .art-button {
    height: 135px;
  }
  .art-button img {
    width: 120px;
    height: 120px;
  }
  .card-body {
    padding: 9px;
  }
  .card-body h3 {
    font-size: 13px;
  }
  .card-top {
    left: 7px;
    right: 7px;
    top: 7px;
  }
  .mini-label {
    font-size: 8px;
  }
  .map-board {
    aspect-ratio: 1;
  }
  .map-tools select {
    order: 3;
    width: 100%;
    flex: auto;
  }
  #detail-content {
    grid-template-columns: 1fr;
  }
  .detail-art {
    min-height: 245px;
  }
  .detail-art img {
    max-height: 220px;
  }
  .detail-copy {
    padding: 20px;
  }
  .detail-copy h2 {
    font-size: 26px;
  }
}
@media (max-width: 380px) {
  .sprite-grid {
    grid-template-columns: 1fr;
  }
  .art-button {
    height: 180px;
  }
  .art-button img {
    width: 160px;
    height: 160px;
  }
  .hero h1 {
    font-size: 39px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

[hidden] {
  display: none !important;
}
