/* ── VARIABLES ── */
:root {
  --c-bg:       #0e0a06;
  --c-surface:  #1a1209;
  --c-surface2: #261910;
  --c-accent:   #6cbd6d;
  --c-accent2:  #85d486;
  --c-text:     #fff;
  --c-muted:    #9a8a78;
  --c-border:   rgba(255,255,255,.08);
  --hdr-h:      60px;
  --sidebar-w:  76px;
  --sidebar-ew: 230px;
  --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,.12); 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;
}

/* Hamburger icon */
.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__burger-icon {
  display:flex; flex-direction:column; gap:5px;
  width:20px;
}
.hdr__burger-icon span {
  display:block; height:2px; width:100%;
  background:var(--c-text);
  border-radius:2px;
  transition:all var(--tr);
}

.header__logo {
  display:flex; align-items:center; gap:8px;
  flex-shrink:0; text-decoration:none;
}
.header__logo-img { height:36px; width:auto; }
.header__logo-text { font-size:1.1rem; 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:#0e0a06;
}
.btn--register:hover { background:var(--c-accent2); }
.btn--hero {
  background:var(--c-accent);
  color:#0e0a06;
  padding:12px 32px;
  font-size:16px;
  border-radius:var(--radius);
  margin-top:8px;
  align-self:flex-start;
}
.btn--hero:hover { background:var(--c-accent2); transform:translateY(-1px); }

/* ── BACKDROP ── */
.backdrop {
  display:none; position:fixed; inset:0; z-index:90;
  background:rgba(0,0,0,.65);
}
.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 NAV ── */
.snav__item {
  display:flex; align-items:center; gap:12px;
  padding:10px 26px;
  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; }
.snav__label { font-size:14px; font-weight:500; line-height:1; }

.sidebar.collapsed .snav__item {
  width:var(--sidebar-w);
  padding:10px 0;
  justify-content:center;
}
.sidebar.collapsed .snav__label { display:none; }

/* ── 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:0 24px 48px; }

/* ── HERO BANNER ── */
.hero {
  position:relative;
  border-radius:var(--radius);
  margin:16px 0 28px;
  overflow:hidden;
}
.hero__bg {
  width:100%; height:auto; display:block;
  aspect-ratio:2473/698;
  object-fit:cover;
}
.hero__overlay {
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:center;
  padding:32px 48px;
  background:linear-gradient(90deg, rgba(10,6,2,.75) 0%, rgba(10,6,2,.4) 55%, transparent 100%);
}
.hero__tag {
  display:inline-block; align-self:flex-start;
  background:rgba(108,189,109,.25);
  border:1px solid rgba(108,189,109,.5);
  color:var(--c-accent);
  font-size:12px; font-weight:700;
  padding:4px 12px; border-radius:20px;
  text-transform:uppercase; letter-spacing:.06em;
  margin-bottom:10px;
}
.hero__title {
  font-size:36px; font-weight:700; line-height:1.15;
  margin-bottom:6px; text-shadow:0 2px 8px rgba(0,0,0,.5);
}
.hero__sub {
  font-size:15px; color:rgba(255,255,255,.75);
  margin-bottom:16px; text-shadow:0 1px 4px rgba(0,0,0,.5);
}

/* ── 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; }
h1.gamesec__title { font-size:36px; letter-spacing:-.01em; }
.see-all {
  font-size:13px; font-weight:600; color:var(--c-muted);
  transition:color var(--tr); flex-shrink:0;
}
.see-all:hover { color:var(--c-accent); }

/* ── 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:#0e0a06; }

/* ── 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,.5); }
.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::after {
  content:'';
  display:block;
  width:0; height:0;
  border-style:solid;
  border-width:8px 0 8px 16px;
  border-color:transparent transparent transparent #0e0a06;
  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); }
  .hero__title { font-size:26px; }
}

/* ── 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:0 12px 80px; }
  .hero__overlay { padding:20px 24px; }
  .hero__title { font-size:22px; }
  .hero__sub { font-size:13px; margin-bottom:12px; }
  .games-row { grid-template-columns:repeat(3,1fr); gap:6px; }
  .gamesec__title { font-size:16px; }
  h1.gamesec__title { font-size:22px; }
  .cat-tab { font-size:12px; padding:5px 12px; }
  .ftr__grid { grid-template-columns:repeat(2,1fr); gap:20px 16px; }
  .header__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; }
}
