/* ============================================================
   GAMEVERSE - GAMING PLATFORM CSS
   Dark, immersive, full-width gaming aesthetic
   ============================================================ */

   *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --bg:          #060912;
    --bg2:         #0a0f1e;
    --bg3:         #0f1629;
    --surface:     #141d30;
    --surface2:    #1a2540;
    --border:      rgba(255,255,255,0.06);
    --border-a:    rgba(0,255,209,0.25);
    --teal:        #00FFD1;
    --teal-dim:    rgba(0,255,209,0.12);
    --purple:      #7B5EFF;
    --purple-dim:  rgba(123,94,255,0.12);
    --pink:        #FF2D78;
    --gold:        #FFB800;
    --text:        #dde4f0;
    --text-dim:    #5a6a8a;
    --text-mid:    #8899bb;
    --glow-teal:   0 0 24px rgba(0,255,209,0.3);
    --glow-purple: 0 0 24px rgba(123,94,255,0.3);
    --radius-sm:   8px;
    --radius:      12px;
    --radius-lg:   18px;
    --header-h:    64px;
    --play-header-h: 56px;
    --transition:  0.18s ease;
    --font-display: 'Chakra Petch', monospace;
    --font-body:   'Exo 2', sans-serif;
  }
  
  html { scroll-behavior: smooth; }
  
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
  }
  
  .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
  }
  
  /* ============================================================
     AMBIENT BACKGROUND
     ============================================================ */
  .ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  
  .ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
  }
  
  .blob-1 {
    width: 700px; height: 700px;
    background: rgba(123,94,255,0.08);
    top: -200px; right: -200px;
    animation: blobFloat 18s ease-in-out infinite alternate;
  }
  
  .blob-2 {
    width: 600px; height: 600px;
    background: rgba(0,255,209,0.05);
    bottom: -150px; left: -150px;
    animation: blobFloat 22s ease-in-out infinite alternate-reverse;
  }
  
  .blob-3 {
    width: 400px; height: 400px;
    background: rgba(255,45,120,0.04);
    top: 40%; left: 30%;
    animation: blobFloat 15s ease-in-out infinite alternate;
  }
  
  @keyframes blobFloat {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(40px,30px) scale(1.1); }
  }
  
  .scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0) 0px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0.03) 2px,
      rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
  }
  
  /* ============================================================
     HEADER
     ============================================================ */
  header {
    position: sticky;
    top: 0;
    height: var(--header-h);
    background: rgba(6,9,18,0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
    padding: 0 24px;
    max-width: 100%;
  }
  
  /* Logo */
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 28px;
  }
  
  .logo-mark {
    width: 34px; height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    transition: transform 0.2s, filter 0.2s;
  }
  
  .logo:hover .logo-mark {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(0,255,209,0.5));
  }
  
  .logo-wordmark {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  
  .logo-wordmark em {
    font-style: normal;
    color: var(--teal);
  }
  
  /* Nav */
  .header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 16px;
    flex-shrink: 0;
  }
  
  .nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition), background var(--transition);
  }
  
  .nav-link:hover {
    color: var(--teal);
    background: var(--teal-dim);
  }
  
  /* Search */
  .header-center {
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
  }
  
  .search-bar {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .search-ico {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    pointer-events: none;
  }
  
  .search-bar input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 48px 9px 40px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  
  .search-bar input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,255,209,0.08);
  }
  
  .search-bar input::placeholder { color: var(--text-dim); }
  
  .search-kbd {
    position: absolute;
    right: 12px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: var(--font-body);
  }
  
  /* Header right */
  .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
    flex-shrink: 0;
  }
  
  .btn-ghost {
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
  }
  
  .btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-dim);
  }
  
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--teal), #00c9b1);
    color: #060912;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    text-decoration: none;
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--glow-teal);
  }
  
  .btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  /* Mobile toggle */
  .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
  }
  
  .menu-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.2s;
  }
  
  /* Mobile Menu */
  .mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(6,9,18,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    padding: 16px;
    transform: translateY(-100%);
    opacity: 0;
    transition: 0.25s ease;
  }
  
  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
  }
  
  .mob-link {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: 0.15s;
  }
  
  .mob-link:hover { color: var(--teal); background: var(--teal-dim); }
  
  /* ============================================================
     HERO
     ============================================================ */
  .hero {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
  }
  
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
    max-width: 100%;
    padding: 64px 40px 48px;
  }
  
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal-dim);
    border: 1px solid var(--border-a);
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  
  .badge-dot {
    width: 7px; height: 7px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
  }
  
  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.5vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
  }
  
  .h1-line { display: block; }
  
  .accent-line {
    background: linear-gradient(90deg, var(--teal), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .hero-sub {
    color: var(--text-mid);
    font-size: 1rem;
    max-width: 460px;
    margin-bottom: 28px;
    line-height: 1.7;
  }
  
  .hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
  }
  
  .cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, var(--teal), #00b8a0);
    color: #060912;
    border: none;
    border-radius: var(--radius);
    padding: 14px 28px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.03em;
  }
  
  .cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(0,255,209,0.35);
  }
  
  .cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .cta-outline:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-dim);
  }
  
  .hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  
  .hstat { text-align: left; }
  
  .hstat-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
  }
  
  .hstat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
  }
  
  .hstat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
  }
  
  /* Hero Showcase */
  .hero-showcase { width: 100%; }
  
  .showcase-grid {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 12px;
  }
  
  .showcase-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
  }
  
  .showcase-card:hover {
    border-color: var(--teal);
    box-shadow: var(--glow-teal);
    transform: translateY(-3px);
  }
  
  .showcase-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg3);
    overflow: hidden;
  }
  
  .showcase-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }
  
  .showcase-card:hover .showcase-img-wrap img { transform: scale(1.04); }
  
  .showcase-live {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(6,9,18,0.85);
    border: 1px solid var(--teal);
    color: var(--teal);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .live-dot {
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
  }
  
  .showcase-info {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .showcase-tag {
    background: var(--teal-dim);
    color: var(--teal);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
  }
  
  .showcase-info h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .showcase-mini-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .mini-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    position: relative;
  }
  
  .mini-card:hover {
    border-color: var(--purple);
    transform: translateX(-3px);
  }
  
  .mini-card img {
    width: 100%; height: 70%;
    object-fit: cover;
    display: block;
    min-height: 60px;
  }
  
  .mini-info {
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-mid);
  }
  
  /* Ticker */
  .ticker-wrap {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
  }
  
  .ticker-track {
    display: inline-flex;
    gap: 20px;
    animation: ticker 30s linear infinite;
    padding-right: 40px;
  }
  
  .ticker-track span {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.15em;
  }
  
  .tick-sep { color: var(--teal) !important; }
  
  @keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  
  /* ============================================================
     MAIN PLATFORM LAYOUT
     ============================================================ */
  .platform-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - var(--header-h));
    position: relative;
    z-index: 2;
  }
  
  /* ============================================================
     SIDEBAR
     ============================================================ */
  .sidebar {
    background: var(--bg2);
    border-right: 1px solid var(--border);
    padding: 24px 0;
  }
  
  .sidebar-sticky {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
    padding: 0 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) transparent;
  }
  
  .sidebar-sticky::-webkit-scrollbar { width: 3px; }
  .sidebar-sticky::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
  
  .sidebar-block { margin-bottom: 28px; }
  
  .sidebar-heading {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0 4px;
    margin-bottom: 12px;
  }
  
  /* Category List */
  .cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    position: relative;
  }
  
  .cat-item:hover {
    background: var(--surface);
    color: var(--text);
  }
  
  .cat-item.active {
    background: linear-gradient(135deg, rgba(0,255,209,0.1), rgba(123,94,255,0.08));
    border-color: rgba(0,255,209,0.2);
    color: var(--teal);
  }
  
  .cat-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--teal);
    border-radius: 0 3px 3px 0;
  }
  
  .cat-icon { font-size: 1rem; flex-shrink: 0; }
  
  .cat-label { flex: 1; }
  
  .cat-count {
    margin-left: auto;
    font-size: 0.7rem;
    background: var(--bg3);
    color: var(--text-dim);
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
    font-weight: 700;
  }
  
  /* Stat pills */
  .stat-pills { display: flex; flex-direction: column; gap: 8px; }
  
  .stat-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
  }
  
  .sp-icon { font-size: 1.25rem; }
  
  .sp-val {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
  }
  
  .sp-lbl {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
  }
  
  /* Sidebar ad/tip */
  .sidebar-ad {
    border-radius: var(--radius);
    border: 1px dashed rgba(0,255,209,0.3);
    background: rgba(0,255,209,0.04);
    overflow: hidden;
  }
  
  .ad-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }
  
  .ad-icon { font-size: 1.3rem; flex-shrink: 0; }
  
  .ad-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .ad-text strong {
    font-size: 0.8rem;
    color: var(--teal);
    font-family: var(--font-display);
  }
  
  .ad-text span {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.5;
  }
  
  .ad-text kbd {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-family: var(--font-body);
  }
  
  /* ============================================================
     MAIN CONTENT
     ============================================================ */
  .main-content {
    padding: 24px 32px 60px;
    min-width: 0;
  }
  
  /* Breadcrumb */
  .breadcrumb {
    margin-bottom: 20px;
  }
  
  .breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-dim);
  }
  
  .breadcrumb ol li::after {
    content: '/';
    margin-left: 8px;
    color: var(--border);
  }
  
  .breadcrumb ol li:last-child::after { display: none; }
  
  .breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
  }
  
  .breadcrumb a:hover { color: var(--teal); }
  
  /* Toolbar */
  .toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .toolbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  
  .section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
  }
  
  .result-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    border-radius: 20px;
    padding: 2px 12px;
    font-size: 0.78rem;
    font-weight: 600;
  }
  
  .toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .sort-tabs {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  
  .sort-tab {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
  }
  
  .sort-tab:hover { color: var(--text); background: var(--surface2); }
  
  .sort-tab.active {
    background: var(--teal);
    color: #060912;
  }
  
  .view-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    border-radius: var(--radius-sm);
    width: 34px; height: 34px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.15s;
  }
  
  .view-toggle:hover { border-color: var(--teal); color: var(--teal); }
  
  /* Error state */
  .error-state {
    display: none;
    text-align: center;
    padding: 80px 20px;
  }
  
  .error-state.visible { display: block; }
  
  .error-icon { font-size: 4rem; margin-bottom: 20px; }
  
  .error-state h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  
  .error-state p {
    color: var(--text-dim);
    margin-bottom: 24px;
  }
  
  .error-state code {
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 5px;
    color: var(--teal);
  }
  
  /* ============================================================
     GAME GRID
     ============================================================ */
  .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 16px;
  }
  
  .game-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
  }
  
  .game-card:hover {
    transform: translateY(-5px);
    border-color: var(--teal);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4), var(--glow-teal);
  }
  
  .game-thumb {
    aspect-ratio: 4/3;
    background: var(--bg3);
    position: relative;
    overflow: hidden;
  }
  
  .game-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
  }
  
  .game-card:hover .game-thumb img { transform: scale(1.08); }
  
  .play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,255,209,0.2), rgba(123,94,255,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s;
  }
  
  .game-card:hover .play-overlay { opacity: 1; }
  
  .play-circle {
    width: 52px; height: 52px;
    background: var(--teal);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: #060912;
    transform: scale(0.8);
    transition: transform 0.2s;
    box-shadow: 0 0 20px rgba(0,255,209,0.5);
  }
  
  .game-card:hover .play-circle { transform: scale(1); }
  
  .game-badge {
    position: absolute;
    top: 8px; left: 8px;
    padding: 2px 9px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 2;
  }
  
  .badge-hot { background: var(--pink); color: #fff; }
  .badge-new { background: var(--teal); color: #060912; }
  .badge-top { background: var(--gold); color: #060912; }
  
  .game-body {
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
  }
  
  .game-title {
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    font-family: var(--font-display);
  }
  
  .game-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .game-cat-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--bg3);
    color: var(--text-dim);
    padding: 2px 8px;
    border-radius: 5px;
    text-transform: capitalize;
  }
  
  .game-rating {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
  }
  
  /* Skeleton */
  .skeleton-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
  }
  
  .skel-thumb {
    aspect-ratio: 4/3;
    background: var(--bg3);
    position: relative;
    overflow: hidden;
  }
  
  .skel-thumb::after,
  .skel-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    animation: shimmer 1.6s infinite;
  }
  
  @keyframes shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
  }
  
  .skel-body { padding: 11px 13px; }
  
  .skel-line {
    height: 11px;
    background: var(--bg3);
    border-radius: 5px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
  }
  
  .skel-line:last-child { width: 60%; margin-bottom: 0; }
  
  /* Empty state */
  .empty-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1/-1;
    color: var(--text-dim);
  }
  
  .empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text);
  }
  
  /* ============================================================
     PAGINATION
     ============================================================ */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
  }
  
  .page-btn {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s;
    display: grid;
    place-items: center;
  }
  
  .page-btn:hover:not(:disabled) {
    border-color: var(--teal);
    color: var(--teal);
  }
  
  .page-btn.active {
    background: var(--teal);
    border-color: var(--teal);
    color: #060912;
  }
  
  .page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
  
  /* ============================================================
     FOOTER
     ============================================================ */
  .site-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
  }
  
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 48px 40px 36px;
    max-width: 100%;
  }
  
  .footer-brand { max-width: 260px; }
  
  .footer-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 12px;
    line-height: 1.7;
  }
  
  .footer-links {
    display: flex;
    gap: 60px;
  }
  
  .footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  
  .footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
  }
  
  .footer-col a:hover { color: var(--teal); }
  
  .footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 40px;
    text-align: center;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-dim);
  }
  
  /* ============================================================
     TOAST
     ============================================================ */
  .toast {
    position: fixed;
    bottom: 24px; right: 24px;
    background: var(--surface2);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius);
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 999;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.2s;
    pointer-events: none;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  
  .toast.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ============================================================
     PLAY PAGE
     ============================================================ */
  body.play-page {
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .play-header {
    position: sticky;
    top: 0;
    height: var(--play-header-h);
    background: rgba(6,9,18,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    flex-shrink: 0;
  }
  
  .play-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 0 20px;
  }
  
  .logo-sm .logo-wordmark { font-size: 0.95rem; }
  
  .play-title-wrap {
    flex: 1;
    min-width: 0;
  }
  
  .play-breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-bottom: 2px;
  }
  
  .play-breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
  }
  
  .play-breadcrumb a:hover { color: var(--teal); }
  
  .play-breadcrumb svg { color: var(--border); flex-shrink: 0; }
  
  .play-game-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
  }
  
  .play-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  
  /* Game Layout */
  .game-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  
  .game-frame-wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: #000;
  }
  
  /* Game Chrome */
  .game-chrome {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--border);
  }
  
  .chrome-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  
  .chrome-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
  }
  
  .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
  }
  
  .dot-red    { background: #FF5F57; }
  .dot-yellow { background: #FFBD2E; }
  .dot-green  { background: #27C840; }
  
  .chrome-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-mid);
    min-width: 0;
    overflow: hidden;
  }
  
  #chromeGameName {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .chrome-cat {
    background: var(--teal-dim);
    color: var(--teal);
    padding: 1px 8px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
  }
  
  .chrome-controls {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
  }
  
  .chrome-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    border-radius: 6px;
    width: 28px; height: 28px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.15s;
  }
  
  .chrome-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
  }
  
  /* Loading */
  .game-loader {
    position: absolute;
    inset: 0;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s;
  }
  
  .game-loader.hidden {
    opacity: 0;
    pointer-events: none;
  }
  
  .loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .loader-ring {
    width: 56px; height: 56px;
    position: relative;
  }
  
  .loader-ring div {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  
  .loader-ring div:nth-child(2) {
    inset: 8px;
    border-top-color: var(--purple);
    animation-duration: 1.2s;
    animation-direction: reverse;
  }
  
  .loader-ring div:nth-child(3) { display: none; }
  .loader-ring div:nth-child(4) { display: none; }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .loader-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
  }
  
  .loader-sub {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 4px;
  }
  
  .loader-bar-wrap {
    width: 200px;
    height: 3px;
    background: var(--surface2);
    border-radius: 3px;
    overflow: hidden;
  }
  
  .loader-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--purple));
    border-radius: 3px;
    animation: loadBar 2.5s ease-in-out infinite;
  }
  
  @keyframes loadBar {
    0%   { width: 0%; }
    60%  { width: 85%; }
    100% { width: 95%; }
  }
  
  /* Iframe container — fills remaining space */
  .iframe-container {
    flex: 1;
    position: relative;
    background: #000;
    overflow: hidden;
  }
  
  #gameIframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }
  
  /* Control hints */
  .control-hints {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 7px 14px;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    flex-wrap: wrap;
  }
  
  .hint-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-dim);
  }
  
  .hint-item kbd {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 0.7rem;
    font-family: var(--font-body);
    color: var(--text);
  }
  
  .hint-desc {
    margin-left: auto;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dim);
    font-size: 0.75rem;
  }
  
  /* Play sidebar */
  .play-sidebar {
    background: var(--bg2);
    border-left: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .play-sidebar-sticky {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) transparent;
  }
  
  .play-sidebar-sticky::-webkit-scrollbar { width: 3px; }
  .play-sidebar-sticky::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
  
  /* Game info card */
  .game-info-card {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
  }
  
  .gic-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg3);
  }
  
  .gic-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .gic-body { padding: 14px; }
  
  .gic-tags {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  
  .gic-cat {
    background: var(--teal-dim);
    color: var(--teal);
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
  }
  
  .gic-rating {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 700;
  }
  
  .gic-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
  }
  
  .gic-desc {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* More games */
  .more-games-block { padding: 16px 14px; }
  
  .more-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  
  .more-title span { color: var(--teal); }
  
  .more-game-list { display: flex; flex-direction: column; gap: 8px; }
  
  .more-game-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    text-decoration: none;
  }
  
  .more-game-item:hover {
    background: var(--surface);
    border-color: var(--border);
  }
  
  .more-thumb {
    width: 56px; height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg3);
  }
  
  .more-info { min-width: 0; flex: 1; }
  
  .more-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
  }
  
  .more-cat {
    font-size: 0.68rem;
    color: var(--text-dim);
  }
  
  .see-all-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: var(--teal);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px;
    border: 1px solid var(--border-a);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
  }
  
  .see-all-link:hover {
    background: var(--teal-dim);
  }
  
  /* ============================================================
     RESPONSIVE
     ============================================================ */
  @media (max-width: 1100px) {
    .platform-wrap {
      grid-template-columns: 210px 1fr;
    }
    .hero-inner {
      grid-template-columns: 1fr 1fr;
      gap: 32px;
      padding: 48px 28px 40px;
    }
  }
  
  @media (max-width: 900px) {
    .platform-wrap {
      grid-template-columns: 1fr;
    }
    .sidebar {
      border-right: none;
      border-bottom: 1px solid var(--border);
      padding: 16px;
    }
    .sidebar-sticky {
      position: static;
      max-height: none;
      padding: 0;
    }
    .cat-list {
      flex-direction: row;
      flex-wrap: wrap;
    }
    .stat-pills { flex-direction: row; }
    .sidebar-ad { display: none; }
  
    .hero-inner {
      grid-template-columns: 1fr;
      padding: 32px 20px;
    }
    .hero-showcase { display: none; }
    .header-nav { display: none; }
    .header-right .btn-ghost { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu { display: block; }
    .main-content { padding: 20px 20px 48px; }
  
    /* Play page responsive */
    body.play-page { overflow: auto; height: auto; }
    .game-layout {
      grid-template-columns: 1fr;
      display: flex;
      flex-direction: column;
      overflow: visible;
    }
    .game-frame-wrap {
      height: 60vw;
      min-height: 280px;
      max-height: 70vh;
      overflow: hidden;
      flex-shrink: 0;
    }
    .play-sidebar {
      border-left: none;
      border-top: 1px solid var(--border);
    }
    .play-sidebar-sticky { overflow: visible; }
    .play-header { position: sticky; }
    .play-actions .btn-ghost { display: none; }
  }
  
  @media (max-width: 600px) {
    .header-inner { padding: 0 14px; gap: 10px; }
    .header-center { display: none; }
    .logo-wordmark { display: none; }
    .hero h1 { font-size: 2.4rem; }
    .hero-inner { padding: 28px 16px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .cta-primary, .cta-outline { justify-content: center; }
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 12px; }
    .footer-inner { flex-direction: column; padding: 32px 20px; }
    .footer-links { gap: 32px; }
    .footer-bottom { padding: 12px 20px; }
    .play-title-wrap { display: none; }
    .control-hints { display: none; }
  }
  
  /* Large screens — use more columns */
  @media (min-width: 1400px) {
    .game-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  }
  
  @media (min-width: 1800px) {
    .hero-inner { padding: 72px 56px 56px; }
    .main-content { padding: 32px 48px 80px; }
  }