/* ─── RESET & TOKENS ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080812;
  --bg2:         #0c0c1a;
  --surface:     #0f0f1e;
  --surface2:    #13132a;
  --border:      rgba(255,255,255,0.07);
  --grad-a:      #ff2d78;
  --grad-b:      #a020f0;
  --grad:        linear-gradient(135deg, var(--grad-a), var(--grad-b));
  --text:        #e8e8f4;
  --text2:       #9090b4;
  --text3:       #55557a;
  --nav-h:       64px;
  --sidebar-w:   220px;
  --mob-nav-h:   60px;
  --r:           12px;
  --r-lg:        16px;
  --ease:        0.18s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a  { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; line-height: 1.2; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input  { font: inherit; }
img    { display: block; max-width: 100%; }

/* ─── NOISE OVERLAY ──────────────────────────────────────────────────────── */
.noise {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ─── AMBIENT GLOW BLOBS ─────────────────────────────────────────────────── */
.blob { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform; }

.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(160,32,240,.18) 0%, transparent 70%);
  top: -280px; left: -180px;
  animation: bFloat1 20s ease-in-out infinite;
}
.blob-2 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(255,45,120,.15) 0%, transparent 70%);
  top: 35%; right: -180px;
  animation: bFloat2 25s ease-in-out infinite;
}
.blob-3 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0,180,255,.09) 0%, transparent 70%);
  bottom: 5%; left: 22%;
  animation: bFloat3 30s ease-in-out infinite;
}

@keyframes bFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(50px,70px) scale(1.06); }
  70%     { transform: translate(-30px,35px) scale(.96); }
}
@keyframes bFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  35%     { transform: translate(-55px,-45px) scale(1.1); }
  65%     { transform: translate(35px,25px) scale(.92); }
}
@keyframes bFloat3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(45px,-65px) scale(1.08); }
}

/* ─── TOP NAV ────────────────────────────────────────────────────────────── */
#top-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 200;
  background: rgba(8,8,18,.88);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 1.25rem; gap: 1rem;
}

.nav-logo { width: var(--sidebar-w); flex-shrink: 0; padding-left: .25rem; }

.logo {
  display: inline-flex; align-items: center;
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.4rem; letter-spacing: -.5px;
}
.logo-nn {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-plays { color: var(--text); }

.nav-search { flex: 1; max-width: 520px; margin: 0 auto; }

.search-box {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0 .875rem; height: 40px;
  color: var(--text2); cursor: text;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.search-box:focus-within {
  border-color: rgba(255,45,120,.45);
  box-shadow: 0 0 0 3px rgba(255,45,120,.08);
  color: var(--text);
}
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: .9rem;
}
.search-box input::placeholder { color: var(--text3); }
.search-hint {
  font-size: .68rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 5px; color: var(--text3); white-space: nowrap;
}

.nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

.btn-signin {
  background: var(--grad); color: #fff;
  font-weight: 600; font-size: .875rem;
  padding: .45rem 1.1rem; border-radius: 8px;
  transition: opacity var(--ease);
}
.btn-signin:hover { opacity: .82; }

.avatar-wrap { position: relative; }

.avatar-btn {
  display: flex; align-items: center; gap: .4rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: .28rem .55rem .28rem .28rem;
  transition: border-color var(--ease);
}
.avatar-btn:hover { border-color: rgba(255,255,255,.2); }

.avatar-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

.chevron { color: var(--text2); transition: transform var(--ease); }
.avatar-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.avatar-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r); min-width: 184px; padding: .4rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.65);
  z-index: 300; animation: ddIn .15s ease;
}
.avatar-dropdown[hidden] { display: none; }

