/* ===================== LSC — LifeStyle Community ======================
   Sandy / warm-dark theme. Display: Manrope. Body: Inter. Mono: JetBrains.
   ==================================================================== */
:root {
  --bg:        #14100b;
  --bg-2:      #191510;
  --surface:   #1f1a12;
  --surface-2: #262016;
  --surface-3: #2f271b;
  --line:      rgba(232, 210, 170, 0.10);
  --line-2:    rgba(232, 210, 170, 0.18);

  --sand:      #d8a765;
  --sand-2:    #e8c48a;
  --sand-3:    #b9823f;
  --sand-soft: rgba(216, 167, 101, 0.12);

  --text:   #f3ebdb;
  --text-2: #c7bba4;
  --text-3: #968b76;

  --ok:     #7cc07f;
  --warn:   #e3b23c;
  --danger: #e0685e;
  --discord:#5865f2;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --shadow:   0 18px 40px -20px rgba(0,0,0,.65);
  --shadow-2: 0 8px 20px -10px rgba(0,0,0,.5);
  --wrap: 1180px;

  --font:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Manrope', var(--font);
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 80% -8%, rgba(216,167,101,.10), transparent 60%),
    radial-gradient(700px 500px at -5% 10%, rgba(185,130,63,.06), transparent 55%);
  min-height: 100dvh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.muted { color: var(--text-2); }
