.wrapper {
    margin: 20px auto;
    color: #000;
    max-width: 1200px;
    padding: 0 10px;
}

.container {
  display: grid; 
  grid-template-columns: 1fr 0.4fr 1.7fr 0.9fr 1fr 1fr 1fr 1fr; 
  grid-template-rows: 1fr 1fr 0.9fr 1.1fr 1fr 1fr 1.5fr 0.5fr; 
  gap: 20px 20px;
}

.header { 
    grid-area: 1 / 1 / 2 / 9; 
    background-color: #fff;
    width: auto;
    height: 100px;
    background-color: #000;
    display: flex;
    align-items: center;
    position: relative;
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,1) 100%),
        url(https://artificialdeath.b-cdn.net/funeralelegy-website/base%20assets/black-mass.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    overflow: hidden;
}

.header-title {
    color: #fff;
    margin-left: auto;
    font-size: 20px;
    padding: 40px;
}

.nav { 
    grid-area: 2 / 1 / 9 / 3;  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-right: 8px;
}

.nav-image { 
    grid-area: 2 / 1 / 4 / 3;
    display: block;
    align-items: center;
    margin:10px;
    width: 250px;
    height: 250px;
    border-radius: 100%;
    overflow: hidden;
}

.nav-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile hamburger button */
        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 10px;
            margin: 20px auto;
            z-index: 15;
            position: relative;
        }

        /* Hamburger icon styling */
        .mobile-menu-toggle span {
            display: block;
            width: 25px;
            height: 3px;
            background: #b8860b;
            margin: 5px 0;
            transition: all 0.3s ease;
        }

        .mobile-menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .mobile-menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }


.nav-menu { 
    grid-area: 4 / 1 / 9 / 3; 
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 800px;
    color: #fff;
    border: 8px double #000;
    background-image: url("https://artificialdeath.b-cdn.net/Neocities/Overall%20Images/photo2.jpg");
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 1.4),
        inset 0 0 30px rgba(0, 0, 0, 1.2);
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.nav-menu li {
    padding: 5px 15px;
    
}

.nav-menu h1 {
    font-size: 50px;
    margin: 20px 10px;
}

.nav-menu hr {
      width:100%;
  margin: 20px;
border-image-slice: 1;
    border-image-source: linear-gradient(
        to right,
        transparent,
        var(--hr-color) calc(50% - var(--hr-line-offset)),
        var(--hr-color) calc(50% + var(--hr-line-offset)),
        transparent
    );
}

.nav-menu a {
    color: #b8860b;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-container {
    width: auto;
    height: 790px;
    overflow-x: hidden;
    overflow-y: scroll;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.nav-container::-webkit-scrollbar { 
    display: none;
}

.nav-container::-webkit-scrollbar-track {
    background-color: transparent;
}

.nav-container::-webkit-scrollbar-thumb {
    background-color: #000000;
}

.title { 
    grid-area: 2 / 3 / 3 / 9;  
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    font-family: "Tangerine", cursive;
    color: #b8860b;
            background: linear-gradient(45deg, 
                #b8860b 0%, 
                #b8860b 40%, 
                #ffd700 50%, 
                #b8860b 60%, 
                #b8860b 100%
            );
            background-size: 200% 200%;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: sheen-gold 10s ease-in-out infinite;
            text-align: center;
            line-height: 1.2;
}

  @keyframes sheen-gold {
            0% {
                background-position: -200% -200%;
            }
            100% {
                background-position: 200% 200%;
            }
}

.hsr-info { 
    grid-area: 3 / 3 / 6 / 9; 
    padding: 20px;
    text-align: left;
    color:#000;
    font-size: 23px;
    border: 8px double #000;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: luminosity;
    background-color: #ecb163;
    background-image: url("https://artificialdeath.b-cdn.net/Neocities/HSR%20page/1341030.png");
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 1.4),
        inset 0 0 30px rgba(0, 0, 0, 1.2);
}

.hsr-container {
    display: flex; 
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 375px;
    width: auto;
    padding: 2%;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid #fff;
    border-top-right-radius: 20px;
}

