:root{
  --bg:#0b0f1a;
  --card:#0f1626;
  --card2:#0c1220;
  --text:#e8ecff;
  --muted:#a9b3d6;
  --accent:#7c5cff;
  --accent2:#2ee9ff;
  --border:rgba(255,255,255,.08);
  --shadow:0 12px 30px rgba(0,0,0,.35);
  --radius:18px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(124,92,255,.25), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(46,233,255,.18), transparent 55%),
    radial-gradient(900px 700px at 50% 100%, rgba(124,92,255,.12), transparent 60%),
    var(--bg);
}

.wrap{max-width:1100px; margin:0 auto; padding:28px 18px 40px}
.top{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; margin-bottom:18px;
}
h1{margin:0; font-size:28px; letter-spacing:.2px}
.sub{color:var(--muted); margin-top:6px}

.nav{display:flex; gap:10px; flex-wrap:wrap}
.pill{
  text-decoration:none; color:var(--text);
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  padding:10px 12px; border-radius:999px;
}
.pill.active{
  background:linear-gradient(90deg, rgba(124,92,255,.25), rgba(46,233,255,.18));
  border-color:rgba(124,92,255,.35);
}

.grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:14px;
}
.card{
  grid-column: span 6;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}
.card.wide{grid-column: span 12}
h2{margin:0 0 10px; font-size:16px}
.hint{color:var(--muted); font-size:12px; margin-top:10px}
.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  padding:2px 6px;
  border-radius:8px;
}

.search{display:flex; gap:10px}
.search input{
  flex:1;
  background:var(--card2);
  border:1px solid var(--border);
  color:var(--text);
  padding:12px 12px;
  border-radius:12px;
  outline:none;
}
.search button, .bmform button{
  background:linear-gradient(90deg, rgba(124,92,255,.9), rgba(46,233,255,.75));
  border:0;
  color:#0b0f1a;
  font-weight:700;
  padding:12px 14px;
  border-radius:12px;
  cursor:pointer;
}
.search button:hover, .bmform button:hover{filter:brightness(1.05)}

.weather .big{font-size:26px; font-weight:800}
.weather .muted{color:var(--muted); margin-top:6px}

.bmform{
  display:grid;
  grid-template-columns: 1fr 2fr auto;
  gap:10px;
}
.bmform input{
  background:var(--card2);
  border:1px solid var(--border);
  color:var(--text);
  padding:12px 12px;
  border-radius:12px;
  outline:none;
}

.bms{
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:10px;
}
.bm{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.15);
}
.bm a{color:var(--text); text-decoration:none; font-weight:650}
.bm .del{
  color:rgba(255,255,255,.7);
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  border-radius:10px;
  padding:6px 8px;
  cursor:pointer;
}

.list{margin-top:12px; display:grid; gap:10px}
.item{
  display:block;
  text-decoration:none;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  background:rgba(0,0,0,.15);
}
.item:hover{border-color:rgba(124,92,255,.35)}
.item .title{font-weight:800}
.item .meta{color:var(--muted); margin-top:4px; font-size:12px}

.foot{margin-top:20px; text-align:center}
.muted{color:var(--muted)}
@media (max-width: 900px){
  .card{grid-column: span 12}
  .bmform{grid-template-columns: 1fr; }
}

.games{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px;
}
.gameCard{
  display:block;
  text-decoration:none;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:rgba(0,0,0,.15);
}
.gameCard:hover{border-color:rgba(124,92,255,.35)}
.gameTop{display:flex; gap:12px; align-items:center}
.gameIcon{
  width:44px; height:44px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  font-size:22px;
}
.gameName{font-weight:900}
.gameMeta{color:var(--muted); font-size:12px; margin-top:4px}
.gameDesc{color:var(--muted); font-size:12px; margin-top:10px}

.tabs{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.tab{
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
}
.tab.active{
  background:linear-gradient(90deg, rgba(124,92,255,.25), rgba(46,233,255,.18));
  border-color:rgba(124,92,255,.35);
}
.filter{
  margin-left:auto;
  min-width:220px;
  background:var(--card2);
  border:1px solid var(--border);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  outline:none;
}

.entries{margin-top:12px; display:grid; gap:10px}
.entry{
  display:grid;
  text-decoration:none;
  color:var(--text);
  grid-template-columns:110px 1fr;
  gap:12px;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  background:rgba(0,0,0,.15);
}
.entryImg{
  width:110px; height:110px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
}
.entryImg.ph{
  display:flex; align-items:center; justify-content:center;
  color:var(--muted);
}
.entryTitle{font-weight:900}
.entryMeta{color:var(--muted); font-size:12px; margin-top:4px}
.entrySummary{margin-top:8px}
.tags{margin-top:10px; display:flex; gap:6px; flex-wrap:wrap}
.tag{
  font-size:12px;
  color:rgba(255,255,255,.8);
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  padding:3px 8px;
  border-radius:999px;
}
.dl{
  display:inline-block;
  margin-top:10px;
  text-decoration:none;
  color:#0b0f1a;
  font-weight:800;
  padding:10px 12px;
  border-radius:12px;
  background:linear-gradient(90deg, rgba(124,92,255,.9), rgba(46,233,255,.75));
}
@media (max-width: 700px){
  .entry{grid-template-columns:1fr}
  .entryImg{width:100%; height:160px}
  .filter{margin-left:0; width:100%}
}

.entryRow{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  align-items:stretch;
}

.entryLink{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:12px;
  text-decoration:none;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  background:rgba(0,0,0,.15);
}

.entryLink:hover{border-color:rgba(124,92,255,.35)}

.entryActions{
  display:flex;
  align-items:center;
}

.detailTop{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:14px;
  align-items:start;
}

.detailHero{
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  background:rgba(0,0,0,.15);
}

.detailHeroImg{
  width:100%;
  height:320px;
  object-fit:cover;
  display:block;
}

.detailHeroPh{
  height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
}

.detailSummary{font-weight:700; margin-bottom:10px}
.detailActions{margin-top:10px}
.detailDesc{margin-top:16px; white-space:pre-wrap}

.detailGallery{margin-top:16px}
.detailGalleryGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:10px;
}
.detailGalleryImg{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
}

@media (max-width: 900px){
  .detailTop{grid-template-columns:1fr}
  .detailHeroImg, .detailHeroPh{height:220px}
  .entryRow{grid-template-columns:1fr}
  .entryActions{justify-content:flex-start}
}

