  :root {
    --navy: #0d1117;
    --navy2: #161b22;
    --navy3: #1f2937;
    --pixel-yellow: #ffd700;
    --pixel-green: #39d353;
    --pixel-red: #ff4757;
    --pixel-blue: #58a6ff;
    --pixel-purple: #a78bfa;
    --pixel-orange: #ff7043;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.18);
    --card-bg: #161b22;
    --card-hover: #1c2330;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { background: var(--navy); color: var(--text); font-family: 'DM Sans', sans-serif; line-height: 1.6; overflow-x: hidden; }

  /* ── HEADER ── */
  header { position: sticky; top: 0; z-index: 200; background: rgba(13,17,23,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
  .header-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; gap: 2rem; }
  .logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
  .logo-icon { width: 36px; height: 36px; background: var(--pixel-yellow); display: flex; align-items: center; justify-content: center; font-family: 'Press Start 2P', monospace; font-size: 0.55rem; color: var(--navy); border-radius: 4px; flex-shrink: 0; box-shadow: 3px 3px 0 rgba(255,215,0,0.3); }
  .logo-wordmark { font-family: 'Press Start 2P', monospace; font-size: 0.72rem; color: var(--text); line-height: 1.5; }
  .logo-wordmark .y { color: var(--pixel-yellow); }
  nav { display: flex; align-items: center; gap: 0.2rem; margin-left: auto; }
  nav a { font-size: 0.84rem; font-weight: 500; color: var(--text-muted); text-decoration: none; padding: 0.4rem 0.85rem; border-radius: 6px; transition: all 0.15s; }
  nav a:hover { color: var(--text); background: rgba(255,255,255,0.07); }
  .nav-cta { background: var(--pixel-yellow) !important; color: var(--navy) !important; font-weight: 600 !important; margin-left: 0.4rem; }
  .nav-cta:hover { background: #ffe333 !important; transform: translateY(-1px); }
  .hdr-search { position: relative; display: flex; align-items: center; margin-left: 1rem; }
  .hdr-search input { background: var(--navy2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.85rem; padding: 0.45rem 2.4rem 0.45rem 0.9rem; width: 200px; outline: none; transition: border-color 0.2s, width 0.3s; }
  .hdr-search input:focus { border-color: var(--pixel-yellow); width: 250px; }
  .hdr-search input::placeholder { color: var(--text-muted); }
  .hdr-search .s-ico { position: absolute; right: 0.7rem; width: 15px; height: 15px; color: var(--text-muted); pointer-events: none; }

  /* ── BREADCRUMB ── */
  .breadcrumb-bar { background: var(--navy2); border-bottom: 1px solid var(--border); padding: 0.6rem 2rem; }
  .breadcrumb { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); flex-wrap: wrap; }
  .breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.12s; }
  .breadcrumb a:hover { color: var(--pixel-yellow); }
  .breadcrumb .sep { color: rgba(255,255,255,0.2); }
  .breadcrumb .current { color: var(--text); font-weight: 500; }

  /* ── PAGE LAYOUT ── */
  .page { max-width: 1280px; margin: 0 auto; padding: 2rem 2rem 5rem; display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }

  /* ── MAIN CONTENT ── */
  .main { min-width: 0; }

  /* Game title bar */
  .game-header { margin-bottom: 1.5rem; }
  .game-genre-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255,71,87,0.12); border: 1px solid rgba(255,71,87,0.3);
    color: var(--pixel-red); font-family: 'Press Start 2P', monospace;
    font-size: 0.48rem; letter-spacing: 0.1em; padding: 0.3rem 0.65rem;
    border-radius: 3px; margin-bottom: 0.75rem;
  }
  .game-title-h1 { font-family: 'Press Start 2P', monospace; font-size: clamp(1rem, 2.5vw, 1.6rem); color: var(--text); line-height: 1.4; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
  .game-meta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .meta-chip { display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--text-muted); }
  .meta-chip strong { color: var(--text); font-weight: 500; }
  .meta-sep { color: var(--border-hover); }

  /* Rating stars */
  .star-row { display: flex; align-items: center; gap: 0.5rem; }
  .stars { display: flex; gap: 2px; }
  .star { width: 14px; height: 14px; color: var(--pixel-yellow); }
  .star.empty { color: rgba(255,255,255,0.15); }
  .rating-val { font-family: 'DM Mono', monospace; font-size: 0.82rem; color: var(--pixel-yellow); font-weight: 500; }
  .rating-count { font-size: 0.75rem; color: var(--text-muted); }

  /* ── GAME PLAYER ── */
  .game-player-wrap {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    line-height: 0;
  }
  .game-player-wrap iframe {
    width: 100%;
    display: block;
    border: none;
  }

  .game-help-tip {
    display: flex; align-items: center; gap: 0.6rem;
    background: rgba(88,166,255,0.07); border: 1px solid rgba(88,166,255,0.2);
    border-radius: 8px; padding: 0.65rem 1rem; margin-bottom: 1.5rem;
    font-size: 0.82rem; color: var(--text-muted);
  }
  .game-help-tip a { color: var(--pixel-blue); text-decoration: none; font-weight: 500; }
  .game-help-tip a:hover { text-decoration: underline; }
  .help-icon { font-size: 1rem; flex-shrink: 0; }

  /* ── ACTION BUTTONS ── */
  .action-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
  .abtn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; font-weight: 600; text-decoration: none;
    padding: 0.65rem 1.2rem; border-radius: 7px; transition: all 0.15s; cursor: pointer; border: none;
  }
  .abtn-primary { background: var(--pixel-yellow); color: var(--navy); box-shadow: 0 3px 0 rgba(180,140,0,0.5); font-family: 'Press Start 2P', monospace; font-size: 0.52rem; letter-spacing: 0.05em; }
  .abtn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(180,140,0,0.5); }
  .abtn-sec { background: var(--card-bg); color: var(--text); border: 1px solid var(--border); }
  .abtn-sec:hover { border-color: var(--border-hover); background: var(--card-hover); }

  /* ── GAME INFO PANEL ── */
  .info-panel { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem; margin-bottom: 1.5rem; }
  .info-panel-title { font-family: 'Press Start 2P', monospace; font-size: 0.58rem; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
  .info-panel-title::before { content:''; display:block; width:8px; height:8px; background:var(--pixel-yellow); flex-shrink:0; }
  .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; }
  .info-row { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
  .info-row:last-child, .info-row:nth-last-child(2) { border-bottom: none; }
  .info-label { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.04em; font-weight: 500; text-transform: uppercase; }
  .info-value { font-size: 0.88rem; color: var(--text); font-weight: 500; }
  .info-value a { color: var(--pixel-blue); text-decoration: none; }
  .info-value a:hover { text-decoration: underline; }
  .info-value .badge { display: inline-block; background: rgba(255,71,87,0.12); border: 1px solid rgba(255,71,87,0.25); color: var(--pixel-red); font-size: 0.7rem; padding: 0.1rem 0.45rem; border-radius: 3px; font-weight: 600; }

  /* ── ABOUT ── */
  .about-section { margin-bottom: 1.5rem; }
  .about-section p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }

  /* ── SCREENSHOTS ── */
  .screenshots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; margin-bottom: 2rem; }
  .ss-thumb {
    aspect-ratio: 16/10; overflow: hidden; border-radius: 6px;
    border: 1px solid var(--border); background: var(--navy3); cursor: pointer;
    transition: all 0.15s; position: relative;
  }
  .ss-thumb:hover { border-color: var(--pixel-yellow); transform: scale(1.03); z-index: 2; }
  .ss-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
  .ss-thumb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.15s; font-size: 1.2rem; }
  .ss-thumb:hover .ss-thumb-overlay { opacity: 1; }

  /* Lightbox */
  .lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 2rem; }
  .lightbox.active { display: flex; }
  .lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border: 1px solid var(--border); border-radius: 4px; image-rendering: pixelated; }
  .lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; color: var(--text); }

  /* ── STAR RATING ── */
  .rate-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem; margin-bottom: 1.5rem; }
  .rate-title { font-family: 'Press Start 2P', monospace; font-size: 0.58rem; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
  .rate-title::before { content:''; display:block; width:8px; height:8px; background:var(--pixel-yellow); flex-shrink:0; }
  .rate-stars { display: flex; gap: 0.5rem; align-items: center; }
  .rate-star-btn {
    width: 40px; height: 40px; border-radius: 6px; background: var(--navy3);
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; cursor: pointer; transition: all 0.12s;
  }
  .rate-star-btn:hover, .rate-star-btn.active { background: rgba(255,215,0,0.1); border-color: rgba(255,215,0,0.4); transform: scale(1.1); }
  .rate-label { font-size: 0.82rem; color: var(--text-muted); margin-left: 0.5rem; }

  /* ── DOWNLOAD ── */
  .download-section { background: var(--card-bg); border: 1px solid rgba(57,211,83,0.2); border-radius: 12px; padding: 1.4rem; margin-bottom: 1.5rem; }
  .dl-title { font-family: 'Press Start 2P', monospace; font-size: 0.58rem; letter-spacing: 0.12em; color: var(--pixel-green); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
  .dl-title::before { content:''; display:block; width:8px; height:8px; background:var(--pixel-green); flex-shrink:0; }
  .dl-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
  .dl-desc a { color: var(--pixel-blue); text-decoration: none; }
  .captcha-row { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
  .captcha-box { background: var(--navy3); border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
  .captcha-box img { border-radius: 3px; display: block; }
  .captcha-refresh { font-size: 0.72rem; color: var(--pixel-blue); cursor: pointer; text-decoration: none; }
  .dl-input-row { display: flex; gap: 0.5rem; flex: 1; }
  .dl-input { background: var(--navy); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: 'DM Mono', monospace; font-size: 0.9rem; padding: 0.55rem 0.8rem; outline: none; width: 120px; transition: border-color 0.15s; }
  .dl-input:focus { border-color: var(--pixel-green); }
  .dl-btn { background: var(--pixel-green); color: var(--navy); font-family: 'Press Start 2P', monospace; font-size: 0.52rem; padding: 0.65rem 1.2rem; border: none; border-radius: 6px; cursor: pointer; letter-spacing: 0.05em; font-weight: 700; box-shadow: 0 3px 0 rgba(30,160,60,0.5); transition: all 0.15s; }
  .dl-btn:hover { transform: translateY(-2px); }
  .dl-register { margin-top: 0.9rem; font-size: 0.78rem; color: var(--text-muted); background: rgba(88,166,255,0.06); border: 1px solid rgba(88,166,255,0.15); border-radius: 6px; padding: 0.65rem 0.9rem; }
  .dl-register a { color: var(--pixel-blue); text-decoration: none; font-weight: 500; }

  /* ── COMMENTS ── */
  .comment-section { margin-bottom: 2rem; }
  .comment-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 0.75rem; }
  .comment-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
  .comment-avatar { width: 32px; height: 32px; border-radius: 6px; background: rgba(255,71,87,0.15); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; border: 1px solid rgba(255,71,87,0.2); }
  .comment-author { font-size: 0.85rem; font-weight: 600; color: var(--text); }
  .comment-date { font-size: 0.72rem; color: var(--text-muted); font-family: 'DM Mono', monospace; margin-left: auto; }
  .comment-rating { display: flex; gap: 2px; margin-left: 0.4rem; }
  .comment-body { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
  .comment-reply { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: var(--pixel-blue); cursor: pointer; margin-top: 0.5rem; text-decoration: none; transition: color 0.12s; }
  .comment-reply:hover { color: var(--pixel-yellow); }

  /* Comment form */
  .comment-form { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem; }
  .cf-title { font-family: 'Press Start 2P', monospace; font-size: 0.58rem; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
  .cf-title::before { content:''; display:block; width:8px; height:8px; background:var(--pixel-purple); flex-shrink:0; }
  .cf-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
  .cf-field label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
  .cf-field input, .cf-field textarea {
    background: var(--navy); border: 1px solid var(--border); border-radius: 6px;
    color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
    padding: 0.55rem 0.8rem; outline: none; width: 100%; transition: border-color 0.15s;
  }
  .cf-field input:focus, .cf-field textarea:focus { border-color: var(--pixel-purple); }
  .cf-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
  .cf-footer { display: flex; align-items: center; justify-content: space-between; }
  .char-count { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--text-muted); }
  .cf-btns { display: flex; gap: 0.5rem; }
  .cf-submit { background: var(--pixel-purple); color: #fff; font-family: 'Press Start 2P', monospace; font-size: 0.5rem; padding: 0.65rem 1.2rem; border: none; border-radius: 6px; cursor: pointer; letter-spacing: 0.06em; box-shadow: 0 3px 0 rgba(120,80,200,0.5); transition: all 0.15s; }
  .cf-submit:hover { transform: translateY(-2px); }
  .cf-clear { background: transparent; color: var(--text-muted); font-size: 0.82rem; padding: 0.65rem 1rem; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.12s; }
  .cf-clear:hover { color: var(--text); border-color: var(--border-hover); }
  .cf-login-note { background: rgba(255,215,0,0.05); border: 1px solid rgba(255,215,0,0.15); border-radius: 6px; padding: 0.7rem 0.9rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
  .cf-login-note a { color: var(--pixel-yellow); text-decoration: none; font-weight: 500; }

  /* Section divider */
  .sec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
  .sec-ttl { font-family: 'Press Start 2P', monospace; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--text); display: flex; align-items: center; gap: 0.6rem; }
  .sec-ttl::before { content:''; display:block; width:10px; height:10px; background:var(--pixel-yellow); flex-shrink:0; }



  /* Live now */
  .live-list { display: flex; flex-direction: column; gap: 0.3rem; }
  .live-row { display: flex; align-items: center; gap: 0.65rem; padding: 0.48rem 0.55rem; border-radius: 7px; text-decoration: none; transition: background 0.12s; }
  .live-row:hover { background: rgba(255,255,255,0.05); }
  .live-av { width: 32px; height: 32px; border-radius: 6px; background: var(--navy3); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; border: 1px solid var(--border); }
  .live-inf { min-width: 0; flex: 1; }
  .live-n { font-size: 0.79rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .live-c { font-size: 0.68rem; color: var(--text-muted); }
  .live-dot { width: 7px; height: 7px; background: var(--pixel-green); border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 5px var(--pixel-green); animation: lp 2s ease infinite; }
  @keyframes lp { 0%,100%{opacity:1} 50%{opacity:0.25} }

  /* Random picks */
  .rand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .rand-card { background: var(--navy3); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; text-decoration: none; transition: all 0.15s; }
  .rand-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
  .rand-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--navy2); }
  .rand-thumb img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
  .rand-name { font-size: 0.7rem; color: var(--text-muted); padding: 0.4rem 0.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rand-card:hover .rand-name { color: var(--text); }

  /* ── FOOTER ── */
  footer { background: var(--navy2); border-top: 1px solid var(--border); padding: 2.5rem 2rem; }
  .footer-in { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
  .flogo { font-family: 'Press Start 2P', monospace; font-size: 0.68rem; color: var(--text-muted); }
  .flogo span { color: var(--pixel-yellow); }
  .flinks { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
  .flinks a { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
  .flinks a:hover { color: var(--text); }
  .fcopy { font-size: 0.76rem; color: rgba(255,255,255,0.18); font-family: 'DM Mono', monospace; }

  @keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
  .game-header { animation: fadeUp 0.4s ease both; }
  .game-player-wrap { animation: fadeUp 0.4s 0.1s ease both; }

  @media(max-width:960px) {
    .page { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .info-grid { grid-template-columns: 1fr; }
  }
  @media(max-width:640px) {
    nav a:not(.nav-cta) { display: none; }
    .hdr-search { display: none; }
    .screenshots-grid { grid-template-columns: repeat(3, 1fr); }
  }