html {
  min-height: 100%;
  background: #03040a;
  scroll-behavior: smooth;
}

body.guild-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at 50% -16%, rgba(255, 190, 126, 0.14), transparent 30%),
    radial-gradient(circle at 10% 8%, rgba(255, 79, 184, 0.16), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(93, 168, 255, 0.13), transparent 34%),
    linear-gradient(180deg, #07070f 0%, #060711 48%, #03040a 100%) !important;
}

body.guild-page a {
  color: inherit;
  text-decoration: none;
}

body.guild-page::before,
body.guild-page::after {
  display: none !important;
}

.maintenance-owner-banner {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(255, 77, 166, 0.28), rgba(93, 168, 255, 0.18));
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 18px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 101, 191, 0.08), transparent 36%),
    rgba(6, 7, 15, 0.84);
  backdrop-filter: blur(18px);
}

.header-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo {
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 0 17px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.055);
  font-size: 16px;
  font-weight: 850;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-btn {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 900;
}

.mobile-nav-overlay,
.mobile-nav-panel {
  display: none;
}

.site-footer {
  width: min(1360px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 22px 0 34px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  line-height: 1.45;
}

.guild-main {
  width: min(1360px, calc(100vw - 40px)) !important;
  display: grid !important;
  padding: 28px 0 56px !important;
  margin: 0 auto !important;
  gap: 24px !important;
}

body.ui-polish-ready .guild-main {
  padding: 28px 0 56px !important;
}

.guild-scene {
  --guild-mouse-x: 0px;
  --guild-mouse-y: 0px;
  position: relative;
  min-height: min(820px, calc(100svh - 120px));
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(3, 4, 10, 0.02), rgba(3, 4, 10, 0.42) 52%, rgba(3, 4, 10, 0.96)),
    radial-gradient(ellipse at 52% 17%, rgba(255, 211, 143, 0.22), transparent 24%),
    radial-gradient(circle at 15% 15%, rgba(255, 79, 184, 0.2), transparent 34%),
    radial-gradient(circle at 86% 16%, rgba(93, 168, 255, 0.17), transparent 36%),
    linear-gradient(135deg, #291429 0%, #111327 55%, #050711 100%);
  box-shadow:
    0 38px 120px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -90px 120px rgba(0, 0, 0, 0.42);
  isolation: isolate;
}

.guild-scene-bg,
.guild-scene-depth,
.guild-scene-floor,
.guild-scene-particles,
.guild-scene-stage {
  position: absolute;
  inset: 0;
}

.guild-scene-bg {
  z-index: 0;
  background:
    linear-gradient(90deg,
      transparent 0 5.4%,
      rgba(255, 255, 255, 0.07) 5.6% 6%,
      transparent 6.2% 18%,
      rgba(255, 255, 255, 0.05) 18.2% 18.6%,
      transparent 19% 81%,
      rgba(255, 255, 255, 0.05) 81.2% 81.6%,
      transparent 82% 94%,
      rgba(255, 255, 255, 0.07) 94.2% 94.6%,
      transparent 95% 100%),
    radial-gradient(ellipse at 50% 22%, rgba(255, 217, 154, 0.14), transparent 30%);
  transform: translate3d(calc(var(--guild-mouse-x) * -0.16), calc(var(--guild-mouse-y) * -0.1), 0);
}

.guild-scene-depth {
  z-index: 1;
  pointer-events: none;
}

.guild-scene-depth::before,
.guild-scene-depth::after {
  content: "";
  position: absolute;
  top: 12%;
  width: 170px;
  height: 290px;
  border-radius: 90px 90px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.08) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    radial-gradient(circle at 50% 17%, rgba(121, 178, 255, 0.18), transparent 54%),
    rgba(5, 8, 18, 0.42);
  box-shadow: inset 0 0 52px rgba(0, 0, 0, 0.46);
}

.guild-scene-depth::before { left: 8%; }
.guild-scene-depth::after { right: 8%; }

.guild-scene-window {
  position: absolute;
  top: 11%;
  width: 128px;
  height: 240px;
  background:
    radial-gradient(ellipse at 50% 26%, rgba(255, 220, 145, 0.55), transparent 26%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 105, 190, 0.18), transparent 44%);
}

.guild-scene-window::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 2px;
  height: 70px;
  background: rgba(255, 255, 255, 0.16);
}

.guild-scene-window::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44px;
  width: 50px;
  height: 30px;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 232, 168, 0.88), rgba(146, 82, 48, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 42px rgba(255, 190, 98, 0.34);
  transform: translateX(-50%);
}

.guild-scene-window--left { left: 22%; }
.guild-scene-window--right { right: 20%; }

