:root {
  --bg: #080b0e;
  --panel: rgba(14, 18, 22, 0.78);
  --panel-strong: rgba(7, 10, 12, 0.92);
  --line: rgba(201, 220, 224, 0.22);
  --line-strong: rgba(232, 238, 230, 0.62);
  --text: #eff4f1;
  --muted: #96a5a6;
  --cyan: #20c7df;
  --amber: #c99a56;
  --lime: #a7d742;
  --danger: #dd4f41;
  --font-ui: "Inter", "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-condensed: "Arial Narrow", "Impact", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background-color: var(--bg);
  background:
    radial-gradient(circle at 80% 10%, rgba(32, 199, 223, 0.16), transparent 32rem),
    radial-gradient(circle at 18% 90%, rgba(201, 154, 86, 0.12), transparent 32rem),
    linear-gradient(120deg, #06080a 0%, #0d1114 54%, #050606 100%);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
  opacity: 0.32;
}

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

img {
  display: block;
  max-width: 100%;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  gap: 26px;
  padding: 8vw;
  background: #090b0d;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__mark {
  font-family: var(--font-condensed);
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.85;
  color: rgba(239, 244, 241, 0.76);
  letter-spacing: 0;
}

.loader__bar {
  width: min(620px, 76vw);
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  transform-origin: left;
  animation: loadbar 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loader__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

@keyframes loadbar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 7, 9, 0.88), rgba(5, 7, 9, 0.5));
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(18px, 3vw, 42px);
  min-width: 280px;
}

