:root {
  --bg: #eef5ef;
  --bg-accent: #dbeadf;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.97);
  --ink: #16342a;
  --muted: #64806f;
  --line: rgba(44, 90, 70, 0.14);
  --accent: #2b7a56;
  --accent-strong: #1d5a40;
  --shadow: 0 18px 48px rgba(22, 52, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(132, 196, 162, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(80, 138, 112, 0.14), transparent 24%),
    linear-gradient(180deg, #f7fbf8 0%, var(--bg) 42%, #e8f0ea 100%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.guilds-app-shell {
  position: relative;
  padding: 24px;
}

.shell-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 36%),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.54), transparent 24%);
}

.shell-header,
.guilds-app-root {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
}

.shell-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.shell-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shell-brand-link {
  font-size: 1.15rem;
  font-weight: 800;
}

.shell-brand-copy,
.shell-account-label,
.guilds-copy,
.guilds-card-copy,
.guilds-card-meta,
.guilds-note {
  color: var(--muted);
}

.shell-nav,
.shell-account,
.guilds-hero-actions,
.guilds-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shell-nav {
  justify-content: center;
}

.shell-account {
  justify-content: flex-end;
  align-items: center;
}

.shell-inline-form {
  margin: 0;
}

.shell-button,
.shell-nav-link,
.guilds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.shell-nav-link:hover,
.guilds-button:hover {
  transform: translateY(-1px);
  border-color: rgba(43, 122, 86, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

.shell-nav-link.is-active,
.guilds-button-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.shell-button-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.shell-button-secondary,
.guilds-button-secondary {
  background: rgba(255, 255, 255, 0.88);
}

.guilds-app-root {
  padding: 30px 0 56px;
}

.guilds-loading-shell,
.guilds-error-shell,
.guilds-empty-state {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.guilds-loading-kicker,
.guilds-section-kicker,
.guilds-panel-kicker,
.guilds-card-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guilds-layout {
  display: grid;
  gap: 24px;
}

.guilds-alert {
  padding: 14px 18px;
  border: 1px solid rgba(183, 147, 58, 0.24);
  border-radius: 18px;
  color: #715816;
  background: rgba(255, 245, 215, 0.92);
}

.guilds-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
}

.guilds-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.guilds-hero-main,
.guilds-hero-side,
.guilds-section {
  padding: 28px;
}

.guilds-title {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.98;
}

.guilds-featured-title,
.guilds-section-title,
.guilds-card-title {
  margin: 0;
  font-size: 1.35rem;
}

.guilds-featured-short,
.guilds-card-short {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
}

.guilds-note {
  margin: 14px 0 0;
}

.guilds-featured-grid,
.guilds-card-stat-grid,
.guilds-metrics-grid {
  display: grid;
  gap: 14px;
}

.guilds-featured-grid,
.guilds-card-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.guilds-side-metric,
.guilds-card-stat,
.guilds-metric-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
}

.guilds-side-metric span,
.guilds-card-stat span,
.guilds-metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.guilds-side-metric strong,
.guilds-card-stat strong,
.guilds-metric-value {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
  font-weight: 800;
}

.guilds-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guilds-metric-copy {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.guilds-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

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

.guilds-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
}

.guilds-card-copy {
  margin: 12px 0 0;
  min-height: 48px;
}

.guilds-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
}