.guild-scene-light {
  position: absolute;
  left: 50%;
  top: 4%;
  width: min(620px, 62vw);
  height: 62%;
  background: radial-gradient(ellipse at 50% 15%, rgba(255, 221, 168, 0.28), transparent 58%);
  filter: blur(2px);
  transform: translateX(-50%);
}

.guild-scene-rune {
  position: absolute;
  left: 50%;
  bottom: 13%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 101, 191, 0.18);
  background:
    radial-gradient(circle, rgba(255, 101, 191, 0.17), transparent 54%),
    conic-gradient(from 45deg, transparent 0 10%, rgba(255, 101, 191, 0.23) 10% 12%, transparent 12% 25%, rgba(93, 168, 255, 0.18) 25% 27%, transparent 27% 100%);
  opacity: 0.78;
  transform: translateX(-50%) rotateX(66deg);
}

.guild-scene-floor {
  z-index: 2;
  top: auto;
  left: -6%;
  right: -6%;
  bottom: -8%;
  height: 45%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 106px),
    repeating-linear-gradient(12deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 110px),
    linear-gradient(180deg, rgba(121, 70, 48, 0.34), rgba(15, 9, 12, 0.98));
  opacity: 0.9;
  transform: perspective(720px) rotateX(60deg);
  transform-origin: bottom;
}

.guild-scene-particles {
  z-index: 3;
  pointer-events: none;
}

.guild-scene-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 168, 220, 0.52);
  box-shadow: 0 0 18px rgba(255, 101, 191, 0.42);
  animation: guildDust 7s ease-in-out infinite;
}

.guild-scene-particles span:nth-child(1) { left: 18%; top: 25%; animation-delay: 0s; }
.guild-scene-particles span:nth-child(2) { left: 44%; top: 18%; animation-delay: -2s; }
.guild-scene-particles span:nth-child(3) { left: 78%; top: 24%; animation-delay: -4s; }
.guild-scene-particles span:nth-child(4) { left: 30%; top: 62%; animation-delay: -1s; }
.guild-scene-particles span:nth-child(5) { left: 67%; top: 58%; animation-delay: -5s; }

.guild-scene-stage {
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.58fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
}

.guild-scene-copy {
  max-width: 680px;
  align-self: center;
  animation: guildSceneReveal 0.72s ease both 0.12s;
}

.guild-kicker {
  width: fit-content;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 126, 201, 0.34);
  background: rgba(255, 126, 201, 0.1);
  color: #ffb3df;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guild-scene-copy h1 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: 0 !important;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.62);
}

.guild-scene-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(241, 235, 255, 0.8);
  font-size: 17px;
  line-height: 1.55;
}

.guild-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guild-btn,
.guild-board-link,
.guild-login-cta,
.guild-soon {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.guild-btn:hover,
.guild-btn:focus-visible,
.guild-board-link:hover,
.guild-board-link:focus-visible,
.guild-login-cta:hover,
.guild-login-cta:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.guild-btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #ff5aa9, #ff7a59);
  box-shadow: 0 18px 42px rgba(255, 80, 172, 0.23);
}

.guild-btn.ghost {
  background: rgba(10, 12, 22, 0.34);
}