@keyframes ddIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dd-item {
  display: flex; align-items: center; gap: .625rem;
  padding: .5rem .75rem; border-radius: 6px;
  font-size: .875rem; color: var(--text2);
  width: 100%; text-align: left;
  transition: background var(--ease), color var(--ease);
}
.dd-item:hover { background: rgba(255,255,255,.06); color: var(--text); }
.dd-divider { border: none; border-top: 1px solid var(--border); margin: .3rem .5rem; }
.dd-signout { color: #ff5577; }
.dd-signout:hover { background: rgba(255,50,80,.1); }

/* ─── SIDEBAR ─────────────────────────────────────────────────────────────── */
#sidebar {
  position: fixed; top: var(--nav-h); left: 0;
  width: var(--sidebar-w); height: calc(100vh - var(--nav-h));
  overflow-y: auto; z-index: 100;
  padding: 1rem .75rem 2rem;
  border-right: 1px solid var(--border);
  background: rgba(8,8,18,.55);
  display: flex; flex-direction: column; gap: .25rem;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.sidebar-link {
  display: flex; align-items: center; gap: .625rem;
  padding: .55rem .75rem; border-radius: 8px;
  font-size: .875rem; color: var(--text2);
  transition: background var(--ease), color var(--ease);
}
.sidebar-link:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sidebar-link.is-active { background: rgba(255,45,120,.12); color: var(--text); }
.sidebar-link.is-active svg { stroke: var(--grad-a); }

.sidebar-section { margin-top: 1.5rem; }

.sidebar-heading {
  font-size: .68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text3);
  padding: 0 .75rem; margin-bottom: .5rem;
}

#sidebar-cats { display: flex; flex-direction: column; gap: 2px; }

.sidebar-cat-link {
  display: flex; align-items: center; gap: .5rem;
  padding: .4rem .75rem; border-radius: 6px;
  font-size: .82rem; color: var(--text3); cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.sidebar-cat-link:hover { background: rgba(255,255,255,.04); color: var(--text2); }

.sidebar-cat-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.sidebar-footer {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ─── MAIN LAYOUT ─────────────────────────────────────────────────────────── */
#main {
  margin-left: var(--sidebar-w);
  padding: calc(var(--nav-h) + 2.25rem) 2rem 4rem;
  position: relative; z-index: 1;
  max-width: calc(var(--sidebar-w) + 1100px);
}

/* ─── HERO ────────────────────────────────────────────────────────────────── */
#hero {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  position: relative; margin-bottom: 2.25rem;
}
#hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,45,120,.1) 0%, rgba(160,32,240,.07) 100%);
}
#hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2.75rem 3rem; gap: 2rem;
}

.hero-text { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(255,45,120,.15); border: 1px solid rgba(255,45,120,.3);
  color: var(--grad-a); font-size: .75rem; font-weight: 600;
  padding: .28rem .75rem; border-radius: 100px; margin-bottom: 1rem; letter-spacing: .3px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800;
  line-height: 1.04; letter-spacing: -1.5px; margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 25%, var(--grad-a) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  color: var(--text2); font-size: 1rem; margin-bottom: 1.75rem; max-width: 340px;
}

.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--grad); color: #fff;
  font-weight: 600; font-size: .9rem;
  padding: .65rem 1.4rem; border-radius: 9px; white-space: nowrap;
  transition: opacity var(--ease), transform var(--ease);
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text); font-weight: 500; font-size: .9rem;
  padding: .65rem 1.4rem; border-radius: 9px; white-space: nowrap;
  transition: background var(--ease);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.hero-visual { flex-shrink: 0; position: relative; width: 260px; height: 190px; }