.brand__sigil {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.nav {
  display: flex;
  align-items: stretch;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: grid;
  place-items: center;
  min-width: 104px;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  color: rgba(239, 244, 241, 0.82);
  font-size: 0.84rem;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a.is-active,
.nav a:hover {
  color: #071015;
  background: var(--cyan);
}

.side-rail {
  position: fixed;
  right: 26px;
  top: 50%;
  z-index: 18;
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.side-rail__index {
  color: var(--cyan);
  font-family: var(--font-condensed);
  font-size: 2.8rem;
  line-height: 1;
}

.side-rail__bar {
  position: relative;
  display: block;
  width: 2px;
  height: 180px;
  background: rgba(255, 255, 255, 0.15);
}

.side-rail__bar i {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 0;
  background: var(--cyan);
}

.section {
  position: relative;
  min-height: 100vh;
  padding: clamp(96px, 12vh, 140px) clamp(22px, 8vw, 120px) clamp(72px, 10vh, 110px);
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__letter {
  position: absolute;
  left: -4vw;
  bottom: -3vh;
  color: rgba(32, 199, 223, 0.2);
  font-family: var(--font-condensed);
  font-size: clamp(9rem, 25vw, 26rem);
  font-weight: 900;
  line-height: 0.7;
}

.grid--hero {
  position: absolute;
  inset: 72px 0 0 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.18) 48% 48.1%, transparent 48.1%),
    linear-gradient(transparent 0 56%, rgba(255, 255, 255, 0.14) 56% 56.1%, transparent 56.1%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 18px;
  font-family: var(--font-condensed);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(4.7rem, 12vw, 12rem);
}

h2 {
  font-size: clamp(3.2rem, 7vw, 8rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.hero__lead,
.section__head p,
.intel-card p,
.profile-console p,
.join-console p,
.empty-gallery p {
  max-width: 720px;
  color: #c7d2d0;
  line-height: 1.8;
}

.hero__actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.button--primary {
  border-color: transparent;
  background: var(--cyan);
  color: #061014;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 820px;
  margin: 34px 0 0;
  border: 1px solid var(--line);
  background: rgba(5, 8, 10, 0.56);
}

.status-strip div {
  padding: 16px;
  border-right: 1px solid var(--line);
}

.status-strip div:last-child {
  border-right: 0;
}

.status-strip dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.status-strip dd {
  margin: 0;
  font-weight: 800;
}

.hero__visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 14% 4% 10%;
  border: 1px solid rgba(32, 199, 223, 0.45);
  transform: skewX(-8deg);
}

.hero__visual img {
  width: min(620px, 92vw);
  filter: drop-shadow(0 0 22px rgba(201, 154, 86, 0.28));
  mix-blend-mode: screen;
}

.scan-card {
  position: absolute;
  right: 0;
  bottom: 36px;
  width: 220px;
  padding: 16px;
  border: 1px solid rgba(32, 199, 223, 0.55);
  background: rgba(5, 9, 11, 0.82);
}

.scan-card span,
.scan-card small,
.join-console__main span,
.profile-console__top span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.scan-card strong,
.join-console__main strong {
  display: block;
  margin: 6px 0;
  color: var(--cyan);
  font-size: 1.4rem;
}

.section__head {
  margin-bottom: 36px;
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.intel-card {
  min-height: 280px;
  padding: clamp(22px, 3vw, 38px);
  background: linear-gradient(145deg, rgba(14, 18, 22, 0.94), rgba(8, 12, 15, 0.86));
}

.tag {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 8px;
  background: var(--amber);
  color: #080b0e;
  font-size: 0.72rem;
  font-weight: 900;
}

.intel-card time {
  display: block;
  margin-top: 34px;
  color: var(--cyan);
  font-family: var(--font-condensed);
  font-size: 1.8rem;
}

.members__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.roster-panel,
.profile-console {
  background: var(--panel-strong);
}

.roster-panel {
  min-height: 480px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.member-card {
  position: relative;
  display: block;
  min-height: 560px;
  padding: 0;
  border: 0;
  background: #05080a;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
}

.member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(32, 199, 223, 0.18), transparent 20%, transparent 80%, rgba(201, 154, 86, 0.12));
  transition: border-color 0.2s ease, background 0.2s ease;
}

.member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.35s ease, opacity 0.25s ease, filter 0.25s ease;
}

.member-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  text-align: left;
}

.member-card b,
.member-card small {
  display: block;
}

.member-card b {
  color: var(--text);
  font-family: var(--font-condensed);
  font-size: clamp(1.6rem, 2.7vw, 3rem);
  line-height: 0.9;
}

.member-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.member-card:hover img,
.member-card:focus-visible img,
.member-card.is-active img {
  transform: scale(1.04);
  opacity: 1;
  filter: saturate(1.08) contrast(1.08);
}

.member-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.member-card.is-active::before {
  border-color: var(--cyan);
  background:
    linear-gradient(180deg, rgba(32, 199, 223, 0.04), rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(90deg, rgba(32, 199, 223, 0.28), transparent 24%, transparent 76%, rgba(201, 154, 86, 0.2));
}

.profile-console {
  padding: clamp(24px, 4vw, 44px);
}

.profile-console__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.profile-console__top strong {
  color: var(--cyan);
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 36px;
}

.profile-tabs button {
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.profile-tabs button.is-active {
  background: var(--cyan);
  color: #071015;
}

.map-board {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 28% 30%, rgba(32, 199, 223, 0.16), transparent 20rem),
    radial-gradient(circle at 72% 72%, rgba(201, 154, 86, 0.16), transparent 20rem),
    rgba(7, 10, 12, 0.88);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
}

.map-board__route {
  position: absolute;
  border: 1px solid rgba(32, 199, 223, 0.55);
}

.route-a {
  left: 12%;
  top: 22%;
  width: 70%;
  height: 38%;
  transform: skewX(-18deg);
}

.route-b {
  right: 16%;
  bottom: 18%;
  width: 56%;
  height: 30%;
  border-color: rgba(201, 154, 86, 0.58);
  transform: skewX(12deg);
}

.map-node {
  position: absolute;
  width: 170px;
  padding: 14px;
  border-left: 4px solid var(--cyan);
  background: rgba(5, 8, 10, 0.82);
}

.map-node b,
.map-node small {
  display: block;
}

.map-node small {
  margin-top: 6px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.node-a { left: 12%; top: 18%; }
.node-b { right: 18%; top: 24%; border-color: var(--amber); }
.node-c { left: 32%; bottom: 22%; }
.node-d { right: 26%; bottom: 14%; border-color: var(--lime); }

.map-board__watermark {
  position: absolute;
  left: 4%;
  bottom: 2%;
  color: rgba(255, 255, 255, 0.08);
  font-family: var(--font-condensed);
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 0.8;
}

.empty-gallery {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 40px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(32, 199, 223, 0.08), transparent 36%),
    rgba(7, 10, 12, 0.72);
  text-align: center;
}

.empty-gallery span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.empty-gallery strong {
  color: var(--cyan);
  font-family: var(--font-condensed);
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.9;
}

.gallery-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.gallery-live,
.gallery-submit {
  background: rgba(6, 9, 11, 0.92);
}

.gallery-live {
  padding: clamp(22px, 4vw, 36px);
}

.gallery-live__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.gallery-live__head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.gallery-live__head strong,
.gallery-submit h3 {
  font-family: var(--font-condensed);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.92;
}

.gallery-back {
  border: 1px solid rgba(32, 199, 223, 0.45);
  background: rgba(32, 199, 223, 0.08);
  color: var(--cyan);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 9px 12px;
}

.gallery-back[hidden],
.album-board[hidden],
.gallery-grid[hidden] {
  display: none;
}

.gallery-view--entering,
.gallery-view--leaving {
  will-change: opacity, transform, filter;
}

.album-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.album-card,
.gallery-item {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 15, 18, 0.92);
}

.album-card {
  min-height: 260px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 18px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.album-card__cover {
  min-height: 150px;
  margin: -18px -18px 4px;
  background:
    linear-gradient(135deg, rgba(32, 199, 223, 0.12), transparent 42%),
    rgba(3, 6, 8, 0.9);
  background-position: center;
  background-size: cover;
  transition: background-image 0.35s ease, opacity 0.35s ease;
}

.album-card__cover--empty {
  background:
    linear-gradient(135deg, rgba(32, 199, 223, 0.12), transparent 42%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.055) 0 1px,
      transparent 1px 12px
    ),
    rgba(3, 6, 8, 0.9);
}

.album-card strong {
  font-family: var(--font-condensed);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.92;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.album-card span {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(201, 154, 86, 0.45);
  background: rgba(201, 154, 86, 0.1);
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 8px 10px;
}

.album-card p,
.gallery-item p,
.gallery-submit p,
.gallery-submit label span,
.gallery-submit [data-album-status],
.gallery-submit [data-gallery-status] {
  color: #c7d2d0;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.gallery-item {
  min-height: 220px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
}

.gallery-item strong,
.gallery-item span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gallery-item__media {
  width: calc(100% + 32px);
  max-width: none;
  height: 160px;
  margin: -16px -16px 4px;
  overflow: hidden;
  border: 0;
  background: #05080a;
  cursor: zoom-in;
  padding: 0;
}

.gallery-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #05080a;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item__media:hover img,
.gallery-item__media:focus-visible img {
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.045);
}

.gallery-item span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    linear-gradient(135deg, rgba(32, 199, 223, 0.16), transparent 36%),
    rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0;
  border: 1px solid rgba(32, 199, 223, 0.32);
  background: rgba(4, 8, 10, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(22px) scale(0.98);
  transition: transform 0.24s cubic-bezier(.16,1,.3,1);
}

.lightbox.is-open .lightbox__panel {
  transform: translateY(0) scale(1);
}

.lightbox__panel img {
  display: block;
  width: 100%;
  max-height: min(74vh, 760px);
  object-fit: contain;
  background: #030608;
}

.lightbox__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 14px 18px;
}

.lightbox__caption span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.lightbox__caption strong {
  color: var(--text);
  font-size: 0.95rem;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.72);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.is-lightbox-open {
  overflow: hidden;
}

.gallery-submit {
  padding: clamp(22px, 4vw, 34px);
}

.gallery-submit h3:not(:first-child) {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.gallery-submit form {
  display: grid;
  gap: 14px;
}

.gallery-submit label {
  display: grid;
  gap: 8px;
}

.gallery-submit label span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.gallery-submit input,
.gallery-submit select,
.gallery-submit textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(3, 6, 8, 0.86);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.gallery-submit textarea {
  min-height: 132px;
  resize: vertical;
  padding: 12px;
  line-height: 1.7;
}

.circle-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.circle-tile {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 32px);
  background:
    linear-gradient(145deg, rgba(32, 199, 223, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(12, 17, 20, 0.96), rgba(5, 8, 10, 0.96));
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}

.circle-tile:nth-child(1),
.circle-tile:nth-child(2) {
  grid-column: span 3;
}

.circle-tile:nth-child(n + 3) {
  grid-column: span 2;
}

.circle-tile::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.circle-tile::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: 18px;
  width: 96px;
  height: 2px;
  background: var(--cyan);
  transform: rotate(-36deg);
  opacity: 0.68;
}

.circle-tile strong,
.circle-tile span,
.circle-tile p,
.circle-tile em {
  position: relative;
  z-index: 1;
}

.circle-tile__code {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.circle-tile strong {
  margin: 28px 0 12px;
  font-family: var(--font-condensed);
  font-size: clamp(2.1rem, 4vw, 4.5rem);
  line-height: 0.92;
}

.circle-tile p {
  max-width: 460px;
  margin-bottom: 28px;
  color: #c7d2d0;
  line-height: 1.7;
}

.circle-tile em {
  align-self: flex-start;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--cyan);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.circle-tile:hover,
.circle-tile:focus-visible {
  transform: translateY(-4px);
  background:
    linear-gradient(145deg, rgba(32, 199, 223, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(14, 22, 26, 0.98), rgba(5, 8, 10, 0.98));
}

.circle-tile:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.circle-tile--music::after { background: var(--amber); }
.circle-tile--food::after { background: var(--lime); }
.circle-tile--photo::after { background: var(--line-strong); }
.circle-tile--lounge::after { background: var(--danger); }

.join-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  background: linear-gradient(110deg, rgba(5, 8, 10, 0.92), rgba(13, 18, 22, 0.74));
}

.join-console__main strong {
  font-family: var(--font-condensed);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.9;
}

.join-actions {
  justify-content: flex-end;
  margin: 0;
}

.backend-console {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 1px;
  margin-top: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.backend-panel {
  padding: clamp(24px, 4vw, 40px);
  background: rgba(6, 9, 11, 0.92);
}

.backend-panel h3 {
  font-family: var(--font-condensed);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.92;
}

.backend-panel p,
.backend-panel label span,
.backend-panel [data-main-auth-status],
.backend-panel [data-submission-status] {
  color: #c7d2d0;
}

.backend-panel form {
  display: grid;
  gap: 14px;
}

.backend-panel label {
  display: grid;
  gap: 8px;
}

.backend-panel label span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.backend-panel input,
.backend-panel select,
.backend-panel textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(3, 6, 8, 0.86);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.backend-panel textarea {
  min-height: 150px;
  resize: vertical;
  padding: 12px;
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 8vw, 120px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #050607;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

@media (max-width: 1060px) {
  .site-header {
    position: sticky;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    overflow-x: auto;
  }

  .nav a {
    min-width: 110px;
    min-height: 48px;
  }

  .hero,
  .members__layout,
  .join-console,
  .backend-console,
  .gallery-console {
    grid-template-columns: 1fr;
  }

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

  .member-card {
    min-height: 440px;
  }

  .hero__visual {
    min-height: 420px;
  }

  .side-rail {
    display: none;
  }

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

  .circle-board {
    grid-template-columns: 1fr;
  }

  .album-board,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .circle-tile:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .section {
    min-height: auto;
    padding: 82px 18px 58px;
  }

  h1 {
    font-size: clamp(3.7rem, 20vw, 6rem);
  }

  h2 {
    font-size: clamp(2.8rem, 16vw, 5rem);
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .status-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-strip div:last-child {
    border-bottom: 0;
  }

  .scan-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .hero__visual {
    min-height: auto;
  }

  .member-card {
    min-height: 320px;
  }

  .map-board {
    min-height: 520px;
  }

  .map-node {
    width: 140px;
  }

  .circle-tile {
    min-height: 220px;
  }

  .node-a { left: 6%; top: 12%; }
  .node-b { right: 6%; top: 24%; }
  .node-c { left: 8%; bottom: 26%; }
  .node-d { right: 8%; bottom: 12%; }

  .footer {
    flex-direction: column;
  }
}

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