*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DARK MODE (default) ─────────────────────────── */
:root {
  --bg: #0c0c0c;
  --bg2: #141414;
  --bg3: #1c1c1c;
  --line: #242424;
  --line2: #2e2e2e;
  --text: #d8d8d8;
  --muted: #777;
  --dim: #404040;
  --white: #f0f0f0;
  --black: #000;
  --accent: #c8ff00;
  --accent-hover: #d4ff33;
  --btn-solid-bg: #f0f0f0;
  --btn-solid-color: #000;
  --btn-solid-hover-bg: #c8ff00;
  --btn-solid-hover-color: #000;
  --gcard-btn-bg: #1c1c1c;
  --gcard-btn-color: #777;
  --gcard-btn-hover-bg: #f0f0f0;
  --gcard-btn-hover-color: #000;
  --max: 1080px;
  --mono: 'DM Mono', 'Fira Mono', monospace;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius: 5px;
}

/* ── LIGHT MODE ──────────────────────────────────── */
[data-theme="light"] {
  --bg: #f4f4f4;
  --bg2: #eaeaea;
  --bg3: #dedede;
  --line: #d0d0d0;
  --line2: #b8b8b8;
  --text: #1a1a1a;
  --muted: #555;
  --dim: #999;
  --white: #111111;
  --black: #fff;
  --accent: #5a8a00;
  --accent-hover: #4a7500;
  --btn-solid-bg: #111111;
  --btn-solid-color: #ffffff;
  --btn-solid-hover-bg: #5a8a00;
  --btn-solid-hover-color: #ffffff;
  --gcard-btn-bg: #dedede;
  --gcard-btn-color: #555;
  --gcard-btn-hover-bg: #111111;
  --gcard-btn-hover-color: #ffffff;
}
[data-theme="light"] .nav { background: rgba(244,244,244,0.92); }
[data-theme="light"] .hero-discord-card,
[data-theme="light"] .hero-activity-card { background: rgba(234,234,234,0.92); }
[data-theme="light"] .hero-bg-overlay {
  background:
    linear-gradient(to right, #f4f4f4 0%, rgba(244,244,244,0.7) 40%, rgba(244,244,244,0.5) 60%, #f4f4f4 100%),
    linear-gradient(to bottom, #f4f4f4 0%, transparent 30%, transparent 70%, #f4f4f4 100%);
}
[data-theme="light"] .marquee-shell::before { background: linear-gradient(to right, #f4f4f4, transparent); }
[data-theme="light"] .marquee-shell::after  { background: linear-gradient(to left,  #f4f4f4, transparent); }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #000; }
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ── NAV ─────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(12,12,12,0.9); backdrop-filter: blur(8px); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.75rem; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--mono); font-size: 0.82rem; color: var(--white); letter-spacing: 0.03em; }
.nav-logo em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.15s; }
.nav-links a:hover { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.avail-dot { display: none; }
.avail-text { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }

/* Available badge */
.avail-badge { display: flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.65rem; color: #23a55a; border: 1px solid rgba(35,165,90,0.35); border-radius: 20px; padding: 0.25rem 0.7rem; letter-spacing: 0.04em; }
.avail-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #23a55a; flex-shrink: 0; }
.avail-badge.is-unavailable { color: #f23f43; border-color: rgba(242,63,67,0.35); }

/* Theme toggle */
.theme-toggle { background: none; border: 1px solid var(--line2); border-radius: 6px; padding: 0.3rem 0.45rem; cursor: pointer; color: var(--muted); display: flex; align-items: center; transition: border-color 0.15s, color 0.15s; }
.theme-toggle:hover { border-color: var(--dim); color: var(--white); }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--muted); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu { display: none; flex-direction: column; position: fixed; top: 52px; left: 0; right: 0; z-index: 99; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 0.5rem 0; transform: translateY(-8px); opacity: 0; transition: transform 0.2s, opacity 0.2s; pointer-events: none; }
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu a { padding: 0.85rem 1.75rem; font-size: 0.82rem; color: var(--muted); display: block; transition: color 0.12s, background 0.12s; }
.mobile-menu a:hover { color: var(--white); background: var(--bg3); }

section { border-bottom: 1px solid var(--line); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.75rem; }

/* ── HERO ─────────────────────────────────────────── */
.hero { padding-top: 52px; min-height: 55vh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 4.5rem; position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-tile { position: absolute; overflow: hidden; border-radius: 10px; transform: rotate(-12deg); opacity: 0.15; }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, var(--bg) 0%, rgba(12,12,12,0.6) 40%, rgba(12,12,12,0.4) 60%, var(--bg) 100%), linear-gradient(to bottom, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%); }
.hero-content { position: relative; z-index: 2; }
.hero-kicker { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.75rem; }
.hero-name { font-size: clamp(3.8rem,9vw,8rem); font-weight: 700; line-height: 0.92; letter-spacing: -0.04em; color: var(--white); }
.hero-name em { color: var(--accent); font-style: normal; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-top: 2.75rem; }
.hero-bio { max-width: 400px; font-size: 0.88rem; color: var(--muted); line-height: 1.75; }
.hero-btns { display: flex; gap: 0.65rem; flex-shrink: 0; }

/* Hero floating cards */
.hero-discord, .hero-activity { position: absolute; right: 2rem; z-index: 3; width: 240px; }
.hero-discord { bottom: 4.5rem; }
.hero-activity { bottom: 4.5rem; } /* JS will push this up if discord is visible */
.hero-discord-card, .hero-activity-card { background: rgba(14,14,14,0.88); border: 1px solid var(--line2); border-radius: 10px; padding: 0.9rem 1rem; backdrop-filter: blur(12px); }
.hero-discord-top { display: flex; align-items: center; gap: 0.75rem; }
.discord-avatar-wrap { position: relative; flex-shrink: 0; }
.discord-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.discord-status-dot { position: absolute; bottom: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(14,14,14,0.88); }
.discord-name { font-size: 0.82rem; font-weight: 700; color: var(--white); }
.discord-tag { font-family: var(--mono); font-size: 0.6rem; color: var(--dim); margin-top: 0.1rem; }
.hero-discord-activity { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); margin-top: 0.5rem; }
.hero-activity-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.hero-activity-app-icon { display: flex; align-items: center; flex-shrink: 0; }
.hero-activity-app-name { font-size: 0.72rem; font-weight: 600; color: var(--white); flex: 1; }
.hero-activity-dot { display: none; }
.hero-activity-file { display: flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.68rem; color: #ff8c00; margin-bottom: 0.35rem; }
.hero-activity-file-icon { font-size: 0.7rem; flex-shrink: 0; }
.hero-activity-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-activity-meta { font-family: var(--mono); font-size: 0.6rem; color: #007ACC; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1.3rem; border-radius: var(--radius); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; border: none; transition: background 0.15s, color 0.15s, transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-solid { background: var(--btn-solid-bg); color: var(--btn-solid-color); }
.btn-solid:hover { background: var(--btn-solid-hover-bg); color: var(--btn-solid-hover-color); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: var(--dim); background: var(--bg2); color: var(--white); }

/* ── STATUS BANNER ───────────────────────────────── */
.status-banner { background: rgba(200,255,0,0.06); border-bottom: 1px solid rgba(200,255,0,0.15); padding: 0.6rem 0; }
.status-banner-inner { display: flex; align-items: center; gap: 0.75rem; font-family: var(--mono); font-size: 0.72rem; }
.status-pulse { display: none; }
.status-label { color: var(--dim); letter-spacing: 0.05em; text-transform: uppercase; }
.status-text { color: var(--accent); }

/* ── STATS ───────────────────────────────────────── */
.stats-row { padding: 0; }
.stats-inner { display: grid; grid-template-columns: repeat(6, 1fr); }
.stat { padding: 1.5rem 1.75rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-icon { color: var(--dim); margin-bottom: 0.5rem; display: flex; }
.stat-n { font-family: var(--mono); font-size: 1.75rem; font-weight: 500; color: var(--white); letter-spacing: -0.03em; margin-bottom: 0.2rem; }
.stat-l { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── SECTION HEADS ───────────────────────────────── */
.sec-head { padding: 3.5rem 0 2rem; display: flex; align-items: baseline; gap: 1.25rem; }
.sec-n { font-family: var(--mono); font-size: 0.65rem; color: var(--dim); letter-spacing: 0.08em; }
.sec-t { font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.sec-sub { font-size: 0.78rem; color: var(--dim); margin-top: -1.25rem; margin-bottom: 1.75rem; line-height: 1.6; max-width: 520px; }

/* ── FEATURED GAME ───────────────────────────────── */
.featured-wrap { padding-bottom: 3.5rem; }
.featured-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s; }
.featured-card:hover { border-color: var(--line2); }
.featured-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.featured-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.featured-card:hover .featured-img { transform: scale(1.04); }
.featured-live { position: absolute; bottom: 0.75rem; left: 0.75rem; background: rgba(0,0,0,0.75); border-radius: 20px; font-family: var(--mono); font-size: 0.62rem; color: #23a55a; padding: 0.2rem 0.6rem; display: flex; align-items: center; gap: 0.35rem; }
.featured-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #23a55a; }
.featured-body { padding: 1.75rem 1.75rem 1.75rem 0; display: flex; flex-direction: column; justify-content: center; gap: 0.65rem; }
.featured-role { font-family: var(--mono); font-size: 0.65rem; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.featured-name { font-size: 1.5rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.featured-stats { display: flex; gap: 1rem; font-family: var(--mono); font-size: 0.68rem; color: #ff8c00; }
.featured-stats span { display: flex; align-items: center; gap: 0.3rem; }
.featured-btn { align-self: flex-start; margin-top: 0.5rem; }

/* ── MARQUEE / GAMES ─────────────────────────────── */
.games-wrap { padding-bottom: 0; }
.marquee-shell { display: flex; flex-direction: column; gap: 8px; overflow: hidden; position: relative; padding-bottom: 1rem; }
.marquee-shell::before, .marquee-shell::after { content: ''; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2; pointer-events: none; }
.marquee-shell::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee-shell::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
.marquee-row-wrap { overflow: hidden; position: relative; }
.m-track { display: flex; gap: 8px; width: max-content; will-change: transform; }
.m-track.r1 { animation: mLeft 50s linear infinite; }
.m-track.r2 { animation: mRight 50s linear infinite; }
@keyframes mLeft  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes mRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ── GAME CARDS ──────────────────────────────────── */
.gcard { width: 268px; flex-shrink: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); overflow: visible; transition: border-color 0.15s, transform 0.2s; }
.gcard:hover { border-color: var(--line2); transform: translateY(-3px); z-index: 20; position: relative; }
.gcard-img-wrap { height: 148px; overflow: hidden; position: relative; border-radius: var(--radius) var(--radius) 0 0; }
.gcard-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gcard:hover .gcard-img { transform: scale(1.05); }
.gcard-ph { width: 100%; height: 100%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.65rem; color: var(--dim); }
.gcard-body { padding: 0.9rem; background: var(--bg2); border-radius: 0 0 var(--radius) var(--radius); }
.gcard-name { font-size: 0.85rem; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.3rem; }
.gcard-meta { display: flex; gap: 0.85rem; font-family: var(--mono); font-size: 0.62rem; margin-bottom: 0.5rem; }
.gcard-stat { display: flex; align-items: center; gap: 0.3rem; color: #ff8c00; font-weight: 500; }
.gcard-stat svg { flex-shrink: 0; stroke: #ff8c00; }
.gcard-role { font-family: var(--mono); font-size: 0.62rem; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 0.6rem; }
.gcard-btn { display: flex; align-items: center; justify-content: center; gap: 0.35rem; width: 100%; padding: 0.45rem; background: var(--gcard-btn-bg); border: 1px solid var(--line2); border-radius: 3px; font-size: 0.68rem; font-weight: 600; color: var(--gcard-btn-color); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.2s; }
.gcard-btn:hover { background: var(--gcard-btn-hover-bg); color: var(--gcard-btn-hover-color); border-color: var(--gcard-btn-hover-bg); transform: translateY(-1px); }

.games-loading { padding: 2.5rem 1.75rem; font-family: var(--mono); font-size: 0.7rem; color: var(--dim); }
.empty-state { font-family: var(--mono); font-size: 0.68rem; color: var(--dim); padding: 2rem 0; }

/* ── EXPLORE TABS ────────────────────────────────── */
.explore-wrap { padding-bottom: 0; }
.etabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.etab { font-family: var(--mono); font-size: 0.68rem; color: var(--dim); padding: 0.6rem 1.25rem; cursor: pointer; border: none; background: transparent; border-bottom: 2px solid transparent; transition: color 0.12s, border-color 0.12s; letter-spacing: 0.05em; }
.etab:hover { color: #ff8c00; }
.etab.active { color: #ff8c00; border-bottom-color: #ff8c00; }
.epanels { position: relative; }
.epanel { display: none; padding: 2rem 0 3.5rem; }
.epanel.active { display: block; }

/* ── LIBRARIES ───────────────────────────────────── */
.libraries-wrap, .groups-wrap, .projects-wrap { padding-bottom: 3.5rem; }
.lib-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lib-card { background: var(--bg); padding: 1.4rem 1.6rem; transition: background 0.12s, transform 0.2s; }
.lib-card:hover { background: var(--bg2); transform: translateY(-2px); }
.lib-cat { font-family: var(--mono); font-size: 0.6rem; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
.lib-name { font-size: 0.92rem; font-weight: 600; color: var(--white); margin-bottom: 0.4rem; }
.lib-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.75rem; }
.lib-link { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--mono); font-size: 0.65rem; color: #ff8c00; transition: color 0.12s; }
.lib-link:hover { color: #ffaa44; }

/* ── GROUPS ──────────────────────────────────────── */
.groups-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.group-card { background: var(--bg); padding: 1.4rem; display: flex; align-items: center; gap: 1rem; transition: background 0.12s, transform 0.2s; }
.group-card:hover { background: var(--bg2); transform: translateY(-2px); }
.group-icon-wrap { flex-shrink: 0; }
.group-icon { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.group-icon-ph { width: 48px; height: 48px; border-radius: 8px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.7rem; color: var(--dim); }
.group-info { flex: 1; min-width: 0; }
.group-name-row { display: flex; align-items: center; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; color: var(--white); margin-bottom: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verified-img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.group-meta { display: flex; gap: 0.75rem; font-family: var(--mono); font-size: 0.62rem; color: #ff8c00; }
.group-rank { color: var(--accent); }
.group-link { flex-shrink: 0; color: var(--dim); transition: color 0.12s; }
.group-link:hover { color: var(--white); }

/* ── PROJECTS ────────────────────────────────────── */
.projects-grid { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proj-card { background: var(--bg); padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; transition: background 0.12s, transform 0.2s; flex: 1 1 280px; min-width: 0; }
.proj-card:hover { background: var(--bg2); transform: translateY(-2px); }
.proj-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.proj-name { font-size: 0.92rem; font-weight: 600; color: var(--white); }
.proj-lang { font-family: var(--mono); font-size: 0.6rem; color: var(--dim); letter-spacing: 0.05em; flex-shrink: 0; }
.proj-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.6; flex: 1; }
.proj-meta { display: flex; gap: 0.85rem; font-family: var(--mono); font-size: 0.65rem; color: var(--dim); }

/* ── SKILLS ──────────────────────────────────────── */
.skills-wrap { padding-bottom: 3.5rem; }
.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; gap: 1px; background: var(--line); }
.skill { background: var(--bg); padding: 1.6rem; transition: background 0.15s, transform 0.2s; }
.skill:hover { background: var(--bg2); transform: translateY(-2px); }
.skill-i { font-family: var(--mono); font-size: 0.62rem; color: var(--dim); margin-bottom: 0.85rem; letter-spacing: 0.06em; }
.skill-h { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.skill-p { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.9rem; }
.tag { font-family: var(--mono); font-size: 0.62rem; color: #ff8c00; border: 1px solid rgba(255,140,0,0.25); border-radius: 3px; padding: 0.15rem 0.45rem; }

/* ── PRICING ─────────────────────────────────────── */
.pricing-wrap { padding-bottom: 3.5rem; }
.pricing-grid { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pricing-card { background: var(--bg); padding: 1.75rem; display: flex; flex-direction: column; transition: background 0.12s, transform 0.2s; flex: 1 1 260px; min-width: 0; }
.pricing-card:hover { background: var(--bg2); transform: translateY(-2px); }
.pricing-name { font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.5rem; }
.pricing-price { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.pricing-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; flex: 1; }

/* ── TESTIMONIALS ────────────────────────────────── */
.testimonials-wrap { padding-bottom: 3.5rem; }
.testimonials-grid { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.testimonial-card { background: var(--bg); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; transition: background 0.12s; flex: 1 1 260px; min-width: 0; }
.testimonial-card:hover { background: var(--bg2); }
.testimonial-quote { font-size: 0.88rem; color: var(--text); line-height: 1.75; flex: 1; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-avatar-ph { width: 36px; height: 36px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.testimonial-name { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.testimonial-role { font-family: var(--mono); font-size: 0.62rem; color: var(--dim); margin-top: 0.1rem; }

/* ── ABOUT ───────────────────────────────────────── */
.about-wrap { padding-bottom: 3.5rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.about-p { font-size: 0.88rem; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.bars { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.bar-row { display: flex; flex-direction: column; gap: 0.35rem; }
.bar-meta { display: flex; justify-content: space-between; }
.bar-lbl { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); letter-spacing: 0.04em; }
.bar-pct { font-family: var(--mono); font-size: 0.65rem; color: var(--dim); }
.bar-track { height: 2px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 2px; width: 0; transition: width 1.2s cubic-bezier(0.25,1,0.5,1); }

/* ── LINKS / SOCIAL ──────────────────────────────── */
.links-col { display: flex; flex-direction: column; gap: 0.5rem; }
.slink { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.82rem; color: var(--muted); transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.2s; }
.slink:hover { border-color: var(--line2); background: var(--bg2); color: var(--white); transform: translateX(4px); }
.slink-lbl { font-family: var(--mono); font-size: 0.62rem; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.1rem; }
.slink-val { font-size: 0.85rem; color: var(--text); }
.slink-copy { cursor: pointer; }
.slink-copy.copied { border-color: #23a55a; }
.slink-copy.copied .slink-val { color: #23a55a; }

/* ── CONTACT ─────────────────────────────────────── */
.contact-wrap { padding-bottom: 4.5rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-p { font-size: 0.88rem; color: var(--muted); line-height: 1.8; }
.contact-response { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); margin-top: 1rem; }
.field { margin-bottom: 0.9rem; }
.field-label { display: block; font-family: var(--mono); font-size: 0.62rem; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4rem; }
.field-input { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.65rem 0.85rem; color: var(--text); font-family: var(--sans); font-size: 0.85rem; outline: none; transition: border-color 0.15s; appearance: none; -webkit-appearance: none; }
.field-input:focus { border-color: var(--line2); }
.field-input::placeholder { color: var(--dim); }
textarea.field-input { resize: vertical; min-height: 110px; }
.send-btn { width: 100%; margin-top: 0.4rem; background: var(--btn-solid-bg); color: var(--btn-solid-color); border: none; border-radius: var(--radius); padding: 0.7rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.2s; }
.send-btn:hover { background: var(--btn-solid-hover-bg); color: var(--btn-solid-hover-color); transform: translateY(-1px); }
.send-btn:active { transform: translateY(0); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.form-status { font-family: var(--mono); font-size: 0.68rem; min-height: 1rem; margin-top: 0.6rem; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #f55; }

/* ── FOOTER ──────────────────────────────────────── */
footer { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.75rem; display: flex; align-items: center; justify-content: space-between; }
.foot-copy { font-family: var(--mono); font-size: 0.62rem; color: var(--dim); }
.foot-links { display: flex; gap: 1.25rem; }
.foot-links a { font-size: 0.68rem; color: var(--dim); transition: color 0.12s; }
.foot-links a:hover { color: var(--muted); }
.foot-admin-link { color: var(--dim) !important; opacity: 0.5; transition: opacity 0.15s; }
.foot-admin-link:hover { opacity: 1; }

/* ── ANIMATIONS ──────────────────────────────────── */
.blur-in { opacity: 0; filter: blur(12px); transform: translateY(20px); animation: blurReveal 0.9s cubic-bezier(0.16,1,0.3,1) forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
@keyframes blurReveal { to { opacity: 1; filter: blur(0); transform: translateY(0); } }
.reveal { opacity: 0; filter: blur(8px); transform: translateY(18px); transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1), filter 0.75s; }
.reveal.in { opacity: 1; filter: blur(0); transform: none; }

/* ── ADMIN / DASHBOARD ───────────────────────────── */
.admin-page { min-height: 100vh; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.admin-box { width: 340px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.25rem; }
.admin-brand { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-bottom: 1.75rem; letter-spacing: 0.04em; }
.admin-brand em { color: var(--accent); font-style: normal; }
.admin-h { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.admin-sub { font-size: 0.78rem; color: var(--muted); margin-bottom: 1.75rem; }
.admin-err { font-family: var(--mono); font-size: 0.68rem; color: #f55; margin-top: 0.65rem; min-height: 1rem; }
.dash-top { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.75rem; border-bottom: 1px solid var(--line); background: var(--bg2); }
.dash-brand { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.dash-brand em { color: var(--accent); font-style: normal; }
.dash-btns { display: flex; gap: 0.5rem; }
.dash-body { max-width: 860px; margin: 2.5rem auto; padding: 0 1.75rem; }
.dash-status { font-family: var(--mono); font-size: 0.68rem; min-height: 1rem; margin-bottom: 1rem; }
.dash-status.ok { color: var(--accent); }
.dash-status.err { color: #f55; }
.dash-sec { font-size: 0.68rem; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.dash-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.dash-tab { font-family: var(--mono); font-size: 0.68rem; color: var(--dim); padding: 0.65rem 1rem; cursor: pointer; border: none; background: transparent; border-bottom: 2px solid transparent; transition: color 0.12s, border-color 0.12s; letter-spacing: 0.04em; }
.dash-tab:hover { color: var(--muted); }
.dash-tab.active { color: var(--white); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.add-box { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2.25rem; }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.add-grid .full { grid-column: 1/-1; }
.add-foot { margin-top: 0.9rem; display: flex; justify-content: flex-end; }
.tbl { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 4rem; }
.tbl-head { display: grid; grid-template-columns: 2fr 1.4fr 90px 90px 90px; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 0.55rem 1rem; font-family: var(--mono); font-size: 0.6rem; color: var(--dim); letter-spacing: 0.07em; text-transform: uppercase; }
.tbl-row { display: grid; grid-template-columns: 2fr 1.4fr 90px 90px 90px; align-items: center; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.8rem; transition: background 0.1s; }
.tbl-row:last-child { border-bottom: none; }
.tbl-row:hover { background: var(--bg2); }
.tbl-name { color: var(--white); font-weight: 500; }
.tbl-role { color: var(--muted); font-size: 0.75rem; }
.badge { font-family: var(--mono); font-size: 0.6rem; padding: 0.18rem 0.45rem; border-radius: 3px; display: inline-block; letter-spacing: 0.04em; }
.badge-on { color: var(--accent); border: 1px solid rgba(200,255,0,.2); }
.badge-off { color: var(--dim); border: 1px solid var(--line); }
.row-btns { display: flex; gap: 0.35rem; }
.sm-btn { padding: 0.28rem 0.55rem; font-size: 0.62rem; border-radius: 3px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-family: var(--mono); transition: border-color 0.12s, color 0.12s; }
.sm-btn:hover { border-color: var(--dim); color: var(--white); }
.sm-btn.del:hover { border-color: #f55; color: #f55; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 780px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .skills-grid, .lib-grid, .groups-grid, .projects-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero { padding-bottom: 2rem; }
  .hero-discord, .hero-activity { 
    position: static; 
    width: 100%; 
    right: auto; 
    bottom: auto;
    margin-top: 1rem;
  }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .add-grid { grid-template-columns: 1fr; }
  .tbl-head, .tbl-row { grid-template-columns: 1fr 1fr 80px 80px; }
  .tbl-head > span:nth-child(3), .tbl-row > span:nth-child(3) { display: none; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-body { padding: 1.25rem; }
}

/* ── SCROLL PROGRESS ─────────────────────────────── */
.scroll-progress { position: absolute; bottom: -1px; left: 0; height: 2px; background: var(--accent); width: 0; transition: width 0.1s linear; z-index: 101; }

/* ── BACK TO TOP ─────────────────────────────────── */
#back-to-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 90; width: 40px; height: 40px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--line2); color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(10px); transition: opacity 0.2s, transform 0.2s, background 0.15s; pointer-events: none; }
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#back-to-top:hover { background: var(--bg3); color: var(--white); }

/* ── VISITOR BADGE ───────────────────────────────── */
#visitor-badge { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--bg2); border: 1px solid var(--line2); border-radius: 20px; padding: 0.4rem 1rem; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); white-space: nowrap; transition: opacity 0.6s; }
#visitor-badge.fade-out { opacity: 0; }

/* ── ROBLOX PROFILE CARD ─────────────────────────── */
.roblox-profile-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.5rem; transition: border-color 0.15s; }
.roblox-profile-card:hover { border-color: var(--line2); }
.roblox-card-top { display: flex; align-items: center; gap: 0.85rem; }
.roblox-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.roblox-name { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 0.1rem; }
.roblox-user { font-family: var(--mono); font-size: 0.62rem; color: var(--dim); margin-bottom: 0.25rem; }
.roblox-meta { font-family: var(--mono); font-size: 0.6rem; color: #ff8c00; }

/* ── GAME FILTERS ────────────────────────────────── */
.games-more-head { display: flex; align-items: center; justify-content: space-between; padding-top: 2.5rem; flex-wrap: wrap; gap: 1rem; }
.game-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.filter-btn { font-family: var(--mono); font-size: 0.62rem; padding: 0.3rem 0.75rem; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer; transition: all 0.15s; letter-spacing: 0.04em; }
.filter-btn:hover { border-color: var(--line2); color: var(--muted); }
.filter-btn.active { border-color: #ff8c00; color: #ff8c00; background: rgba(255,140,0,0.06); }

/* ── PLAYING TICKER ──────────────────────────────── */
.stat-ticker { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #23a55a; margin-left: 6px; vertical-align: middle; animation: tickpulse 2s ease-in-out infinite; }
@keyframes tickpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

/* ── LAST SEEN ───────────────────────────────────── */
.hero-activity-lastseen { font-family: var(--mono); font-size: 0.58rem; color: var(--dim); margin-top: 0.25rem; }

/* ── SECTION DIVIDERS ────────────────────────────── */
.section-divider {
  position: relative;
  height: 60px;
  overflow: hidden;
  margin: 0;
  border: none;
  background: transparent;
}
.section-divider::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  background: var(--bg2);
  transform: skewY(-1.5deg);
  transform-origin: bottom left;
}
.section-divider.alt::before {
  background: var(--bg);
  transform: skewY(1.5deg);
  transform-origin: bottom right;
}

/* ── ANIMATED COUNTERS ───────────────────────────── */
.stat-n { transition: color 0.3s; }
.stat-n.counting { color: var(--accent); }

/* ── GAME CARD HOVER POPUP ───────────────────────── */
.gcard { position: relative; }
#gcard-tooltip {
  position: fixed;
  width: 220px;
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 0.85rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
#gcard-tooltip.visible { opacity: 1; }
.gcard-tooltip-name { font-size: 0.82rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.gcard-tooltip-desc { font-size: 0.72rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.65rem; }
.gcard-tooltip-stats { display: flex; flex-direction: column; gap: 0.3rem; }
.gcard-tooltip-stat { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.62rem; }
.gcard-tooltip-stat-label { color: var(--dim); }
.gcard-tooltip-stat-value { color: #ff8c00; }
