*,
:after,
:before {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}

:after,
:before {
  --tw-content: "";
}

:host,
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji,
    Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  line-height: inherit;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
pre,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    Liberation Mono, Courier New, monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
select {
  text-transform: none;
}

button,
input:where([type="button"]),
input:where([type="reset"]),
input:where([type="submit"]) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

.gradient-background {
  position: relative;
  background-image: linear-gradient(
    90deg,
    rgba(25, 24, 92, 0.8),
    hsla(0, 0%, 7%, 0.8) 12%,
    hsla(0, 0%, 7%, 0.8) 88%,
    rgba(25, 24, 92, 0.8)
  );
}

.gradient-background-2 {
  position: relative;
  background-image: linear-gradient(
    90deg,
    rgba(25, 24, 92, 0.8),
    hsla(0, 0%, 7%, 0.8) 30%,
    hsla(0, 0%, 7%, 0.8) 70%,
    rgba(25, 24, 92, 0.8)
  );
}
/* ------------------------------------------------------------------------------------------ */
/* ...existing code... */

/* ---------------- Layout variables ---------------- */
:root {
  --header-h: 64px;
  --sidebar-collapsed: 72px;
  --sidebar-expanded: 260px;
  --bg-dark: #0b0c15;
  --bg-panel: #121328;
  --line: rgba(255, 255, 255, 0.06);
  --txt: #e9ecf1;
  --txt-dim: #a9afc1;
  --brand: #7cff8c;
  --accent: #ffd166;
  --card: #182035;
}

/* ---------------- Global ---------------- */
body {
  background: radial-gradient(
    1200px 600px at 10% -10%,
    #1d2050 0%,
    #0b0c15 30%,
    #0b0c15 100%
  );
  color: var(--txt);
}

.header-area {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(180deg, #0f1024, #0c0d1c);
  border-bottom: 1px solid var(--line);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1b1d35;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.logo {
  font-size: 25px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.logo:hover {
  color: var(--brand);
}
.search {
  position: relative;
}
.search input {
  width: 100%;
  height: 40px;
  background: #171935;
  color: var(--txt);
  border-radius: 12px;
  padding: 0 40px 0 14px;
  outline: none;
  border: 1px solid var(--line);
}
.search-icon {
  position: absolute;
  right: 12px;
  top: 57%;
  transform: translateY(-50%);
}
.login-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #1c2f10;
  color: #caff9e;
  border: 1px solid #295a19;
  cursor: pointer;
}

/* ---------------- Body layout ---------------- */
.app-body {
  height: calc(100vh - var(--header-h));
  display: flex;
  background: linear-gradient(
    90deg,
    rgba(25, 24, 92, 0.8),
    rgba(18, 18, 18, 0.85) 12%,
    rgba(18, 18, 18, 0.85) 88%,
    rgba(25, 24, 92, 0.8)
  );
  overflow: hidden;
}

.sidebar {
  background: var(--bg-panel);
  border-right: 1px solid var(--line);
  height: 100%;
  overflow: hidden;
  transition: width 0.2s ease;
  display: flex;
  flex-direction: column;
}
.nav {
  padding: 12px 8px;
}
.nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 10px;
  color: var(--txt);
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
}
.nav-item:hover {
  background: #1a1d3a;
}
.nav-item .icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-item,
.nav-item .icon {
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.nav-item .icon img {
  width: 20px;
  height: 20px;
  /* object-fit: contain; */
  border-radius: 50%;
}
.nav-item .text {
  white-space: nowrap;
  overflow: hidden;
  transition: width 0.2s ease, opacity 0.2s ease;
  opacity: 0.95;
}

.main-area {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding: 20px 24px 40px;
  /* background: radial-gradient(
    1200px 500px at 90% -10%,
    #1d2050 0%,
    #0b0c15 30%,
    #0b0c15 100%
  ); */
}

@media (min-width: 769px) {
  .sidebar {
    width: var(--sidebar-collapsed);
    position: relative;
    overflow: visible;
    z-index: 20;
    transition: none;
  }

  .sidebar::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--sidebar-expanded);
    height: 100%;
    background: var(--bg-panel);
    border-right: 1px solid var(--line);
    box-shadow: 12px 0 24px rgba(0, 0, 0, 0.35);
    clip-path: inset(0 calc(100% - var(--sidebar-collapsed)) 0 0);
    transition: clip-path 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
      box-shadow 0.28s ease;
    pointer-events: none;
  }
  .sidebar:hover::after {
    clip-path: inset(0 0 0 0);
    box-shadow: 24px 0 40px rgba(0, 0, 0, 0.4);
  }

  .nav {
    position: relative;
    width: var(--sidebar-expanded);
    padding-right: 12px;
    z-index: 1;
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translateX(0);
  }

  .sidebar .text {
    width: 0;
    opacity: 0;
    transition: width 0.24s ease, opacity 0.18s ease;
  }
  .sidebar:hover .text {
    width: 160px;
    opacity: 1;
  }
  .menu-btn {
    display: none;
  }

  .sidebar:not(:hover) .nav-item {
    background: transparent;
  }
  .sidebar:not(:hover) .nav-item:hover {
    background: transparent;
  }
  .sidebar:not(:hover) .nav-item.iscole {
    color: #caff9e;
  }
  .sidebar:not(:hover) .nav-item.iscole .icon {
    background: #1c2f10;
    box-shadow: 0 0 0 1px #295a19 inset;
  }

  .sidebar:hover .nav-item.iscole {
    background: #1c2f10;
    color: #caff9e;
  }
  .sidebar:hover .nav-item.iscole .icon {
    background: transparent;
    box-shadow: none;
  }
  .sidebar:hover .nav-item:hover {
    background: #1a1d3a;
  }
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 40;
}

