@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --content-area-bg: #000;
  --game-header-bg: #0d0d0d;
  --game-detail-title-color: #fff;
  --game-detail-category-color: #e0e0e0;
  --game-description-bg: #0d0d0d;
  --game-description-title-color: #fff;
  --game-description-text-color: #cccccc;
  --screenshots-section-bg: #0d0d0d;
  --screenshots-section-title-color: #fff;
  --game-header-shadow: 0 0.104vw 0.260vw rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --content-area-bg: #121212;
  --game-header-bg: #222222;
  --game-detail-title-color: #e0e0e0;
  --game-detail-category-color: #e0e0e0;
  --game-description-bg: #1e1e1e;
  --game-description-title-color: #e0e0e0;
  --game-description-text-color: #cccccc;
  --screenshots-section-bg: #1e1e1e;
  --screenshots-section-title-color: #e0e0e0;
}

body {
  font-family: "Figtree", sans-serif;
  font-size: 0.833vw;
}

.content-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.content-area {
  height: calc(100vh - 5.208vw);
  margin-left: 13.021vw;
  overflow: hidden;
  background-color: var(--content-area-bg);
}

.game-header {
  display: flex;
  margin-bottom: 1.563vw;
  background-color: var(--game-header-bg);
  padding: 1.823vw;
  box-shadow: var(--game-header-shadow);
}

.game-thumbnail-container {
  flex: 0 0 15.625vw;
  margin-right: 1.302vw;
}

.game-detail-thumbnail {
  width: 100%;
  border-radius: 0.417vw;
  box-shadow: 0 0.156vw 0.521vw rgba(0, 0, 0, 0.1);
}

.game-info-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-detail-title {
  font-size: 1.458vw;
  font-weight: 700;
  margin: 0 0 0.521vw 0;
  color: var(--game-detail-title-color);
}

.game-detail-category {
  font-size: 0.833vw;
  color: white !important;
  margin: 0 0 0.521vw 0;
  padding: 0.260vw 0.781vw;
  background-color: #141414;
  border-radius: 1.042vw;
  display: inline-block;
  text-align: center;
  min-width: 4.167vw;
  max-width: fit-content;
  white-space: nowrap;
  box-sizing: border-box;
}

.user-count-tab {
  font-size: 0.729vw !important;
  color: white !important;
  margin: 0;
  padding: 0.260vw 0.781vw;
  background-color: #141414;
  border-radius: 1.042vw;
  display: inline-flex;
  align-items: center;
  gap: 0.417vw;
  min-width: 4.167vw;
  max-width: fit-content;
  white-space: nowrap;
  box-sizing: border-box;
  text-shadow: 0 0.052vw 0.104vw rgba(0,0,0,0.5);
  box-shadow: 0 0.104vw 0.260vw rgba(0,0,0,0.2);
}

.user-count-tab .user-icon {
  font-size: 0.729vw !important;
  margin-right: 0.208vw;
  color: #e0e0e0;
}

#playing-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.loader-circle {
  width: 11px;
  height: 11px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top: 2.5px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  flex-shrink: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.play-button-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.action-buttons-wrapper {
  position: absolute;
  top: 4vw;
  left: 3px;
  display: flex;
  gap: 0.781vw;
  align-items: center;
  z-index: 10;
}

.action-btn-container {
  position: relative;
}

.action-icon-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.2s ease;
}

.action-icon-btn:hover {
  opacity: 1;
  transform: translateY(-0.1vw);
}

.action-icon-btn:active {
  transform: scale(0.95);
}

.action-icon-btn img {
  width: 1.25vw; 
  height: 1.25vw;
  display: block;
}

.share-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.417vw;
  background: #0a0a0a;
  border: 1px solid #27272a;
  border-radius: 0.417vw;
  padding: 0.313vw;
  min-width: 7.292vw;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.521vw);
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 10;
  box-shadow: 0 0.521vw 1.563vw rgba(0,0,0,0.5);
}

