

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --bg:       #0d0d1a;
  --card:     #141428;
  --hover:    #1c1c38;
  --accent:   #7c3aed;
  --accent2:  #a855f7;
  --glow:     rgba(124,58,237,0.3);
  --gold:     #f59e0b;
  --green:    #22c55e;
  --orange:   #f97316;
  --text:     #eeeeff;
  --text2:    #9090bb;
  --text3:    #55557a;
  --border:   #252545;
  --r:        10px;

  /* Header & footer tokens */
  --purple-deep:    #5A10E4;
  --purple:         #7c3aed;
  --purple-light:   #8b5cf6;
  --accent-yellow:  #FECB01;
  --header-h:       110px;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
}
.header {
    width: 100%;
    background: var(--purple-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.container {
    max-width: 1400px;
    margin: auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.logo-icon {
    width: 200px;
    height: 100px;
    max-height: 90px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    object-position: left center;
    display: block;
}

.navbar { display: flex; gap: 25px; }

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s var(--ease);
}

.navbar a:hover { color: var(--accent-yellow); }

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    width: 240px;
    height: 40px;
    background: #1a1a2b;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-box:focus-within {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(254, 203, 1, 0.15);
}

.search-box i {
    color: var(--accent-yellow);
    font-size: 15px;
    min-width: 16px;
    text-align: center;
}

.search-box .search-icon-gradient {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    margin-left: 10px;
    font-size: 14px;
}

.search-box input::placeholder { color: rgba(255, 255, 255, 0.45); }

/* Clear (×) button inside the input */
.search-box .search-clear {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 50%;
    line-height: 0;
    transition: color 0.2s ease, background 0.2s ease;
}
.search-box .search-clear .close-icon { width: 12px; height: 12px; display: block; }
.search-box .search-clear:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.search-box .search-clear[hidden] { display: none; }

/* Search results dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: 70vh;
    overflow-y: auto;
    background: #1a1a2b;
    border: 1px solid rgba(254, 203, 1, 0.18);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    z-index: 1000;
    animation: searchDrop 160ms ease-out;
}
@keyframes searchDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.search-results[hidden] { display: none; }
.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-thumb { background: rgba(254, 203, 1, 0.3); border-radius: 4px; }

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}
.search-item:hover, .search-item:focus-visible {
    background: rgba(254, 203, 1, 0.08);
    transform: translateX(2px);
    outline: none;
}
.search-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #0f0f1a;
}
.search-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-item-title mark { background: rgba(254, 203, 1, 0.25); color: #fecb01; padding: 0 2px; border-radius: 3px; }
.search-item-tags {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-item-arrow {
    color: rgba(254, 203, 1, 0.5);
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.search-empty { padding: 24px 16px; text-align: center; color: rgba(255, 255, 255, 0.55); font-size: 13px; }
.search-empty strong { color: #fecb01; }

.header-right { position: relative; }

@media (max-width: 600px) {
    .search-results { right: -8px; width: calc(100vw - 32px); }
    .search-item img { width: 40px; height: 40px; }
    .logo-icon {
    width: 150px;
    height: 100px;
    
    border-radius: var(--radius-sm);
    object-fit: contain;
    object-position: left center;
    display: block;
}
}

.menu-btn {
    display: none;
    background: var(--accent-yellow);
    padding: 7px 10px;
    border: none;
    border-radius: 11px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.menu-btn .menu-icon {
    width: 22px;
    height: 22px;
    display: block;
    stroke: #1a1a2b;
    transition: transform 0.2s ease;
}
.menu-btn:hover .menu-icon { transform: scale(1.05); }

/* =============================================================
   SIDEBAR (mobile menu)
   ============================================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #11111d;
    z-index: 1001;
    transition: left 0.4s var(--ease);
    padding: 20px;
    overflow-y: auto;
}

.sidebar.active { left: 0; }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 30px;
}

.sidebar-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    transition: color 0.2s ease;
}
.sidebar-header button:hover { color: var(--accent-yellow); }
.sidebar-header button .close-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.mobile-nav { display: flex; flex-direction: column; }

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    z-index: 1000;
}

.sidebar-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* ========================
   TOP: GAME SECTION
   ======================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ========================
   TOP: GAME SECTION
   ======================== */
.game-top {
  position: relative;
  width: calc(100% - 160px);     /* 80px each side (left+right) */
  margin: 40px 80px 80px 80px;    /* 40px top, 80px others */
  background: #000;
  line-height: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, .18),
    0 0 12px rgba(124, 58, 237, .22),
    inset 0 0 8px rgba(124, 58, 237, .05);
}