.hsr-container-inner {
  display: grid; 
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr; 
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr; 
  gap: 10px 10px; 
  grid-template-areas: 
    "profile profile profile stats stats"
    "profile profile profile stats stats"
    "characters characters characters stats stats"
    "characters characters characters stats stats"
    "characters characters characters stats stats"; 
  flex-direction: column;
  width: 100%;
  height: 340px;
  padding: 2%;
  background: rgba(0, 0, 0, 0.69);
  border-top-right-radius: 20px;
  
}

.profile { 
    grid-area: profile;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 2px;
    background-size: 100%;
    position: relative;
}

.profile-icon {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 100%;
  border: 4px double #fff;
  overflow: hidden;
  float: left;
  margin-right: 30px;
}

.profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-name {
  font-size: 30px;
  font-family: "Cinzel", serif;
  padding: 2px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
}

.profile-level {
  display: inline-block;
  vertical-align: middle;
  background-color: #ecb163;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

.profile-uid {
  display: block;
  clear: both;
  margin-top: 5px;
  font-size: 16px;
  color: #fff;
}

.profile-container {
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}

.profile-top-row {
  display: flex;
  width: 100%;
  align-items: center;
}

.stats { 
    grid-area: stats;
    display: flex;

    justify-content: flex-start;
    flex-direction: column;
    gap: 5px;
}

.stat-item {
  position: relative;
  font-size: 20px;
  border: 1px solid #c89b3c;
  padding: 8px 8px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.stat-item.hoverable {
  cursor: help; 
}


.stat-item.hoverable .tooltip {
  visibility: hidden;
  position: absolute;
  top: 125%;
  left: 50%;
  transform: translateX(-50%); 
  background-color: #a57c00;
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #000;
  width: max-content;
  max-width: 250px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}


.stat-item.hoverable .tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #c89b3c transparent; 
}

.stat-item.hoverable:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.stat-item .tooltip {
  visibility: hidden;
  position: absolute;
  top: 125%;
  left: 50%;
  font-size: 15px;
  transform: translateX(-50%);
  background-color: #a57c00;
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #000;
  width: max-content;
  max-width: 250px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}


.stat-item .tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%; 
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #c89b3c transparent;
}

.stat-item:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.stat-item b {
  border: 1px solid #ecb163;
  border-radius: 10px;
    color: #fff;
    background-color: transparent;
    padding: 6px 15px;
}

.characters { 
    grid-area: characters;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 15px;
}

.character-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.character-wrapper:hover {
  transform: scale(1.05);
  border-color: #ecb163;
  
}

.character-icon {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 100%;
  border: 4px double #fff;
  overflow: hidden;
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.3s ease;
}

.character-icon:hover {
  transform: scale(1.05);
  border-color: #ecb163;
}

.character-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.character-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}


.character-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-top: 3px;
}

.character-tooltip {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  width: 250px;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #ecb163;
  z-index: 10;
  transition: opacity 0.3s, visibility 0.3s;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
}

.character-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #c89b3c transparent transparent transparent;
}


.character-tooltip b {
  color: #a57c00;
}

.character-tooltip p {
  font-style: italic;
}

.character-wrapper:hover .character-tooltip {
  visibility: visible;
  opacity: 1;
}

