/* ── VARIABLES ── */
:root {
  --c-bg:       #0b0c12;
  --c-surface:  #131623;
  --c-surface2: #1b1d2a;
  --c-accent:   #e8a629;
  --c-accent2:  #ffc043;
  --c-text:     #fff;
  --c-muted:    #8a94b2;
  --c-border:   rgba(255,255,255,.07);
  --hdr-h:      60px;
  --sidebar-w:  80px;
  --sidebar-ew: 234px;
  --bnav-h:     60px;
  --radius:     8px;
  --tr:         .22s ease;
}

/* ── RESET ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
img,video { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; }
ul,ol { list-style:none; }
button { background:none; border:none; cursor:pointer; font:inherit; color:inherit; }

/* ── BASE ── */
html { font-size:16px; scroll-behavior:smooth; }
body {
  font-family:'Roboto Condensed','Arial Narrow',Arial,sans-serif;
  background:var(--c-bg);
  color:var(--c-text);
  min-height:100vh;
  overflow-x:hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:rgba(255,255,255,.15); border-radius:2px; }

/* ── HEADER ── */
.hdr {
  position:fixed; top:0; left:0; right:0; z-index:200;
  height:var(--hdr-h);
  background:var(--c-surface);
  border-bottom:1px solid var(--c-border);
}
.hdr__inner {
  display:flex; align-items:center; gap:12px;
  height:100%; padding:0 16px;
}
.hdr__burger {
  flex-shrink:0;
  width:40px; height:40px;
  display:flex; align-items:center; justify-content:center;
  border-radius:6px;
  transition:background var(--tr);
}
.hdr__burger:hover { background:rgba(255,255,255,.06); }
.hdr__logo {
  display:flex; align-items:center; gap:8px;
  flex-shrink:0;
}
.hdr__logo img { height:32px; width:auto; }
.hdr__logo-text {
  font-size:1.05rem; font-weight:700;
  white-space:nowrap; color:var(--c-text);
}
.hdr__nav {
  display:flex; align-items:center; gap:2px;
  flex:1; margin-left:12px; overflow:hidden;
}
.hdr__nav-link {
  padding:7px 12px;
  border-radius:6px;
  font-size:14px; font-weight:500;
  color:var(--c-muted);
  white-space:nowrap;
  transition:color var(--tr), background var(--tr);
}
.hdr__nav-link:hover { color:var(--c-text); background:rgba(255,255,255,.05); }
.hdr__nav-link--active { color:var(--c-accent); }
.hdr__auth {
  display:flex; align-items:center; gap:8px;
  flex-shrink:0; margin-left:auto;
}

/* ── BUTTONS ── */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 20px; border-radius:var(--radius);
  font-size:14px; font-weight:700; white-space:nowrap;
  transition:all var(--tr); cursor:pointer;
}
.btn--login {
  border:1px solid rgba(255,255,255,.2);
  color:var(--c-text);
}
.btn--login:hover { border-color:var(--c-accent); color:var(--c-accent); }
.btn--register {
  background:var(--c-accent);
  color:#0b0c12;
}
.btn--register:hover { background:var(--c-accent2); }

/* ── BACKDROP (mobile) ── */
.backdrop {
  display:none;
  position:fixed; inset:0; z-index:90;
  background:rgba(0,0,0,.6);
}
.backdrop.visible { display:block; }

/* ── PAGE LAYOUT ── */
.page-wrap { display:flex; padding-top:var(--hdr-h); min-height:100vh; }

/* ── SIDEBAR ── */
.sidebar {
  position:fixed;
  top:var(--hdr-h); left:0; bottom:0;
  width:var(--sidebar-ew);
  background:var(--c-surface);
  border-right:1px solid var(--c-border);
  overflow:hidden;
  transition:width var(--tr);
  z-index:100;
}
.sidebar.collapsed { width:var(--sidebar-w); }
.sidebar__inner {
  width:var(--sidebar-ew);
  padding:8px 0;
  overflow-y:auto; overflow-x:hidden;
  height:100%;
}
.sidebar__divider {
  height:1px; background:var(--c-border);
  margin:6px 16px;
}