.game-top iframe {
  width: 100%;
  height: 75vh;        /* bari screen - viewport ka 75% */
  min-height: 480px;
  max-height: 800px;
  display: block;
  border: none;
}



/* Fullscreen button (normal mode) */
.fs-btn {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: #FECB01;              /* yellow background */
  border: 1px solid #FECB01;
  border-radius: 8px;
  color: #2563eb;                    /* blue icon */
  font-size: 15px;
  width: 40px; height: 40px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.fs-btn:hover {
  background: #2563eb;              /* blue background on hover */
  color: #fff;                       /* white icon on hover */
  border-color: #2563eb;
  transform: scale(1.08);
}

/* Fullscreen overlay (shown only in fullscreen mode) */
.fs-overlay {
  position: absolute;
  top: auto;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: auto;
  z-index: 10;
  padding: 6px 10px 6px 6px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  display: flex;
  align-items: center;
}

.game-top.fullscreen-active .fs-overlay {
  opacity: 1;
  pointer-events: auto;
}

.fs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* Game info (left) */
.fs-game-info {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin-left: 0;
}

.fs-game-info img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, .2);
}

/* Actions (right) */
.fs-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

/* Exit fullscreen button — highlighted */
.fs-exit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: linear-gradient(90deg, #facc15, #eab308);
  border: none;
  color: #1a1a1a;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  transition: all .2s;
  box-shadow: 0 2px 10px rgba(234, 179, 8, .5);
  margin-right: 0;
}

.fs-exit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(234, 179, 8, .75);
  background: linear-gradient(90deg, #fde047, #facc15);
}

.fs-exit-btn i { font-size: 13px; }

/* Fullscreen mode container — fills entire viewport, NO margin/frame */
.game-top.fullscreen-active {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 9999;
  animation: fsFadeIn .3s ease;
}

@keyframes fsFadeIn {
  from { opacity: 0; transform: scale(.98); }
  to   { opacity: 1; transform: scale(1); }
}

.game-top.fullscreen-active iframe {
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 0;
  object-fit: contain;
}

/* Body lock when fullscreen */
body.fs-locked {
  overflow: hidden !important;
  height: 100vh;
}

/* Hide fullscreen button when in fullscreen mode */
.game-top.fullscreen-active .fs-btn {
  opacity: 0;
  pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .game-top {
    width: calc(100% - 32px);
    margin: 16px;
  }

  .fs-overlay { padding: 5px 8px 5px 5px; }
  .fs-game-info img { width: 26px; height: 26px; }
  .fs-exit-btn { width: 28px; height: 28px; }
  .fs-exit-btn i { font-size: 12px; }
}

/* ========================
   BOTTOM: CONTENT
   ======================== */
.content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

/* Now playing bar */
.now-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--r);
  padding: 10px 16px;
  margin-bottom: 14px;
  box-shadow: 0 0 18px var(--glow);
}
.now-bar img { width: 42px; height: 42px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.now-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.now-name { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-rating { font-size: 12px; color: var(--gold); font-weight: 700; margin-top: 1px; }
.now-label { font-size: 11px; font-weight: 800; color: var(--accent2); text-transform: uppercase; letter-spacing: .8px; flex-shrink: 0; }

/* Category tabs */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tab {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 6px 14px;
  cursor: pointer;
  transition: all .18s;
}
.tab:hover { background: var(--hover); color: var(--text); }
.tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }



/* Section label */
.section-label {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 10px;
  margin-top: 24px;
  position: relative;
  padding-bottom: 7px;
}
.section-label::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 38px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
}

/* Games grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

/* Game card */
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.game-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 22px var(--glow);
  border-color: var(--accent);
}
.game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.game-card-info { padding: 7px 8px; }
.game-card-name {
  font-size: 11px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.game-card-meta { display: flex; justify-content: space-between; }
.game-card-rating { font-size: 10px; color: var(--gold); font-weight: 700; }
.game-card-plays  { font-size: 10px; color: var(--text3); }

/* Badge */
.game-badge {
  position: absolute; top: 5px; left: 5px;
  font-size: 9px; font-weight: 800;
  padding: 2px 7px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .5px; color: #fff;
}
.badge-hot { background: var(--orange); }
.badge-new { background: var(--green); }

/* Active (playing) card highlight */
.game-card.playing {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--glow);
}

/* Empty state */
.empty { color: var(--text3); font-size: 14px; padding: 20px 0; grid-column: 1/-1; }

