/* ═══════════════════════════════════════════════════════════
   LEVIATHAN GAMES — style.css
   Stack: CSS3 · Custom Properties · BEM · No frameworks
   Theme: Deep-sea dark · Cinzel typography · Abyssal palette
═══════════════════════════════════════════════════════════ */

/* ── 0. CUSTOM PROPERTIES ────────────────────────────────── */
:root {
  /* Palette */
  --bg:           #07080d;
  --bg-2:         #0c0e18;
  --bg-3:         #111423;
  --surface:      #141728;
  --surface-2:    #1b1f35;
  --border:       rgba(90, 110, 180, 0.15);
  --border-hover: rgba(90, 110, 180, 0.4);

  --accent:       #4fc3f7;
  --accent-dim:   rgba(79, 195, 247, 0.35);
  --accent-glow:  rgba(79, 195, 247, 0.12);
  --accent-2:     #7b6ef6;
  --accent-2-dim: rgba(123, 110, 246, 0.25);

  --text:         #e8eaf6;
  --text-muted:   #7880a8;
  --text-dim:     #3d4470;

  /* Typography */
  --font-display: 'Cinzel Decorative', serif;
  --font-head:    'Cinzel', serif;
  --font-body:    'Raleway', sans-serif;

  /* Spacing */
  --space-xs:  0.4rem;
  --space-sm:  0.8rem;
  --space-md:  1.6rem;
  --space-lg:  3.2rem;
  --space-xl:  6.4rem;
  --space-2xl: 10rem;

  /* Layout */
  --sidebar-w:    260px;
  --section-max:  1200px;
  --radius:       6px;
  --radius-lg:    14px;

  /* Motion */
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:      cubic-bezier(0.4, 0, 1, 1);
  --dur-fast:     180ms;
  --dur-mid:      380ms;
  --dur-slow:     640ms;
}

/* ── 1. RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent-dim); color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ── 2. LOADING SCREEN ───────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur-slow) var(--ease), visibility var(--dur-slow);
}

#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__abyss {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.loader__leviathan {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 0 18px var(--accent-dim));
}

.loader__ring { transform-origin: center; }
.loader__ring--1 { animation: spinCW  8s linear infinite; }
.loader__ring--2 { animation: spinCCW 5s linear infinite; }
.loader__star   { animation: pulse   3s ease-in-out infinite; transform-origin: center; }
.loader__core   { animation: corePulse 2s ease-in-out infinite; }

@keyframes spinCW  { to { transform: rotate(360deg); } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1) rotate(0deg); }
  50%       { opacity: 1;   transform: scale(1.05) rotate(5deg); }
}
@keyframes corePulse {
  0%, 100% { r: 6; opacity: 0.7; }
  50%       { r: 9; opacity: 1; }
}

.loader__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  opacity: 0.75;
}

.loader__bar {
  width: 160px;
  height: 2px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}

.loader__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 99px;
  transition: width 0.3s var(--ease);
}

/* ── 3. SIDEBAR ──────────────────────────────────────────── */
.nav-toggle {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 1100;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius);
  background: rgba(20, 23, 40, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.nav-toggle:hover { border-color: var(--accent-dim); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 99px;
  transition: transform var(--dur-mid) var(--ease), opacity var(--dur-fast);
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.sidebar {
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  width: var(--sidebar-w);
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  transform: translateX(calc(-1 * var(--sidebar-w)));
  transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow);
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
  box-shadow: 4px 0 60px rgba(0,0,0,0.6);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.sidebar__logo { width: 36px; height: 36px; flex-shrink: 0; }

.sidebar__name {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.sidebar__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.sidebar__link {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.65rem var(--space-sm);
  border-radius: var(--radius);
  border-left: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast), padding-left var(--dur-fast);
}

.sidebar__link:hover,
.sidebar__link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-glow);
  padding-left: 1.2rem;
}

.sidebar__socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.sidebar__social {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.sidebar__social svg { width: 16px; height: 16px; }
.sidebar__social:hover { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-glow); }

.sidebar__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-slow), visibility var(--dur-slow);
}

.nav-open .sidebar__overlay { opacity: 1; visibility: visible; }

/* ── 4. MAIN CONTENT WRAPPER ─────────────────────────────── */
.main { width: 100%; }

/* ── 5. SECTION COMMON ───────────────────────────────────── */
.section {
  position: relative;
  width: 100%;
  padding: var(--space-2xl) var(--space-lg);
}

.section__inner {
  max-width: var(--section-max);
  margin: 0 auto;
}

.section__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.section__inner--narrow {
  max-width: 900px;
}

.section__header {
  margin-bottom: var(--space-xl);
}

.section__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  margin-bottom: var(--space-md);
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: var(--text);
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: var(--space-sm);
  max-width: 60ch;
}