.guild-scene-counter {
  position: absolute;
  left: 30%;
  right: 22%;
  bottom: 7%;
  z-index: -1;
  height: 148px;
  border-radius: 36px 36px 18px 18px;
  background:
    linear-gradient(180deg, rgba(139, 84, 56, 0.9), rgba(46, 25, 24, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 96px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: guildCounterIn 0.7s ease both 0.32s;
}

.guild-scene-counter::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: -28px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(164, 99, 66, 0.96), rgba(84, 46, 39, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.guild-scene-counter-sign {
  position: absolute;
  left: 50%;
  top: -86px;
  min-width: 190px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 165, 0.14);
  background: rgba(15, 13, 22, 0.78);
  color: rgba(255, 231, 194, 0.78);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.guild-scene-counter-board {
  position: absolute;
  left: -46%;
  top: -116px;
  width: 260px;
  padding: 18px;
  display: grid;
  gap: 10px;
  border-radius: 22px;
  border: 1px solid rgba(255, 229, 178, 0.14);
  background: linear-gradient(180deg, rgba(79, 48, 39, 0.82), rgba(31, 20, 22, 0.9));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: rotate(-3deg);
}

.guild-scene-counter-board span {
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.guild-scene-token-card {
  justify-self: end;
  width: min(432px, 100%);
  animation: guildCardIn 0.64s ease both 0.92s;
}

.guild-current-card,
.guild-section,
.guild-side-card,
.guild-verified {
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 101, 191, 0.1), transparent 38%),
    radial-gradient(circle at 100% 8%, rgba(117, 173, 255, 0.08), transparent 34%),
    rgba(16, 17, 30, 0.76) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.guild-current-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 30px;
}

.guild-current-head,
.guild-progress-row,
.guild-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.guild-current-user {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.guild-current-user span,
.guild-current-material,
.guild-panel-section-label {
  color: rgba(222, 228, 240, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guild-current-user strong {
  overflow: hidden;
  color: #fff;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-current-material {
  max-width: 190px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-current-token {
  display: flex;
  justify-content: center;
  padding: 10px 0 8px;
}

.guild-current-meta {
  display: grid;
  gap: 8px;
}

.guild-current-meta h2,
.guild-section h2,
.guild-side-card h2,
.guild-verified h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.12;
}

.guild-current-meta p,
.guild-section p,
.guild-side-card p,
.guild-verified p {
  margin: 0;
  color: rgba(222, 228, 240, 0.74);
  font-size: 14px;
  line-height: 1.5;
}

.guild-progress {
  display: grid;
  gap: 10px;
}

.guild-progress-row {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.guild-progress-bar {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.guild-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff63bd, #9b5cff 56%, #5da8ff);
  box-shadow: 0 0 24px rgba(255, 99, 189, 0.34);
  transition: width 0.32s ease;
}

.guild-login-cta {
  width: 100%;
  border-color: transparent;
  background: linear-gradient(135deg, #ff5aa9, #ff7a59);
}

.guild-curator {
  position: absolute;
  left: 48%;
  bottom: 12%;
  z-index: 1;
  width: 220px;
  pointer-events: none;
  animation: guildCuratorIn 0.7s ease both 0.68s;
}

.guild-curator-img {
  position: relative;
  z-index: 2;
  width: 168px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.46));
}

.guild-curator-shadow {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 110px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(8px);
  transform: translateX(-50%);
}

.guild-curator-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: min(310px, 64vw);
  padding: 13px 14px;
  border-radius: 18px 18px 18px 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(12, 13, 24, 0.86);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.42;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.guild-content-shell {
  display: grid;
  gap: 22px;
}

.guild-section,
.guild-side-card,
.guild-verified {
  padding: 20px;
  border-radius: 28px;
}

.guild-section-head {
  align-items: end;
  margin-bottom: 18px;
}

.guild-board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 16px;
  align-items: stretch;
}

.guild-rank-ladder {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(82px, 1fr));
  gap: 10px;
  padding: 20px;
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(74, 45, 39, 0.48), rgba(13, 14, 24, 0.62)),
    rgba(255, 255, 255, 0.035);
  scrollbar-width: thin;
}

.guild-rank-ladder::before {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 101, 191, 0.2), rgba(93, 168, 255, 0.16));
  pointer-events: none;
}

.guild-ladder-step {
  position: relative;
  z-index: 1;
  min-width: 82px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 18, 0.58);
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.guild-ladder-step:hover,
.guild-ladder-step:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.guild-ladder-step.is-current {
  color: #fff;
  border-color: rgba(255, 101, 191, 0.34);
  background: rgba(255, 101, 191, 0.1);
}

.guild-ladder-step.is-passed {
  color: rgba(255, 255, 255, 0.78);
}

.guild-rank-detail {
  min-height: 190px;
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 101, 191, 0.12), transparent 42%),
    rgba(8, 9, 18, 0.54);
}

.guild-status-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
}

.guild-check-list {
  display: grid;
  gap: 9px;
}

.guild-check {
  min-height: 48px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 850;
}

.guild-check.is-complete {
  border-color: rgba(116, 230, 195, 0.2);
  background: rgba(116, 230, 195, 0.06);
}

.guild-check__mark {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #dffff5;
  font-size: 13px;
  font-weight: 950;
}

.guild-check strong {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  white-space: nowrap;
}

.guild-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guild-rank-card {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 166px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.06), transparent 38%),
    rgba(255, 255, 255, 0.038);
}

.guild-rank-card.is-current {
  border-color: rgba(255, 101, 191, 0.34);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 101, 191, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.046);
}

.guild-rank-card__token {
  grid-row: span 3;
  display: grid;
  place-items: center;
  min-width: 0;
}

.guild-rank-card h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.16;
}

.guild-rank-card p {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 850;
}

