.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));
  
  }
  
  .container {
    max-width: none;
    width: 100%;
    margin: 0;
  }
  
  
  .pet-panel {
    width: 100%;
    height: auto;
    padding: 16px 20px 24px;
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .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(0px, -9px);
    
  }
      .game-home {
        max-width: 1400px;
        margin: 40px auto;
        padding: 20px;
        display: grid;
        grid-template-columns: 260px 1fr 220px;
        gap: 24px;
      }
  
      .gh-panel {
        background: var(--panel);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 6px;
        border: 1px solid var(--border);
      }
  
      /* ---------- LEFT ---------- */
      .gh-profile {
        font-family: vt323, monospace;
        font-size:large;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 18px;
      }
  
      .gh-avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #d0d0d0;
        border: 1px solid var(--border);
      }
  
      .gh-username {

    text-align: left;          /* ✅ left align both lines */
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .gh-username strong {
    font-size: larger;
    text-align: left !important; /* override global strong rule */
    display: block;
    font-weight: 700;
  }
  
  
  .gh-username .username {
    font-size: 1.05rem;        /* ✅ slightly larger */
    font-weight: 700;          /* ✅ bold */
    line-height: 1.1;
  }
  
  .gh-username .user-tagline {
    font-size: 0.85rem;        /* ✅ smaller */
    font-weight: 400;          /* ✅ not bold */
    color: #333;               /* optional: softer tone */
  }
  
      .gh-section-title {
        font-size: 0.9rem;
        color: var(--muted);
        margin: 14px 0 10px;
      }
  
      .gh-guilds {
        display: grid;
        grid-template-columns: repeat(2, 70px);
        gap: 14px;
      }
  
      .gh-hex {
    width: 70px;
    height: 60px;
    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;
    overflow: hidden; /* ✅ important for clipping */
  }
  
  .gh-hex img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* ✅ fills hex nicely */
    image-rendering: pixelated; /* ✅ crisp if pixel art */
    pointer-events: none;
  }
  /* Container for hex + text */
  .gh-guild-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  
  /* Small text under hex */
  .gh-guild-label {
    font-family: "VT323", monospace; /* matches your window title vibe */
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    line-height: 1;
  }
  
  .gh-guild-item-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
  }
  
  .gh-guild-item-link:hover .gh-hex {
    box-shadow: 0 0 6px var(--ring);
    transform: scale(1.05);
  }
  
  .gh-guild-item-link:hover .gh-guild-label {
    color: var(--text);
  }
  
      .gh-group {
        background: rgba(255,255,255,0.35);
        border-radius: 10px;
        padding: 8px;
        margin-top: 10px;
        font-size: 0.85rem;
      }
  
      .gh-group-head {
        display: flex;
        justify-content: space-between;
        font-weight: 700;
      }
  
      .gh-progress {
        margin-top: 6px;
        height: 8px;
        background: rgba(0,0,0,0.15);
        border-radius: 6px;
        overflow: hidden;
      }
  
      .gh-progress > div {
        height: 100%;
        background: red;
      }
  
      /* ---------- CENTER ---------- */
      .gh-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
      }
  
  /* Center container should stretch */
  .gh-main-avatar {
    width: 100%;
    max-width: 520px;
    min-height: 420px; /* roughly matches User Profile window */
    background: transparent;
    border-radius: 14px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    border: 1px solid var(--border);
  }
  
  .gh-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  
    text-decoration: none;
    color: inherit;
  }
      .gh-icon-row {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 10px;
      }
  
      /* ---------- RIGHT ---------- */
      .gh-right {
        display: flex;
        flex-direction: column;
        align-items: right;
        gap: 24px;
      }
  
      .gh-level {
        text-align: center;
      }
      .gh-level-hex {
    width: 90px;
    height: 80px;
    background: radial-gradient(
      circle at 50% 50%,
      rgb(0, 255, 72) 0%,
      rgba(0, 128, 219, 0.576) 70%
    );
    color: white;
    clip-path: polygon(
      25% 0%, 75% 0%,
      100% 50%,
      75% 100%,
      25% 100%,
      0% 50%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto 6px;
  }
  
  
      .gh-xp {
        width: 100%;
        height: 8px;
        background: rgba(0,0,0,0.2);
        border-radius: 6px;
        overflow: hidden;
      }
  
      .gh-xp > div {
        height: 100%;
        background: var(--success);
      }
  
      .gh-like-box {
        width: 120px;
        padding: 10px;
        border-radius: 14px;
        background: rgba(255,255,255,0.4);
        text-align: center;
        font-size: 1.2rem;
        font-weight: 700;
        border: 1px solid var(--border);
      }
  
      .gh-pethouse {
        margin-top: auto;
        text-align: center;
        font-size: 0.85rem;
        color: var(--muted);
      }
  
      .pet-house-img {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 8px;
    image-rendering: pixelated; /* keeps it crisp if pixel art */
      }
  
      .pet-house-link {
    display: inline-block;
  }
  
  .pet-house-link:hover .pet-house-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.35));
  }
  
  .pet-house-img {
    transition: transform 0.15s ease, filter 0.15s ease;
    cursor: pointer;
  }
  
  
  .gh-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    image-rendering: pixelated; /* keeps pixel art crisp */
    pointer-events: none;
  }

  