/* ── 6. SCROLL REVEAL ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 7. BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}
.btn--primary:hover {
  background: #81d4fa;
  border-color: #81d4fa;
  box-shadow: 0 0 24px var(--accent-dim);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn--ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn--discord {
  background: #5865F2;
  color: #fff;
  border-color: #5865F2;
}
.btn--discord:hover {
  background: #4752c4;
  box-shadow: 0 0 24px rgba(88,101,242,0.35);
}

.btn--steam {
  background: #1b2838;
  color: #c7d5e0;
  border-color: #2a475e;
}
.btn--steam:hover {
  background: #2a475e;
  box-shadow: 0 0 20px rgba(42,71,94,0.6);
}

.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.68rem; }
.btn--full { width: 100%; justify-content: center; }

.link-btn {
  display: inline;
  color: var(--accent);
  text-decoration: underline;
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ── 8. HERO SECTION ─────────────────────────────────────── */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#abyssCanvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 85%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-lg);
  max-width: 800px;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-lg);
  text-shadow: 0 0 60px rgba(79, 195, 247, 0.15);
}

.hero__title-line { display: block; }

.hero__title-line--accent {
  -webkit-text-stroke: 1px var(--accent);
  color: transparent;
  filter: drop-shadow(0 0 20px var(--accent-dim));
}

.hero__mission {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto var(--space-lg);
  font-style: italic;
  font-weight: 300;
}

.hero__cta-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-dim), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── 9. PROJECTS SECTION ─────────────────────────────────── */
.section--projects { background: var(--bg-2); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-mid), box-shadow var(--dur-mid), transform var(--dur-mid);
}

.project-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 40px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

.project-card--tease { opacity: 0.65; filter: saturate(0.4); }
.project-card--tease:hover { opacity: 0.9; filter: saturate(0.7); }

.project-card__media { position: relative; height: 200px; }