/* Responsive */
@media (max-width: 600px) {
  .game-top iframe { height: 55vw; min-height: 240px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
    background: linear-gradient(135deg, var(--purple-deep) 0%, #4a0fc4 50%, var(--purple) 100%);
    color: #fff;
    padding: 60px 40px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    opacity: 0.6;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-brand { max-width: 280px; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-logo-img {
    width: 180px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-social a:hover {
    background: var(--accent-yellow);
    color: var(--purple-deep);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.footer-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s var(--ease);
}

.footer-form:focus-within { border-color: var(--accent-yellow); }

.footer-form input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    padding: 12px 14px;
    font-size: 14px;
}

.footer-form input::placeholder { color: rgba(255, 255, 255, 0.5); }

.footer-form button {
    background: var(--accent-yellow);
    color: var(--purple-deep);
    border: none;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.25s var(--ease);
}

.footer-form button:hover { background: #fff; }

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.footer-made i { color: #ff4d6d; }

/* =============================================================
   GAME INFO SECTION (below iframe)
   ============================================================= */

.game-info-section {
  margin: 0;
  padding: 40px 80px 80px;
  background: var(--bg);
}

.game-info-wrap {
  max-width: 100%;
}

/* Header: title + share */
.info-header {
  margin-bottom: 28px;
}

.info-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.info-title {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  margin: 0;
  letter-spacing: -.5px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #2a1450;
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
}

.share-btn:hover {
  background: var(--accent);
  border-color: var(--accent2);
  transform: translateY(-2px);
}

.share-btn i {
  font-size: 13px;
}

/* Info table */
.info-table {
  background: #0f0f1c;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 24px;
  margin-bottom: 32px;
}

.info-table .info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.info-table .info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--accent2);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  min-width: 130px;
}

.info-value {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-align: right;
  line-height: 1.55;
}

.info-value strong {
  font-weight: 800;
  margin-right: 4px;
}

.info-muted {
  color: var(--text2);
  font-weight: 500;
  font-size: 13px;
}

.info-link {
  color: var(--accent2);
  font-weight: 700;
  text-decoration: none;
  transition: color .2s;
}

.info-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Description text */
.info-desc {
  color: #d8d8e0;
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 18px;
}

.info-h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 30px 0 16px;
  letter-spacing: -.3px;
}

.info-h3 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin: 24px 0 12px;
}

/* =============================================================
   FEATURES SECTION (stylish grid below info section)
   ============================================================= */

.features-section {
  margin: 0;
  padding: 60px 80px 80px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(124, 58, 237, .15), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(236, 72, 153, .12), transparent 50%),
    linear-gradient(180deg, #0a0a14 0%, #14142a 100%);
  border-top: 1px solid rgba(124, 58, 237, .2);
}

.features-wrap {
  max-width: 100%;
}

.features-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-title {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -.5px;
}

.features-title span {
  background: linear-gradient(90deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-subtitle {
  color: var(--text2);
  font-size: 16px;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Feature card base */
.feature-card {
  position: relative;
  padding: 32px 26px;
  background: linear-gradient(135deg, #14142a 0%, #0f0f1c 100%);
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 18px;
  text-align: center;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, .12), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent2);
  box-shadow:
    0 14px 40px rgba(124, 58, 237, .3),
    0 0 0 1px rgba(168, 85, 247, .35);
}

.feature-card:hover::before {
  opacity: 1;
}

/* Icon with different gradient backgrounds */
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  position: relative;
  z-index: 1;
}

.icon-1 { background: linear-gradient(135deg, #facc15, #f97316); }
.icon-2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.icon-3 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.icon-4 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.icon-5 { background: linear-gradient(135deg, #22c55e, #10b981); }
.icon-6 { background: linear-gradient(135deg, #8b5cf6, #6366f1); }

.feature-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}

.feature-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text2);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Mobile responsive for features */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .features-section {
    padding: 50px 40px 60px;
  }
  .features-title {
    font-size: 28px;
  }
}

@media (max-width: 540px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .features-section {
    padding: 40px 20px 50px;
  }
  .feature-card {
    padding: 24px 20px;
  }
}

/* Mobile responsive for info section */
@media (max-width: 768px) {
  .game-info-section {
    padding: 40px 20px 30px;
  }
  .info-title {
    font-size: 28px;
  }
  .info-table {
    padding: 4px 16px;
  }
  .info-table .info-row {
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
  }
  .info-value {
    text-align: left;
  }
  .info-h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .game-info-section {
    padding: 30px 16px 20px;
  }
  .info-title {
    font-size: 24px;
  }
  .share-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}

@media (max-width: 991px) {
    .navbar    { display: none; }
    .menu-btn  { display: block; }
    .search-box { width: 180px; }
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container   { height: 65px; }
    .logo span   { font-size: 13px; }
    .search-box  { width: 140px; height: 38px; }
    .site-footer { padding: 40px 20px 20px; }
}

@media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* =============================================================
   ACCESSIBILITY
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}

/* =============================================================
   FAQ SECTION (simple)
   ============================================================= */

.faq-section {
  margin: 0;
  padding: 60px 80px 80px;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, .05);
}

/* ---------- h3 sub-heading (used inside game-info-section) ---------- */
.info-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 26px 0 12px;
}

/* ---------- Quick Reference callout box ---------- */
.info-callout {
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-left: 4px solid #a855f7;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 22px 0;
}
.info-callout strong {
  display: block;
  color: #FECB01;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.info-callout ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.info-callout li {
  position: relative;
  padding: 4px 0 4px 26px;
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.6;
}
.info-callout li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  top: 4px;
  color: #f9d800;
  font-size: 0.85rem;
}

/* ---------- Controls highlight box (purple panel with key visuals) ---------- */
.controls-highlight {
  background: linear-gradient(160deg, #5A10E4 0%, #7c3aed 100%);
  border-radius: 16px;
  padding: 26px 30px;
  margin: 24px 0;
  box-shadow: 0 8px 28px rgba(90, 16, 228, 0.35);
}
.controls-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.controls-list li {
  color: #ffffff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1.6;
  font-size: 0.97rem;
}
.controls-list li:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}
.controls-list li:first-child {
  padding-top: 4px;
}
/* Player tag — yellow chip on dark badge */
.controls-list .control-player {
  display: inline-block;
  background: rgba(0, 0, 0, 0.28);
  color: #FECB01;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 5px;
  margin-right: 10px;
  vertical-align: middle;
}
/* <kbd> styled as a physical keyboard key */
.controls-list kbd {
  display: inline-block;
  background: #ffffff;
  color: #0d0d16;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  font-family: inherit;
  vertical-align: middle;
  line-height: 1;
}

@media (max-width: 600px) {
  .controls-highlight { padding: 20px 18px; }
  .controls-list .control-player { margin-bottom: 6px; }
}

/* ---------- Compare table (3-column data tables, e.g. "Boxing Random vs. Similar Ragdoll Games") ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
}
.compare-table thead th {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.35) 0%, rgba(168, 85, 247, 0.35) 100%);
  color: #FECB01;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.compare-table tbody td {
  padding: 14px 18px;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.5;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.10);
}
.compare-table tbody td:first-child {
  font-weight: 700;
  color: #ffffff;
}
/* On mobile: stacked card layout */
@media (max-width: 600px) {
  .compare-table thead { display: none; }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td { display: block; width: 100%; }
  .compare-table tr {
    margin-bottom: 12px;
    background: rgba(124, 58, 237, 0.06);
    border-radius: 10px;
    padding: 10px;
  }
  .compare-table td {
    padding: 6px 10px;
    border-bottom: none !important;
  }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #FECB01;
    font-weight: 700;
    margin-bottom: 4px;
  }
}

/* ---------- Conclusion section (full game-page conclusion) ---------- */
.game-conclusion {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 36px clamp(20px, 4vw, 44px);
  margin: 24px auto;
  max-width: 1100px;
  text-align: center;
}
.game-conclusion__inner {
  max-width: 800px;
  margin: 0 auto;
}
.game-conclusion h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.875rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 18px;
  position: relative;
  display: inline-block;
  padding-left: 16px;
}
.game-conclusion h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f9d800, #84cc16, #f97316);
}
.game-conclusion p {
  color: #cfcfcf;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.faq-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.faq-title {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 30px;
  text-align: center;
  letter-spacing: -.3px;
}

.faq-title span {
  color: var(--accent2);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Each FAQ item */
.faq-item {
  background: #0f0f1c;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, background .2s;
}

.faq-item:hover {
  border-color: rgba(124, 58, 237, .35);
}

.faq-item[open] {
  border-color: var(--accent2);
  background: rgba(124, 58, 237, .06);
}

/* Question (summary) */
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* + / − toggle */
.faq-item summary::after {
  content: "+";
  color: var(--accent2);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  content: "−";
}

/* Answer */
.faq-item p {
  padding: 0 22px 18px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .faq-section {
    padding: 40px 20px 50px;
  }
  .faq-title {
    font-size: 26px;
  }
  .faq-item summary {
    padding: 16px 18px;
    font-size: 14px;
  }
  .faq-item p {
    padding: 0 18px 16px;
  }
}
