
.pet-panel {
    height: 260px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    place-items: center;
    display: grid;
    grid-template-rows: auto 1fr; /* label + content */
    row-gap: 8px;
  }
  
  .pet-panel .pet-preview-wrapper {
    position: relative;      /* ✅ rejoin layout flow */
    inset: auto;             /* cancel fixed positioning */
    bottom: auto;
    right: auto;
    transform: none;
    display: grid;
    justify-content: center;
    align-items: center;
    place-items: center;
  
  }
  
  .pet-panel #petPreview {
    width: 150px;
    height: 150px;
    margin: 0px auto;
    position: relative;
    transform: translate(-5px, -9px);
    
  }
  
  
      /* ========================= */
      /* PROFILE-SPECIFIC LAYOUT   */
      /* ========================= */
  
      .top-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        background: rgba(255, 255, 255, 0);
        backdrop-filter: blur(6px);
      }
  

      .nav-button {
        width: 64px;
        height: 64px;
      
        display: flex;
        align-items: center;
        justify-content: center;
      
        background: #c0c0c0;
        border: 2px solid;
        border-color: #ffffff #808080 #808080 #ffffff;
      
        border-radius: 10px;
        box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
      
        transition: all 0.12s ease;
      }
      
      .nav-button img {
        width: 40px;   /* 🔥 increase size */
        height: 40px;
        display: block;
        image-rendering: pixelated;
      }
      
