   /* ==============================
       HOBBY
    ============================== */
    .hobby-tabs {
      display: flex;
      gap: 0.5rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 2.5rem;
    }

    .hobby-tab {
      padding: 0.5rem 1.2rem;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-dim);
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 600;
      transition: all 0.2s;
    }

    .hobby-tab.active,
    .hobby-tab:hover {
      border-color: var(--purple);
      color: var(--purple);
      background: rgba(184,71,245,0.08);
    }

    .hobby-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.2rem;
    }

    .hobby-card {
      padding: 1.5rem;
      border-radius: 16px;
      background: var(--card);
      border: 1px solid var(--border);
      transition: all 0.3s;
      display: none;
    }

    .hobby-card.show {
      display: block;
      animation: fadeInUp 0.4s ease forwards;
    }

    @keyframes fadeInUp {
      from { opacity:0; transform:translateY(16px); }
      to   { opacity:1; transform:translateY(0); }
    }

    .hobby-card:hover {
      border-color: var(--border-glow);
      background: var(--card-hover);
      transform: translateY(-4px);
      box-shadow: 0 12px 30px rgba(184,71,245,0.12);
    }

    /* Skill bar inside hobby */
    .skill-item { margin-bottom: 0.8rem; }

    .skill-label {
      display: flex;
      justify-content: space-between;
      font-size: 0.8rem;
      color: var(--text-dim);
      margin-bottom: 0.3rem;
    }
    
    .skill-pips {
      display: flex;
      gap: 5px;
    }
    .pip {
      width: 22px;
      height: 4px;
      border-radius: 3px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.06);
    }
    .pip.on {
      background: var(--pip-color, rgba(255,255,255,0.4));
      box-shadow: 0 0 5px var(--pip-color, rgba(255,255,255,0.15));
      border-color: transparent;
    }

    /* Gaming rank row */
    .rank-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.7rem 0;
      border-bottom: 1px solid var(--border);
    }

    .rank-row:last-child { border-bottom: none; }



    /* ==============================
       HOBBY CARD — UPGRADED
    ============================== */
    .hobby-card-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 0.9rem;
    }

    .hobby-icon-wrap {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      border: 1px solid;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      flex-shrink: 0;
    }

    .hobby-meta {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }

    .hobby-card-title {
      font-weight: 800;
      font-size: 0.95rem;
      margin: 0;
    }

    .hobby-level-badge {
      display: inline-block;
      padding: 0.15rem 0.6rem;
      border-radius: 999px;
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      border: 1px solid;
      width: fit-content;
    }

    .hobby-desc {
      font-size: 0.82rem;
      color: var(--text-dim);
      line-height: 1.7;
      margin-bottom: 0.8rem;
    }

    .hobby-divider {
      height: 1px;
      background: var(--border);
      margin: 0.8rem 0;
    }

    /* Tools / Tags row */
    .hobby-tools {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin-top: 0.8rem;
    }

    .hobby-tool {
      padding: 0.2rem 0.6rem;
      border-radius: 6px;
      font-size: 0.68rem;
      font-weight: 600;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      color: var(--text-dim);
    }

    /* Achievement bar */
    .hobby-achievement {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      padding: 0.6rem 0.8rem;
      border-radius: 10px;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border);
      margin-top: 0.8rem;
      font-size: 0.78rem;
      color: var(--text-dim);
      line-height: 1.5;
    }

    .ach-icon {
      font-size: 1rem;
      flex-shrink: 0;
      margin-top: 0.05rem;
    }

    /* Sport stats mini grid */
    .sport-stats {
      display: flex;
      gap: 0.5rem;
    }

    .sport-stat {
      flex: 1;
      text-align: center;
      padding: 0.6rem 0.4rem;
      border-radius: 10px;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border);
    }

    .sport-stat-num {
      font-size: 0.9rem;
      font-weight: 900;
      margin-bottom: 0.2rem;
    }

    .sport-stat-label {
      font-size: 0.62rem;
      color: var(--text-dim);
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    /* Game rank row — ปรับจาก rank-row เดิม */
    .game-rank-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.5rem 0.6rem;
      border-radius: 8px;
      transition: background 0.2s;
    }

    .game-rank-row:hover {
      background: rgba(255,255,255,0.03);
    }

    .game-info {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .game-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .game-name {
      font-size: 0.85rem;
      font-weight: 500;
    }




    /* ══════════════════════════════════════════
   HOBBY INTEL GALLERY — Button States
══════════════════════════════════════════ */

/* ── Base btn (override เดิม) ── */
.hobby-gallery-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  margin-top: 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.35);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: not-allowed;           /* default = กำลังโหลด */
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
  position: relative;
}