.share-dropdown.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-option {
  padding: 0.417vw 0.625vw;
  font-size: 0.729vw;
  color: #fff;
  cursor: pointer;
  border-radius: 0.208vw;
  transition: background 0.2s;
  font-weight: 500;
}

.dropdown-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.play-button {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  color: white !important;
  border: 0.052vw solid rgba(255, 255, 255, 0.15);
  padding: 0.833vw 2.083vw;
  font-size: 0.938vw;
  font-family: "Figtree", sans-serif;
  font-weight: 800;
  border-radius: 0.677vw;
  cursor: pointer;
  margin-top: 0;
  align-self: flex-start;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625vw;
  text-transform: uppercase;
  letter-spacing: 0.104vw;
  overflow: hidden;
  z-index: 1;
  min-height: 3.125vw;
  box-sizing: border-box;
  backdrop-filter: blur(0.208vw);
  transition: all 0.3s ease;
}

.play-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80%);
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-0.104vw);
  box-shadow: 0 0.521vw 1.302vw rgba(0, 0, 0, 0.4);
}

.play-button:hover::before {
  left: 150%;
}

.play-button:active {
  transform: translateY(0.052vw) scale(0.98);
}

.game-description {
  background-color: var(--game-description-bg);
  padding: 1.042vw;
  margin-bottom: 1.563vw;
  box-shadow: 0 0.104vw 0.260vw rgba(0, 0, 0, 0.05);
}

.game-description h2 {
  font-size: 1.042vw;
  font-weight: 600;
  margin: 0 0 0.781vw 0;
  color: var(--game-description-title-color);
}

.game-description p {
  font-size: 0.781vw;
  line-height: 1.6;
  color: var(--game-description-text-color);
  margin: 0;
}

.screenshots-section {
  background-color: var(--screenshots-section-bg);
  padding: 1.042vw;
  margin-bottom: 1.563vw;
  box-shadow: 0 0.104vw 0.260vw rgba(0, 0, 0, 0.05);
}

.screenshots-section h2 {
  font-size: 1.042vw;
  font-weight: 600;
  margin: 0 0 0.781vw 0;
  color: var(--screenshots-section-title-color);
}

.screenshots-container {
  display: flex;
  gap: 0.781vw;
}

.main-screenshot {
  flex: 0 0 calc(75% - 0.781vw);
}

.main-screenshot img {
  width: 100%;
  height: auto;
  border-radius: 0.417vw;
  box-shadow: 0 0.104vw 0.260vw rgba(0, 0, 0, 0.1);
}

.thumbnail-column {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  gap: 0.521vw;
}

.thumbnail-column img {
  width: 100%;
  height: auto;
  border-radius: 0.417vw;
  box-shadow: 0 0.104vw 0.260vw rgba(0, 0, 0, 0.1);
  transition: none;
  cursor: default;
}

.thumbnail-column img:hover {
  transform: none;
}

.recommended-section {
  background-color: var(--game-description-bg);
  padding: 1.042vw;
  margin-bottom: 1.563vw;
  box-shadow: 0 0.104vw 0.260vw rgba(0, 0, 0, 0.05);
}

.recommended-section h2 {
  font-size: 1.042vw;
  font-weight: 600;
  margin: 0 0 0.781vw 0;
  color: var(--game-description-title-color);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.375vw, 1fr));
  gap: 1.042vw;
  width: 100%;
}

.game-widget {
  position: relative;
  background-color: #1a1a1a;
  border-radius: 0.625vw;
  overflow: visible !important;
  transition: transform 0.2s ease-out;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0.208vw 0.417vw rgba(0,0,0,0.2);
}

.game-widget img.game-thumbnail {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 0.625vw 0.625vw 0 0;
  display: block;
}