.guild-rank-card__copy {
  grid-column: 2;
  color: rgba(222, 228, 240, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.guild-unlocks {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.guild-unlocks span {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 850;
}

.guild-curator-desk {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1.18fr);
  gap: 16px;
  align-items: start;
}

.guild-dialogue-lines {
  display: grid;
  gap: 9px;
}

.guild-dialogue-line {
  padding: 12px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.guild-verified {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.guild-soon {
  color: rgba(255, 255, 255, 0.62);
  cursor: not-allowed;
}

body.guild-page .guild-token {
  --token-metal-1: #9ca3af;
  --token-metal-2: #545b66;
  --token-metal-3: #191d25;
  --token-glow: rgba(160, 170, 188, 0.18);
  --token-edge: rgba(255, 255, 255, 0.18);
  --token-accent: rgba(255, 255, 255, 0.18);
  position: relative;
  width: 164px;
  height: 62px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 38px;
  overflow: hidden;
  border-radius: 999px 18px 18px 999px;
  border: 1px solid var(--token-edge);
  color: #fff;
  background:
    linear-gradient(108deg, rgba(255, 255, 255, 0.32), transparent 20%, rgba(0, 0, 0, 0.28) 64%, rgba(255, 255, 255, 0.12)),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 8px),
    linear-gradient(145deg, var(--token-metal-1), var(--token-metal-2) 52%, var(--token-metal-3));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -16px 26px rgba(0, 0, 0, 0.24),
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 0 30px var(--token-glow);
  isolation: isolate;
  transform: rotate(-1.6deg);
}

body.guild-page .guild-token::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 0;
  border-radius: 999px 13px 13px 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.26);
}

body.guild-page .guild-token::after {
  content: "";
  position: absolute;
  inset: -34% -18%;
  z-index: 4;
  background:
    linear-gradient(112deg, transparent 0 29%, rgba(255, 255, 255, 0.32) 36%, transparent 46% 100%),
    radial-gradient(circle at 78% 36%, rgba(255, 255, 255, 0.18), transparent 22%);
  opacity: 0.42;
  mix-blend-mode: screen;
  pointer-events: none;
}

body.guild-page .guild-token__chain {
  position: absolute;
  left: -14px;
  top: 50%;
  z-index: 5;
  width: 34px;
  height: 22px;
  border-radius: 999px;
  border: 5px solid rgba(7, 8, 14, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-50%);
}

body.guild-page .guild-token__hole {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 6;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 45%, #020309 0 34%, rgba(255, 255, 255, 0.22) 38% 54%, rgba(0, 0, 0, 0.42) 56%);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.86), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transform: translateY(-50%);
}

body.guild-page .guild-token__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(5deg, rgba(0, 0, 0, 0.11) 0 1px, transparent 1px 17px),
    repeating-linear-gradient(104deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px);
  opacity: 0.75;
}

body.guild-page .guild-token__letter {
  position: relative;
  z-index: 3;
  width: 54px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.19), transparent 50%),
    rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.38), 0 8px 20px rgba(0, 0, 0, 0.28);
}

body.guild-page .guild-token__copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1;
}

