:root {
    --red: rgb(220, 53, 69);
    --green: rgb(40, 167, 69);
    --ff: 'Nunito', Arial, sans-serif;
    --bg: #2e2e2e;
  }
  body {
    font-family: var(--ff);
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    overflow-x: hidden;
  }
  .navbar {
    background-color: rgba(50, 50, 50, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
  }
  .search-container {
    display: flex;
    align-items: center;
    position: relative;
  }
  .apps-button {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .apps-button svg {
    width: 100%;
    height: 100%;
  }
  .apps-button svg circle {
    fill: white;
    transition: fill 0.3s ease;
  }
  .apps-button:hover svg circle {
    fill: orange;
  }
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: white;
  }
  .logo:hover {
    transform: translateX(-50%) scale(1.025);
    text-decoration: none;
  }
  .logo .xp {
    color: orange;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
  }
  .menu-icon {
    font-size: 2.5rem;
    cursor: pointer;
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
  }
  .menu-icon:hover {
    transform: scale(1.2);
    color: white;
  }
  .slide-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 400px;
    backdrop-filter: blur(10px);
    color: white;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.7);
    z-index: 1003;
    transition: transform 0.5s ease;
    transform: translateX(-100%);
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: linear-gradient(
      to bottom right,
      rgba(43, 43, 43, 0.599),
      rgba(53, 53, 53, 0.599),
      rgba(80, 80, 80, 0.599)
    );
  }
  .slide-menu::-webkit-scrollbar {
    display: none;
  }
  .slide-menu[style*="translateX(0%)"] {
    transform: translateX(0);
  }
  .profile-picture-container {
    border-radius: 50%;
    width: 120px;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 3px solid orange;
  }
  .profile-picture-container:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 35px rgba(255, 165, 0, 0.5);
  }
  .profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .user-details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 15px;
  }
  .profile-top-container {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .username-container {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .username-text {
    font-size: 1.8rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
  .categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .categories > a {
    padding: 17px;
    background: linear-gradient(45deg, #333, #444);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: transform 0.4s ease;
    text-align: center;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
  .categories > a:hover {
    background: linear-gradient(45deg, #ffa500, #ff8433);
    box-shadow: 0 6px 20px rgba(255, 98, 0, 0.5);
  }
  .categories > a::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
  }
  .categories > a:hover::after {
    width: 500px;
    height: 500px;
  }
  span.new-feature-tag {
    background: orange;
    border-radius: 50px;
    padding: 0.3rem 0.6rem;
    margin-left: 1rem;
    font-size: 0.7rem;
    color: black;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
  }
  .search-bar {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border-radius: 15px;
    width: 275px;
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  }
  .search-bar::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }
  .search-bar:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.6);
  }
  .games-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: center;
    gap: 10px;
  }
  .ghost-card {
    background: #3e3e3e;
    animation: pulse 1.5s infinite ease-in-out;
  }
  @keyframes pulse {
    0%,
    100% { background: #3e3e3e; }
    50% { background: #5e5e5e; }
  }
  .card,
  .ghost-card {
    border-radius: 15px;
    width: 120px;
    aspect-ratio: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
  }
  .card {
    background: transparent;
    position: relative;
    overflow: hidden;
  }
  .card:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 98, 0, 0.4);
  }
  .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  .card:hover img {
    transform: scale(1.05);
  }
  .card figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #ffffff;
    padding: 10px 0;
    transition: all 0.4s ease;
    transform: translateY(100%);
    opacity: 0;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  }
  .card:hover figcaption {
    transform: translateY(1px);
    opacity: 1;
  }
  .search-results {
    position: absolute;
    right: 0;
    top: 71px;
    background-color: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    width: 313px;
    display: none;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  }
  .search-results a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 10px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .search-results a:focus,
  .search-results a:hover {
    outline: none;
    background: rgba(50, 50, 50, 0.7);
    padding-left: 15px;
  }
  .search-results img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
  .search-results a:last-child {
    border-bottom: none;
  }
  #sdProxyPopupContainer {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    z-index: 2147483647;
  }
  #sdProxyPopupContainer.active {
    display: flex;
  }
  #sdProxyPopup {
    width: min(520px, 92vw);
    background: linear-gradient(180deg, #3a3a3a, #2f2f2f);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 22px 20px;
    text-align: center;
    font-family: var(--ff);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .4);
    transform: translateY(8px) scale(.98);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
  }
  #sdProxyPopupContainer.active #sdProxyPopup {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  #sdProxyPopup p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    letter-spacing: .2px;
    color: #f2f2f2;
  }
  #sdProxyPopupOk {
    margin-top: 18px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffa500, #ff7a1a);
    color: #111;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 132, 51, .35);
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
  }
  #sdProxyPopupOk:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 132, 51, .45);
    filter: saturate(1.1);
  }
  #sdProxyPopupOk:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(255, 132, 51, .35);
  }
  #sdProxyPopupOk:focus-visible {
    outline: 2px solid #ff8c00;
    outline-offset: 2px;
  }
  .news-container {
    margin: 30px auto;
    padding: 30px;
    max-width: 900px;
    background-color: #444444;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  .news {
    color: white;
  }
  .credits-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
    border-bottom: 3px solid #ddd;
    padding-bottom: 10px;
    text-shadow: none;
  }
  .credits-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .credits-role {
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
  }
  .credits-names {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
  }
  .credits-link {
    color: #4fa7ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  .credits-link:hover {
    text-decoration: underline;
  }
  .credits-names span {
    color: #c4c4c4;
  }
  h2 {
    text-align: center;
    color: white;
    margin: 40px 0;
    font-size: 2.5rem;
    text-shadow: none;
  }
  .alternate-links-container {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin: 0 auto;
    max-width: 900px;
    background-color: #444444;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  .alternate-link:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .status-dot,
  .spinning-dot {
    aspect-ratio: 1;
    border-radius: 100vw;
    display: inline-block;
    margin-left: 10px;
    margin-right: 5px;
  }
  .status-dot {
    width: 15px;
    background-color: var(--red);
  }
  .spinning-dot {
    width: 12px;
    border: 3px solid transparent;
    border-top: 3px solid black;
    animation: spinning-dot-spin infinite 500ms linear;
  }
  @keyframes spinning-dot-spin {
    to { transform: rotate(1turn); }
  }
  .alternate-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    text-decoration: none;
    color: #007bff;
    background-color: #4e4e4e;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }
  .alternate-link:hover {
    background-color: #444;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  }
  .alternate-link span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
    font-size: 1.1rem;
    font-weight: 600;
    margin-right: 10px;
  }
  .alternate-links-key {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #aaa;
  }
  .updates-paragraph-text {
    color: black;
    background-color: #a83632;
    background: linear-gradient(156deg, #ae8625, #f7ef8a, #d1ac47, #edc967);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px #d1ac4780;
    font-size: 1.1rem;
    text-align: center;
    max-width: 850px;
    margin-block: 20px;
  }
  .updates-paragraph-text a {
    color: #2583bf;
  }
  .updates-text-container {
    margin: 0 20%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #topGameList {
    max-width: 1600px;
    margin: 0 auto;
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }
  .modal-content {
    background-color: #757575;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    color: white;
  }
  .modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .modal-close:hover,
  .modal-close:focus {
    color: #000;
    transform: scale(1.2);
  }
  .modal-link {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .modal-link:hover {
    color: #ff8433;
  }
  .xp-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    width: 90%;
  }
  .xp-level-text {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  .xp-bar {
    position: relative;
    width: 100%;
    height: 25px;
    background: black;
    border-radius: 15px;
    overflow: hidden;
  }
  .xp-bar-fill {
    height: 100%;
    background: linear-gradient(to right, #47fced, #0af);
    width: 0%;
    transition: width 0.7s ease;
  }
  .xp-bar-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .edit-button {
    width: 30px;
    cursor: pointer;
    fill: #999;
    transition: transform 0.3s ease;
  }
  .edit-button:hover {
    transform: scale(1.2);
  }
  .custom-slide-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 400px;
    background-color: #202020;
    color: white;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.7);
    z-index: 1003;
    transition: transform 0.5s ease;
    transform: translateX(-100%);
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
  }
  .custom-slide-menu[style*="translateX(0%)"] {
    transform: translateX(0);
  }
  .custom-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }
  .toggle-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #333333;
    border-radius: 10px;
  }
  .toggle-option label {
    font-size: 1.2rem;
    color: white;
  }
  .toggle-option input[type="checkbox"] {
    appearance: none;
    width: 50px;
    height: 25px;
    background: #555555;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
  }
  .toggle-option input[type="checkbox"]:checked {
    background: #007bff;
  }
  .toggle-option input[type="checkbox"]::before {
    content: "";
    position: absolute;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
  }
  .toggle-option input[type="checkbox"]:checked::before {
    transform: translateX(25px);
  }
  input[type="range"] {
    appearance: none;
    width: 100%;
    margin: 10px 0;
    background: transparent;
  }
  input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: #ccc;
    border-radius: 5px;
  }
  input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    height: 20px;
    width: 20px;
    background: #fff;
    border: 1px solid #777;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -6px;
  }
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  .popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 1001;
  }
  .popup-container.active {
    display: flex;
  }
  .popup {
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    width: 300px;
    text-align: center;
  }
  .popup button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ff8c00;
    border: none;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
  }
  .popup button:hover {
    background-color: #ff6a00;
  }
  #customSlideMenu .custom-options {
    padding: 20px !important;
  }
  #customSlideMenu .custom-option {
    margin-bottom: 20px !important;
  }
  #customSlideMenu label {
    color: white;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
  }
  #customSlideMenu input[type="text"] {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #444 !important;
    border-radius: 5px !important;
    font-size: 1rem !important;
    background-color: #333 !important;
    color: white !important;
    box-sizing: border-box !important;
  }
  #customSlideMenu input[type="text"]::placeholder {
    color: #bbb !important;
  }
  #customSlideMenu button {
    margin-top: 10px !important;
    padding: 10px 15px !important;
    border: none !important;
    border-radius: 5px !important;
    background-color: #ff8c00 !important;
    color: white !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    transition: background-color 0.3s ease !important;
  }
  #customSlideMenu button:hover {
    background-color: #ff6a00 !important;
  }
  .apps-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: -123px;
    background: #333;
    border-radius: 12px;
    padding: 12px;
    z-index: 1001;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
  }
  .apps-popup.show {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .apps-grid {
    display: contents;
  }
  .app-item {
    width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
  }
  .app-item:hover {
    background: #404040;
    transform: scale(1.06);
  }
  .app-icon img {
    width: 50px;
    height: 50px;
    border-radius: 10%;
  }
  svg.movie-svg {
    width: 60px;
    margin: -5px;
  }
  .app-title {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #fff;
    text-align: center;
    white-space: nowrap;
  }
  @media (max-width: 768px) {
    .navbar {
      flex-wrap: wrap;
      padding: 10px 15px;
    }
    .menu-icon {
      font-size: 2rem;
      margin-bottom: 10px;
    }
    .logo {
      font-size: 1.8rem;
      left: 50%;
      transform: translateX(-50%);
    }
    .search-container {
      display: flex;
      align-items: center;
      position: relative;
    }
    .search-bar {
      width: 90%;
      font-size: 0.9rem;
    }
    .slide-menu,
    .custom-slide-menu {
      width: 250px;
    }
    .profile-picture-container {
      width: 80px;
      aspect-ratio: 1;
    }
    .username-text {
      font-size: 1.3rem;
    }
    .categories > a {
      font-size: 1rem;
      padding: 15px;
    }
    .games-grid {
      gap: 8px;
      padding: 10px;
    }
    .card,
    .ghost-card {
      width: 100px;
      aspect-ratio: 1;
    }
    .card figcaption {
      font-size: 0.9rem;
    }
    .alternate-links-container {
      grid-template-columns: 1fr;
      padding: 10px;
      margin: 0 10px;
    }
    .alternate-link span:first-child {
      font-size: 1rem;
    }
    .news-container {
      margin: 20px;
      padding: 20px;
    }
    .profile-top-container {
      flex-direction: column;
      gap: 10px;
    }
    .xp-container {
      width: 100%;
    }
    .xp-level-text {
      font-size: 1.1rem;
    }
    .xp-bar {
      height: 20px;
    }
    .edit-button {
      width: 25px;
    }
  }  