/* ── SIDEBAR NAV ── */
.snav__item {
  display:flex; align-items:center; gap:12px;
  padding:10px 28px;
  color:var(--c-muted);
  white-space:nowrap;
  transition:background var(--tr), color var(--tr);
}
.snav__item:hover { background:rgba(255,255,255,.04); color:var(--c-text); }
.snav__item--active { color:var(--c-accent); }
.snav__item--active:hover { color:var(--c-accent); }
.snav__icon {
  flex-shrink:0;
  width:24px; height:24px;
  display:flex; align-items:center; justify-content:center;
}
.snav__label { font-size:14px; font-weight:500; line-height:1; }

/* Sidebar collapsed: center icons */
.sidebar.collapsed .snav__item {
  padding-left:0; padding-right:0;
  justify-content:center;
}
.sidebar.collapsed .snav__label { display:none; }
.sidebar.collapsed .sidebar__divider { margin:6px 12px; }

/* ── CONTENT ── */
.content {
  flex:1;
  margin-left:var(--sidebar-ew);
  transition:margin-left var(--tr);
  min-width:0;
}
.content.sidebar-collapsed { margin-left:var(--sidebar-w); }

/* ── MAIN ── */
.main { padding:24px 24px 48px; }
.page-h1 {
  font-size:26px; font-weight:700;
  margin-bottom:20px;
  color:var(--c-text);
}

/* ── GAME SECTIONS ── */
.gamesec { margin-bottom:36px; }
.gamesec__head {
  display:flex; align-items:center;
  margin-bottom:12px;
}
.gamesec__title {
  font-size:20px; font-weight:700;
  flex:1;
}
.see-all {
  display:flex; align-items:center; gap:6px;
  font-size:13px; font-weight:600;
  color:var(--c-muted);
  transition:color var(--tr);
  flex-shrink:0;
}
.see-all:hover { color:var(--c-accent); }
.see-all img { opacity:.6; transition:opacity var(--tr); }
.see-all:hover img { opacity:1; }