body.guild-page .guild-token__rank-label {
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.guild-page .guild-token__title,
body.guild-page .guild-token__material {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.guild-page .guild-token__material {
  color: rgba(255, 255, 255, 0.58);
}

body.guild-page .guild-token--hero {
  width: min(340px, 100%);
  height: 128px;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 15px;
  padding: 18px 22px 18px 66px;
  border-radius: 34px 22px 22px 34px;
  transform: rotate(-2.6deg);
}

body.guild-page .guild-token--hero .guild-token__chain {
  left: -20px;
  width: 46px;
  height: 30px;
  border-width: 6px;
}

body.guild-page .guild-token--hero .guild-token__hole {
  left: 28px;
  width: 24px;
  height: 24px;
}

body.guild-page .guild-token--hero .guild-token__letter {
  width: 88px;
  height: 76px;
  border-radius: 22px;
  font-size: 68px;
}

body.guild-page .guild-token--hero .guild-token__rank-label {
  font-size: 25px;
}

body.guild-page .guild-token--hero .guild-token__title,
body.guild-page .guild-token--hero .guild-token__material {
  font-size: 10px;
}

body.guild-page .guild-token--card {
  width: 245px;
  height: 92px;
  grid-template-columns: 78px minmax(0, 1fr);
  padding: 14px 18px 14px 56px;
}

body.guild-page .guild-token--card .guild-token__hole {
  left: 24px;
  width: 20px;
  height: 20px;
}

body.guild-page .guild-token--card .guild-token__letter {
  width: 70px;
  height: 58px;
  font-size: 52px;
}

body.guild-page .guild-token--small {
  width: 72px;
  height: 34px;
  grid-template-columns: 1fr;
  padding: 0 8px 0 24px;
  border-radius: 999px 12px 12px 999px;
  transform: none;
}

body.guild-page .guild-token--small .guild-token__chain,
body.guild-page .guild-token--small .guild-token__shine,
body.guild-page .guild-token--small .guild-token__copy {
  display: none;
}

body.guild-page .guild-token--small .guild-token__hole {
  left: 9px;
  width: 9px;
  height: 9px;
}

body.guild-page .guild-token--small .guild-token__letter {
  width: 28px;
  height: 22px;
  border-radius: 8px;
  font-size: 14px;
}

body.guild-page .guild-token--g {
  --token-metal-1: #9aa1aa;
  --token-metal-2: #4f5660;
  --token-metal-3: #171a20;
  --token-glow: rgba(142, 150, 162, 0.16);
  --token-edge: rgba(210, 218, 230, 0.18);
}

body.guild-page .guild-token--f {
  --token-metal-1: #dda065;
  --token-metal-2: #91572e;
  --token-metal-3: #2a170f;
  --token-glow: rgba(214, 143, 79, 0.28);
  --token-edge: rgba(255, 205, 151, 0.28);
}

body.guild-page .guild-token--e {
  --token-metal-1: #dc8a5b;
  --token-metal-2: #90502f;
  --token-metal-3: #2a1510;
  --token-glow: rgba(255, 104, 190, 0.22);
  --token-edge: rgba(255, 157, 206, 0.28);
  background:
    radial-gradient(circle at 78% 50%, rgba(255, 111, 198, 0.32), transparent 18%),
    linear-gradient(108deg, rgba(255, 255, 255, 0.28), transparent 20%, rgba(0, 0, 0, 0.24) 64%, rgba(255, 130, 205, 0.14)),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 8px),
    linear-gradient(145deg, var(--token-metal-1), var(--token-metal-2) 52%, var(--token-metal-3));
}

body.guild-page .guild-token--d {
  --token-metal-1: #f2f6fb;
  --token-metal-2: #aab5c4;
  --token-metal-3: #343b46;
  --token-glow: rgba(222, 232, 246, 0.24);
  --token-edge: rgba(255, 255, 255, 0.3);
}

body.guild-page .guild-token--c {
  --token-metal-1: #7fc9ff;
  --token-metal-2: #2559c3;
  --token-metal-3: #0d1430;
  --token-glow: rgba(93, 168, 255, 0.36);
  --token-edge: rgba(144, 210, 255, 0.34);
}

body.guild-page .guild-token--b {
  --token-metal-1: #d5adff;
  --token-metal-2: #7a42d8;
  --token-metal-3: #1c102f;
  --token-glow: rgba(181, 126, 255, 0.36);
  --token-edge: rgba(216, 184, 255, 0.32);
}

body.guild-page .guild-token--a {
  --token-metal-1: #ff8598;
  --token-metal-2: #b91f3d;
  --token-metal-3: #2b1017;
  --token-glow: rgba(255, 82, 115, 0.38);
  --token-edge: rgba(255, 160, 174, 0.34);
}

body.guild-page .guild-token--s {
  --token-metal-1: #fff6d4;
  --token-metal-2: #d8b44d;
  --token-metal-3: #33323d;
  --token-glow: rgba(255, 215, 112, 0.42);
  --token-edge: rgba(255, 242, 194, 0.38);
  background:
    radial-gradient(circle at 80% 46%, rgba(255, 255, 223, 0.78), rgba(232, 188, 72, 0.34) 15%, transparent 25%),
    linear-gradient(126deg, rgba(255, 255, 255, 0.44), transparent 19%, rgba(77, 55, 12, 0.2) 46%, rgba(255, 255, 255, 0.28) 67%, transparent 76%),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 8px),
    linear-gradient(145deg, #fff9df 0 25%, #e0b84b 26% 52%, #f3f5fb 53% 78%, #34313d 79% 100%);
}

.hidden {
  display: none !important;
}

@keyframes guildSceneReveal {
  from { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes guildCounterIn {
  from { opacity: 0; transform: translateY(34px) scale(0.98); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes guildCuratorIn {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes guildCardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes guildDust {
  0%, 100% { opacity: 0.18; transform: translateY(0); }
  50% { opacity: 0.72; transform: translateY(-16px); }
}

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

@media (max-width: 1080px) {
  .guild-scene {
    min-height: 900px;
  }

  .guild-scene-stage,
  .guild-board-layout,
  .guild-status-grid,
  .guild-curator-desk {
    grid-template-columns: 1fr;
  }

  .guild-scene-copy {
    align-self: start;
  }

  .guild-scene-token-card {
    justify-self: start;
    align-self: end;
  }

  .guild-scene-counter {
    left: 18%;
    right: 8%;
    bottom: 7%;
  }

  .guild-curator {
    left: auto;
    right: 12%;
    bottom: 12%;
  }

  .guild-rank-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
    padding: calc(10px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
  }

  .mobile-nav-overlay {
    display: block;
  }

  .mobile-nav-panel {
    display: flex;
  }

  .guild-main {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 16px 12px 38px !important;
  }

  body.ui-polish-ready .guild-main {
    padding: 16px 12px 38px !important;
  }

  .guild-scene {
    min-height: 0;
    border-radius: 28px;
  }

  .guild-scene-stage {
    position: relative;
    inset: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 18px;
    align-content: start;
    gap: 16px;
  }

  .guild-scene-copy {
    order: 1;
    max-width: none;
  }

  .guild-scene-copy h1 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .guild-scene-copy p {
    font-size: 15px;
  }

  .guild-actions {
    width: 100%;
  }

  .guild-btn {
    flex: 1 1 150px;
  }

  .guild-btn.ghost {
    display: none;
  }

  .guild-scene-counter {
    left: 8%;
    right: 8%;
    bottom: 26px;
    z-index: 0;
    height: 104px;
  }

  .guild-scene-counter-sign,
  .guild-scene-counter-board {
    display: none;
  }

  .guild-curator {
    position: relative;
    order: 3;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    width: min(260px, 100%);
    justify-self: center;
    margin: 4px auto 84px;
  }

  .guild-curator-img {
    width: 128px;
  }

  .guild-curator-bubble {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin: 0 0 8px;
    font-size: 12px;
    transform: none;
  }

  .guild-scene-token-card {
    order: 2;
    justify-self: stretch;
    align-self: auto;
    width: 100%;
    margin-top: 0;
  }

  .guild-current-head,
  .guild-section-head,
  .guild-verified {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .guild-current-material {
    max-width: 100%;
  }

  body.guild-page .guild-token--hero {
    width: min(304px, 100%);
    height: 112px;
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 16px 16px 16px 58px;
  }

  body.guild-page .guild-token--hero .guild-token__hole {
    left: 24px;
    width: 21px;
    height: 21px;
  }

  body.guild-page .guild-token--hero .guild-token__letter {
    width: 68px;
    height: 60px;
    font-size: 54px;
  }

  body.guild-page .guild-token--hero .guild-token__rank-label {
    font-size: 20px;
  }

  .guild-rank-ladder {
    grid-template-columns: repeat(8, 92px);
    padding: 14px;
    scroll-snap-type: x proximity;
  }

  .guild-ladder-step {
    scroll-snap-align: center;
  }

  .guild-rank-card {
    grid-template-columns: 1fr;
  }

  .guild-rank-card__token,
  .guild-rank-card__copy,
  .guild-unlocks {
    grid-column: 1;
  }

  .guild-rank-card__token {
    justify-content: start;
  }

  body.guild-page .guild-token--card {
    width: min(276px, 100%);
  }
}

@media (max-width: 420px) {
  .guild-scene {
    min-height: 0;
  }

  .guild-curator {
    margin-bottom: 78px;
  }

  .guild-scene-token-card {
    margin-top: 0;
  }

  body.guild-page .guild-token,
  body.guild-page .guild-token--card {
    width: min(270px, 100%);
    height: 88px;
    grid-template-columns: 66px minmax(0, 1fr);
    padding: 12px 14px 12px 52px;
  }

  body.guild-page .guild-token .guild-token__hole {
    left: 22px;
    width: 18px;
    height: 18px;
  }

  body.guild-page .guild-token .guild-token__letter {
    width: 58px;
    height: 50px;
    font-size: 44px;
  }

  body.guild-page .guild-token__rank-label {
    font-size: 18px;
  }
}

/* Guild reception scene polish */
body.guild-page .site-header {
  position: relative;
  z-index: 4000;
  min-height: 0;
  padding: 20px 40px;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(7, 8, 16, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

body.guild-page .logo {
  font-weight: 900;
  text-decoration: none;
  transition: 0.2s ease;
}

body.guild-page .logo:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

body.guild-page .desktop-nav {
  gap: 12px;
  flex-wrap: wrap;
}

body.guild-page .nav-link {
  min-height: auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 16px;
  font-weight: 700;
  transition: 0.2s ease;
}

body.guild-page .nav-link:hover,
body.guild-page .nav-link:focus-visible {
  border: 0;
  background: rgba(255, 255, 255, 0.16);
}

body.guild-page .guild-main {
  width: min(1400px, calc(100vw - 48px)) !important;
  padding-top: 30px !important;
}

body.guild-page .guild-scene {
  min-height: min(780px, calc(100svh - 126px));
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(4, 5, 12, 0.9) 0%, rgba(7, 8, 15, 0.62) 35%, rgba(6, 7, 14, 0.55) 56%, rgba(3, 4, 10, 0.88) 100%),
    radial-gradient(circle at 47% 30%, rgba(255, 217, 164, 0.22), transparent 30%),
    radial-gradient(circle at 13% 17%, rgba(255, 85, 184, 0.22), transparent 32%),
    radial-gradient(circle at 86% 15%, rgba(89, 163, 255, 0.2), transparent 34%),
    url("../assets/guild/guild-hall-bg.webp") center / cover no-repeat,
    linear-gradient(135deg, #20111e, #050711 68%);
}

body.guild-page .guild-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 11, 0.52), transparent 28%, transparent 70%, rgba(3, 5, 12, 0.58)),
    linear-gradient(180deg, rgba(3, 4, 10, 0.12), transparent 38%, rgba(3, 4, 10, 0.76)),
    radial-gradient(ellipse at 51% 67%, rgba(255, 188, 116, 0.18), transparent 32%);
}

body.guild-page .guild-scene-bg {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 232, 174, 0.16), transparent 28%),
    radial-gradient(circle at 24% 82%, rgba(255, 101, 191, 0.18), transparent 30%),
    radial-gradient(circle at 78% 76%, rgba(93, 168, 255, 0.14), transparent 28%);
  opacity: 0.86;
}

body.guild-page .guild-scene-depth::before,
body.guild-page .guild-scene-depth::after,
body.guild-page .guild-scene-window,
body.guild-page .guild-scene-counter-sign,
body.guild-page .guild-scene-counter-board {
  display: none;
}

body.guild-page .guild-scene-floor {
  z-index: 2;
  height: 32%;
  opacity: 0.34;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 110px),
    linear-gradient(180deg, rgba(125, 72, 44, 0.24), rgba(8, 6, 10, 0.88));
}

body.guild-page .guild-scene-stage {
  z-index: 6;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 0.48fr);
  align-items: center;
  gap: clamp(22px, 4vw, 52px);
  padding: clamp(32px, 5vw, 72px);
}

body.guild-page .guild-scene-copy {
  position: relative;
  z-index: 8;
  max-width: 560px;
  align-self: center;
  padding-bottom: 90px;
}

body.guild-page .guild-scene-copy h1 {
  max-width: 500px;
  font-size: clamp(54px, 6.6vw, 88px);
  line-height: 0.94;
}

body.guild-page .guild-scene-copy p {
  max-width: 510px;
  margin-top: 16px;
}

body.guild-page .guild-actions {
  margin-top: 22px;
}

body.guild-page .guild-scene-counter {
  left: 27%;
  right: 23%;
  bottom: 8.5%;
  z-index: 4;
  height: 92px;
  border: 0;
  opacity: 0.65;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 202, 143, 0.24), transparent 62%),
    linear-gradient(180deg, rgba(95, 50, 35, 0.62), rgba(16, 9, 10, 0.84));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

body.guild-page .guild-scene-counter::before {
  height: 28px;
  top: -13px;
  opacity: 0.62;
}

body.guild-page .guild-curator {
  left: 56%;
  bottom: -1%;
  z-index: 5;
  width: min(940px, 65vw);
  transform: translateX(-50%);
  animation: guildCuratorDeskIn 0.7s ease both 0.68s;
  pointer-events: none;
}

@keyframes guildCuratorDeskIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px) scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0);
  }
}