.game-info {
  padding: 0.625vw;
  background-color: #141414;
  border-radius: 0 0 0.625vw 0.625vw;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-title {
  color: #fff;
  font-size: 0.729vw;
  margin: 0 0 0.208vw 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.game-category {
  color: #aaa;
  font-size: 0.573vw;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.026vw;
}

::-webkit-scrollbar {
  width: 0.417vw;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0.208vw;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

@media (max-width: 40vw) {
  .content-area {
    margin-left: 0;
    margin-top: 3.125vw;
  }

  .game-header {
    flex-direction: column;
  }

  .game-thumbnail-container {
    margin-right: 0;
    margin-bottom: 1.042vw;
    flex: 0 0 auto;
  }

  .screenshots-container {
    flex-direction: column;
  }

  .main-screenshot {
    flex: 0 0 100%;
  }

  .thumbnail-column {
    flex: 0 0 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .thumbnail-column img {
    width: calc(50% - 0.260vw);
  }

  .play-button {
    width: 100%;
    padding: 0.729vw 0.729vw;
    font-size: 0.833vw;
    border-radius: 0.677vw;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(7.292vw, 1fr));
    gap: 0.781vw;
  }
  
  .action-buttons-wrapper {
      top: -6vw;
  }
  
  .action-icon-btn img {
      width: 5vw;
      height: 5vw;
  }
}

.ad-box {
  width: 18.75vw;
  height: 16.563vw;
  padding: 0.521vw;
  box-sizing: border-box;
  margin-left: 1.042vw;
  background-color: var(--game-header-bg);
  border-radius: 0.417vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ad-tag {
  background-color: rgba(0, 0, 0, 0.15);
  padding: 0.104vw 0.313vw;
  border-radius: 0.208vw;
  font-size: 0.625vw;
  font-weight: 600;
  color: var(--game-detail-category-color);
  align-self: flex-start;
  margin-bottom: 0.313vw;
}

.ad-iframe {
  flex: 1;
  width: 94%;
  box-sizing: border-box;
  border-radius: 0.208vw;
  display: block;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ad-iframe::-webkit-scrollbar {
  display: none;
}

.bottom-ad-section {
  background-color: var(--game-header-bg);
  padding: 1.042vw;
  margin-top: 1.563vw;
  margin-bottom: 1.563vw;
  box-shadow: var(--game-header-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.417vw;
}

.bottom-ad-section .ad-tag {
  align-self: center;
}

.bottom-ad-iframe {
  width: 37.917vw;
  height: 4.688vw;
  display: block;
  overflow: hidden;
  border: none;
  border-radius: 0.208vw;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.logo-model-container {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .data-stream-container {
            position: relative;
            width: 100%;
            aspect-ratio: 1 / 1;
            background: #00000017;
            border-radius: 0.833vw;
            overflow: hidden;
            border: 1.2px solid #4444444b;
            box-shadow: 0 0.417vw 1.667vw rgba(100, 100, 100, 0.068);
        }

        .floating-favicon {
            position: absolute;
            width: 1.2vw;
            height: 1.2vw;
            background-image: url('/favicon.ico');
            background-size: contain;
            background-repeat: no-repeat;
            bottom: -1.5vw;
            opacity: 0;
            animation: favicon-rise linear infinite;
        }

        @keyframes favicon-rise {
            0% {
                transform: translateY(0) rotate(0deg);
                opacity: 0;
            }
            20% {
                opacity: 1;
            }
            80% {
                opacity: 1;
            }
            100% {
                transform: translateY(-10vw) rotate(360deg);
                opacity: 0;
            }
        }

        @media (max-width: 768px) {
            .data-stream-container {
                border-radius: 2vw;
            }

            .floating-favicon {
                width: 3vw;
                height: 3vw;
                bottom: -4vw;
            }

            @keyframes favicon-rise {
                0% {
                    transform: translateY(0) rotate(0deg);
                    opacity: 0;
                }
                20% {
                    opacity: 1;
                }
                80% {
                    opacity: 1;
                }
                100% {
                    transform: translateY(-20vw) rotate(360deg);
                    opacity: 0;
                }
            }
        }