.nav-button:hover {
    background: #dcdcdc;
    transform: translateY(-2px);
  }
  
  .nav-button:active {
    border-color: #808080 #ffffff #ffffff #808080;
    transform: translateY(1px);
    box-shadow: inset 1px 1px 4px rgba(0,0,0,0.4);
  }
  
  
      .spacer { flex: 1; }
  
      .level-badge {
    width: 36px;              /* ✅ smaller circle */
    height: 36px;             /* ✅ smaller circle */
    border-radius: 50%;
  
    background: radial-gradient(
      circle at 50% 50%,
      rgb(255, 255, 255) 0%,
      rgba(195, 230, 255, 0.576) 70%
    );
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
  
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: center;
  
    line-height: 1;           /* ✅ removes extra vertical spacing */
    padding-top: 2px;         /* tiny optical adjustment */
  }
  
  
  .level-badge div {
    font-size: 14px;
    margin-top: 2px; /* tiny, intentional spacing */
  }
  
  .level-num {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
  }
  
  .level-text {
    font-size: 8px;
    font-weight: 600;
    margin-top: -2px;         /* ✅ pulls LV closer to the number */
  }
  
  
      /* ===== BADGES ===== */
  
  .badges {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap; /* allows wrapping if space is tight */
  }
  
  .badge {
    width: 64px;
    height: 64px;
  
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    border-radius: 8px;
  
    display: grid;
    place-items: center;
  
  }
  
  
  .badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    overflow: hidden;
    image-rendering: pixelated; /* ✅ pixel-art friendly */
    display: block;
  }
  
  .badge:hover {
    background: #dcdcdc;
  }
  
  .badge.rare {
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  }
  
  /* ===== BADGE TOOLTIPS ===== */
  
  .badge-tooltip {
    position: relative;
  }
  
  /* Tooltip bubble */
  .tooltip-text {
    position: absolute;
    bottom: 110%;              /* above the badge */
    left: 50%;
    transform: translateX(-50%);
  
    padding: 6px 10px;
    white-space: nowrap;
  
    background: #e0e0e0;
    color: #000;
    font-size: 12px;
    font-weight: bold;
  
    border: 1px solid #000;
    box-shadow: 2px 2px 0 #808080;
  
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
  }
  
  /* Tooltip arrow */
  .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
  
    border-width: 5px;
    border-style: solid;
    border-color: #e0e0e0 transparent transparent transparent;
  }
  
  /* Show on hover */
  .badge-tooltip:hover .tooltip-text {
    opacity: 1;
  }
  
  
      /* ===== MAIN GRID (ONE GRID ONLY) ===== */
      .likes {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .like-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  
  .like-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
    filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.4));
  
  }
  
      .layout {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 24px;
        padding: 24px;
        min-height: calc(100vh - 140px);
      }
  
      .layout > * {
        min-width: 0; /* PREVENT SQUISHING */
      }
  
      /* ===== SIDEBAR ===== */
  
      .sidebar {
        font-family: 'VT323', monospace;
        font-size: large;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }
  
      .sidebar-item {
        
        padding: 18px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 14px;
        border-radius: var(--radius);
        background: var(--panel);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
      }
  
      .sidebar-item.active {
        outline: 2px solid var(--accent);
      }
  
      .icon-box {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        background: radial-gradient(420px 420px at 90% -10%, rgba(10, 38, 71, 0.12), transparent 10%);
        display: grid;
        place-items: center;
        overflow: hidden; /* ✅ critical */
  
      }
  
  .icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: pixelated;
  }
  
  
      /* ===== CENTER WINDOW ===== */
  
      .window-wrapper {
          width: 100%;
          height: 100%;
          display: flex;
          flex: 1;
          min-width: 0; 
  
      }
  
      .window {
        font-family: 'VT323', monospace;
        width: 100%;
        display: flex;
        flex-direction: column;
        background: #c0c0c0;
        border: 2px solid;
        border-color: #ffffff #808080 #808080 #ffffff;
        box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
        animation: windowFloat 10s infinite ease-in-out;
      }
  
      @keyframes windowFloat {
        0%,100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
      }
  
      .window-title {
        height: 36px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        background: linear-gradient(90deg, #1084d0, #ffe3c8, #fff310);
        color: white;
        font-weight: bold;
        user-select: none;
      }
  
      .window-body {
        flex: 1;
        overflow: auto;
        padding: 16px;
        background: #d0d0d0;
        border: 1px inset #fff;
        margin: 2px;
      }
  
      .label {
        display: inline-block;
        padding: 4px 10px;
        font-size: .75rem;
        border-radius: 999px;
        background: var(--hover);
        margin-bottom: 12px;
      }
  
      .stat-number {
        font-size: 3.5rem;
        font-weight: 800;
      }
  
      .panel {
        padding: 20px;
        margin-top: 16px;
        background: var(--panel);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
      }
  
      .profile-banner {
    width: 100%;
    height: 120px; /* adjust as you like */
    margin: 12px 0;
  
    border-radius: 10px;
    overflow: hidden;
  
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
  }
  
  .profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* fills the rectangle nicely */
    display: block;
  }
      /* ========================= */
  /* MINI WINDOWS (SIDEBAR)    */
  /* ========================= */
  
  .mini-window {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
    padding: 2px;
    overflow: hidden;
  
  }
  
  .mini-window-body {
    padding: 14px 16px;
    background: #d0d0d0;
    border: 1px inset #fff;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
  
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
  
  }
  
  /* Hover + active feel */
  .mini-window-body:hover {
    background: #dcdcdc;
  }
  
  .mini-window-body:active {
    border: 1px inset #808080;
    background: #c8c8c8;
  }
  
  /* ===== INNER WINDOW GRID ===== */
  
  .window-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
  }
  
  .profile-main {
    min-width: 0;
  }
  
  .profile-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* ===== MOBILE BEHAVIOR ===== */
  
  @media (max-width: 768px) {
    .window-grid {
      grid-template-columns: 1fr; /* stack */
    }
  
    .profile-side {
      order: 2;
    }
  
    .profile-main {
      order: 1;
    }
  }
      /* ===== RIGHT COLUMN ===== */
  
      .user-card {
        padding: 20px;
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 16px;
        border-radius: var(--radius);
        background: var(--panel);
        box-shadow: var(--shadow);
        margin-bottom: 20px;
      }
  
      .avatar {
    width: 120px;
    height: 120px;
    background: rgba(0,0,0,.1);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden; /* ✅ ensures image stays inside */
  }
  
  /* Profile picture image */
  .profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* fills the avatar */
    image-rendering: pixelated; /* keeps pixel-art crisp */
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
  }
  
      .tag {
        display: inline-block;
        padding: 4px 10px;
        font-size: .75rem;
        border-radius: 999px;
        background: var(--hover);
        margin-right: 6px;
        margin-top: 6px;
      }
      /* guild */
      .gh-hex {
        
    width: 60px;   /* ✅ smaller overall size */
    height: 52px;
  
    background: #d8d8d8;
    clip-path: polygon(
      25% 0%, 75% 0%,
      100% 50%,
      75% 100%,
      25% 100%,
      0% 50%
    );
  
    border: 1px solid var(--border);
  
    display: flex;
    align-items: center;
    justify-content: center; /* ✅ centers icon */
  
    overflow: hidden;
  }
      .gh-hex img {
    width: 100%;          /* ✅ shrink image inside hex */
    height: 100%;
    object-fit: cover; /* ✅ no cropping */
    image-rendering: pixelated;
    pointer-events: none;
  }
  
  .gh-guilds {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    margin-top: 10px;
    
  }
  
  .gh-guild-item {
    display: flex;
    flex-direction: column;
    align-items: center;   /* ✅ center everything horizontally */
    text-align: center;    /* ✅ center text */
    
  }
  .gh-guild-label {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: var(--muted);
  
    width: 60px;              /* ✅ match hex width */
    text-align: center;
  
    word-wrap: break-word;    /* ✅ break long names */
    line-height: 1.1;
  }
  
  .profile-main .gh-guilds {
    margin-top: 8px;
  }
  
  
      /* ===== RESPONSIVE ===== */
  
      @media (max-width: 1024px) {
        .layout {
          grid-template-columns: 200px 1fr;
        }
      }
  
  @media (max-width: 768px) {
  
  /* Stack items vertically in correct order */
  .layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar-item {
    flex: 1;
    justify-content: center;
  }
  
  /* Give window breathing room */
  .window-wrapper {
    margin-top: 12px;
  }  
  
    .sidebar {
      flex-direction: row;
      gap: 8px;
    }
  
    .mini-window {
      flex: 1;
      flex-shrink: 0;
    }
  
    .mini-window-body {
      justify-content: center;
      padding: 12px 8px;
      font-size: 0.9rem;
    }
  }