/* ── CATEGORY TABS ── */
.cats-tabs {
  display:flex; gap:8px;
  margin-bottom:12px;
  overflow-x:auto;
  scrollbar-width:none; -ms-overflow-style:none;
  padding-bottom:2px;
}
.cats-tabs::-webkit-scrollbar { display:none; }
.cat-tab {
  padding:6px 16px;
  border-radius:20px;
  font-size:13px; font-weight:600;
  color:var(--c-muted);
  background:var(--c-surface2);
  white-space:nowrap; flex-shrink:0;
  transition:all var(--tr);
}
.cat-tab:hover { color:var(--c-text); background:rgba(255,255,255,.1); }
.cat-tab--active { background:var(--c-accent); color:#0b0c12; }

/* ── GAMES GRID ── */
.games-row {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}

/* ── GAME CARD ── */
.game-card {
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--c-surface2);
  display:block;
  aspect-ratio:1;
  transition:transform var(--tr), box-shadow var(--tr);
}
.game-card:hover {
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 8px 24px rgba(0,0,0,.45);
}
.game-card img:first-child {
  width:100%; height:100%;
  object-fit:cover; display:block;
}
.game-card__overlay {
  position:absolute; inset:0;
  background:rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center;
  opacity:0;
  transition:opacity var(--tr);
}
.game-card:hover .game-card__overlay { opacity:1; }
.game-card__play {
  width:48px; height:48px;
  background:var(--c-accent);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.game-card__play img { width:20px; height:20px; margin-left:3px; }

/* ── SEO CONTENT ── */
.seo {
  margin-top:8px; padding:28px 0 0;
  border-top:1px solid var(--c-border);
}
.seo-article { font-size:14px; line-height:1.65; }
.seo-article h2 { font-size:20px; font-weight:700; color:var(--c-accent); margin-top:20px; }
.seo-article h3 { font-size:17px; font-weight:700; color:var(--c-accent); margin-top:16px; }
.seo-article h4 { font-size:15px; font-weight:700; color:var(--c-accent); margin-top:14px; }
.seo-article h5,.seo-article h6 { font-size:14px; font-weight:700; color:var(--c-muted); margin-top:12px; }
.seo-article p { color:var(--c-muted); margin-top:12px; }
.seo-article ul,.seo-article ol { padding-left:1.5em; margin:10px 0; color:var(--c-muted); }
.seo-article ul { list-style:disc; }
.seo-article ol { list-style:decimal; }
.seo-article li { margin:4px 0; }
.seo-article a { color:var(--c-accent); text-decoration:underline; }
.seo-article strong,.seo-article b { color:var(--c-text); }
.seo-article table { width:100%; border-collapse:collapse; margin:16px 0; font-size:13px; }
.seo-article th,.seo-article td { padding:8px 12px; border:1px solid var(--c-border); text-align:left; vertical-align:top; }
.seo-article th { background:rgba(255,255,255,.05); color:var(--c-accent); font-weight:700; }
.seo-article td { color:var(--c-muted); }

/* ── FOOTER ── */
.ftr {
  margin-top:40px; padding:36px 0 24px;
  border-top:1px solid var(--c-border);
}
.ftr__grid {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:28px 20px;
  margin-bottom:28px;
}
.ftr__col-title {
  font-size:12px; font-weight:700;
  color:var(--c-text);
  text-transform:uppercase; letter-spacing:.05em;
  margin-bottom:12px;
}
.ftr__links { display:flex; flex-direction:column; gap:8px; }
.ftr__link {
  font-size:13px; color:var(--c-muted);
  transition:color var(--tr);
}
.ftr__link:hover { color:var(--c-text); }
.ftr__bottom {
  padding-top:24px;
  border-top:1px solid var(--c-border);
  text-align:center;
}
.ftr__legal-text {
  font-size:12px; color:var(--c-muted);
  max-width:800px; margin:0 auto 10px;
  line-height:1.55;
}
.ftr__copy { font-size:12px; color:rgba(255,255,255,.3); }

/* ── BOTTOM NAV (mobile) ── */
.bnav {
  display:none;
  position:fixed; bottom:0; left:0; right:0; z-index:150;
  height:var(--bnav-h);
  background:var(--c-surface);
  border-top:1px solid var(--c-border);
}
.bnav__inner { display:flex; height:100%; }
.bnav__item {
  flex:1;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:3px;
  color:var(--c-muted);
  font-size:10px; font-weight:600;
  transition:color var(--tr);
  padding:4px 0;
}
.bnav__item--active { color:var(--c-accent); }
.bnav__item img { width:22px; height:22px; }

/* ── RESPONSIVE: tablet ── */
@media (max-width:1199px) {
  .hdr__nav { display:none; }
  .games-row { grid-template-columns:repeat(5,1fr); }
  .ftr__grid { grid-template-columns:repeat(3,1fr); }
}

/* ── RESPONSIVE: mobile ── */
@media (max-width:767px) {
  .sidebar {
    transform:translateX(-100%);
    width:var(--sidebar-ew) !important;
    transition:transform var(--tr);
  }
  .sidebar.open { transform:translateX(0); }
  .sidebar.open .snav__item { padding:10px 20px; justify-content:flex-start; }
  .sidebar.open .snav__label { display:block; }
  .content { margin-left:0 !important; }
  .main { padding:16px 12px 80px; }
  .games-row { grid-template-columns:repeat(3,1fr); gap:6px; }
  .gamesec__title { font-size:16px; }
  .cat-tab { font-size:12px; padding:5px 12px; }
  .ftr__grid { grid-template-columns:repeat(2,1fr); gap:20px 16px; }
  .hdr__logo-text { display:none; }
  .bnav { display:block; }
}

@media (max-width:440px) {
  .games-row { grid-template-columns:repeat(3,1fr); gap:5px; }
  .ftr__grid { grid-template-columns:1fr 1fr; }
}