@media (max-width: 768px) {
  .app-body {
    position: relative;
  }
  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: var(--sidebar-expanded);
    height: calc(100vh - var(--header-h));
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    z-index: 300;
    border-right: 1px solid var(--line);
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  body.sidebar-open .scrim {
    opacity: 1;
    visibility: visible;
  }
  .sidebar .text {
    width: auto;
    opacity: 1;
  }
  .hero-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-btn,
.search-btn-mobile {
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #1b1d35;
  border: 1px solid var(--line);
  line-height: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
}
.menu-btn:hover,
.search-btn-mobile:hover {
  background: #202347;
  border-color: rgba(255, 255, 255, 0.12);
}
.menu-btn:active,
.search-btn-mobile:active {
  transform: scale(0.98);
}
.menu-btn:focus-visible,
.search-btn-mobile:focus-visible {
  outline: 2px solid #7cff8c55;
  outline-offset: 2px;
}

.menu-btn {
  display: inline-flex;
}
.search-btn-mobile {
  display: none;
}

.menu-btn:hover,
.search-btn-mobile:hover {
  background: #202347;
  border-color: rgba(255, 255, 255, 0.12);
}
.menu-btn:active,
.search-btn-mobile:active {
  transform: scale(0.98);
}
.menu-btn:focus-visible,
.search-btn-mobile:focus-visible {
  outline: 2px solid #7cff8c55;
  outline-offset: 2px;
}

.menu-btn img,
.search-btn-mobile img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter: brightness(0) invert(1);
  margin: 0;
}