.project-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--surface-2) 50%, var(--bg-3) 100%);
  background-size: 200% 200%;
  animation: shimmer 6s ease infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.project-card__placeholder--2 {
  background: linear-gradient(135deg, #0a1020 0%, #1a2545 50%, #0a1020 100%);
  background-size: 200% 200%;
  animation: shimmer 6s ease infinite;
}
.project-card__placeholder--3 {
  background: linear-gradient(135deg, #120a20 0%, #251545 50%, #120a20 100%);
  background-size: 200% 200%;
  animation: shimmer 6s ease infinite;
}

.project-card__status {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  border: 1px solid;
}

.project-card__status--wip      { color: #ffca28; border-color: rgba(255,202,40,0.4); background: rgba(255,202,40,0.08); }
.project-card__status--released  { color: #66bb6a; border-color: rgba(102,187,106,0.4); background: rgba(102,187,106,0.08); }
.project-card__status--soon      { color: var(--accent-2); border-color: var(--accent-2-dim); background: rgba(123,110,246,0.08); }

.project-card__body { padding: var(--space-md) var(--space-md) var(--space-lg); }

.project-card__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.project-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }

.tag {
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-card__links { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.project-card__link {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 1px;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}

.project-card__link:hover { color: #81d4fa; border-color: #81d4fa; }

/* ── 10. STORE SECTION ───────────────────────────────────── */
.section--store {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.section--store::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-2-dim) 0%, transparent 70%);
  pointer-events: none;
}

.store__desc {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 44ch;
  line-height: 1.75;
}

.store__cta-group { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.store__cta-group .btn svg { width: 18px; height: 18px; }

.store__cards { display: flex; flex-direction: column; gap: var(--space-md); }

.store-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0;
  transition: border-color var(--dur-mid), transform var(--dur-mid);
}

.store-card:hover { border-color: var(--accent-dim); transform: translateX(4px); }

.store-card--wishlist { opacity: 0.8; }
.store-card--wishlist:hover { opacity: 1; }

.store-card__img {
  width: 100px;
  height: 70px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.store-card__img--1 {
  background: linear-gradient(135deg, #0a1825 0%, #1a3a50 100%);
}
.store-card__img--2 {
  background: linear-gradient(135deg, #0f0820 0%, #2a1060 100%);
}

.store-card__info {
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-card__title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--text);
}

.store-card__price {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.store-card__price--wish { color: var(--accent-2); }

/* ── 11. COMMUNITY SECTION ───────────────────────────────── */
.section--community { background: var(--bg-2); }

.community__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

/* Discord Card */
.discord-card {
  background: linear-gradient(145deg, #1e2052, #111428);
  border: 1px solid rgba(88,101,242,0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.discord-card__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(88,101,242,0.15);
  border-radius: 50%;
  color: #5865F2;
}
.discord-card__icon svg { width: 28px; height: 28px; }

.discord-card__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text);
}

.discord-card__desc { font-size: 0.88rem; color: var(--text-muted); }

/* Forum Preview */
.forum-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.forum-preview__title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.forum-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.forum-list__item {
  padding: var(--space-sm) var(--space-sm);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  font-size: 0.88rem;
  transition: border-color var(--dur-fast);
}

.forum-list__item:hover { border-color: var(--accent-dim); }

.forum-list__item--skeleton {
  height: 52px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeletonLoad 1.5s ease infinite;
  border: none;
}

@keyframes skeletonLoad {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.forum-list__item-title {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 400;
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-list__item-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  gap: var(--space-sm);
}

.forum-preview__more {
  display: block;
  margin-top: var(--space-md);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  transition: color var(--dur-fast);
}
.forum-preview__more:hover { color: #81d4fa; }

/* Auth Widget */
.auth-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.auth-widget__title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text);
}

.auth-widget__desc { font-size: 0.85rem; color: var(--text-muted); }

.auth-widget__actions { display: flex; gap: var(--space-sm); }

.user-dashboard { font-size: 0.88rem; color: var(--text-muted); }

/* ── 12. ABOUT SECTION ───────────────────────────────────── */
.section--about { background: var(--bg); }

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color var(--dur-mid), transform var(--dur-mid), box-shadow var(--dur-mid);
}

.team-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.team-card__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  border: 2px solid var(--border-hover);
}

.team-card__avatar--1 { background: linear-gradient(135deg, #1a3a50, #0d2035); }
.team-card__avatar--2 { background: linear-gradient(135deg, #2a1550, #180d35); }
.team-card__avatar--3 { background: linear-gradient(135deg, #1a3025, #0d2018); }

.team-card__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.team-card__role {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.team-card__bio { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-md); }

.team-card__socials { display: flex; justify-content: center; gap: var(--space-sm); }

.team-card__social {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.team-card__social:hover { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-glow); }

.about__studio {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
}

.about__studio-title {
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--accent);
}

.about__studio-text { color: var(--text-muted); line-height: 1.85; max-width: 80ch; }

/* ── 13. CONTACT SECTION ─────────────────────────────────── */
.section--contact { background: var(--bg-2); }

.contact__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }

.form-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-label--checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  color: var(--text-muted);
}

.form-label--checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  width: 100%;
  appearance: none;
}

.form-input::placeholder { color: var(--text-dim); }

.form-input:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-select { cursor: pointer; }
.form-select option { background: var(--surface); color: var(--text); }
.form-textarea { resize: vertical; min-height: 120px; }

.contact-form__status {
  font-size: 0.85rem;
  min-height: 1.2em;
  text-align: center;
}

.contact-form__status.success { color: #66bb6a; }
.contact-form__status.error   { color: #ef5350; }

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: var(--space-sm);
}

.contact__info-item { display: flex; flex-direction: column; gap: 4px; }

.contact__info-label {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact__info-value { color: var(--text-muted); font-size: 0.9rem; transition: color var(--dur-fast); }
a.contact__info-value:hover { color: var(--accent); }

/* ── 14. FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  position: relative;
}

.footer__inner {
  max-width: var(--section-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer__logo { width: 40px; height: 40px; }

.footer__tagline {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}

.footer__nav a {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--dur-fast);
}

.footer__nav a:hover { color: var(--accent); }

.footer__legal {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.footer__legal-btn {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.footer__legal-btn:hover { color: var(--accent); border-color: var(--accent-dim); }

.footer__copy {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Legal Panels */
.legal-panel {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-lg);
  animation: panelReveal var(--dur-mid) var(--ease);
}

@keyframes panelReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.legal-panel[hidden] { display: none; }

.legal-panel__inner {
  max-width: var(--section-max);
  margin: 0 auto;
  position: relative;
}

.legal-panel__title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
  color: var(--accent);
}

.legal-panel__inner h3 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-panel__inner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 70ch;
}

.legal-panel__inner a { color: var(--accent); }

.legal-panel__note { font-size: 0.8rem; color: var(--text-dim); }

.legal-panel__close {
  position: absolute;
  top: 0; right: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.legal-panel__close:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ── 15. AUTH MODAL ──────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}

.modal__box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: var(--space-lg);
  animation: modalIn var(--dur-mid) var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.modal__close:hover { color: var(--accent); border-color: var(--accent-dim); }

.modal__tabs {
  display: flex;
  gap: 0;
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: var(--space-lg);
}

.modal__tab {
  flex: 1;
  padding: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-radius: calc(var(--radius) - 1px);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.modal__tab--active { color: var(--text); background: var(--surface-2); }

.modal__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: var(--space-lg);
  color: var(--text);
}

.modal__form { display: flex; flex-direction: column; gap: var(--space-md); }
.modal__form--hidden { display: none; }

.modal__form-status { font-size: 0.85rem; min-height: 1.2em; text-align: center; }

/* ── 16. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .community__layout { grid-template-columns: 1fr 1fr; }
  .discord-card { grid-column: 1 / -1; flex-direction: row; text-align: left; }
}

@media (max-width: 768px) {
  :root {
    --space-xl:  4rem;
    --space-2xl: 6rem;
  }

  .section { padding: var(--space-xl) var(--space-md); }

  .section__inner--split,
  .contact__layout { grid-template-columns: 1fr; }

  .community__layout { grid-template-columns: 1fr; }
  .discord-card { flex-direction: column; text-align: center; }

  .hero__cta-group { flex-direction: column; align-items: center; }

  .footer__copy { margin-left: 0; }

  .store__cards { flex-direction: row; flex-wrap: wrap; }

  .projects__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.2rem, 12vw, 4rem); }
  .section__title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .footer__copy { margin-left: 0; }
}

/* ── 17. UTILITY ─────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── 18. REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}