/* SCANNING state */
.hobby-gallery-btn.scanning {
  border-color: rgba(0,212,255,0.15);
  background: rgba(0,212,255,0.03);
  cursor: not-allowed;
}
.hobby-gallery-btn.scanning .btn-arrow {
  animation: hgArrowSpin 1s linear infinite;
  color: rgba(0,212,255,0.4);
}
@keyframes hgArrowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* READY state - สาย Hardcore Terminal */
.hobby-gallery-btn.ready {
  border: 1px solid #00b7ff; /* เข้มสัดสไตล์จอมทัพ */
  background: rgba(255,255,255,0.02);
  color: #4ade80; /* เขียว Matrix แบบไม่อ้อมค้อม */
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hobby-gallery-btn.ready:hover {
  border-color: #00b7ff;
  background: rgba(74, 180, 222, 0.05);
  box-shadow: 0 0 10px rgba(74, 175, 222, 0.2); /* เรืองแสงแบบมีจุดหมาย ไม่ฟุ้งมั่ว */
  filter: brightness(1.2);
}

/* OPEN state - สภาวะ Overclock */
.hobby-gallery-btn.open {
  border-color: #00d4ff;
  background: #00d4ff10;
  color: #00d4ff;
  box-shadow: inset 0 0 12px rgba(0, 212, 255, 0.1);
}

.hobby-gallery-btn.open .btn-arrow {
  transform: rotate(180deg) translateY(-2px); /* หักมุมแบบตั้งใจ */
  color: #00d4ff;
  text-shadow: 0 0 8px #00d4ff;
}

/* ── scan wrap ── */
.hg-scan-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.hg-scan-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  animation: hgIconPulse 1.2s ease-in-out infinite;
}
@keyframes hgIconPulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.4; }
}
.hg-scan-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}
.hg-scan-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(0,212,255,0.7);
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hg-scan-bar-track {
  height: 2px;
  background: rgba(0,212,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}
.hg-scan-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00d4ff, #b847f5);
  border-radius: 99px;
  box-shadow: 0 0 6px rgba(0,212,255,0.5);
  transition: width 0.15s ease-out;
}
.hg-scan-counter {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
}

/* spinner */
.hg-spinner {
  width: 12px; height: 12px;
  border: 1.5px solid rgba(0,212,255,0.15);
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: hgSpin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes hgSpin {
  to { transform: rotate(360deg); }
}

/* ── ready dot ── */
.hg-ready-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00a2ff;
  box-shadow: 0 0 6px #22c55e;
  animation: hgDotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes hgDotPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.75); }
}
.hg-ready-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: #00b7ff;
}
.hg-ready-count {
  display: block;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
}

/* ── open dot ── */
.hg-open-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 6px #00d4ff;
  animation: hgDotPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.hg-open-label {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #00d4ff;
}

/* ── btn-left layout ── */
.hobby-gallery-btn .btn-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}
.hobby-gallery-btn .btn-arrow {
  flex-shrink: 0;
  font-size: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), color 0.2s;
  color: rgba(255,255,255,0.2);
}

/* ── panel animation (override css เดิม) ── */
.hobby-gallery-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1),
              opacity 0.35s ease;
  opacity: 0;
}
.hobby-gallery-panel.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Thumbnail loaded state ── */
.hobby-thumb {
  position: relative;
}
.hobby-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,5,8,0.6);
  border-radius: inherit;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.hobby-thumb.loaded::after {
  opacity: 0;
}
.hobby-thumb .hg-file-label {
  position: absolute;
  bottom: 4px; left: 4px;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  font-family: 'JetBrains Mono', monospace;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.hobby-thumb.loaded .hg-file-label {
  opacity: 1;
}

/* ── Error state ── */
.hobby-thumb.error {
  border-color: rgba(239,68,68,0.3);
}
.hobby-thumb.error::after {
  background: rgba(239,68,68,0.08);
  opacity: 1;
}