@media (max-width: 768px) {
  .menu-btn,
  .search-btn-mobile {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .search-btn-mobile {
    display: inline-flex;
  }
}

.header-right {
  display: block;
}
.header-center {
  flex: 1;
  max-width: 600px;
}

@media (max-width: 768px) {
  #desktopSearch {
    display: none;
  }

  .header-right {
    display: none;
  }
  .header-center {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

.search-popup {
  display: none;
  position: fixed;
  left: 0;
  top: var(--header-h);
  width: 100vw;
  z-index: 100;
  background: rgba(18, 19, 40, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  animation: searchPopupIn 0.22s cubic-bezier(0.4, 1.2, 0.4, 1) both;
}
.search-popup.show {
  display: block;
}
.search-popup-inner {
  display: flex;
  align-items: center;
  padding: 18px 16px;
  gap: 10px;
}
.search-popup-inner input {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #171935;
  color: var(--txt);
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}
.close-search-popup {
  background: none;
  border: none;
  color: var(--txt-dim);
  font-size: 22px;
  cursor: pointer;
  margin-left: 6px;
}

@keyframes searchPopupIn {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ----------------------------------------main----------------------------------------- */
.section-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.row-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.desktop-only {
  display: flex;
}

@media (max-width: 768px) {
  .row-actions,
  .desktop-only {
    display: none;
  }
}

.row-arrow {
  position: static;
  transform: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #1b1d35;
  color: var(--txt);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.row-arrow:hover {
  background: #202347;
}
.row-arrow[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  background: #15172e;
}

.row-stage {
  position: relative;
  padding-inline: 4px;
}

.h-scroll {
  display: grid;
  grid-auto-flow: column;
  gap: 14px;
  grid-auto-columns: clamp(240px, 24vw, 280px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 6px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar {
  display: none;
}

.game-card {
  position: relative;
  height: clamp(240px, 36vw, 320px);
  border-radius: 20px;
  overflow: hidden;
  background: #141732;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  user-select: none;
}
.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.22s ease;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 16%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.card-footer {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  text-align: center;
}

.card-footer .plays {
  display: block;
  font-size: 16px;
  color: #fff;
  font-weight: 800;

  margin-bottom: 4px;
}

.card-footer .play-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  background: #fff;
  color: #0b0c15;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.new-row{
    margin-top: 36px;
}

.new-row .h-scroll {
  grid-auto-columns: clamp(96px, 10vw, 130px);
  gap: 16px;
}
.h-scroll.releases {
  padding: 6px 2px 12px;
}

.release-card {
  position: relative;
  display: block;
  height: clamp(90px, 9.5vw, 120px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #141732;
  scroll-snap-align: start;
  user-select: none;
}
.release-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.22s ease;
}
.release-card:hover img {
  transform: scale(1.04);
}

.release-title {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.release-card:hover .release-title {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .game-card {
    height: clamp(200px, 60vw, 280px);
  }
  .new-row .h-scroll {
    grid-auto-columns: clamp(90px, 26vw, 120px);
  }
}

.h-scroll.grabbing {
  cursor: grabbing;
}
.h-scroll:not(.grabbing) {
  cursor: grab;
}
/* -----------------------------------category--------------------------------------- */

.category-chips {
  padding: 12px;
  margin: 6px 0 18px;
  background: rgba(18, 19, 40, 0.6);
  border: 1px solid var(--line);
  border-radius: 16px;
  white-space: nowrap;
}

.category-chips-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 88%;
  margin: 0 auto;
}

.category-chip {
  flex: 0 0 auto;
  width: auto;
  height: 44px;
  padding: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: #151833;
  border: 1px solid var(--line);
  color: var(--txt);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
}
.category-chip .icon {
  filter: saturate(1.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-chip .icon img{
  width: 24px;
  height: 24px;
  /* object-fit: contain; */
  border-radius: 50%;
}


.category-chip:hover {
  background: #1b1f3f;
  border-color: rgba(255, 255, 255, 0.14);
}
.category-chip.is-active {
  background: #1c2f10;
  border-color: #295a19;
  color: #caff9e;
}

@media (max-width: 768px) {
  .category-chips {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 8px;
    touch-action: pan-x;
  }
  .category-chips::-webkit-scrollbar {
    display: none;
  }

  .category-chips-container {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 10px;
    margin: 0;
  }

  .category-chip {
    flex: 0 0 auto;
    width: auto;
    padding: 0 14px;
    height: 42px;
  }
}
.category-chips.grabbing {
  cursor: grabbing;
}
.games-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: auto;
}

@media (max-width: 1400px) {
  .games-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}
@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  aspect-ratio: 1 / 1;
}
.grid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.22s ease;
}
.grid-item:hover img {
  transform: scale(1.03);
}

.grid-item.col-span-2 {
  grid-column: span 2;
  grid-row: span 2;
}
/* -----------------------------------------game------------------------------------------------ */
:root {
  --game-h: clamp(520px, 70vh, 820px);
  --toolbar-h: 72px;
}

.game-area {
  margin-bottom: 24px;
}

.game-area-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  width: 100%;
  align-items: start;
  min-height: 0;
}

.game-area-content-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.game-iframe-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #222;
}
.game-iframe-wrap img,
.game-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}

.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: #32f54a;
  border: 1px solid #2fd75b;
  box-shadow: 0 4px 12px rgba(124, 255, 140, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.2s ease;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-overlay-btn img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  filter: brightness(0) invert(1);
}

.play-overlay-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #5be86e;
  box-shadow: 0 6px 18px rgba(91, 232, 110, 0.45);
}
.play-overlay-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a233a;
  border-radius: 0 0 18px 18px;
  padding: 12px 24px;
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.game-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.game-toolbar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #333;
}
.game-toolbar-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.game-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.game-toolbar-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  display: flex;
  align-items: center;
  transition: transform 0.1s;
}
.game-toolbar-actions button:hover {
  transform: scale(1.12);
}
.game-toolbar-actions img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.game-area-content-right {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  overflow: hidden;
}
.recommend-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.recommend-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.recommend-hero {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.recommend-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #e9ecf1;
}
.recommend-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.04)
  );
  margin: 0 12px;
}
.recommend-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.recommend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--txt);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.06s ease;
}
.recommend-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
.recommend-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.recommend-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.game-area.is-fixed .game-area-content {
  height: var(--game-h);
}
.game-area.is-fixed .game-area-content-left {
  display: flex;
}
.game-area.is-fixed .game-iframe-wrap {
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.game-area.is-fixed .game-toolbar {
  height: var(--toolbar-h);
}

@media (max-width: 1200px) {
  .game-area-content {
    grid-template-columns: 1fr;
  }
  .game-area-content-right {
    display: none;
  }
  .recommend-hero {
    width: 84px;
    height: 84px;
    border-radius: 12px;
  }
  .recommend-title {
    font-size: 16px;
  }
}

.game-introduction-area {
  margin: 32px 0 32px 0;
  border-radius: 24px;
  background: rgba(18, 19, 40, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22),
    0 1.5px 0 rgba(124, 255, 140, 0.08) inset;
  border: 1.5px solid var(--line);
  overflow: hidden;
  padding: 0;
}

.game-introduction-area-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.game-introduction-area-content-left {
  flex: 1 1 0;
  padding: 36px 40px 36px 40px;
  min-width: 0;
}

.game-introduction-area-content-right {
  flex: 0 0 340px;
  min-width: 240px;
  background: linear-gradient(
    120deg,
    rgba(25, 24, 92, 0.18) 0%,
    rgba(18, 19, 40, 0.5) 100%
  );
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 24px;
}

@media (max-width: 1024px) {
  .game-introduction-area-content {
    flex-direction: column;
  }
  .game-introduction-area-content-left,
  .game-introduction-area-content-right {
    padding: 24px 16px;
  }
  .game-introduction-area-content-right {
    flex: none;
    min-width: 0;
    padding-top: 0;
  }
}

.game-introduction-area h1,
.game-introduction-area h3 {
  color: #fff;
  margin-top: 18px;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.game-introduction-area h1 {
  font-size: 2.2rem;
  margin-top: 0;
}
.game-introduction-area h3 {
  font-size: 1.25rem;
}
.game-introduction-area p,
.game-introduction-area div {
  color: var(--txt-dim);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.game-info-side {
  width: 100%;
  background: rgba(24, 32, 53, 0.92);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
  padding: 32px 22px 28px 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.game-info-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 18px 0;
  color: #fff;
  letter-spacing: 0.2px;
}

.game-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin-bottom: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  height: 38px;
  border-radius: 999px;
  background: #151833;
  border: 1px solid var(--line);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s;
}
.chip:hover {
  background: #1b1f3f;
  border-color: #7cff8c44;
}

.chip img{
  width: 18px;
  height: 18px;
  /* object-fit: contain; */
  margin-right: 8px;
  border-radius: 50%;
  filter: saturate(1.2);
}

.game-info-platforms {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 10px;
  color: var(--txt-dim);
  font-size: 1.08rem;
}
.game-info-platforms li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
}
.platform-icon {
  font-size: 1.2em;
  margin-right: 4px;
}

.platform-icon img {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: 4px;
}

@media (max-width: 1024px) {
  .game-info-side {
    padding: 22px 10px 18px 10px;
  }
}

.rating-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(18, 19, 40, 0.55);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.rating-badge {
  display: inline-block;
  align-self: start;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--accent);
  color: #0b0c15;
  font-weight: 800;
  letter-spacing: 0.2px;
  width: fit-content;
  cursor: pointer;
}
.rating-title {
  margin: 2px 0 4px;
  font-weight: 800;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.rating-stars {
  display: inline-flex;
  gap: 6px;
}
.star {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}
.star svg {
  width: 100%;
  height: 100%;
  fill: #262a49;
  stroke: #ffd166;
  stroke-width: 1.1;
  transition: transform 0.12s ease, fill 0.15s ease;
}
.star.is-active svg,
.star:hover svg,
.star:focus-visible svg {
  fill: #ffd166;
}
.star:active svg {
  transform: scale(0.95);
}
.rating-score {
  color: var(--txt-dim);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.rating-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #3358ff;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------------------------------about us---------------------------------- */

.about-section {
  background: linear-gradient(
    to right bottom,
    rgb(44, 63, 41),
    rgb(16, 14, 16)
  );
  padding: 24px 32px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22),
    0 1.5px 0 rgba(124, 255, 140, 0.08) inset;
  border: 1.5px solid var(--line);
  margin-top: 32px;
}

.about-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  text-align: center;
}