body.guild-page .guild-curator-img {
  width: 100%;
  max-height: min(650px, 72svh);
  object-fit: contain;
  object-position: center bottom;
  border-radius: 30px 30px 18px 18px;
  opacity: 1;
  filter: brightness(1.12) contrast(1.08) saturate(1.04) drop-shadow(0 34px 70px rgba(0, 0, 0, 0.58));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

body.guild-page .guild-curator::after {
  content: "WAIFUHUNT GUILD";
  position: absolute;
  left: 50%;
  bottom: 20.5%;
  z-index: 8;
  min-width: 222px;
  padding: 8px 26px;
  border-radius: 10px;
  border: 1px solid rgba(255, 226, 168, 0.36);
  background: linear-gradient(180deg, rgba(72, 43, 24, 0.96), rgba(17, 12, 10, 0.98));
  color: rgba(255, 229, 176, 0.94);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
}

body.guild-page .guild-curator-shadow {
  width: 62%;
  height: 32px;
  bottom: -8px;
  opacity: 0.7;
}

body.guild-page .guild-curator-bubble {
  left: 19%;
  right: auto;
  bottom: 39%;
  z-index: 7;
  width: min(310px, 30vw);
  border-radius: 18px 18px 18px 8px;
  background: rgba(9, 10, 18, 0.78);
  transform: none;
}

body.guild-page .guild-scene-token-card {
  position: relative;
  z-index: 9;
  width: min(410px, 100%);
  justify-self: end;
  align-self: center;
  background:
    radial-gradient(circle at 26% 0%, rgba(255, 101, 191, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(16, 18, 32, 0.76), rgba(8, 9, 18, 0.82)) !important;
}

body.guild-page .guild-rank-board {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 101, 191, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(72, 44, 34, 0.56), rgba(13, 13, 22, 0.84)) !important;
}

body.guild-page .guild-rank-ladder {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 22%, rgba(255, 255, 255, 0.028) 78%, transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, rgba(70, 42, 31, 0.78), rgba(18, 14, 18, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 236, 188, 0.1), inset 0 -24px 46px rgba(0, 0, 0, 0.28);
}

body.guild-page .guild-rank-detail {
  align-content: start;
  grid-template-columns: 1fr;
}

body.guild-page .guild-rank-detail-token,
body.guild-page .guild-rank-detail > div,
body.guild-page .guild-rank-detail .guild-unlocks {
  grid-column: auto;
}

body.guild-page .guild-rank-detail-token .guild-token--card {
  width: min(100%, 280px);
}

body.guild-page .guild-rank-detail h3 {
  margin: 2px 0 8px;
  font-size: 24px;
  line-height: 1.08;
}

body.guild-page .guild-rank-detail p {
  margin: 0;
  max-width: 28ch;
  color: rgba(235, 238, 248, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

body.guild-page .guild-token-archive {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 101, 191, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(22, 24, 38, 0.82), rgba(8, 9, 16, 0.9)) !important;
}

body.guild-page .guild-token-archive .guild-rank-grid {
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.075), transparent 18%, transparent 72%, rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 50% 0%, rgba(255, 236, 198, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.026);
}

body.guild-page .guild-rank-card {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 78%, rgba(255, 255, 255, 0.045)),
    rgba(8, 10, 18, 0.62);
}

