/* Games Portal — Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:      #060810;
  --surface: #0e1120;
  --border:  rgba(245,158,11,.18);
  --accent:  #f59e0b;
  --accent2: #d97706;
  --purple:  #7c3aed;
  --text:    #e2e8f0;
  --muted:   #94a3b8;
  --dim:     #4b5563;
}
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; min-height: 100vh; }
.bg-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(245,158,11,.08), transparent); }
/* Nav */
.top-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: .75rem 2rem; background: rgba(6,8,16,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-brand { font-weight: 900; font-size: 1rem; color: var(--accent); text-decoration: none; }
.nav-center { display: flex; gap: 1.5rem; }
.nav-link { text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 500; transition: color .15s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: .75rem; }
.user-chip { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--accent2)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; color: #000; }
.btn-nav-login { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #000; padding: .35rem .9rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .83rem; }
.btn-nav-register { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); color: #e2e8f0; padding: .35rem .9rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .83rem; }
.btn-nav-logout { background: transparent; border: 1px solid rgba(239,68,68,.3); color: #fca5a5; padding: .3rem .7rem; border-radius: 6px; font-size: .8rem; cursor: pointer; }
main { min-height: 100vh; padding-top: 4rem; position: relative; z-index: 1; }
/* Hero */
.hero { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 80vh; }
.download-hero { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 55vh; }
.hero-inner { max-width: 680px; padding: 2rem; }
.hero-badge { background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3); border-radius: 99px; padding: .3rem .9rem; font-size: .8rem; color: var(--accent); display: inline-block; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.2rem,5vw,3.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.hero p, .download-hero p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; }
.gradient-text { background: linear-gradient(135deg,var(--accent),#f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* Games Grid */
.section-inner { max-width: 1000px; margin: 0 auto; padding: 3rem 2rem; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: .75rem; }
.section-title { font-size: 1.6rem; font-weight: 800; }
.link-more { color: var(--accent); text-decoration: none; font-size: .9rem; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1.25rem; }
.games-grid-full { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 1.25rem; max-width: 1000px; margin: 0 auto; padding: 0 2rem 3rem; }
.game-card { text-decoration: none; color: inherit; background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; }
.game-card:hover { transform: translateY(-4px); border-color: var(--accent,rgba(245,158,11,.4)); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.game-cover { position: relative; height: 160px; background: linear-gradient(135deg,var(--cover-color,#1a1a2e),#0e1120); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cover-art { text-align: center; z-index: 1; }
.game-icon { font-size: 3rem; display: block; margin-bottom: .4rem; }
.game-icon-lg { font-size: 5rem; display: block; margin-bottom: .5rem; }
.game-title-cover { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }
.game-title-watermark { font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .06em; margin-top: .5rem; }
.game-year-badge { position: absolute; top: .6rem; right: .6rem; background: rgba(0,0,0,.6); padding: .2rem .5rem; border-radius: 6px; font-size: .72rem; color: var(--muted); font-weight: 600; }
.game-info { padding: .85rem 1rem; }
.game-title { font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.game-meta  { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.game-tags  { display: flex; gap: .35rem; flex-wrap: wrap; }
.tag { font-size: .7rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: .15rem .45rem; border-radius: 5px; color: var(--muted); }
/* Catalog */
.catalog-header { max-width: 1000px; margin: 2rem auto 1.25rem; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.page-title { font-size: 1.5rem; font-weight: 800; }
.catalog-search-form { display: flex; gap: .6rem; }
.catalog-search-form input { background: var(--surface); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: var(--text); padding: .5rem .85rem; font-size: .88rem; width: 220px; }
.catalog-search-form input:focus { outline: none; border-color: var(--accent); }
.catalog-filters { max-width: 1000px; margin: 0 auto 1.5rem; padding: 0 2rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.filter-chip { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 99px; padding: .3rem .85rem; font-size: .82rem; color: var(--muted); cursor: pointer; text-decoration: none; transition: all .15s; }
.filter-chip:hover, .filter-chip.active { background: rgba(245,158,11,.15); border-color: rgba(245,158,11,.4); color: var(--accent); }
/* Game Detail */
.game-detail-hero { background: linear-gradient(135deg,var(--cover-color,#1a1a2e),#060810); border-bottom: 1px solid var(--border); padding: 6rem 2rem 3rem; }
.game-detail-inner { max-width: 860px; margin: 0 auto; }
.back-link { margin-bottom: 1.5rem; }
.back-link a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.back-link a:hover { color: var(--text); }
.game-header { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.game-cover-lg { width: 160px; height: 200px; flex-shrink: 0; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.game-detail-info { flex: 1; min-width: 260px; }
.game-detail-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .75rem; }
.game-detail-title { font-size: 2.2rem; font-weight: 900; line-height: 1.1; margin-bottom: .5rem; }
.game-detail-meta { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.game-detail-stats { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.stat-pill { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 99px; padding: .3rem .85rem; font-size: .8rem; }
.game-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-play { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #000; padding: .7rem 1.5rem; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: .95rem; }
.btn-play:hover { opacity: .9; }
/* Boxes */
.game-about, .game-features { margin-bottom: 2rem; }
.game-about h2, .game-features h2, .build-instructions h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; }
.game-about p { color: var(--muted); line-height: 1.8; font-size: .92rem; }
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: .5rem; }
.feature-list li { font-size: .88rem; color: var(--muted); padding: .4rem .6rem; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 7px; }
.feature-list li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.librelive-box, .gamecenter-box { display: flex; gap: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.ll-box-icon, .gc-box-icon { font-size: 2.5rem; flex-shrink: 0; }
.librelive-box h3, .gamecenter-box h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.librelive-box p, .gamecenter-box p { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.librelive-box a, .gamecenter-box a { color: var(--accent); }
/* LibreLive section */
.librelive-section { background: rgba(245,158,11,.04); border-top: 1px solid rgba(245,158,11,.1); border-bottom: 1px solid rgba(245,158,11,.1); }
.librelive-card { display: flex; align-items: center; gap: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; flex-wrap: wrap; }
.ll-icon { font-size: 2.5rem; flex-shrink: 0; }
.ll-body { flex: 1; }
.ll-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.ll-body p { font-size: .9rem; color: var(--muted); line-height: 1.7; }
.ll-body a { color: var(--accent); }
/* Launcher CTA */
.launcher-cta { }
.cta-box { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg,rgba(245,158,11,.1),rgba(124,58,237,.08)); border: 1px solid rgba(245,158,11,.2); border-radius: 16px; padding: 2rem 2.5rem; gap: 1.5rem; flex-wrap: wrap; }
.cta-box h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: .4rem; }
.cta-box p { font-size: .9rem; color: var(--muted); max-width: 500px; }
/* Downloads */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1.25rem; }
.download-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 2rem 1.5rem; text-align: center; }
.dl-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.dl-name { font-size: 1.1rem; font-weight: 800; margin-bottom: .25rem; }
.dl-version { font-size: .8rem; color: var(--muted); margin-bottom: 1.25rem; }
.dl-btn { display: block; margin-bottom: .6rem; }
.dl-note { font-size: .75rem; color: var(--dim); }
/* Dashboard */
.page-header { max-width: 960px; margin: 0 auto; padding: 2rem 2rem 1rem; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.page-sub { color: var(--muted); font-size: .88rem; margin-top: .25rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; max-width: 960px; margin: 0 auto; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.panel-header h2 { font-size: .95rem; font-weight: 700; }
.lib-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.lib-row:last-child { border-bottom: none; }
.lib-icon { font-size: 1.5rem; flex-shrink: 0; }
.lib-info { flex: 1; }
.lib-title { font-size: .95rem; font-weight: 600; }
.lib-meta  { font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.lib-actions { display: flex; gap: .5rem; }
.btn-play-sm { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #000; padding: .35rem .85rem; border-radius: 7px; text-decoration: none; font-weight: 700; font-size: .8rem; }
.quick-link-card { display: flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: .7rem 1rem; text-decoration: none; color: var(--text); font-size: .88rem; font-weight: 600; transition: border-color .15s; }
.quick-link-card:hover { border-color: var(--accent); }
.ql-icon { font-size: 1.2rem; }
/* Buttons */
.btn-primary { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #000; padding: .6rem 1.5rem; border: none; border-radius: 8px; font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; display: inline-block; transition: opacity .15s; }
.btn-primary:hover { opacity: .9; }
.btn-secondary { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text); padding: .6rem 1.5rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.btn-sm { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--muted); padding: .3rem .7rem; border-radius: 6px; text-decoration: none; font-size: .8rem; cursor: pointer; }
/* Features */
.features-section { margin-bottom: 2.5rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 1.1rem; }
.feature-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 1.25rem; }
.feat-icon { font-size: 1.7rem; margin-bottom: .6rem; }
.feature-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p  { font-size: .83rem; color: var(--muted); line-height: 1.6; }
.build-instructions { margin-bottom: 2.5rem; }
.code-block { background: #050710; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 1.25rem 1.5rem; font-family: monospace; font-size: .85rem; color: #a3e635; line-height: 1.9; overflow-x: auto; white-space: pre; }
/* Empty state */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--muted); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.06); padding: 2.5rem 2rem; }
.footer-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-weight: 800; font-size: 1.05rem; color: var(--accent); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .84rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: .8rem; color: var(--dim); }
.featured-section { }