.about-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.about-section ul {
  /* list-style: none; */
  /* padding-left: 0; */
}

/* -------------------------------------footer---------------------------------------------- */
.footer {
  text-align: center;
  padding: 24px 12px;
  font-size: 0.9rem;
  color: var(--txt-dim);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer-nav {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--txt-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 1.2rem;
}
.footer-nav a:hover {
  color: #7cff8c;
}

/* -----------------------------------------Cookies Policy----------------------------------------- */

.cooking-policy {
  width: 98%;
  margin: 0 auto;
  text-align: left;
  padding: 24px 32px;
  border-radius: 24px;
  background: rgba(18, 19, 40, 0.85);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22),
    0 1.5px 0 rgba(124, 255, 140, 0.08) inset;
  border: 1.5px solid var(--line);
  margin-top: 26px;
}
.cooking-policy h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
  text-align: center;
}

.cooking-policy h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.cooking-policy h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #d9d6d6;
}
.cooking-policy p,
.cooking-policy li {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--txt-dim);
}
@media (min-width: 769px) {
  .menu-btn {
    display: none;
  }
}
.ad {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #ccc;
    margin: 28px 0;
    border-radius: 8px;
}

.ad .adBox {
    min-width: 300px;
    min-height: 250px;
    padding: 20px;
    overflow: hidden;
    clear: both;
    text-align: center;
}

.ad p {
    color: #fff;
    margin: 10px 0;
}
