:root {
  color-scheme: dark;
  background: #04050b;
  color: #fbf6ff;
  font-family: Inter, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

.mobile-note {
  display: none;
  margin: 0;
  padding: .55rem .8rem;
  background: #181126;
  font-size: .85rem;
}

.scene-scroll { overflow-x: auto; }
.canvas {
  position: relative;
  width: min(100%, 1672px);
  min-width: 1060px;
  margin-inline: auto;
}

.reference { display: block; width: 100%; height: auto; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.header-layer { z-index: 2; }
.layer > nav, .layer > section { display: contents; }
.positioned { position: absolute; }
.hotspot, .search { pointer-events: auto; }
.hotspot {
  display: block;
  padding: 0;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  cursor: pointer;
}

.hotspot:hover, .hotspot:focus-visible, .hotspot:target {
  outline: 2px solid #81efff;
  outline-offset: 2px;
  background: #59e4ff10;
}

.anchor { width: 1px; height: 1px; scroll-margin: 12px; }
.anchor:focus { outline: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.search { font-size: clamp(.8rem, 1vw, 1rem); }
.search input {
  width: 100%;
  height: 100%;
  padding: 0 2.4em 0 .8em;
  border: 1px solid transparent;
  border-radius: .48rem;
  background: transparent;
  color: transparent;
  font: inherit;
}

.search input::placeholder { color: transparent; }
.search input:focus, .search input:not(:placeholder-shown) {
  border-color: #b38afa;
  background: #121522;
  color: #fff;
}

.search input:focus::placeholder { color: #c8bfd3; }
.search button {
  position: absolute;
  inset: 0 0 0 auto;
  width: 2.25em;
  padding: 0;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.search:focus-within button::before,
.search:has(input:not(:placeholder-shown)) button::before {
  content: "";
  display: block;
  position: absolute;
  top: 27%;
  left: 27%;
  width: .74em;
  height: .74em;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search:focus-within button::after,
.search:has(input:not(:placeholder-shown)) button::after {
  content: "";
  display: block;
  position: absolute;
  top: 57%;
  left: 56%;
  width: .42em;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left;
}

.results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 15rem;
  max-height: 17rem;
  overflow-y: auto;
  padding: .5rem;
  border: 1px solid #a856dc;
  border-radius: .65rem;
  background: #121022;
  box-shadow: 0 .5rem 2rem #06030dc9;
}

.results ul { list-style: none; margin: 0; padding: 0; }
.results a { display: block; padding: .4rem .55rem; text-decoration: none; }
.results a:hover, .results a:focus-visible { background: #382252; }
.results p { margin: .35rem .55rem; }
a { color: #efceff; }

.info {
  width: min(calc(100% - 2rem), 30rem);
  padding: 1.25rem;
  border: 1px solid #b952ec;
  border-radius: .9rem;
  background: #121022;
  color: #fbf6ff;
  box-shadow: 0 0 2rem #bd4aff55;
}

.info::backdrop { background: #02030ac9; }
.info h2 { margin: 0 0 .6rem; }
.info p { line-height: 1.5; }
.info-actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.info button {
  padding: .45rem .7rem;
  border: 1px solid #bd76ec;
  border-radius: .45rem;
  background: #362149;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  max-width: 1672px;
  margin-inline: auto;
  padding: 1rem;
  color: #bdb0cb;
  font-size: .8rem;
}

.footer nav { display: flex; flex-wrap: wrap; gap: .85rem; }

@media (max-width: 1059px) {
  .mobile-note { display: block; }
}

.cirlix-mainbar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #080917;
  border-bottom: 1px solid #a241d8;
  box-shadow: 0 4px 20px #9d2bea2a;
}

.cirlix-mainbar-inner {
  display: flex;
  align-items: center;
  gap: clamp(.45rem, 1.1vw, 1.1rem);
  width: min(100%, 1672px);
  min-height: 70px;
  margin-inline: auto;
  padding: .38rem clamp(.75rem, 3vw, 3rem);
}

.cirlix-mainbar .forum-brand { flex-shrink: 0; }
.cirlix-mainnav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: clamp(.2rem, .6vw, .65rem);
  min-width: 0;
}

.cirlix-mainnav a, .cirlix-guest a {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  justify-content: center;
  padding: .48rem clamp(.3rem, .57vw, .7rem);
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fbf7ff;
  font-weight: 750;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
}

.cirlix-mainnav a:hover, .cirlix-mainnav a[aria-current="page"],
.cirlix-guest .cirlix-register {
  border-color: #cb58f5;
  background: linear-gradient(125deg, #5d0a98, #a621c2 77%, #c140eb);
  box-shadow: 0 0 14px #c83cff69, inset 0 -2px 7px #f2b7ff48;
}

.cirlix-guest {
  display: flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}

.cirlix-bar-search { display: flex; align-items: stretch; gap: .25rem; flex: 0 1 10.75rem; margin: 0; }
.cirlix-bar-search input {
  width: 100%;
  min-width: 5rem;
  padding: .45rem .65rem;
  border: 1px solid #70608a;
  border-radius: 8px;
  background: #101324;
  color: #fff;
  font: inherit;
  font-size: .84rem;
}

.cirlix-bar-search button {
  padding: .3rem .48rem;
  border: 1px solid #70608a;
  border-radius: 8px;
  background: #101324;
  color: #fff;
  cursor: pointer;
}

.cirlix-profile {
  position: relative;
  flex: 0 0 auto;
  max-width: 15rem;
  margin: 0;
  color: #fbf7ff;
}

.cirlix-profile > summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: .55rem;
  padding: .23rem .62rem .23rem .27rem;
  border: 1px solid #cb58f5;
  border-radius: 9px;
  list-style: none;
  cursor: pointer;
  background: linear-gradient(125deg, #19112f, #2e1450);
  box-shadow: 0 0 13px #be36f657;
  white-space: nowrap;
}

.cirlix-profile > summary::-webkit-details-marker { display: none; }
.cirlix-profile > summary::after { content: "▾"; margin-left: auto; color: #fa86f5; }
.cirlix-profile[open] > summary::after { content: "▴"; }
.cirlix-profile > summary:focus-visible { outline: 2px solid #77f0ff; outline-offset: 2px; }
.cirlix-profile-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .84rem; font-weight: 800; }
.cirlix-profile-avatar {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #9ae9ff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #15447a, #8c24b0);
  font-size: .82rem;
  font-weight: 850;
}

.cirlix-profile-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cirlix-profile-avatar [hidden], .cirlix-profile[hidden] { display: none; }
.cirlix-profile-panel {
  position: absolute;
  z-index: 8;
  top: calc(100% + .4rem);
  right: 0;
  width: min(16rem, calc(100vw - 1.5rem));
  padding: .45rem;
  border: 1px solid #c25ded;
  border-radius: .7rem;
  background: #111225;
  box-shadow: 0 10px 26px #05030dd9, 0 0 15px #b82dec42;
}

.cirlix-profile-panel a, .cirlix-profile-panel button {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: 100%;
  padding: .55rem .65rem;
  border: 0;
  border-radius: .36rem;
  background: transparent;
  color: #fbf7ff;
  font: inherit;
  font-size: .85rem;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.cirlix-profile-panel a:hover, .cirlix-profile-panel button:hover,
.cirlix-profile-panel a:focus-visible, .cirlix-profile-panel button:focus-visible { background: #382252; }
.cirlix-profile-panel form { margin: 0; }

.cirlix-home-profile {
  position: absolute;
  inset: 0 0 auto auto;
  z-index: 4;
  width: 17.8%;
  height: 7.39%;
  max-width: none;
  padding-inline: .75rem;
  background: #080917;
  pointer-events: auto;
}

.cirlix-home-profile > summary {
  position: absolute;
  top: 50%;
  right: .7rem;
  left: .7rem;
  transform: translateY(-50%);
  min-height: 0;
  height: min(77%, 47px);
}

.cirlix-home-profile .cirlix-profile-avatar {
  width: clamp(22px, 2.3vw, 34px);
  height: clamp(22px, 2.3vw, 34px);
  flex-basis: auto;
  aspect-ratio: 1;
}

.cirlix-home-profile .cirlix-profile-panel { right: .7rem; }
.scene-scroll:has(.cirlix-home-profile[open]) .header-layer { z-index: 10; }

@media (max-width: 1240px) {
  .cirlix-mainbar-inner { flex-wrap: wrap; }
  .cirlix-mainnav { order: 4; flex: 1 0 100%; overflow-x: auto; padding-bottom: .15rem; }
  .cirlix-mainbar .cirlix-bar-search { margin-left: auto; }
}

@media (max-width: 580px) {
  .cirlix-mainbar .cirlix-bar-search { display: none; }
  .cirlix-mainbar .cirlix-guest, .cirlix-mainbar .cirlix-profile { margin-left: auto; }
  .cirlix-mainbar .cirlix-profile { max-width: 52%; }
}