.hero-card {
  position: absolute; border-radius: 10px; border: 1px solid var(--border);
  animation: hFloat 4s ease-in-out infinite;
}
.hc-1 {
  width: 120px; height: 80px; top: 10px; left: 18px;
  background: linear-gradient(135deg,#1a0033,#6600cc);
  transform: rotate(-6deg);
  box-shadow: 0 8px 32px rgba(160,32,240,.35);
  animation-delay: 0s;
}
.hc-2 {
  width: 132px; height: 87px; top: 52px; left: 78px;
  background: linear-gradient(135deg,#1a0005,#cc0044);
  box-shadow: 0 8px 32px rgba(255,45,120,.35);
  animation-delay: -.8s;
}
.hc-3 {
  width: 112px; height: 74px; top: 108px; left: 28px;
  background: linear-gradient(135deg,#000d1a,#0055cc);
  transform: rotate(4deg);
  box-shadow: 0 8px 32px rgba(0,100,255,.2);
  animation-delay: -.4s;
}

@keyframes hFloat {
  0%,100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-8px) rotate(var(--r, 0deg)); }
}

/* ─── SECTION SHARED ──────────────────────────────────────────────────────── */
.content-section { margin-bottom: 3rem; }

.section-header {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.section-header h2 { font-size: 1.2rem; font-weight: 700; }

.section-tag {
  font-size: .7rem; font-weight: 600; color: var(--grad-a);
  background: rgba(255,45,120,.1); border: 1px solid rgba(255,45,120,.2);
  padding: .18rem .55rem; border-radius: 100px;
}

.game-count { font-size: .78rem; color: var(--text3); margin-left: auto; }

/* ─── CATEGORY CHIPS ──────────────────────────────────────────────────────── */
#filter-chips {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}

.chip {
  display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); font-size: .8rem; font-weight: 500;
  padding: .38rem .875rem; border-radius: 100px;
  cursor: pointer; white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.chip:hover { border-color: rgba(255,255,255,.18); color: var(--text); }
.chip.is-active { background: var(--grad); border-color: transparent; color: #fff; }

/* ─── RESUME SECTION ──────────────────────────────────────────────────────── */
.resume-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.resume-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); display: flex; align-items: center; gap: 1rem; padding: 1rem;
}
.resume-thumb {
  width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.resume-info { flex: 1; min-width: 0; }
.resume-info h3 {
  font-size: .9rem; font-weight: 600; margin-bottom: .3rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.resume-bar {
  height: 4px; background: rgba(255,255,255,.08);
  border-radius: 2px; margin-bottom: .625rem; overflow: hidden;
}
.resume-bar-fill { height: 100%; background: var(--grad); border-radius: 2px; }
.btn-resume {
  display: inline-flex; align-items: center;
  font-size: .78rem; font-weight: 600; color: var(--grad-a);
  background: rgba(255,45,120,.1); border: 1px solid rgba(255,45,120,.2);
  padding: .28rem .7rem; border-radius: 6px;
  transition: background var(--ease);
}
.btn-resume:hover { background: rgba(255,45,120,.2); }

/* ─── GAME CARDS ──────────────────────────────────────────────────────────── */
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 1rem;
}

.game-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; cursor: pointer; position: relative;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,45,120,.35);
  box-shadow: 0 14px 44px rgba(255,45,120,.13);
}

.game-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
}
.game-thumb-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 2.6rem;
}

.play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--ease);
}
.game-card:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 0 24px rgba(255,45,120,.55);
  transition: transform var(--ease);
}
.game-card:hover .play-btn { transform: scale(1.1); }