.mono { font-family: var(--mono); }
.micro { font-size: 12.5px; }
.accent { color: var(--sand); }
.link { color: var(--sand); font-weight: 600; }
.link:hover { color: var(--sand-2); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------------- buttons ---------------- */
.btn {
  --bg-btn: var(--surface-2);
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg-btn); color: var(--text); cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg-btn: linear-gradient(180deg, var(--sand-2), var(--sand)); color: #201603; border-color: transparent; box-shadow: 0 10px 24px -12px rgba(216,167,101,.7); }
.btn--primary:hover { box-shadow: 0 14px 30px -12px rgba(216,167,101,.85); }
.btn--ghost { background: rgba(255,255,255,.02); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn--discord { background: var(--discord); color: #fff; border-color: transparent; }
.btn--discord:hover { background: #4a57e0; }
.btn--danger { background: color-mix(in srgb, var(--danger) 16%, transparent); color: #f4b7b0; border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 26%, transparent); }
.btn--sm { padding: 8px 14px; font-size: 13.5px; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn.is-disabled { opacity: .5; pointer-events: none; }

.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--sand-2); background: var(--sand-soft); border: 1px solid color-mix(in srgb, var(--sand) 30%, transparent); padding: 7px 15px; border-radius: 999px; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line); }
.tag--open { color: #bfe4c0; background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.tag--danger { color: #f2b3ac; background: color-mix(in srgb, var(--danger) 14%, transparent); border-color: color-mix(in srgb, var(--danger) 34%, transparent); }
.inline-ic { vertical-align: -2px; }

/* ---------------- header / nav ---------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .04em; color: #221704; background: linear-gradient(180deg, var(--sand-2), var(--sand)); padding: 8px 12px; border-radius: 11px; box-shadow: var(--shadow-2); }
.brand__mark--lg { font-size: 26px; padding: 12px 16px; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--text-2); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { font-weight: 600; font-size: 14.5px; color: var(--text-2); padding: 9px 14px; border-radius: 10px; transition: color .15s, background .15s; }
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.is-active { color: var(--sand-2); }
.nav__auth { margin-left: 12px; }
.nav-toggle { display: none; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }

.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.avatar--fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--sand-2); font-weight: 700; font-family: var(--display); }
.avatar--xs { width: 26px; height: 26px; font-size: 12px; }
.avatar--lg { width: 76px; height: 76px; font-size: 30px; }

.usermenu { position: relative; }
.usermenu__btn { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 5px; color: var(--text); cursor: pointer; font-family: var(--font); }
.usermenu__btn:hover { border-color: var(--line-2); }
.usermenu__name { font-size: 14px; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.usermenu__pop a, .usermenu__pop button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--text); background: none; border: 0; font-family: var(--font); font-size: 14px; cursor: pointer; width: 100%; text-align: left; }
.usermenu__pop a:hover, .usermenu__pop button:hover { background: var(--surface-3); color: var(--sand-2); }

.staff-banner { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 9px; background: color-mix(in srgb, var(--warn) 16%, transparent); color: #f0d38a; border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.staff-banner--muted { background: var(--surface-2); color: var(--text-2); border-color: var(--line); }

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(80px, 14vw, 168px); text-align: center; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background-image: var(--hero-img, none); background-size: cover; background-position: center; opacity: .28; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 0%, transparent 40%, var(--bg) 92%), linear-gradient(180deg, rgba(20,16,11,.4), var(--bg)); }
.hero__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero__title { font-size: clamp(48px, 11vw, 128px); letter-spacing: -0.02em; text-transform: uppercase; }
.hero__title .line { display: block; }
.hero__title .accent { background: linear-gradient(180deg, var(--sand-2), var(--sand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { max-width: 620px; font-size: clamp(16px, 2vw, 19px); color: var(--text-2); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero__stats { display: flex; gap: clamp(20px, 5vw, 60px); margin: 26px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__stats div { text-align: center; }
.hero__stats dt { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 4vw, 34px); color: var(--sand-2); }
.hero__stats dd { margin: 4px 0 0; font-size: 13px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }

/* ---------------- section heads ---------------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-title { font-size: clamp(28px, 4.5vw, 46px); }
.section-sub { max-width: 640px; margin-top: 14px; color: var(--text-2); font-size: 17px; }

/* ---------------- features ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; transition: border-color .2s, transform .2s; }
.feature-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 15px; background: var(--sand-soft); color: var(--sand); border: 1px solid color-mix(in srgb, var(--sand) 26%, transparent); margin-bottom: 18px; }
.feature-card h3 { font-size: 21px; margin-bottom: 10px; }

/* ---------------- departments ---------------- */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dept-grid--full { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dept-card { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .2s, border-color .2s, box-shadow .2s; }
.dept-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.dept-card__media { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--surface-3); }
.dept-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(15,11,7,.55) 60%, rgba(15,11,7,.94)); }
.dept-card__body { position: relative; padding: 22px; }
.dept-card__body h3 { font-size: 26px; }
.dept-card__body h3::after { content: ""; display: block; width: 40px; height: 3px; border-radius: 3px; margin-top: 10px; background: var(--accent); }
.dept-card__body p { margin-top: 10px; }
.dept-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.dept-card__go { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 22%, rgba(0,0,0,.4)); color: var(--sand-2); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---------------- news ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.news-grid--full { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s, transform .2s; }
.news-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.news-card__media { position: relative; display: block; aspect-ratio: 16/9; background: var(--surface-3) center/cover; }
.news-card__body { padding: 22px; }
.news-card__body h3 { font-size: 22px; margin: 8px 0 10px; }
.news-card__body h3 a:hover { color: var(--sand-2); }
.badge-pin { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(15,11,7,.7); color: var(--sand-2); backdrop-filter: blur(6px); }
.readmore { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--sand); font-weight: 600; font-size: 14px; }
.readmore:hover { gap: 10px; color: var(--sand-2); }

/* ---------------- gallery ---------------- */
.gallery-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.shot { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 16/10; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 14px 12px; font-size: 13px; background: linear-gradient(transparent, rgba(15,11,7,.9)); }
.shot--card .shot__cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shot__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote__btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(15,11,7,.6); border: 1px solid var(--line-2); color: var(--text-2); padding: 5px 11px; border-radius: 999px; cursor: pointer; font-family: var(--mono); font-size: 13px; transition: all .15s; }
.vote__btn:hover { color: var(--sand-2); border-color: var(--sand-3); }
.vote__btn.is-on { color: #f6c9c2; border-color: color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 18%, transparent); }
.vote__btn.is-static { cursor: default; }
.vote { margin: 0; }

/* ---------------- cta band ---------------- */
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; background: linear-gradient(120deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 52px); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- page hero / generic ---------------- */
.page-hero { padding-block: clamp(44px, 7vw, 84px) 0; }
.page-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-title { font-size: clamp(34px, 6vw, 60px); }
.page-sub { max-width: 640px; margin-top: 14px; font-size: 17px; }
.backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.backlink:hover { color: var(--sand-2); }

.dept-hero { position: relative; overflow: hidden; padding-block: clamp(60px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.dept-hero__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: .3; }
.dept-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,16,11,.55), var(--bg)); }
.dept-hero__cta { margin-top: 24px; }
.dept-hero .page-sub { color: var(--text); }

