/* Guild artwork added after the initial build. */
.site-header {
  background: linear-gradient(90deg, rgba(4, 8, 10, 0.6), rgba(4, 8, 10, 0.42));
  border-bottom-color: rgba(213, 164, 81, 0.14);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.hero-art {
  background: url('img/home.png') center center / cover no-repeat;
}

.easter-egg-dialog {
  width: min(90vw, 820px);
  max-width: none;
  max-height: 88vh;
  padding: 10px;
  overflow: visible;
  border: 1px solid rgba(213, 164, 81, .9);
  border-radius: 10px;
  background: #070b0d;
  box-shadow: 0 0 70px rgba(213, 164, 81, .34), inset 0 0 0 4px #070b0d, inset 0 0 0 5px rgba(213, 164, 81, .38);
  animation: easter-egg-reveal 280ms ease-out;
}
.easter-egg-dialog::backdrop { background: rgba(0, 0, 0, .88); backdrop-filter: blur(6px); }
.easter-egg-dialog img { display: block; width: 100%; max-height: calc(88vh - 20px); object-fit: contain; border-radius: 5px; }
.easter-egg-close { position: absolute; z-index: 2; top: -16px; right: -16px; width: 38px; height: 38px; padding: 0 0 4px; border: 1px solid var(--gold); border-radius: 50%; color: #f2c675; background: #080d0f; font: 30px/1 Georgia, serif; cursor: pointer; box-shadow: 0 0 16px rgba(213, 164, 81, .35); }
@keyframes easter-egg-reveal { from { opacity: 0; transform: scale(.88) rotate(-1deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

.easter-egg-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* The supplied base artwork already provides the fantasy scene. */
.hero-art::before,
.castle,
.moon,
.dragon {
  display: none;
}

.join {
  background:
    linear-gradient(rgba(4, 8, 9, 0.66), rgba(4, 8, 9, 0.9)),
    url('img/join_us.png') center / cover no-repeat;
}

.join-panel {
  max-width: 570px;
  min-height: 86px;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-radius: 50px;
}
.discord-mark {
  flex-basis: 58px;
  width: 58px;
  height: 58px;
  font-size: 0;
}
.discord-mark::before {
  content: '•  •';
  width: 39px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 13px 13px 16px 16px;
  color: #5865f2;
  background: #fff;
  font: 700 17px/20px Arial, sans-serif;
  letter-spacing: 4px;
  text-indent: 4px;
}
.join-panel .join-copy p {
  margin: 0;
  color: #eadfce;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: .25px;
  text-transform: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .7);
  white-space: nowrap;
}
.join-button { margin-left: 0; padding: 13px 19px; border-radius: 12px; font-size: 11px; letter-spacing: 2px; }

@media (max-width: 700px) {
  .join-panel { max-width: 600px; grid-template-columns: 56px minmax(0, 1fr) auto; padding: 16px 18px; gap: 14px; border-radius: 38px; }
  .discord-mark { flex-basis: 56px; width: 56px; height: 56px; }
  .join-button { width: auto; margin-top: 0; text-align: center; }
}

@media (max-width: 520px) {
  .join-panel { max-width: 340px; grid-template-columns: 1fr; justify-items: center; padding: 20px; gap: 14px; border-radius: 26px; text-align: center; }
  .join-panel .join-copy p { white-space: normal; }
  .join-button { min-width: 170px; }
}

/* Guild highlight carousel: each photo has the same height while keeping its natural shape. */
.highlights .cards { display: none; }
.gallery-carousel { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; max-width: 1190px; margin: 0 auto; }
.gallery-viewport { overflow: hidden; }
.gallery-track { display: flex; will-change: transform; transition: transform 620ms cubic-bezier(.22, .61, .36, 1); }
.gallery-track.no-transition { transition: none; }
.gallery-loading { flex: 0 0 100%; margin: 70px 0; color: var(--muted); text-align: center; }
.gallery-page { --gallery-photo-height: clamp(180px, 18vw, 260px); flex: 0 0 100%; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 18px; }
.gallery-frame { width: calc(var(--gallery-photo-height) * var(--ratio)); height: var(--gallery-photo-height); flex: 0 0 auto; margin: 0; padding: 7px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(213, 164, 81, .88); border-radius: 6px; background: linear-gradient(135deg, #8b642f, #111719 10%, #111719 90%, #8b642f); box-shadow: 0 10px 26px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 226, 170, .2); }
.gallery-frame img { display: block; height: 100%; width: 100%; object-fit: cover; border-radius: 2px; cursor: zoom-in; transition: filter 180ms ease, transform 180ms ease; }
.gallery-frame img:hover, .gallery-frame img:focus-visible { filter: brightness(1.12); transform: scale(.985); outline: 2px solid var(--gold); outline-offset: -4px; }
.gallery-arrow { position: relative; width: 52px; height: 52px; padding: 0 0 5px; border: 1px solid rgba(213, 164, 81, .85); border-radius: 50%; color: #f0bd62; background: radial-gradient(circle, rgba(106, 73, 29, .42), rgba(6, 11, 13, .92) 68%); box-shadow: inset 0 0 0 4px #080d0f, inset 0 0 0 5px rgba(213, 164, 81, .38), 0 0 18px rgba(213, 164, 81, .12); font: 38px/1 Georgia, serif; cursor: pointer; transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.gallery-arrow::before, .gallery-arrow::after { content: ''; position: absolute; top: 50%; width: 9px; height: 9px; border: 1px solid var(--gold); background: #0a1012; transform: translateY(-50%) rotate(45deg); }
.gallery-arrow::before { left: -17px; }
.gallery-arrow::after { right: -17px; }
.gallery-arrow:hover { color: #ffe0a0; border-color: #ffe0a0; box-shadow: inset 0 0 0 4px #080d0f, inset 0 0 0 5px #b78538, 0 0 24px rgba(213, 164, 81, .48); transform: scale(1.08); }
.slider-dots button { margin: 0; }
.gallery-progress {
  position: relative;
  display: block;
  width: 100%;
  flex: 0 0 100%;
  height: 2px;
  margin-top: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(213, 164, 81, .22);
}
.slider-dots {
  width: min(210px, 38vw);
  margin-inline: auto;
  display: block;
}
.gallery-progress::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--gallery-progress);
  border-radius: inherit;
  background: linear-gradient(90deg, #9f7135, #efbd65);
  box-shadow: 0 0 8px rgba(213, 164, 81, .45);
  transition: width 300ms ease;
}

.gallery-lightbox { width: min(94vw, 1400px); max-width: none; height: min(92vh, 950px); max-height: none; padding: 36px; overflow: visible; border: 1px solid rgba(213, 164, 81, .9); border-radius: 8px; background: rgba(5, 9, 11, .96); box-shadow: 0 0 60px #000, inset 0 0 0 5px rgba(213, 164, 81, .08); }
.gallery-lightbox::backdrop { background: rgba(0, 0, 0, .88); backdrop-filter: blur(5px); }
.gallery-lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; z-index: 1; top: 6px; right: 10px; width: 36px; height: 36px; border: 0; color: var(--gold); background: transparent; font: 34px/1 Georgia, serif; cursor: pointer; }
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(213, 164, 81, .9);
  border-radius: 50%;
  background: rgba(4, 8, 10, .82);
  box-shadow: inset 0 0 0 4px #080d0f, inset 0 0 0 5px rgba(213, 164, 81, .55), 0 0 18px rgba(0, 0, 0, .7);
  cursor: pointer;
  transform: translateY(-50%);
}
.lightbox-previous { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid #efbd65;
  border-right: 2px solid #efbd65;
}
.lightbox-previous::before { transform: translate(-35%, -50%) rotate(-135deg); }
.lightbox-next::before { transform: translate(-65%, -50%) rotate(45deg); }
.lightbox-arrow:hover { background: rgba(113, 76, 27, .5); box-shadow: inset 0 0 0 4px #080d0f, inset 0 0 0 5px #d5a451, 0 0 22px rgba(213, 164, 81, .4); }

.moderators { border-bottom: 1px solid rgba(213, 164, 81, .24); background: radial-gradient(ellipse at center, #151d1f, #070b0d 68%); }
.moderators-placeholder { max-width: 760px; min-height: 150px; margin: 0 auto; padding: 28px 36px; display: flex; align-items: center; justify-content: center; gap: 26px; border: 1px solid rgba(213, 164, 81, .42); border-radius: 8px; background: rgba(9, 14, 16, .78); text-align: left; }
.moderators-crest { width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-items: center; border: 1px solid var(--gold); transform: rotate(45deg); color: var(--gold); font-size: 25px; }
.moderators-placeholder h3 { margin: 0 0 8px; color: var(--ivory); font-family: Cinzel, serif; font-size: 20px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; }
.moderators-placeholder p { margin: 0; color: var(--muted); line-height: 1.6; }

@media (max-width: 700px) {
  .gallery-carousel { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 8px; }
  .gallery-page { --gallery-photo-height: 150px; min-height: 318px; flex-direction: column; gap: 12px; }
  .gallery-frame { max-width: 100%; padding: 4px; }
  .gallery-arrow { width: 34px; height: 42px; font-size: 30px; }
  .gallery-arrow::before, .gallery-arrow::after { display: none; }
  .gallery-lightbox { width: 94vw; height: 80vh; padding: 30px 12px 12px; }
  .moderators-placeholder { padding: 26px 20px; flex-direction: column; text-align: center; }
}

/* Responsive gallery refinement. Container units prevent frames from overlapping. */
.gallery-carousel {
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 24px;
  width: 100%;
}

.gallery-viewport {
  min-width: 0;
  container-type: inline-size;
}

.gallery-page {
  --gallery-photo-height: min(260px, calc((100cqw - 18px) / var(--page-ratio)));
  min-height: calc(var(--gallery-photo-height) + 16px);
  flex-direction: row;
  gap: 18px;
  overflow: hidden;
}

.gallery-frame {
  width: calc(var(--gallery-photo-height) * var(--ratio));
  height: var(--gallery-photo-height);
  max-width: none;
  box-sizing: border-box;
}

/* Double-ring gold controls with clean drawn chevrons. */
.gallery-arrow {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #d5a451;
  border-radius: 50%;
  color: transparent;
  background: rgba(6, 11, 13, .72);
  box-shadow: inset 0 0 0 4px #080d0f, inset 0 0 0 5px rgba(213, 164, 81, .72), 0 0 0 1px rgba(213, 164, 81, .14);
  font-size: 0;
}

.gallery-arrow::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 0;
  border-top: 2px solid #efbd65;
  border-right: 2px solid #efbd65;
  background: transparent;
}

.gallery-next::before { transform: translate(-65%, -50%) rotate(45deg); }
.gallery-previous::before { transform: translate(-35%, -50%) rotate(-135deg); }
.gallery-arrow::after {
  content: '';
  display: block;
  position: absolute;
  inset: -6px;
  width: auto;
  height: auto;
  border: 1px solid rgba(213, 164, 81, .5);
  border-radius: 50%;
  background: transparent;
  transform: none;
}
.gallery-arrow:hover {
  color: transparent;
  border-color: #ffe0a0;
  background: rgba(113, 76, 27, .28);
  box-shadow: inset 0 0 0 4px #080d0f, inset 0 0 0 5px #d5a451, 0 0 22px rgba(213, 164, 81, .42);
  transform: scale(1.07);
}

/* Moderator cards are generated from the roster and center themselves at any count. */
.moderators {
  padding-top: 48px;
  padding-bottom: 58px;
}
.moderators-grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 58px);
}
.moderator-card {
  flex: 1 1 170px;
  max-width: 205px;
  min-width: 150px;
  text-align: center;
}
.moderator-portrait {
  position: relative;
  width: min(100%, 180px);
  aspect-ratio: 2 / 3;
  margin: 0 auto 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 164, 81, .9);
  border-radius: 48% 48% 45% 45% / 42% 42% 52% 52%;
  background: radial-gradient(circle at 50% 28%, #2d3738, #111719 58%, #080c0e);
  box-shadow: inset 0 0 0 5px #0a0f11, inset 0 0 0 6px rgba(213, 164, 81, .38), 0 14px 28px rgba(0, 0, 0, .38);
}
.moderator-portrait::after {
  content: '';
  position: absolute;
  inset: 7px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(238, 194, 113, .25);
  border-radius: inherit;
}
.moderator-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .55));
}
.moderator-fallback {
  position: absolute;
  z-index: 0;
  color: rgba(213, 164, 81, .55);
  font: 600 64px/1 Cinzel, serif;
}
.moderator-portrait.has-image .moderator-fallback { opacity: 0; }
.moderator-portrait.missing-image { background: radial-gradient(circle, #202b2e, #090e10 70%); }
.moderator-details h3 {
  margin: 0 0 6px;
  color: #f1e6d6;
  font-family: Cinzel, serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.moderator-details p { margin: 0; line-height: 1.55; }
.moderator-class { color: #d7a855; font-size: 14px; }
.moderator-rank { color: var(--muted); font-size: 12px; letter-spacing: .5px; }
.moderators-status { text-align: center; color: var(--muted); }

@media (max-width: 960px) {
  .highlights.section { padding-inline: 28px; }
  .gallery-carousel { grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 14px; }
  .gallery-arrow { width: 42px; height: 42px; }
  .moderators-grid { gap: 34px 24px; }
  .moderator-card { flex-basis: 28%; max-width: 190px; }
}

@media (max-width: 620px) {
  .highlights.section { padding-inline: 14px; }
  .gallery-carousel { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 8px; }
  .gallery-page {
    --gallery-photo-height: min(165px, calc((100cqw - 4px) / 2.072));
    min-height: calc((var(--gallery-photo-height) * 2) + 14px);
    flex-direction: column;
    gap: 14px;
  }
  .gallery-arrow { width: 34px; height: 34px; }
  .gallery-arrow::before { width: 9px; height: 9px; }
  .gallery-arrow::after { inset: -4px; }
  .slider-dots { width: min(160px, 44vw); }
  .gallery-progress { width: 100%; margin-left: 0; }
  .moderators { padding-inline: 16px; }
  .moderators-grid { gap: 32px 14px; }
  .moderator-card { flex: 0 1 calc(50% - 8px); min-width: 0; max-width: 170px; }
  .moderator-portrait { width: min(100%, 145px); margin-bottom: 15px; }
  .moderator-details h3 { font-size: 16px; }
  .moderator-class { font-size: 13px; }
  .moderator-rank { font-size: 11px; }
  .lightbox-arrow { width: 38px; height: 38px; }
  .lightbox-previous { left: 6px; }
  .lightbox-next { right: 6px; }
  .easter-egg-dialog { width: 92vw; padding: 6px; }
  .easter-egg-close { top: -12px; right: -8px; }
}

@media (max-width: 360px) {
  .gallery-carousel { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 5px; }
  .gallery-arrow { width: 29px; height: 29px; }
  .gallery-arrow::after { display: block; inset: -3px; }
}

@media (max-width: 480px) {
  .gallery-page {
    min-height: calc(var(--gallery-photo-height) + 8px);
    flex-direction: row;
  }
}

/* Frameless moderator portraits. */
.moderator-portrait,
.moderator-portrait.missing-image {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.moderator-portrait::after { display: none; }
.moderator-portrait img { filter: drop-shadow(0 14px 10px rgba(0, 0, 0, .55)); }
.moderator-portrait img.normalized-portrait {
  position: absolute;
  top: var(--portrait-render-top);
  left: 50%;
  width: auto;
  max-width: none;
  height: var(--portrait-render-height);
  object-fit: initial;
  object-position: initial;
  transform: translateX(-50%);
}
.moderator-fallback { color: rgba(213, 164, 81, .7); }

/* Guides preview and library. */
.guides {
  border-bottom: 1px solid rgba(213, 164, 81, .24);
  background: radial-gradient(ellipse at 50% 0, #182124, #070b0d 68%);
}
.guide-grid {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.guide-card {
  overflow: hidden;
  border: 1px solid rgba(213, 164, 81, .58);
  border-radius: 8px;
  background: rgba(9, 14, 16, .88);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .34);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.guide-card:hover { border-color: rgba(239, 189, 101, .92); transform: translateY(-4px); box-shadow: 0 17px 34px rgba(0, 0, 0, .46); }
.guide-media {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid rgba(213, 164, 81, .35);
}
.guide-placeholder { background: radial-gradient(circle at 50% 42%, rgba(129, 87, 35, .32), transparent 28%), linear-gradient(145deg, #202a2d, #0c1214 62%); }
.guide-placeholder small { color: #a9977e; font: 500 10px/1 Cinzel, serif; letter-spacing: 2px; text-transform: uppercase; }
.guide-play { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: rgba(5, 9, 11, .76); box-shadow: 0 0 18px rgba(213, 164, 81, .16); }
.guide-play::after { content: ''; margin-left: 4px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #e9b65d; }
.guide-card-copy { padding: 18px 20px 20px; }
.guide-card-copy h3 { margin: 0 0 8px; color: #eee2d1; font: 600 17px/1.3 Cinzel, serif; letter-spacing: 1px; }
.guide-card-copy p { min-height: 42px; margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.guide-card-copy > span { color: #bc914f; font: 500 10px/1 Cinzel, serif; letter-spacing: 1.5px; text-transform: uppercase; }
.more-guides, .back-base { width: fit-content; margin: 30px auto 0; padding: 13px 22px; display: block; border: 1px solid rgba(213, 164, 81, .7); border-radius: 5px; color: #e8bd70; background: rgba(7, 12, 14, .72); font: 500 12px/1 Cinzel, serif; letter-spacing: 2px; text-decoration: none; text-transform: uppercase; transition: color 180ms ease, background 180ms ease; }
.more-guides:hover, .back-base:hover { color: #ffe0a0; background: rgba(113, 76, 27, .28); }
.more-guides b { margin-left: 8px; font-size: 19px; }

.guides-page { min-height: 100vh; }
.guides-page-main { min-height: calc(100vh - 60px); padding-top: 78px; }
.guides-page-hero { position: relative; padding: 92px 24px 68px; text-align: center; background: linear-gradient(rgba(4, 8, 9, .7), rgba(4, 8, 9, .94)), url('img/home.png') center 38% / cover no-repeat; border-bottom: 1px solid rgba(213, 164, 81, .25); }
.guide-base-back {
  position: absolute;
  top: 22px;
  right: clamp(20px, 5vw, 72px);
  padding: 10px 15px;
  border: 1px solid rgba(213, 164, 81, .72);
  border-radius: 4px;
  color: #e9c078;
  background: rgba(5, 9, 11, .8);
  font: 500 11px/1 Cinzel, serif;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.guide-base-back span { margin-right: 6px; font-size: 17px; }
.guide-base-back:hover { color: #ffe0a0; background: rgba(113, 76, 27, .32); box-shadow: 0 0 18px rgba(213, 164, 81, .24); }
.guides-page-hero h1 { margin: 8px 0 15px; color: #eee4d5; font: 600 clamp(42px, 7vw, 76px)/1.1 Cinzel, serif; letter-spacing: 7px; text-transform: uppercase; }
.guides-page-hero .ornament { justify-content: center; margin-bottom: 18px; }
.guides-page-hero > p:last-child { margin: 0; color: #c9bcaa; font-size: 14px; }
.guides-library { padding-top: 46px; padding-bottom: 70px; }

/* Class-guide tabs on the full Guides page. */
.class-guide-shell { width: 100%; max-width: 1180px; margin: 0 auto; }
.guide-tab-stage { border: 1px solid rgba(213, 164, 81, .35); border-top: 0; background: rgba(7, 12, 14, .78); box-shadow: 0 18px 38px rgba(0, 0, 0, .3); }
.guide-tab-row { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #86622f transparent; }
.guide-tab-row button { flex: 1 0 auto; min-width: 130px; padding: 17px 20px; border: 0; border-bottom: 1px solid rgba(213, 164, 81, .28); color: #bcae9a; background: rgba(8, 13, 15, .84); font: 500 13px/1 Cinzel, serif; letter-spacing: 1px; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.guide-tab-row button:hover { color: #f4cf8c; background: linear-gradient(0deg, rgba(121, 80, 26, .18), rgba(22, 25, 24, .92)); box-shadow: inset 0 -1px rgba(224, 174, 87, .55); }
.guide-tab-row button.active { color: #f1c879; background: linear-gradient(0deg, rgba(121, 80, 26, .22), rgba(8, 13, 15, .9)); border-bottom: 2px solid var(--gold); }
.class-guide-shell { position: relative; }
.class-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; border: 1px solid rgba(213, 164, 81, .42); border-radius: 8px 8px 0 0; }
.class-tabs button { min-width: 0; padding: 20px 10px; }
.guide-choice-tree { position: absolute; z-index: 15; top: 59px; left: calc(var(--class-index) * 100% / 7); display: flex; width: 210px; justify-content: center; align-items: flex-start; padding: 14px 18px; border: 1px solid rgba(213, 164, 81, .34); border-top-color: rgba(231, 184, 99, .58); border-radius: 0 0 5px 5px; background: rgba(10, 15, 17, .98); box-shadow: 0 16px 30px rgba(0, 0, 0, .48); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease; }
.guide-choice-tree.open { opacity: 1; visibility: visible; transform: translateY(0); }
.guide-choice-tree.align-left { right: auto; left: calc(var(--class-index) * 100% / 7); transform: translateY(-6px); }
.guide-choice-tree.align-right { right: calc((6 - var(--class-index)) * 100% / 7); left: auto; transform: translateY(-6px); }
.guide-choice-tree.align-left.open,
.guide-choice-tree.align-right.open { transform: translateY(0); }
.guide-choice-row { display: flex; width: 100%; min-width: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
.guide-choice-row:empty { display: none; }
.guide-choice-row + .guide-choice-row:not(:empty) { position: absolute; top: calc(-1px + (var(--branch-index, 0) * 29px)); left: 100%; width: 190px; padding: 14px 18px; border: 1px solid rgba(213, 164, 81, .34); border-radius: 0 5px 5px 0; background: rgba(10, 15, 17, .98); box-shadow: 12px 16px 30px rgba(0, 0, 0, .4); }
.guide-choice-tree.align-right .guide-choice-row + .guide-choice-row:not(:empty) { right: 100%; left: auto; border-radius: 5px 0 0 5px; }
.guide-choice-row button { position: relative; width: fit-content; padding: 7px 2px; border: 0; color: #b8ab98; background: transparent; font: 500 11px/1.2 Cinzel, serif; letter-spacing: .8px; text-align: left; cursor: pointer; }
.guide-choice-row button:hover,
.guide-choice-row button:focus-visible,
.guide-choice-row button.active { color: #efc676; outline: none; }
.class-guide-detail.class-overview-active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 285px); column-gap: clamp(30px, 5vw, 70px); padding-top: clamp(34px, 5vw, 56px); }
.class-overview-active > .guide-path,
.class-overview-active > h2,
.class-overview-active > .class-tagline,
.class-overview-active > .class-description,
.class-overview-active > .class-specialization-overview { grid-column: 1; }
.class-tagline { margin: -13px 0 20px; color: #d3aa67; font: italic 400 14px/1.5 'Libre Baskerville', serif; letter-spacing: .5px; }
.class-overview-active .class-description { max-width: 880px; padding-left: 20px; border-left: 2px solid rgba(213, 164, 81, .5); }
.class-overview-active .class-description p { color: #c9bcaa; font-style: italic; }
.class-specialization-overview { max-width: 900px; margin-top: 38px; }
.class-specialization-overview[hidden],
#specialization-guide-content[hidden] { display: none; }
.class-specialization-overview > h3 { margin: 0 0 24px; color: #e0b86d; font: 600 14px/1.2 Cinzel, serif; letter-spacing: 2.5px; text-transform: uppercase; }
#class-specialization-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 42px; }
.overview-specialization-group { min-width: 0; }
.overview-specialization-group h4 { margin: 0 0 8px; color: #e5d6c2; font: 600 15px/1.2 Cinzel, serif; letter-spacing: 1.5px; text-transform: uppercase; }
.overview-branch-summary { min-height: 42px; margin: 0 0 10px; color: #a99d8d; font-size: 12px; font-style: italic; line-height: 1.65; }
.overview-guide-links { display: grid; gap: 5px; }
.overview-guide-link { width: fit-content; padding: 3px 0; border: 0; color: #aca091; background: transparent; font: 12px/1.55 'Libre Baskerville', serif; text-align: left; cursor: pointer; }
.overview-guide-link strong { color: #d8aa5d; font: 600 11px/1.4 Cinzel, serif; letter-spacing: .8px; }
.overview-guide-link:hover,
.overview-guide-link:focus-visible { color: #eee2d1; outline: none; }
.overview-guide-link:hover strong,
.overview-guide-link:focus-visible strong { color: #f3c979; }
.overview-direct-group { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(213, 164, 81, .18); }
.class-character-spotlight { position: relative; grid-column: 2; grid-row: 1 / span 5; min-width: 0; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 18px 12px 25px; overflow: hidden; border-left: 1px solid rgba(213, 164, 81, .3); background: radial-gradient(ellipse at 50% 45%, rgba(51, 68, 69, .44), rgba(7, 12, 14, .08) 67%); text-align: center; }
.class-character-spotlight[hidden] { display: none; }
.class-character-portrait { width: 100%; height: clamp(245px, 30vw, 345px); display: flex; align-items: flex-end; justify-content: center; }
.class-character-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 16px 12px rgba(0, 0, 0, .65)); }
.class-character-spotlight > p { width: 100%; margin: 13px 0 5px; display: flex; align-items: center; gap: 9px; color: #9d8d78; font: 500 9px/1.2 Cinzel, serif; letter-spacing: 1.6px; text-transform: uppercase; white-space: nowrap; }
.class-character-spotlight > p::before,
.class-character-spotlight > p::after { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(213, 164, 81, .5)); content: ''; }
.class-character-spotlight > p::after { transform: scaleX(-1); }
.class-character-spotlight > h3 { margin: 0; color: #e2b766; font: 600 17px/1.25 Cinzel, serif; letter-spacing: 1.6px; text-transform: uppercase; }
.class-character-spotlight > span { margin-top: 5px; color: #d7ccbc; font-size: 11px; letter-spacing: .5px; }
.class-guide-detail { min-height: 340px; padding: clamp(28px, 5vw, 58px); }
.guide-path { margin: 0 0 10px; color: #a67c3f; font: 500 10px/1.4 Cinzel, serif; letter-spacing: 1.5px; text-transform: uppercase; }
.class-guide-detail > h2 { margin: 0 0 28px; color: #eee2d1; font: 600 clamp(27px, 4vw, 40px)/1.2 Cinzel, serif; letter-spacing: 3px; }
.class-description { max-width: 800px; }
.class-description h3 { margin: 0 0 10px; color: #d8aa5d; font: 500 14px/1.2 Cinzel, serif; letter-spacing: 2px; text-transform: uppercase; }
.class-description p { margin: 0; color: #b9ac9b; font-size: 13px; line-height: 1.8; }
.guide-subtabs { width: fit-content; margin-top: 38px; border: 1px solid rgba(213, 164, 81, .32); border-radius: 5px 5px 0 0; overflow: hidden; }
.guide-subtabs button { flex: 0 0 auto; min-width: 160px; padding: 14px 20px; font-size: 11px; }
.guide-subsection-panel { max-width: 760px; min-height: 100px; padding: 24px; border: 1px solid rgba(213, 164, 81, .22); border-top: 0; color: #9f9485; background: rgba(4, 8, 10, .46); font-size: 12px; line-height: 1.7; }

@media (max-width: 700px) {
  .guides-library { padding-inline: 14px; }
  .guide-tab-row button { min-width: 118px; padding: 15px 16px; font-size: 11px; }
  .class-tabs { grid-template-columns: repeat(12, minmax(0, 1fr)); border-radius: 6px 6px 0 0; }
  .class-tabs button { min-width: 0; padding: 15px 5px; font-size: clamp(8px, 2.4vw, 11px); letter-spacing: .45px; }
  .class-tabs button:nth-child(1) { grid-column: 1 / span 3; }
  .class-tabs button:nth-child(2) { grid-column: 4 / span 3; }
  .class-tabs button:nth-child(3) { grid-column: 7 / span 3; }
  .class-tabs button:nth-child(4) { grid-column: 10 / span 3; }
  .class-tabs button:nth-child(5) { grid-column: 1 / span 4; }
  .class-tabs button:nth-child(6) { grid-column: 5 / span 4; }
  .class-tabs button:nth-child(7) { grid-column: 9 / span 4; }
  .guide-choice-tree,
  .guide-choice-tree.align-left,
  .guide-choice-tree.align-right { right: 14px; left: 14px; width: auto; max-width: none; transform: translateY(-6px); }
  .guide-choice-tree.open,
  .guide-choice-tree.align-left.open,
  .guide-choice-tree.align-right.open { transform: translateY(0); }
  .guide-choice-tree { display: grid; grid-template-columns: 1fr; gap: 0; padding: 15px 18px; }
  .guide-choice-tree.has-specializations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-choice-row + .guide-choice-row:not(:empty),
  .guide-choice-tree.align-right .guide-choice-row + .guide-choice-row:not(:empty) { position: static; width: auto; min-height: 0; padding: 0 0 0 18px; border: 0; border-left: 1px solid rgba(213, 164, 81, .14); border-radius: 0; background: transparent; box-shadow: none; }
  #class-specialization-groups { grid-template-columns: 1fr; gap: 25px; }
  .overview-branch-summary { min-height: 0; }
  .overview-direct-group { grid-column: auto; }
  .class-guide-detail { min-height: 310px; padding: 28px 20px; }
  .guide-subtabs { width: 100%; }
  .guide-subtabs button { min-width: 50%; }
  .guide-subsection-panel { min-height: 90px; }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .class-tabs button { padding-inline: 6px; font-size: clamp(9px, 1.25vw, 12px); letter-spacing: .55px; }
}

@media (max-width: 900px) {
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-preview-grid .guide-card:last-child { grid-column: 1 / -1; width: min(100%, 520px); justify-self: center; }
  .class-guide-detail.class-overview-active { grid-template-columns: 1fr; }
  .class-overview-active > .guide-path,
  .class-overview-active > h2,
  .class-overview-active > .class-tagline,
  .class-overview-active > .class-description,
  .class-overview-active > .class-specialization-overview,
  .class-character-spotlight { grid-column: 1; }
  .class-character-spotlight { grid-row: auto; width: min(100%, 300px); min-height: 390px; margin: 38px auto 0; border-top: 1px solid rgba(213, 164, 81, .25); border-left: 0; }
}
@media (max-width: 600px) {
  .guide-grid { grid-template-columns: 1fr; max-width: 430px; }
  .guide-preview-grid .guide-card:last-child { grid-column: auto; width: 100%; }
  .guides-page-main { padding-top: 64px; }
  .guides-page-hero { padding: 104px 20px 52px; }
  .guide-base-back { top: 20px; right: 20px; }
  .guides-page-hero h1 { letter-spacing: 4px; }
}

.members-toggle-wrap {
  max-width: 1200px;
  margin: 44px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(213, 164, 81, .18);
  text-align: center;
}

.sgms-roster {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 44px 0 8px;
  border-top: 1px solid rgba(213, 164, 81, .18);
}
.sgms-roster .section-title { margin-bottom: 34px; }
.sgms-grid { gap: 36px 28px; }
.sgm-card { max-width: 180px; }
.sgm-portrait { width: min(100%, 155px); }

@media (max-width: 620px) {
  .sgms-roster { margin-top: 38px; padding-top: 36px; }
  .sgms-roster .section-title { margin-bottom: 28px; }
  .sgm-card { max-width: 150px; }
  .sgm-portrait { width: min(100%, 130px); }
}
.members-toggle {
  min-width: 210px;
  padding: 13px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(213, 164, 81, .75);
  border-radius: 4px;
  color: #e8c077;
  background: rgba(7, 12, 14, .72);
  font: 500 13px/1 Cinzel, serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.members-toggle i {
  width: 9px;
  height: 9px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 200ms ease;
}
.members-toggle[aria-expanded="true"] i { transform: translateY(3px) rotate(225deg); }
.members-toggle:hover { color: #ffe0a0; background: rgba(113, 76, 27, .24); box-shadow: 0 0 20px rgba(213, 164, 81, .16); }
.members-panel { padding-top: 38px; animation: members-reveal 240ms ease-out; }
.members-panel[hidden] { display: none; }
.members-heading {
  margin: 0 0 30px;
  color: #ddd0bd;
  font: 500 21px/1.2 Cinzel, serif;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.members-grid { gap: 36px 28px; }
.member-card { max-width: 180px; }
.member-portrait { width: min(100%, 155px); }
@keyframes members-reveal { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 620px) {
  .members-toggle-wrap { margin-top: 34px; }
  .members-toggle { min-width: 190px; }
  .members-panel { padding-top: 30px; }
  .members-heading { font-size: 18px; margin-bottom: 25px; }
  .member-card { max-width: 150px; }
  .member-portrait { width: min(100%, 130px); }
}