.game-container {
    width: 100%;
    height: 410px;
    overflow-x: hidden; /* Horizontal scroll */
    overflow-y: scroll;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.game-container::-webkit-scrollbar { 
    width: 5px;
}

.game-container::-webkit-scrollbar-track {
    background-color: transparent;
}

.game-container::-webkit-scrollbar-thumb {
    background-color: transparent;
}

.game-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.game-container li {
    padding: 1px 15px;
    text-align: left;
    font-size: 20px;
}

.game-container li:before {
    font-style: normal;
    content: "✶";
    margin-right: 10px;
    color: #b8860b;
}

.game-container h1 {
    text-align: center;
    color: #b8860b;
    font-size: 60px;
    margin: 2px 15px;
    font-family: "Tangerine", cursive;
}

.game-container h2 {
    text-align: center;
    color: #b8860b;
    font-family: 'Times New Roman', Times, serif;
    font-size: 30px;
    font-weight: 100;
    margin: 5px 10px;
}

.game-container hr {
  width:100%;
  margin: 20px auto;
  border-image-slice: 1;
  border-image-source: linear-gradient(
        to right,
        transparent,
        var(--hr-color) calc(50% - var(--hr-line-offset)),
        var(--hr-color) calc(50% + var(--hr-line-offset)),
        transparent
    );
}

.game-uids { 
    grid-area: 6 / 3 / 9 / 5;
    padding: 20px;
    text-align: left;
    color:#fff;
    font-size: 23px;
    border: 8px double #000;
    background-image: url("https://artificialdeath.b-cdn.net/Neocities/Overall%20Images/photo2.jpg");
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 1.4),
        inset 0 0 30px rgba(0, 0, 0, 1.2); 
}

.game-list { 
    grid-area: 6 / 5 / 9 / 7;
    padding: 20px;
    text-align: left;
    color:#fff;
    font-size: 23px;
    border: 8px double #000;
    background-image: url("https://artificialdeath.b-cdn.net/Neocities/Overall%20Images/photo2.jpg");
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 1.4),
        inset 0 0 30px rgba(0, 0, 0, 1.2); 
}