.badge {
  position: absolute; top: 8px; left: 8px;
  font-size: .6rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; padding: .18rem .48rem;
  border-radius: 4px; line-height: 1; z-index: 1;
}
.badge-hot { background: #ff2d78; color: #fff; }
.badge-new { background: #10b981; color: #fff; }
.badge-top { background: #f59e0b; color: #000; }

.game-card-body { padding: .7rem; }
.game-card-title {
  font-family: 'Syne', sans-serif; font-size: .9rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .3rem;
}
.game-card-meta {
  display: flex; align-items: center; justify-content: space-between; gap: .4rem;
}
.game-card-cat {
  font-size: .7rem; color: var(--text3);
  background: rgba(255,255,255,.05); padding: .14rem .48rem; border-radius: 4px;
}
.game-card-rating { font-size: .76rem; color: #f59e0b; font-weight: 600; }

/* ─── SKELETON CARDS ──────────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.game-card.skeleton { pointer-events: none; }

.game-card.skeleton::before {
  content: ''; display: block; aspect-ratio: 16/9;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite linear;
}
.game-card.skeleton::after {
  content: ''; display: block; height: 64px; margin: .75rem;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite linear;
}

/* ─── EDITORS PICKS ───────────────────────────────────────────────────────── */
.h-scroll {
  display: flex; gap: 1rem; overflow-x: auto;
  padding-bottom: .75rem; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { height: 3px; }
.h-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }

.editors-card {
  flex-shrink: 0; width: 230px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: transform var(--ease), border-color var(--ease);
}
.editors-card:hover { transform: translateY(-3px); border-color: rgba(255,45,120,.3); }

.editors-thumb {
  height: 115px; display: flex; align-items: center;
  justify-content: center; font-size: 3rem;
}
.editors-body { padding: .75rem; }
.editors-body h3 { font-size: .92rem; font-weight: 700; margin-bottom: .2rem; }
.editors-body p { font-size: .76rem; color: var(--text3); }

/* ─── LEADERBOARD ─────────────────────────────────────────────────────────── */
.leaderboard-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }

.lb-row {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: .875rem 1.25rem;
  transition: border-color var(--ease);
}
.lb-row:first-child { border-color: rgba(255,215,0,.2); }
.lb-row:hover { border-color: rgba(255,255,255,.12); }

.lb-rank {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1rem; width: 2rem; flex-shrink: 0; text-align: center;
}

.lb-av {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; flex-shrink: 0; color: #fff;
}
.lb-name { flex: 1; font-weight: 600; font-size: .9rem; }
.lb-game { font-size: .76rem; color: var(--text3); white-space: nowrap; }
.lb-score {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .95rem;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; flex-shrink: 0;
}

/* ─── YOUTUBE SECTION ─────────────────────────────────────────────────────── */
.yt-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 200px;
}
.yt-thumb {
  background: linear-gradient(135deg,#0d0019,#2a0060,#1a0040);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .875rem; padding: 2rem; position: relative; overflow: hidden;
}
.yt-thumb::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,45,120,.22) 0%, transparent 65%);
}
.yt-play {
  width: 66px; height: 66px; border-radius: 50%; background: rgba(255,0,0,.88);
  display: flex; align-items: center; justify-content: center; color: #fff;
  position: relative; z-index: 1; box-shadow: 0 0 36px rgba(255,0,0,.45);
  transition: transform var(--ease);
}
.yt-card:hover .yt-play { transform: scale(1.08); }
.yt-thumb-label { font-size: .78rem; color: rgba(255,255,255,.45); position: relative; z-index: 1; }

.yt-info {
  padding: 2rem; display: flex; flex-direction: column;
  justify-content: center; gap: 1rem;
}
.yt-channel { display: flex; align-items: center; gap: .75rem; }
.yt-av {
  width: 44px; height: 44px; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.yt-ch-name { font-weight: 700; font-size: 1rem; }
.yt-ch-sub { font-size: .76rem; color: var(--text3); }
.yt-desc { font-size: .875rem; color: var(--text2); }

.btn-yt {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #ff0000; color: #fff;
  font-weight: 600; font-size: .875rem;
  padding: .6rem 1.2rem; border-radius: 8px; align-self: flex-start;
  transition: background var(--ease), transform var(--ease);
}
.btn-yt:hover { background: #cc0000; transform: translateY(-1px); }

/* ─── BOTTOM NAV (mobile only) ────────────────────────────────────────────── */
#bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--mob-nav-h); z-index: 200;
  background: rgba(8,8,18,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}

.tab-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .18rem; flex: 1; height: 100%; color: var(--text3);
  font-size: .58rem; font-weight: 500; min-width: 44px; min-height: 44px;
  transition: color var(--ease);
}
.tab-item:hover, .tab-item.is-active { color: var(--grad-a); }
.tab-item.is-active svg { stroke: var(--grad-a); }

/* ─── FADE-UP ANIMATION ───────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp .5s ease both;
  animation-delay: var(--delay, 0s);
}

/* ─── 404 PAGE ────────────────────────────────────────────────────────────── */
.error-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh; gap: 1rem; text-align: center;
}
.error-page h1 { font-size: 6rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ─── RESPONSIVE: tablet ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 180px; }
  .hero-visual { display: none; }
  .hero-inner { padding: 2rem 2rem; }
}

/* ─── RESPONSIVE: mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #sidebar   { display: none; }
  #bottom-nav { display: flex; }

  #main {
    margin-left: 0;
    padding: calc(var(--nav-h) + 1.25rem) 1rem calc(var(--mob-nav-h) + 1.25rem);
  }

  .nav-logo { width: auto; }
  .search-hint { display: none; }
  .hero-inner { padding: 1.75rem; }
  .hero-visual { display: none; }
  .yt-card { grid-template-columns: 1fr; }
  .yt-thumb { min-height: 130px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .resume-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; letter-spacing: -.5px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .leaderboard-list .lb-game { display: none; }
}