.guilds-inline-link {
  color: var(--accent-strong);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .shell-header,
  .guilds-hero,
  .guilds-metrics-grid,
  .guilds-card-grid {
    grid-template-columns: 1fr;
  }

  .shell-nav,
  .shell-account {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .guilds-app-shell {
    padding: 16px;
  }

  .shell-header,
  .guilds-hero-main,
  .guilds-hero-side,
  .guilds-section,
  .guilds-loading-shell,
  .guilds-error-shell,
  .guilds-empty-state,
  .guilds-card {
    padding: 20px;
  }

  .guilds-featured-grid,
  .guilds-card-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* UI refresh: guild directory */
:root {
  --bg: #f0f2eb;
  --bg-accent: #e3eee2;
  --panel: rgba(255, 255, 255, 0.87);
  --panel-strong: rgba(255, 255, 255, 0.97);
  --ink: #14281f;
  --muted: #5d7268;
  --line: rgba(20, 40, 31, 0.1);
  --accent: #22885e;
  --accent-strong: #164e37;
  --shadow: 0 24px 60px rgba(20, 40, 31, 0.12);
  --heading-font: "Russo One", "Noto Sans SC", sans-serif;
  --body-font: "Chakra Petch", "Noto Sans SC", sans-serif;
}

body {
  font-family: var(--body-font);
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(34, 136, 94, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(20, 40, 31, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 10% 8%, rgba(34, 136, 94, 0.14), transparent 26%),
    radial-gradient(circle at 90% 14%, rgba(22, 78, 55, 0.1), transparent 22%),
    linear-gradient(180deg, #fbfcf8 0%, #f0f2eb 56%, #edf5ef 100%);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(14px);
}

body::before {
  width: 320px;
  height: 320px;
  top: 104px;
  right: -84px;
  background: radial-gradient(circle, rgba(34, 136, 94, 0.12), transparent 70%);
}

body::after {
  width: 280px;
  height: 280px;
  bottom: 10%;
  left: -90px;
  background: radial-gradient(circle, rgba(22, 78, 55, 0.1), transparent 70%);
}

a,
button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(34, 136, 94, 0.25);
  outline-offset: 3px;
}

.shell-header {
  position: sticky;
  top: 18px;
  z-index: 24;
  overflow: hidden;
}

.shell-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent), rgba(20, 40, 31, 0.18));
}

.shell-brand-link,
.guilds-title,
.guilds-featured-title,
.guilds-section-title,
.guilds-card-title {
  font-family: var(--heading-font);
  letter-spacing: 0.02em;
}

.shell-brand-link {
  text-transform: uppercase;
}

.shell-brand-copy,
.shell-account-label,
.guilds-copy,
.guilds-card-copy,
.guilds-card-meta,
.guilds-note,
.guilds-section-kicker,
.guilds-panel-kicker,
.guilds-card-kicker,
.guilds-metric-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.shell-nav-link,
.guilds-button,
.guilds-card,
.guilds-side-metric,
.guilds-card-stat,
.guilds-metric-card {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.guilds-panel,
.guilds-loading-shell,
.guilds-error-shell,
.guilds-empty-state {
  position: relative;
  overflow: hidden;
  border-color: rgba(20, 40, 31, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 247, 0.88));
}

.guilds-panel::before,
.guilds-loading-shell::before,
.guilds-error-shell::before,
.guilds-empty-state::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-strong), rgba(34, 136, 94, 0.62), transparent 80%);
}

.guilds-hero-main {
  background:
    linear-gradient(135deg, rgba(22, 78, 55, 0.96), rgba(34, 136, 94, 0.84)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 22px 22px;
  color: #f4fff8;
}

.guilds-hero-main .guilds-copy,
.guilds-hero-main .guilds-note,
.guilds-hero-main .guilds-section-kicker {
  color: rgba(244, 255, 248, 0.78);
}

.guilds-title {
  max-width: 11ch;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.shell-nav-link:hover,
.guilds-button:hover,
.guilds-card:hover,
.guilds-side-metric:hover,
.guilds-card-stat:hover,
.guilds-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 136, 94, 0.22);
  box-shadow: 0 16px 34px rgba(22, 78, 55, 0.12);
}

.guilds-side-metric,
.guilds-card-stat,
.guilds-metric-card,
.guilds-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(20, 40, 31, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.guilds-side-metric::before,
.guilds-card-stat::before,
.guilds-metric-card::before,
.guilds-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), transparent 78%);
}

.guilds-featured-short,
.guilds-card-short {
  font-weight: 800;
  text-transform: uppercase;
}

.shell-account-label,
.guilds-copy,
.guilds-card-copy,
.guilds-note {
  text-transform: none;
  letter-spacing: normal;
}

.guilds-card-meta {
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0.04em;
}

.guilds-button-secondary,
.shell-button-secondary {
  border-color: rgba(20, 40, 31, 0.1);
  background: rgba(255, 255, 255, 0.86);
}

.guilds-metric-value,
.guilds-side-metric strong,
.guilds-card-stat strong {
  font-family: var(--heading-font);
  letter-spacing: 0.03em;
}

.guilds-section-head {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(20, 40, 31, 0.08);
}