.wishlist { 
    grid-area: 6 / 7 / 9 / 9;
    padding: 20px;
    text-align: left;
    color:#fff;
    font-size: 23px;
    border: 8px double #000;
    background-image: url("https://artificialdeath.b-cdn.net/Neocities/Overall%20Images/photo2.jpg");
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 1.4),
        inset 0 0 30px rgba(0, 0, 0, 1.2); 
}



        /* Animation for mobile menu */
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        /* Large tablet/small desktop breakpoint */
        @media (max-width: 1200px) and (min-width: 1025px) {
            .nav-image { 
                width: 200px;
                height: 200px;
                margin: 15px auto;
            }
            
            .nav-menu {
                height: 600px;
                padding: 18px;
            }
            
            .nav-menu h1 {
                font-size: 40px;
                margin: 15px 8px;
            }
            
            .nav-menu hr {
                margin: 15px;
            }
            
            .nav-menu li {
                padding: 4px 12px;
            }
            
            .nav-menu a {
                font-size: 17px;
            }
        }

        /* Tablet breakpoint */
        @media (max-width: 1024px) and (min-width: 769px) {
            .wrapper {
                margin: 15px auto;
                padding: 0 8px;
            }
            
            .container {
                display: flex;
                flex-direction: column;
                gap: 15px;
            }
            
            .header { 
                order: 1;
                width: 100%;
            }
            
            .nav { 
                order: 2;
                display: flex;
                flex-direction: column;
                align-items: center;
                position: relative;
                padding: 0;
                z-index: 10;
                width: 100%;
            }
            
            .nav-image { 
                width: 250px;
                height: 250px;
                margin: 15px auto;
            }
            
            /* Show mobile menu toggle on tablet */
            .mobile-menu-toggle {
                display: block;
            }

            /* Hide menu by default on tablet */
            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 50%;
                transform: translateX(-50%);
                width: 280px;
                height: auto;
                min-height: 320px;
                padding: 18px;
                z-index: 20;
                animation: slideDown 0.3s ease;
                border-width: 5px;
            }

            /* Show menu when active */
            .nav-menu.active {
                display: flex;
            }

            .nav-menu h1 {
                font-size: 40px;
                margin: 10px 5px;
            }

            .nav-menu hr {
                margin: 10px;
            }

            .nav-menu li {
                padding: 10px 12px;

            }

            .nav-menu li:last-child {
                border-bottom: none;
            }

            .nav-menu a {
                display: block;
                padding: 8px;
                border-radius: 5px;
                transition: all 0.3s ease;
                font-size: 20px;
            }

            .nav-menu a:hover {
                color: #fff;
            }
            
            .title { 
                order: 3;
                font-size: 100px;
                width: 100%;
            }
            
            .hsr-info { 
                order: 4;
                width: 100%;
                height: auto;
                overflow: visible;
                box-sizing: border-box;
            }

            .hsr-container {
                width: 100%;
                height: auto;
                overflow: visible;
                box-sizing: border-box;
            }

            .hsr-container-inner {
                grid-template-columns: 1fr 1fr;
                grid-template-rows: auto auto auto;
                grid-template-areas: 
                      "profile profile"
                      "characters characters"
                      "stats stats";
                width: 100%;
                height: auto;
                box-sizing: border-box;
}
            
            .profile {
                width: 100%;
                flex-direction: column;
                align-items: center;
                text-align: center;
                justify-content: center;
            }
            
            .profile-top-row {
                justify-content: center;
                flex-wrap: wrap;
                gap: 0px;
            }

            .profile-uid {
                text-align: center;
                margin-top: 10px;
                clear: none;
                width: 100%;
            }

            .characters { 
                order: 2;
                width: 100%;
            }

            .stats { 
                order: 3;
                width: 100%;
            }

            .game-uids { 
                order: 5;
                width: 100%;
            }

            .game-list { 
                order: 6;
                width: 100%;
            }

            .wishlist { 
                order: 7;
                width: 100%;
            }
        }

        /* Mobile breakpoint */
        @media (max-width: 768px) and (min-width: 481px) {
            .wrapper {
                margin: 10px;
                padding: 0 5px;
            }
            
            .container {
                display: flex;
                flex-direction: column;
                gap: 20px;
            }
            
            .header { 
                order: 1;
                width: 100%;
            }
            
            .nav { 
                order: 2;
                display: flex;
                flex-direction: column;
                align-items: center;
                position: relative;
                padding: 0;
                z-index: 10;
                width: 100%;
            }
            
            .nav-image { 
                width: 250px;
                height: 250px;
                margin: 15px auto;
            }
            
            /* Show mobile menu toggle */
            .mobile-menu-toggle {
                display: block;
            }

            /* Hide menu by default on mobile */
            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 50%;
                transform: translateX(-50%);
                width: 250px;
                height: auto;
                min-height: 280px;
                padding: 15px;
                z-index: 20;
                animation: slideDown 0.3s ease;
                border-width: 4px;
            }

            /* Show menu when active */
            .nav-menu.active {
                display: flex;
            }

            .nav-menu h1 {
                font-size: 40px;
                margin: 8px 5px;
            }

            .nav-menu hr {
                margin: 8px;
            }

            .nav-menu li {
                padding: 8px 12px;
            }

            .nav-menu li:last-child {
                border-bottom: none;
            }

            .nav-menu a {
                display: block;
                padding: 6px;
                border-radius: 4px;
                transition: all 0.3s ease;
                font-size: 20px;
            }

            .nav-menu a:hover {
                color: #fff;
            }
            
            .title { 
                order: 3;
                font-size: 80px;
                width: 100%;
            }
            
            .hsr-info { 
                order: 4;
                width: 100%;
                height: auto;
                overflow: visible;
                box-sizing: border-box;
            }

            .hsr-container {
                width: 100%;
                height: auto;
                overflow: visible;
                box-sizing: border-box;
            }

            .hsr-container-inner {
                grid-template-columns: 1fr 1fr;
                grid-template-rows: auto auto auto;
                grid-template-areas: 
                      "profile profile"
                      "characters characters"
                      "stats stats";
                width: 100%;
                height: auto;
                box-sizing: border-box;
}

            .profile {
                flex-direction: column;
                align-items: center;
                text-align: center;
                justify-content: center;
            }
            
            .profile-top-row {
                justify-content: center;
                flex-wrap: wrap;
                gap: 10px;
            }

            .profile-uid {
                text-align: center;
                margin-top: 10px;
                clear: none;
                width: 100%;
            }

            .game-uids { 
                order: 5;
                width: 100%;
            }

            .game-list { 
                order: 6;
                width: 100%;
            }

            .wishlist { 
                order: 7;
                width: 100%;
            }
        }

        /* Small mobile breakpoint */
        @media (max-width: 480px) {
    .wrapper {
        margin: 5px;
        padding: 0;
    }
    
    .container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .header { 
        order: 1;
        width: 100%;
    }
    
    .nav { 
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        padding: 0;
        z-index: 10;
        width: 100%;
    }
    
    .nav-image { 
        width: 250px;
        height: 250px;
        margin: 10px auto;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide menu by default on small mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 220px;
        height: auto;
        min-height: 240px;
        padding: 12px;
        z-index: 20;
        animation: slideDown 0.3s ease;
        border-width: 3px;
    }

    /* Show menu when active */
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu h1 {
        font-size: 40px;
        margin: 6px 3px;
    }
    
    .nav-menu hr {
        margin: 6px;
    }
    
    .nav-menu li {
        padding: 6px 8px;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 4px;
        border-radius: 3px;
        transition: all 0.3s ease;
        font-size: 20px;
    }

    .nav-menu a:hover {
        color: #fff;
    }
    
    .title { 
        order: 3;
        font-size: 60px;
        width: 100%;
    }
    
    .hsr-info { 
        order: 4;
        width: 100%;
        height: auto;
        overflow: visible;
        box-sizing: border-box;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        min-height: 400px;
        padding: 15px;
        grid-area: none;
    }

    .hsr-container {
        width: 100%;
        height: fit-content;
        min-height: 100%;
        overflow: visible;
        box-sizing: border-box;
        padding: 10px;
        flex-wrap: nowrap;
        flex-direction: column;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: scroll;
        display: flex;
        align-items: stretch;
        position: relative;
    }

    .hsr-container-inner {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        height: 100%;
        min-height: 400px;
        padding: 10px;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.69);
        border-top-right-radius: 20px;
        flex: 1;
        position: relative;
        /* Remove grid properties for mobile */
        grid-template-columns: none;
        grid-template-rows: none;
        grid-template-areas: none;
    }

    .profile {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
        padding: 15px;
        box-sizing: border-box;
        /* Remove grid-area for mobile */
        grid-area: none;
    }

    .profile-icon {
        float: none;
        margin: 0 auto 15px auto;
        width: 80px;
        height: 80px;
    }

    .profile-top-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .profile-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .profile-name {
        font-size: 24px;
        margin: 0;
        text-align: center;
    }

    .profile-level {
        margin: 0;
        text-align: center;
    }

    .profile-uid {
        text-align: center;
        margin-top: 10px;
        clear: none;
        width: 100%;
        font-size: 14px;
    }

    .profile-container {
        margin-top: 10px;
        width: 100%;
    }

    /* Make characters and stats sections stack vertically */
    .characters {
        width: 100%;
        margin-bottom: 15px;
        /* Remove grid-area for mobile */
        grid-area: none;
        order: 1;
    }
    
    .stats {
        width: 100%;
        margin-bottom: 15px;
        /* Remove grid-area for mobile */
        grid-area: none;
        order: 2;
    }

    .game-uids { 
        order: 5;
        width: 100%;
    }

    .game-list { 
        order: 6;
        width: 100%;
    }

    .wishlist { 
        order: 7;
        width: 100%;
    }
}

        /* Extra small mobile breakpoint */
        @media (max-width: 320px) {
            .wrapper {
                margin: 3px;
                padding: 0;
            }
            
            .nav-image { 
                width: 80px;
                height: 80px;
                margin: 8px auto;
            }
            
            .nav-menu {
                width: 200px;
                min-height: 220px;
                padding: 10px;
                border-width: 2px;
            }
            
            .nav-menu h1 {
                font-size: 18px;
                margin: 5px 2px;
            }
            
            .nav-menu hr {
                margin: 5px;
            }
            
            .nav-menu li {
                padding: 5px 6px;
            }
            
            .nav-menu a {
                font-size: 12px;
                padding: 3px;
            }
            
            .title { 
                font-size: 50px;
            }
        }