/* prose */
.prose { max-width: 760px; color: var(--text-2); font-size: 16.5px; line-height: 1.75; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 26px; color: var(--text); margin-top: 34px; }
.prose h3 { font-size: 20px; color: var(--text); margin-top: 24px; }
.prose strong { color: var(--text); }
.prose a { color: var(--sand); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose blockquote { border-left: 3px solid var(--sand-3); padding-left: 16px; color: var(--text-3); }
.prose code { font-family: var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.lede { font-size: 19px; color: var(--text); font-weight: 500; }

/* article */
.article { padding-block: clamp(40px, 6vw, 72px); }
.article__head { max-width: 760px; }
.article__title { font-size: clamp(30px, 5vw, 52px); margin-top: 10px; }
.article__cover { aspect-ratio: 16/8; border-radius: var(--r-lg); background: var(--surface-3) center/cover; margin: 30px 0; }

/* empty / state pages */
.empty { text-align: center; padding: 70px 20px; color: var(--text-3); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty svg { color: var(--sand-3); margin-bottom: 14px; }
.empty p { color: var(--text-2); }
.state-page { text-align: center; max-width: 460px; margin: 60px auto; }
.state-page__code { font-size: 64px; font-weight: 800; font-family: var(--display); color: var(--sand-3); }
.state-page h1 { font-size: 30px; margin: 6px 0 12px; }
.state-page__icon { color: var(--sand-3); margin-bottom: 16px; }
.state-page__icon--danger { color: var(--danger); }
.state-page .btn { margin-top: 22px; }

/* rules */
.rules-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.rules-toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; }
.rules-toc a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--text-2); font-size: 14px; }
.rules-toc a:hover { background: var(--surface); color: var(--text); }
.rules-toc .mono { color: var(--sand-3); }
.rule-block { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.rule-block h2 { display: flex; align-items: baseline; gap: 12px; font-size: 26px; margin-bottom: 14px; }
.rule-block__num { color: var(--sand); font-size: 18px; }

/* dashboard */
.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.profile-head__avatar { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; border: 1px solid var(--line-2); }
.profile-head__avatar--fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--sand-2); font-family: var(--display); font-weight: 800; font-size: 34px; }
.profile-head__name { font-size: clamp(28px, 5vw, 40px); }
.profile-head .btn { margin-left: auto; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 34px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat-card__label { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 8px; }
.stat-card__value { font-family: var(--display); font-weight: 800; font-size: 22px; }
.stat-card__value.is-ok { color: var(--ok); }
.stat-card__value.is-warn { color: var(--warn); }
.stat-card__value.is-accent { color: var(--sand-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; margin-bottom: 22px; }
.panel__title { font-size: 22px; margin-bottom: 18px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.notice--ok { color: #bfe4c0; background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 26%, transparent); }
.notice--warn { color: #f0d38a; background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.warn-list, .app-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.warn-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--warn); }
.warn-item--notice { border-left-color: var(--text-3); }
.warn-item--severe { border-left-color: var(--danger); }
.warn-item.is-inactive { opacity: .5; }
.warn-item__sev { font-weight: 700; font-size: 13px; font-family: var(--display); min-width: 120px; }
.warn-item__reason { flex: 1; color: var(--text-2); }
.app-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.app-item__dept { font-weight: 700; font-family: var(--display); display: block; }
.app-note { list-style: none; padding: 2px 16px 0; }
.status { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; font-family: var(--display); white-space: nowrap; }
.status--pending { color: #f0d38a; background: color-mix(in srgb, var(--warn) 16%, transparent); }
.status--approved { color: #bfe4c0; background: color-mix(in srgb, var(--ok) 16%, transparent); }
.status--rejected { color: #f2b3ac; background: color-mix(in srgb, var(--danger) 16%, transparent); }

/* forms (public) */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.input { width: 100%; font-family: var(--font); font-size: 15px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; transition: border-color .15s, background .15s; }
.input:focus { outline: none; border-color: var(--sand); background: var(--surface-3); }
.input--mono { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; }
textarea.input { resize: vertical; }
.form-page { max-width: 680px; }
.form-page__head { margin-bottom: 26px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.form-card__actions { display: flex; gap: 12px; margin-top: 8px; }

/* auth */
.auth-page { display: grid; place-items: center; min-height: 60vh; }
.auth-card { width: 100%; max-width: 440px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; margin: 18px 0 8px; }
.auth-card .btn--block { margin-top: 22px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--text-3); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-dev { display: flex; flex-direction: column; gap: 12px; text-align: left; }

/* upload */
.upload { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 20px; overflow: hidden; }
.upload__summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-family: var(--display); display: flex; align-items: center; justify-content: space-between; }
.upload__summary::-webkit-details-marker { display: none; }
.upload__form { padding: 0 22px 22px; display: grid; gap: 14px; }
.upload__actions { display: flex; align-items: center; gap: 14px; }

/* maintenance */
.maintenance { display: grid; place-items: center; min-height: 100dvh; padding: 24px; text-align: center; }
.maintenance__box { max-width: 460px; }
.maintenance__box h1 { font-size: 34px; margin: 22px 0 12px; }
.maintenance__box .btn { margin-top: 24px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 40px; }
.site-footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; padding-block: 44px; flex-wrap: wrap; }
.site-footer__brand { max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.site-footer__nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer__nav a { color: var(--text-2); font-size: 14.5px; }
.site-footer__nav a:hover { color: var(--sand-2); }
.social { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.social:hover { color: var(--sand-2); border-color: var(--line-2); }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); flex-wrap: wrap; }

/* flash */
.flash { position: fixed; top: 82px; right: 22px; z-index: 200; display: flex; align-items: center; gap: 10px; max-width: 400px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: flashIn .25s ease; }
.flash--success { border-left: 3px solid var(--ok); }
.flash--error { border-left: 3px solid var(--danger); }
.flash svg { flex-shrink: 0; color: var(--sand-2); }
.flash--error svg { color: var(--danger); }
.flash__close { margin-left: auto; background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 2px; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 14px 22px 22px; transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 13px 14px; font-size: 16px; }
  .nav__auth { margin: 8px 0 0; }
  .usermenu__pop { position: static; box-shadow: none; margin-top: 8px; }
  .feature-grid, .dept-grid, .news-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .rules-wrap { grid-template-columns: 1fr; }
  .rules-toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .brand__name { display: none; }
  .stat-cards { grid-template-columns: 1fr; }
  .flash { left: 16px; right: 16px; max-width: none; }
  .hero__stats { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; } }

/* =====================================================================
   PREMIUM SANDY LAYER — texture, depth, gold, cinematic hero, motion
   ===================================================================== */
:root {
  --gold:   #e8c48a;
  --gold-2: #f3d9a8;
  --bronze: #b9823f;
  --glow-gold: rgba(216, 167, 101, .45);
  --shadow-lg: 0 34px 80px -34px rgba(0, 0, 0, .82);
  --card-grad: linear-gradient(162deg, rgba(45, 37, 25, .92), rgba(24, 19, 13, .95));
}

/* film grain + vignette over everything (non-interactive) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .05; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body { background-attachment: fixed; }

/* reveal-on-scroll (gated by JS so content is never stuck hidden) */
html.js .reveal { opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 65ms); will-change: opacity, transform; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1 !important; transform: none !important; } }

/* hero — cinematic glow + animated gradient headline */
.hero__bg { will-change: transform; }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -12%; left: 50%; width: 72vw; height: 62vh;
  transform: translateX(-50%); pointer-events: none; opacity: .55; filter: blur(28px);
  background: radial-gradient(closest-side, var(--glow-gold), transparent 70%);
}
.hero__title { letter-spacing: -0.03em; }
.hero__title .accent {
  background: linear-gradient(100deg, var(--bronze), var(--gold-2) 42%, #fff7e8 50%, var(--gold-2) 58%, var(--bronze));
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s linear infinite;
}
@keyframes sheen { to { background-position: -250% 0; } }
.hero__stats dt { background: linear-gradient(180deg, var(--gold-2), var(--bronze)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* pill with glowing dot */
.pill { box-shadow: inset 0 0 0 1px rgba(216, 167, 101, .14), 0 10px 34px -14px var(--glow-gold); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold-2); }

/* eyebrow tick */
.eyebrow { position: relative; padding-left: 26px; }
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 2px; transform: translateY(-50%); background: linear-gradient(90deg, var(--gold), transparent); }
.section-head--center .eyebrow { padding-left: 0; }
.section-head--center .eyebrow::before { display: none; }

/* buttons — sheen sweep + refined glow */
.btn--primary { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 32px -14px var(--glow-gold); }
.btn--primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; transform: skewX(-18deg); background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transition: left .6s ease; }
.btn--primary:hover::after { left: 135%; }
.btn--ghost { backdrop-filter: blur(8px); background: rgba(255, 255, 255, .035); }

/* premium cards — gradient hairline, depth, gold hover glow */
.feature-card, .news-card, .panel, .form-card, .auth-card, .stat-card, .cta-band__inner { position: relative; background: var(--card-grad); }
.feature-card::before, .news-card::before, .panel::before, .cta-band__inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(232, 196, 138, .5), rgba(232, 196, 138, .05) 34%, rgba(232, 196, 138, 0) 66%, rgba(232, 196, 138, .14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(232, 196, 138, .2); }
.news-card:hover { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(232, 196, 138, .18); }
.dept-card:hover { box-shadow: var(--shadow-lg), 0 0 46px -22px var(--glow-gold); }
.feature-card__icon { background: linear-gradient(160deg, rgba(216, 167, 101, .24), rgba(216, 167, 101, .06)); box-shadow: inset 0 1px 0 rgba(255, 240, 214, .16); }

/* usermenu — animated open/close (class based) */
.usermenu__pop { opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); pointer-events: none; transform-origin: top right; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.usermenu.is-open .usermenu__pop { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

/* discord unlock (dashboard, after approval) */
.discord-unlock { display: flex; align-items: center; gap: 18px; padding: 20px 24px; margin-bottom: 24px; border-radius: var(--r-lg); background: linear-gradient(120deg, rgba(88, 101, 242, .2), rgba(88, 101, 242, .04)); border: 1px solid rgba(88, 101, 242, .38); }
.discord-unlock__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--discord); color: #fff; flex-shrink: 0; box-shadow: 0 10px 26px -12px rgba(88, 101, 242, .8); }
.discord-unlock__text { display: flex; flex-direction: column; gap: 3px; margin-right: auto; }
.discord-unlock__text strong { font-family: var(--display); font-size: 18px; }

/* production credit */
.prod-credit { font-weight: 600; color: var(--text-2); }
.prod-credit:hover .accent { text-decoration: underline; }

@media (max-width: 640px) {
  .discord-unlock { flex-direction: column; align-items: flex-start; }
  .discord-unlock .btn { width: 100%; }
}