body.guild-page .guild-rank-card:not(.is-current) {
  opacity: 0.82;
}

@media (max-width: 1080px) {
  body.guild-page .guild-scene {
    min-height: 880px;
  }

  body.guild-page .guild-scene-copy {
    padding-bottom: 0;
  }

  body.guild-page .guild-curator {
    left: 50%;
    bottom: 2%;
    width: min(680px, 82vw);
  }

  body.guild-page .guild-curator-bubble {
    right: 10%;
    bottom: 50%;
    width: min(280px, 38vw);
  }

  body.guild-page .guild-scene-token-card {
    justify-self: start;
    align-self: end;
    margin-bottom: 210px;
  }
}

@media (max-width: 760px) {
  body.guild-page .site-header {
    position: sticky;
    min-height: 64px;
    padding: calc(10px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
    background:
      radial-gradient(circle at 8% 0%, rgba(255, 77, 166, 0.1), transparent 34%),
      rgba(9, 11, 20, 0.82);
    backdrop-filter: blur(18px);
  }

  body.guild-page .guild-main {
    width: 100% !important;
    padding: 16px 12px 38px !important;
  }

  body.guild-page .guild-scene {
    min-height: 0;
    border-radius: 28px;
    background-position: center top;
  }

  body.guild-page .guild-scene-stage {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }

  body.guild-page .guild-scene-copy {
    order: 1;
    padding-bottom: 0;
  }

  body.guild-page .guild-scene-copy h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  body.guild-page .guild-actions {
    width: 100%;
  }

  body.guild-page .guild-btn {
    min-width: 0;
    flex: 1 1 calc(50% - 5px);
    padding: 0 10px;
    font-size: 14px;
  }

  body.guild-page .guild-scene-token-card {
    order: 2;
    width: 100%;
    justify-self: stretch;
    margin: 0;
  }

  body.guild-page .guild-curator {
    position: relative;
    order: 3;
    left: auto;
    bottom: auto;
    width: 100%;
    transform: none;
    animation: none;
    margin: 0 auto 18px;
  }

  body.guild-page .guild-curator-img {
    max-height: none;
    width: 100%;
    border-radius: 24px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
  }

  body.guild-page .guild-curator::after {
    bottom: 16%;
    font-size: 11px;
    min-width: 140px;
    padding: 5px 12px;
  }

  body.guild-page .guild-curator-bubble {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin: 0 0 8px;
    transform: none;
  }

  body.guild-page .guild-scene-counter {
    display: none;
  }

  body.guild-page .guild-rank-ladder {
    grid-template-columns: repeat(8, 94px);
  }

  body.guild-page .guild-rank-grid {
    grid-template-columns: 1fr;
  }
}