@media (max-width: 1080px) {
  .shell-header {
    top: 14px;
  }

  .guilds-title {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .shell-header {
    top: 8px;
  }

  .guilds-title {
    font-size: clamp(2.3rem, 10vw, 3.1rem);
  }
}

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

/* calmer product UI */
:root {
  --bg: #f6f8fb;
  --bg-accent: #eef6f2;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: #ffffff;
  --ink: #0f172a;
  --muted: #5b6b82;
  --line: #dbe3ef;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --heading-font: "Plus Jakarta Sans", "Noto Sans SC", sans-serif;
  --body-font: "Plus Jakarta Sans", "Noto Sans SC", sans-serif;
}

body {
  font-family: var(--body-font);
  background: linear-gradient(180deg, #fbfdff 0%, #f6f8fb 100%);
}

body::before,
body::after,
.shell-backdrop {
  display: none;
}

.shell-header {
  position: relative;
  top: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.shell-header::before,
.guilds-panel::before,
.guilds-loading-shell::before,
.guilds-error-shell::before,
.guilds-empty-state::before,
.guilds-side-metric::before,
.guilds-card-stat::before,
.guilds-metric-card::before,
.guilds-card::before {
  content: none;
}

.shell-brand-link,
.guilds-title,
.guilds-featured-title,
.guilds-section-title,
.guilds-card-title {
  font-family: var(--heading-font);
  text-transform: none;
  letter-spacing: -0.03em;
}

.shell-brand-copy,
.shell-account-label,
.guilds-section-kicker,
.guilds-panel-kicker,
.guilds-card-kicker,
.guilds-metric-label {
  letter-spacing: 0.08em;
}

.shell-brand-copy,
.shell-account-label {
  text-transform: none;
}

.shell-nav-link:hover,
.guilds-button:hover,
.guilds-card:hover,
.guilds-side-metric:hover,
.guilds-card-stat:hover,
.guilds-metric-card:hover {
  transform: none;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07);
}

.guilds-panel,
.guilds-loading-shell,
.guilds-error-shell,
.guilds-empty-state,
.guilds-side-metric,
.guilds-card-stat,
.guilds-metric-card,
.guilds-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.guilds-hero-main {
  background: #fff;
  color: var(--ink);
}

.guilds-hero-main .guilds-copy,
.guilds-hero-main .guilds-note,
.guilds-hero-main .guilds-section-kicker {
  color: var(--muted);
}

.guilds-title {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
}

.guilds-button-primary,
.shell-button-primary,
.shell-nav-link.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.guilds-section-head {
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: 0;
}

/* final direction: light, premium, clean */
:root {
  --bg: #f4f6f8;
  --panel: #fbfcfd;
  --panel-strong: #fdfdfe;
  --ink: #17212f;
  --muted: #6d7a8c;
  --line: #e6ebf1;
  --accent: #6f86a6;
  --accent-strong: #627997;
  --accent-soft: #eef3f7;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.035), 0 10px 22px rgba(16, 24, 40, 0.025);
}

body {
  background: linear-gradient(180deg, #f8f9fb 0%, var(--bg) 100%);
}

.shell-backdrop {
  background:
    radial-gradient(circle at top left, rgba(111, 134, 166, 0.025), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 32%);
}

.shell-header {
  background: rgba(251, 252, 254, 0.92);
}

.shell-header,
.guilds-panel,
.guilds-loading-shell,
.guilds-error-shell,
.guilds-empty-state,
.guilds-side-metric,
.guilds-card-stat,
.guilds-metric-card,
.guilds-card {
  box-shadow: var(--shadow);
}

.shell-brand-copy,
.shell-account-label,
.guilds-section-kicker,
.guilds-panel-kicker,
.guilds-card-kicker,
.guilds-metric-label {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.82rem;
}

.guilds-title,
.guilds-featured-title,
.guilds-section-title,
.guilds-card-title {
  letter-spacing: -0.04em;
}

.guilds-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.shell-nav-link.is-active {
  color: var(--accent);
  border-color: #d7e0ea;
  background: var(--accent-soft);
}

.guilds-button-primary,
.shell-button-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
}

@media (max-width: 720px) {
  .shell-header {
    gap: 12px;
    padding: 14px;
  }

  .shell-brand-copy,
  .shell-account-label,
  .guilds-panel-kicker,
  .guilds-section-kicker {
    display: none;
  }

  .shell-nav,
  .guilds-hero-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .shell-nav::-webkit-scrollbar,
  .guilds-hero-actions::-webkit-scrollbar {
    display: none;
  }

  .shell-nav-link,
  .shell-button,
  .guilds-button {
    min-height: 38px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .guilds-hero-main,
  .guilds-hero-side,
  .guilds-section,
  .guilds-card {
    padding: 18px;
  }

  .guilds-title {
    font-size: clamp(1.5rem, 7.2vw, 1.9rem);
    line-height: 1.08;
  }

  .guilds-hero-main > .guilds-copy,
  .guilds-hero-side .guilds-copy {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .guilds-section-head .guilds-copy {
    display: none;
  }

  .guilds-metrics-grid,
  .guilds-featured-grid,
  .guilds-card-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guilds-card-grid {
    gap: 14px;
  }

  .guilds-side-metric,
  .guilds-card-stat,
  .guilds-metric-card {
    padding: 12px;
  }
}

/* final public WOLF theme: guilds */
:root {
  --bg: #213a59;
  --panel: rgba(42, 63, 91, 0.72);
  --panel-strong: rgba(50, 73, 103, 0.82);
  --ink: #eef6ff;
  --muted: #c2d0df;
  --line: rgba(205, 226, 252, 0.28);
  --accent: #6aa6ff;
  --accent-strong: #4388f3;
  --accent-soft: rgba(106, 166, 255, 0.2);
  --gold: #f5b84b;
  --shadow: 0 22px 48px rgba(3, 10, 22, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --heading-font: "Plus Jakarta Sans", "Noto Sans SC", sans-serif;
  --body-font: "Plus Jakarta Sans", "Noto Sans SC", sans-serif;
}

html { background: #1b304b; }
body.guilds-app-shell {
  min-height: 100vh;
  padding: 0 28px 28px 190px;
  color: var(--ink);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at 58% 0%, rgba(130, 175, 233, 0.56), transparent 25%),
    radial-gradient(circle at 88% 6%, rgba(252, 203, 129, 0.24), transparent 18%),
    linear-gradient(180deg, rgba(39, 66, 101, 0.96), rgba(27, 48, 75, 0.98) 58%, #172b45 100%);
  overflow-x: hidden;
}
body.guilds-app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(128, 176, 239, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(128, 176, 239, 0.045) 1px, transparent 1px),
    radial-gradient(ellipse at 55% 12%, rgba(255, 239, 221, 0.2), transparent 34%);
  background-size: 42px 42px, 42px 42px, auto;
}
body.guilds-app-shell::after {
  content: "WOLF";
  position: fixed;
  right: 4vw;
  bottom: 1vh;
  z-index: 0;
  pointer-events: none;
  color: rgba(214, 232, 255, 0.05);
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}
.shell-backdrop { display: block; background: radial-gradient(circle at 35% 6%, rgba(255, 231, 207, 0.24), transparent 22%), linear-gradient(180deg, rgba(100, 148, 210, 0.2), transparent 42%); }
.shell-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 166px;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  padding: 34px 18px 22px;
  border: 1px solid rgba(205, 226, 252, 0.3);
  border-radius: 0 22px 22px 0;
  background: linear-gradient(180deg, rgba(31, 52, 82, 0.88), rgba(23, 43, 69, 0.8));
  box-shadow: 16px 0 42px rgba(3, 10, 22, 0.2);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.shell-header::before,
.guilds-panel::before,
.guilds-loading-shell::before,
.guilds-error-shell::before,
.guilds-empty-state::before,
.guilds-side-metric::before,
.guilds-card-stat::before,
.guilds-metric-card::before,
.guilds-card::before { content: none; }
.shell-brand { gap: 10px; }
.shell-brand-link { display: flex; align-items: center; gap: 10px; color: #f7fbff; font-family: var(--heading-font); font-size: 1.18rem; font-weight: 900; letter-spacing: 0.24em; text-transform: uppercase; }
.shell-brand-mark { width: 32px; height: 32px; display: inline-block; flex: 0 0 auto; background: #f7fbff; clip-path: polygon(50% 0, 63% 22%, 88% 12%, 78% 42%, 94% 58%, 68% 62%, 58% 100%, 50% 72%, 42% 100%, 32% 62%, 6% 58%, 22% 42%, 12% 12%, 37% 22%); box-shadow: 0 0 22px rgba(77, 147, 255, 0.45); }
.shell-brand-copy { color: #b5c6d9; font-size: 0.78rem; letter-spacing: 0.02em; line-height: 1.45; text-transform: none; }
.shell-nav { display: grid; gap: 11px; justify-content: stretch; }
.shell-nav-link { justify-content: flex-start; gap: 10px; min-height: 42px; padding: 0 14px; border-color: transparent; color: #c0cfdf; background: transparent; font-weight: 800; }
.shell-nav-link::before { content: ""; width: 18px; height: 18px; flex: 0 0 auto; background: currentColor; opacity: 0.92; -webkit-mask: var(--shell-nav-icon) center / contain no-repeat; mask: var(--shell-nav-icon) center / contain no-repeat; }
.shell-nav-link:nth-child(1) { --shell-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 10.8 12 3l9 7.8v9.7a.5.5 0 0 1-.5.5h-5.2v-6.2H8.7V21H3.5a.5.5 0 0 1-.5-.5v-9.7Z'/%3E%3C/svg%3E"); }
.shell-nav-link:nth-child(2) { --shell-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h10v2h3v3a5 5 0 0 1-5 5h-.2A5 5 0 0 1 13 15.6V18h3v2H8v-2h3v-2.4A5 5 0 0 1 9.2 13H9a5 5 0 0 1-5-5V5h3V3Z'/%3E%3C/svg%3E"); }
.shell-nav-link:nth-child(3) { --shell-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 20 5v6.2c0 5-3.2 8.6-8 10.8-4.8-2.2-8-5.8-8-10.8V5l8-3Z'/%3E%3C/svg%3E"); }
.shell-nav-link:nth-child(4) { --shell-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-7 9a7 7 0 0 1 14 0H5Z'/%3E%3C/svg%3E"); }
.shell-nav-link:nth-child(5) { --shell-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 4 7v6c0 4.4 3.5 7.3 8 8 4.5-.7 8-3.6 8-8V7l-8-4Z'/%3E%3C/svg%3E"); }
.shell-nav-link:nth-child(6) { --shell-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h2v3h6V2h2v3h3v16H4V5h3V2Zm11 9H6v8h12v-8Z'/%3E%3C/svg%3E"); }
.shell-nav-link:hover,
.shell-nav-link.is-active { transform: none; color: #f7fbff; border-color: rgba(77, 147, 255, 0.55); background: linear-gradient(90deg, rgba(47, 120, 238, 0.8), rgba(47, 120, 238, 0.18)); box-shadow: 0 0 24px rgba(77, 147, 255, 0.2), inset 0 0 16px rgba(77, 147, 255, 0.1); }
.shell-account { margin-top: auto; display: grid; justify-content: stretch; gap: 10px; }
.shell-account-label { color: #98aac0; font-size: 0.78rem; line-height: 1.4; }
.shell-inline-form, .shell-inline-form .shell-button, .shell-account > .shell-button { width: 100%; }
.shell-button, .guilds-button { min-height: 42px; border-radius: 10px; font-weight: 900; }
.shell-button-primary, .guilds-button-primary { color: #f7fbff; background: linear-gradient(180deg, #4d93ff, #2384ff); box-shadow: 0 12px 28px rgba(35, 132, 255, 0.24); }
.shell-button-secondary, .guilds-button-secondary { color: #dcecff; border-color: rgba(205, 226, 252, 0.3); background: rgba(255, 255, 255, 0.08); }
.guilds-app-root { position: relative; z-index: 1; max-width: none; padding: 28px 0 0; }
.guilds-layout { gap: 20px; }
.guilds-panel,
.guilds-loading-shell,
.guilds-error-shell,
.guilds-empty-state,
.guilds-side-metric,
.guilds-card-stat,
.guilds-metric-card,
.guilds-card { color: var(--ink); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(46, 68, 98, 0.74), rgba(31, 53, 82, 0.7)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.guilds-hero-main { color: #f8fbff; background: linear-gradient(90deg, rgba(30, 53, 83, 0.86), rgba(40, 67, 100, 0.68)), radial-gradient(circle at 78% 18%, rgba(255, 231, 204, 0.36), transparent 20%); }
.guilds-title,
.guilds-featured-title,
.guilds-section-title,
.guilds-card-title { color: #f7fbff; font-weight: 900; letter-spacing: -0.04em; }
.guilds-copy,
.guilds-card-copy,
.guilds-card-meta,
.guilds-note { color: var(--muted); }
.guilds-section-kicker,
.guilds-panel-kicker,
.guilds-card-kicker,
.guilds-metric-label { color: #a9cbf6; letter-spacing: 0.08em; }
.guilds-side-metric,
.guilds-card-stat,
.guilds-metric-card,
.guilds-card { border-color: rgba(205, 226, 252, 0.22); background: rgba(35, 58, 88, 0.62); }
.guilds-button { color: #e9f3ff; border-color: rgba(215, 233, 255, 0.24); background: rgba(255, 255, 255, 0.1); }
.guilds-metric-value,
.guilds-side-metric strong,
.guilds-card-stat strong,
.guilds-featured-short,
.guilds-card-short { color: #f7fbff; }
.guilds-card-stat span { color: #9bb1c9; }
.guilds-alert { color: #fff2cb; border-color: rgba(245, 184, 75, 0.34); background: rgba(107, 73, 21, 0.34); }
.guilds-button:hover,
.guilds-card:hover,
.guilds-side-metric:hover,
.guilds-card-stat:hover,
.guilds-metric-card:hover { transform: translateY(-2px); border-color: rgba(77, 147, 255, 0.42); box-shadow: 0 18px 36px rgba(2, 10, 23, 0.24), 0 0 0 1px rgba(77, 147, 255, 0.08); }
@media (max-width: 1080px) {
  body.guilds-app-shell { padding: 16px 22px 28px; }
  .shell-header { position: sticky; top: 16px; inset: auto; width: auto; min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 16px 18px; border-radius: 22px; margin-bottom: 18px; }
  .shell-nav { display: flex; overflow-x: auto; justify-content: flex-start; }
  .shell-account { margin-top: 0; display: flex; }
  .shell-inline-form, .shell-inline-form .shell-button, .shell-account > .shell-button { width: auto; }
}
@media (max-width: 720px) {
  body.guilds-app-shell { padding: 10px 14px 18px; }
  .shell-header { top: 10px; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
  .shell-brand-link { font-size: 1rem; }
  .shell-account-label, .shell-brand-copy { display: none; }
  .guilds-app-root { padding-top: 0; }
}

/* final guilds readability pass */
body.guilds-app-shell {
  --guild-readable-text: #eef6ff;
  --guild-readable-title: #f8fbff;
  --guild-readable-muted: #b9cce1;
  --guild-readable-line: rgba(126, 181, 255, 0.3);
}
body.guilds-app-shell .shell-nav-link,
body.guilds-app-shell .guilds-chip,
body.guilds-app-shell .guilds-button,
body.guilds-app-shell .shell-button-secondary {
  color: var(--guild-readable-text) !important;
  border-color: var(--guild-readable-line) !important;
}
body.guilds-app-shell .shell-nav-link:hover,
body.guilds-app-shell .shell-nav-link.is-active,
body.guilds-app-shell .guilds-button-primary,
body.guilds-app-shell .shell-button-primary {
  color: #ffffff !important;
}
body.guilds-app-shell h1,
body.guilds-app-shell h2,
body.guilds-app-shell h3,
body.guilds-app-shell strong,
body.guilds-app-shell .guilds-title,
body.guilds-app-shell .guilds-section-title,
body.guilds-app-shell .guilds-card-title,
body.guilds-app-shell .guilds-metric-value {
  color: var(--guild-readable-title) !important;
}
body.guilds-app-shell p,
body.guilds-app-shell small,
body.guilds-app-shell .guilds-copy,
body.guilds-app-shell .guilds-section-copy,
body.guilds-app-shell .guilds-card-copy,
body.guilds-app-shell .guilds-meta,
body.guilds-app-shell .guilds-meta-text {
  color: var(--guild-readable-muted) !important;
}
body.guilds-app-shell a:not(.guilds-button):not(.shell-nav-link):not(.shell-brand-link) {
  color: #f8fbff !important;
}
body.guilds-app-shell a:not(.guilds-button):not(.shell-nav-link):not(.shell-brand-link):hover {
  color: #8fd3ff !important;
}

/* guild detail frontend page */
.guild-detail-layout { gap: 20px; }
.guild-detail-hero { grid-template-columns: 1fr; }
.guild-detail-app-root .guilds-hero-main { padding: 34px 42px 30px; }
.guild-detail-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.guild-detail-meta-row span { padding: 8px 11px; border: 1px solid rgba(126, 181, 255, 0.24); border-radius: 999px; color: #d7e9ff; background: rgba(255,255,255,0.08); font-size: 0.84rem; font-weight: 900; }
.guild-detail-metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guild-detail-section { padding: 24px; }
.guild-detail-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guild-detail-team-card,
.guild-detail-history-card,
.guild-detail-honor-card { border: 1px solid rgba(126, 181, 255, 0.28); border-radius: 20px; background: linear-gradient(180deg, rgba(35, 58, 88, 0.72), rgba(22, 41, 66, 0.62)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.guild-detail-team-card { display: grid; gap: 14px; padding: 18px; color: #e9f3ff; text-decoration: none; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.guild-detail-team-card:hover { transform: translateY(-2px); border-color: rgba(126, 181, 255, 0.52); background: rgba(106, 166, 255, 0.14); }
.guild-detail-team-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.guild-detail-team-stats div { padding: 11px; border: 1px solid rgba(126, 181, 255, 0.18); border-radius: 14px; background: rgba(255,255,255,0.07); }
.guild-detail-team-stats span { display: block; color: #b9cce1; font-size: 0.78rem; font-weight: 900; }
.guild-detail-team-stats strong { display: block; margin-top: 5px; color: #f8fbff; font-size: 1.05rem; }
.guild-detail-history-stack { display: grid; gap: 12px; }
.guild-detail-history-card { padding: 0; overflow: hidden; }
.guild-detail-history-card summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; color: #f8fbff; font-weight: 950; }
.guild-detail-history-card summary small { color: #b9cce1; font-weight: 800; }
.guild-detail-table-wrap { overflow-x: auto; border-top: 1px solid rgba(126, 181, 255, 0.18); }
.guild-detail-table { width: 100%; border-collapse: collapse; color: #d7e9ff; }
.guild-detail-table th,
.guild-detail-table td { padding: 12px 11px; border-bottom: 1px solid rgba(126, 181, 255, 0.16); text-align: left; white-space: nowrap; }
.guild-detail-table th { color: #b9d8ff; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
.guild-detail-table td { color: #d7e9ff; }
.guild-detail-table tr:hover td { background: rgba(106, 166, 255, 0.11); }
.guild-detail-honor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guild-detail-honor-card { padding: 18px; }
.guild-detail-form { display: grid; gap: 12px; }
.guild-detail-form label { color: #f8fbff; font-weight: 900; }
.guild-detail-form textarea,
.guild-detail-form select { width: 100%; padding: 14px; border: 1px solid rgba(126, 181, 255, 0.3); border-radius: 16px; color: #eef6ff; background: rgba(9, 22, 38, 0.45); }
.guild-detail-form textarea { resize: vertical; }
.guild-detail-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.guild-detail-action-row form { margin: 0; }
.guild-detail-pending-wrap { margin-top: 18px; border: 1px solid rgba(126, 181, 255, 0.22); border-radius: 18px; }
.guild-detail-app-shell .shell-nav-link[href="/guilds"] { color: #f7fbff; border-color: rgba(77, 147, 255, 0.55); background: linear-gradient(90deg, rgba(47, 120, 238, 0.8), rgba(47, 120, 238, 0.18)); }
@media (max-width: 1180px) { .guild-detail-metrics-grid, .guild-detail-team-grid, .guild-detail-honor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .guild-detail-app-root .guilds-hero-main, .guild-detail-section { padding: 22px; } .guild-detail-metrics-grid, .guild-detail-team-grid, .guild-detail-honor-grid, .guild-detail-team-stats { grid-template-columns: 1fr; } .guild-detail-history-card summary { align-items: flex-start; flex-direction: column; } }

/* final guild detail readability override */
body.guild-detail-app-shell .guilds-panel,
body.guild-detail-app-shell .guilds-metric-card,
body.guild-detail-app-shell .guild-detail-team-card,
body.guild-detail-app-shell .guild-detail-history-card,
body.guild-detail-app-shell .guild-detail-honor-card,
body.guild-detail-app-shell .guilds-empty-state,
body.guild-detail-app-shell .guild-detail-table-wrap {
  color: #eef6ff !important;
  border-color: rgba(126, 181, 255, 0.34) !important;
  background-color: rgba(35, 58, 88, 0.68) !important;
}
body.guild-detail-app-shell .guilds-title,
body.guild-detail-app-shell .guilds-section-title,
body.guild-detail-app-shell .guilds-card-title,
body.guild-detail-app-shell .guilds-metric-value,
body.guild-detail-app-shell h1,
body.guild-detail-app-shell h2,
body.guild-detail-app-shell h3,
body.guild-detail-app-shell strong {
  color: #f8fbff !important;
}
body.guild-detail-app-shell .guilds-copy,
body.guild-detail-app-shell .guilds-card-copy,
body.guild-detail-app-shell .guilds-metric-copy,
body.guild-detail-app-shell .guild-detail-meta-row span,
body.guild-detail-app-shell .guild-detail-team-stats span,
body.guild-detail-app-shell p,
body.guild-detail-app-shell small {
  color: #b9cce1 !important;
}
body.guild-detail-app-shell .guilds-section-kicker,
body.guild-detail-app-shell .guilds-panel-kicker,
body.guild-detail-app-shell .guilds-card-kicker,
body.guild-detail-app-shell .guilds-metric-label,
body.guild-detail-app-shell .guild-detail-table th {
  color: #b9d8ff !important;
}
body.guild-detail-app-shell .guild-detail-table,
body.guild-detail-app-shell .guild-detail-table td {
  color: #d7e9ff !important;
}
body.guild-detail-app-shell .guild-detail-table th,
body.guild-detail-app-shell .guild-detail-table td {
  border-bottom-color: rgba(126, 181, 255, 0.18) !important;
}
body.guild-detail-app-shell .guild-detail-team-stats div,
body.guild-detail-app-shell .guild-detail-meta-row span {
  border-color: rgba(126, 181, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
body.guild-detail-app-shell .guilds-button,
body.guild-detail-app-shell .shell-button-secondary {
  color: #eef6ff !important;
  border-color: rgba(126, 181, 255, 0.34) !important;
}
body.guild-detail-app-shell .guilds-button-primary,
body.guild-detail-app-shell .shell-button-primary {
  color: #ffffff !important;
  border-color: rgba(126, 181, 255, 0.72) !important;
  background: linear-gradient(180deg, #6aa6ff 0%, #2f78ee 100%) !important;
}
body.guild-detail-app-shell a:not(.guilds-button):not(.shell-nav-link):not(.shell-brand-link) {
  color: #f8fbff !important;
}
body.guild-detail-app-shell a:not(.guilds-button):not(.shell-nav-link):not(.shell-brand-link):hover {
  color: #8fd3ff !important;
}
body.guild-detail-app-shell .guild-detail-form textarea {
  color: #eef6ff !important;
  border-color: rgba(126, 181, 255, 0.34) !important;
  background: rgba(9, 22, 38, 0.48) !important;
}

/* public page heading clipping guard */
body.guilds-app-shell .guilds-section-kicker,
body.guilds-app-shell .guilds-panel-kicker,
body.guilds-app-shell .guilds-card-kicker,
body.guilds-app-shell .guilds-loading-kicker {
  display: block !important;
  line-height: 1.45 !important;
  margin-top: 0 !important;
  overflow: visible !important;
  padding-top: 2px !important;
  transform: none !important;
}
body.guilds-app-shell .guilds-title,
body.guilds-app-shell .guilds-section-title,
body.guilds-app-shell .guilds-card-title {
  line-height: 1.18 !important;
  overflow: visible !important;
  padding-top: 2px !important;
}
body.guilds-app-shell .guilds-panel,
body.guilds-app-shell .guilds-card,
body.guilds-app-shell .guilds-metric,
body.guilds-app-shell .guilds-empty-state,
body.guilds-app-shell .guilds-loading-shell,
body.guilds-app-shell .guilds-error-shell {
  overflow: visible !important;
}