.gh-icon-label {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.gh-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #c0c0c0; /* ✅ solid retro gray */

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;

  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);

  transition: all 0.12s ease;
}

.gh-icon-circle img {
  width: 42px;
  height: 42px;

  object-fit: contain;
  image-rendering: pixelated;

  transition: transform 0.1s ease;
}
.gh-icon:hover .gh-icon-circle {
  background: #dcdcdc;
  transform: translateY(-3px);
}

.gh-icon:hover .gh-icon-circle img {
  transform: scale(1.1);
}

.gh-icon:active .gh-icon-circle {
  transform: translateY(1px);

  border-color: #808080 #ffffff #ffffff #808080;
  box-shadow: inset 1px 1px 4px rgba(0,0,0,0.4);
}


  #petPreview img {
    pointer-events: none;
  }
  
  #petPreview img:not([src]) {
    display: none !important;
  }
  
  .pixel-text {
    font-family: "VT323", system-ui, monospace;
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
    color: var(--text);
    padding: 8px 10px;
    background: rgba(255,255,255,0.6);
    border: 1px inset #fff;
    border-radius: 6px;
    image-rendering: pixelated;
  }
  
  /* Optional: make it feel like a HUD message */
  .pet-status-text {
    align-self: stretch;
  }
  .marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
  }
  
  .marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 10s linear infinite;
  }
  
  @keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }
  
  /* hide checkbox */
  .pet-toggle {
    display: none;
  }
  
  /* make pet clickable */
  .pet-hitbox {
    cursor: pointer;
    display: inline-block;
  }
  
  /* speech bubble (hidden by default) */
  .pet-speech {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 12px;
    max-width: 260px;
    text-align: center;
    background: rgba(255,255,255,0.9);
    border: 2px solid #000;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
    z-index: 20;
  }
  
  /* small speech "tail" */
  .pet-speech::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
  }
  
  /* show popup when pet clicked */
  .pet-toggle:checked + .pet-hitbox + .pet-speech {
    display: block;
  }
  
  .window-title {
    font-family: "VT323", monospace;
    font-size: 24px;
  }
  /* =========================
     MOBILE RESPONSIVE LAYOUT
     ========================= */
     @media (max-width: 900px) {
  
  /* Main layout becomes vertical */
  .game-home {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px auto;
    padding: 12px;
  }
  
  /* Panels go full width */
  .gh-panel {
    width: 100%;
  }
  
  /* Center content first */
  .gh-center {
    order: -1;
  }
  
  /* Pet panel scales better */
  .gh-main-avatar {
    min-height: 320px;
    max-width: 100%;
  }
  
  .pet-panel {
    padding: 14px;
  }
  

  .gh-icon-row {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  

  .gh-icon {
    display: flex;
    flex-direction: column;   /* ✅ STACK vertically */
    align-items: center;
    gap: 6px;                 /* space between circle & text */
    text-decoration: none;
    color: inherit;
  }
  
  .gh-icon-label {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: white;
  
    text-shadow: 1px 1px 0 rgba(0,0,0,0.6);
  }  

  /* Guild hex grid expands */
  .gh-guilds {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    justify-items: center;
  }
  
  /* Windows spacing */
  .window {
    margin-bottom: 14px;
  }
  
  /* Text scaling */
  .window-title {
    font-size: 22px;
  }
  
  .pixel-text {
    font-size: 18px;
  }
  }
  @media (max-width: 600px) {
  
  /* Bigger touch targets */
  .gh-icon {
    width: 72px;
    height: 72px;
  }
  
  .gh-guild-label {
    font-size: 16px;
  }
  
  /* Prevent speech bubble overflow */
  .pet-speech {
    max-width: 90vw;
  }
  
  /* Reduce padding for small screens */
  .window-body {
    padding: 10px;
  }
  }
  
  .pet-logo {
    display: block;
    margin: 4px auto 8px;
    max-width: 200px;   /* adjust as needed */
    width: 60%;
    image-rendering: pixelated; /* matches your pixel vibe */
  }

