@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --bg:#07090d;
  --panel:#0e1219;
  --panel2:#121722;
  --line:#202734;
  --text:#f4f7fb;
  --muted:#8e99aa;
  --accent:#a6ff3f;
  --accent2:#64d7ff;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 86% 0%,rgba(90,150,60,.12),transparent 24%),
    var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,sans-serif;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.015) 1px,transparent 1px);
  background-size:40px 40px;
  mask-image:linear-gradient(to bottom,#000,transparent 72%);
  z-index:-1;
}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
.wrap{width:min(1040px,calc(100% - 32px));margin:auto}

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(7,9,13,.94);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.nav{
  height:64px;
  display:flex;
  align-items:center;
  gap:38px;
}
.brand{
  display:flex;
  align-items:center;
  gap:9px;
  font-weight:900;
  letter-spacing:.35px;
  font-size:17px;
  white-space:nowrap;
}
.brand span:last-child span{color:var(--accent)}
.brand-mark{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  background:var(--accent);
  color:#071006;
  border-radius:8px;
  font-size:12px;
}
.nav nav{
  display:flex;
  gap:28px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.nav nav a:hover,.nav nav .active{color:var(--text)}
.search-toggle{
  margin-left:auto;
  background:none;
  border:0;
  color:var(--muted);
  font-size:25px;
  cursor:pointer;
  line-height:1;
}
.search-toggle:hover{color:var(--text)}

.site-main{min-height:calc(100vh - 128px)}
.page-frame{
  width:min(1120px,calc(100% - 20px));
  margin:0 auto;
  border-left:1px solid rgba(255,255,255,.035);
  border-right:1px solid rgba(255,255,255,.035);
  min-height:calc(100vh - 64px);
  padding-top:34px;
  padding-bottom:65px;
}
.featured-section{margin-bottom:58px}
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  margin-bottom:20px;
}
.eyebrow{
  font-size:10px;
  letter-spacing:2.4px;
  color:var(--accent);
  font-weight:800;
  margin-bottom:10px;
}
.section-head h1,.section-head h2{
  font-size:27px;
  margin:0;
  letter-spacing:-1px;
  line-height:1.1;
}
.controls select{
  min-width:120px;
  background:var(--panel);
  border:1px solid var(--line);
  color:#ccd3dc;
  padding:9px 12px;
  border-radius:8px;
  outline:0;
  font-size:12px;
}
.controls select:focus{border-color:#46522f}

.games-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.game-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:13px;
  overflow:hidden;
  transition:transform .2s,border-color .2s,box-shadow .2s;
}
.game-card:hover{
  transform:translateY(-4px);
  border-color:#3b4733;
  box-shadow:0 16px 45px rgba(0,0,0,.55);
}
.thumb{
  aspect-ratio:16/10;
  background:#151a22;
  overflow:hidden;
  position:relative;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.play-dot{
  position:absolute;
  right:11px;
  bottom:11px;
  width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:#071006;
  font-size:12px;
  opacity:0;
  transform:scale(.8);
  transition:.2s;
}
.game-card:hover .play-dot{opacity:1;transform:scale(1)}
.card-body{padding:12px 13px 13px}
.card-title{
  font-weight:800;
  font-size:12.5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.meta{
  color:var(--muted);
  font-size:10px;
  margin-top:6px;
  text-transform:capitalize;
}
.tags{
  display:flex;
  gap:5px;
  margin-top:9px;
}
.tag{
  background:#171d27;
  color:#aeb8c6;
  border-radius:5px;
  padding:3px 6px;
  font-size:8px;
  white-space:nowrap;
}
.load-more{
  display:block;
  margin:28px auto 0;
  background:transparent;
  border:1px solid #303a48;
  color:#dbe2eb;
  padding:11px 21px;
  border-radius:9px;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
}
.load-more:hover{border-color:var(--accent);color:var(--accent)}

.search-panel{margin-bottom:58px}
.search-box{
  height:52px;
  background:rgba(14,18,25,.85);
  border:1px solid var(--line);
  border-radius:12px;
  display:flex;
  align-items:center;
  padding:0 16px;
  gap:11px;
}
.search-box span{font-size:22px;color:var(--muted)}
.search-box input{
  flex:1;
  min-width:0;
  background:none;
  border:0;
  outline:0;
  color:#fff;
  font-size:13px;
}
.search-box kbd{
  border:1px solid #303946;
  color:#687386;
  border-radius:5px;
  padding:3px 7px;
  font-size:11px;
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
}
.category{
  padding:17px 13px;
  background:linear-gradient(145deg,#111721,#0b0f15);
  border:1px solid var(--line);
  border-radius:12px;
  cursor:pointer;
  transition:.2s;
  color:var(--text);
  text-align:left;
}
.category:hover{
  border-color:#40502d;
  transform:translateY(-2px);
}
.category .icon{font-size:22px;margin-bottom:11px}
.category strong{font-size:12px}
.category small{
  display:block;
  color:var(--muted);
  margin-top:5px;
  font-size:9px;
}

footer{
  border-top:1px solid var(--line);
  padding:28px 0;
  color:var(--muted);
  font-size:11px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.brand.small{font-size:13px}
.brand.small .brand-mark{width:23px;height:23px;font-size:9px}

@media(max-width:900px){
  .page-frame{width:100%;border-left:0;border-right:0}
  .games-grid{grid-template-columns:repeat(3,1fr)}
  .category-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:650px){
  .wrap{width:calc(100% - 24px)}
  .nav{height:60px;gap:18px}
  .nav nav{display:none}
  .page-frame{padding-top:25px}
  .section-head{align-items:center}
  .section-head h1,.section-head h2{font-size:23px}
  .games-grid{grid-template-columns:repeat(2,1fr);gap:11px}
  .category-grid{grid-template-columns:repeat(2,1fr)}
  .card-body{padding:10px}
  .tags{display:none}
  .search-panel{margin-bottom:45px}
  .footer-inner{flex-direction:column;gap:14px}
}
@media(max-width:400px){
  .games-grid{grid-template-columns:1fr}
}

.legal-page{padding:42px 0 80px}
.legal-card{background:#0e1219;border:1px solid #202734;border-radius:15px;padding:32px;max-width:900px;margin:0 auto}
.legal-card h1{font-size:36px;letter-spacing:-1.2px;margin:0 0 10px}
.legal-card .updated{font-size:11px;color:#748092;margin-bottom:30px}
.legal-card h2{font-size:18px;margin:28px 0 10px}
.legal-card p,.legal-card li{color:#a3adbb;font-size:13px;line-height:1.8}
.legal-card ul{padding-left:22px}
.legal-card a{color:var(--accent)}
.legal-note{border-left:3px solid var(--accent);background:#111720;padding:13px 16px;border-radius:6px;margin:20px 0;color:#aab5c4;font-size:12px;line-height:1.7}
.footer-links{display:flex;gap:16px;flex-wrap:wrap;justify-content:center}
.footer-links a{color:#8792a2;font-size:11px;font-weight:600}
.footer-links a:hover{color:var(--accent)}
@media(max-width:650px){.legal-card{padding:22px}.legal-card h1{font-size:29px}.footer-inner{gap:12px}}

.view-all-categories{
  display:block;
  margin:20px auto 0;
  padding:10px 16px;
  border:1px solid #28313d;
  border-radius:9px;
  background:#0e1219;
  color:#dce3eb;
  font:800 11px/1.2 inherit;
  cursor:pointer;
  transition:.2s;
}
.view-all-categories:hover{
  border-color:var(--accent);
  color:var(--accent);
  transform:translateY(-1px);
}

.category.selected{
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent),0 10px 28px #0006;
  transform:translateY(-2px);
}
.category.selected strong{color:var(--accent)}


/* =========================
   MXTOR HOME — CLEAN UNIFORM GRID
   ========================= */
body.home-page{
  --home-bg:#25d1c2;
  --home-dark:#07363c;
  --home-muted:#47777c;
  margin:0;
  background:var(--home-bg);
  color:#fff;
  overflow-x:hidden;
}
body.home-page:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background:
    linear-gradient(135deg,transparent 0 48%,rgba(255,255,255,.07) 49%,transparent 51%),
    linear-gradient(35deg,transparent 0 48%,rgba(255,255,255,.055) 49%,transparent 51%);
  background-size:160px 160px,220px 220px;
  opacity:.34;
  mask-image:none;
}
.home-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(3,44,48,.96);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.14);
}
.home-header .nav{
  width:min(1180px,calc(100% - 28px));
  height:66px;
}
.home-header .nav nav{
  display:flex;
}
.home-header .nav .search-toggle{
  margin-left:auto;
}
.home-main{
  min-height:calc(100vh - 66px);
  padding:24px 16px 54px;
}
.home-layout{
  width:min(1240px,100%);
  margin:0 auto;
  display:block;
}
.home-content{
  width:100%;
  min-width:0;
}
.home-topline{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin:0 0 14px;
  padding:0 2px;
}
.home-kicker{
  font-size:10px;
  letter-spacing:2px;
  color:#075056;
  font-weight:900;
  margin-bottom:6px;
}
.home-topline h1{
  margin:0;
  color:#07363c;
  font-size:30px;
  line-height:1.06;
  letter-spacing:-1.2px;
}
.home-topline p{
  margin:6px 0 0;
  color:#356b70;
  font-size:12px;
}
.home-controls select{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(7,54,60,.12);
  color:#173f43;
  padding:9px 12px;
  border-radius:9px;
  font-size:11px;
  font-weight:800;
  outline:0;
}
.home-game-canvas{
  width:100%;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.11);
  box-shadow:0 14px 34px rgba(0,55,60,.10);
}
body.home-page .games-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,150px);
  grid-auto-rows:150px;
  gap:12px;
  justify-content:center;
}
body.home-page .game-card{
  width:150px;
  height:150px;
  display:block;
  position:relative;
  overflow:hidden;
  border-radius:14px;
  background:#c9efea;
  border:0;
  box-shadow:0 6px 16px rgba(0,62,67,.18);
  transition:transform .16s ease,box-shadow .16s ease;
}
body.home-page .game-card:hover{
  transform:translateY(-4px);
  box-shadow:0 13px 28px rgba(0,50,54,.24);
  z-index:2;
}
body.home-page .thumb{
  width:150px;
  height:150px;
  aspect-ratio:1/1;
  overflow:hidden;
  position:relative;
  background:#bce8e2;
}
body.home-page .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
body.home-page .play-dot{
  position:absolute;
  right:9px;
  bottom:9px;
  width:32px;
  height:32px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  color:#087c79;
  font-size:11px;
  opacity:0;
  transform:scale(.84);
  transition:.16s;
}
body.home-page .game-card:hover .play-dot{
  opacity:1;
  transform:scale(1);
}
body.home-page .card-body{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:28px 9px 8px;
  background:linear-gradient(transparent,rgba(0,0,0,.88));
  opacity:0;
  transition:.14s;
}
body.home-page .game-card:hover .card-body{opacity:1}
body.home-page .card-title{
  font-size:10px;
  font-weight:900;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.home-page .meta,
body.home-page .tags{display:none}
body.home-page .load-more{
  display:block;
  margin:16px auto 28px;
  background:#fff;
  border:0;
  color:#07363c;
  padding:11px 22px;
  border-radius:10px;
  font-weight:900;
  font-size:11px;
  cursor:pointer;
  box-shadow:0 5px 14px rgba(0,45,48,.12);
}
body.home-page .load-more:hover{
  transform:translateY(-1px);
  color:#07363c;
}
body.home-page .search-panel{
  display:none;
  max-width:780px;
  margin:8px auto 30px;
}
body.home-page .search-panel.open{display:block}
body.home-page .search-box{
  height:50px;
  background:#fff;
  border:1px solid rgba(7,54,60,.10);
  border-radius:12px;
  display:flex;
  align-items:center;
  padding:0 15px;
  gap:10px;
  box-shadow:0 8px 22px rgba(0,48,53,.12);
}
body.home-page .search-box span{
  font-size:21px;
  color:#4c7478;
}
body.home-page .search-box input{
  flex:1;
  min-width:0;
  background:none;
  border:0;
  outline:0;
  color:#173f43;
  font-size:13px;
}
body.home-page .search-box kbd{
  border:1px solid #d9e6e6;
  color:#688286;
  border-radius:5px;
  padding:3px 7px;
  font-size:10px;
}
.home-categories{
  padding:4px 2px 0;
}
.home-section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin:30px 0 12px;
}
.home-section-head h2{
  margin:0;
  color:#07363c;
  font-size:24px;
  letter-spacing:-.8px;
}
body.home-page .category-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:9px;
}
body.home-page .category{
  padding:13px 11px;
  background:rgba(255,255,255,.22);
  border:1px solid rgba(7,54,60,.10);
  border-radius:12px;
  cursor:pointer;
  color:#07363c;
  text-align:left;
  transition:.16s;
}
body.home-page .category:hover,
body.home-page .category.selected{
  background:#fff;
  transform:translateY(-2px);
  box-shadow:0 7px 18px rgba(0,55,60,.12);
  border-color:transparent;
}
body.home-page .category .icon{font-size:20px;margin-bottom:8px}
body.home-page .category strong{font-size:10px}
body.home-page .category small{
  display:block;
  color:#4f7377;
  margin-top:4px;
  font-size:8px;
}
body.home-page .view-all-categories{
  grid-column:1/-1;
  justify-self:center;
  margin:4px 0 0;
  background:rgba(255,255,255,.3);
  border:1px solid rgba(7,54,60,.1);
  border-radius:9px;
  padding:8px 13px;
  color:#07363c;
  font-size:10px;
  font-weight:800;
}
body.home-page .home-footer{
  border-top:1px solid rgba(7,54,60,.12);
  padding:25px 0;
  background:rgba(5,57,62,.12);
  color:#476e73;
  font-size:10px;
}
body.home-page .home-footer .footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* Defensive cleanup: there is intentionally no homepage sidebar/card. */
body.home-page .home-sidebar,
body.home-page .home-brand-card,
body.home-page .home-sidebar-links,
body.home-page .home-sidebar-btn,
body.home-page .home-brand-logo{
  display:none !important;
}

@media(max-width:900px){
  .home-main{padding:18px 12px 44px}
  .home-topline h1{font-size:27px}
  body.home-page .games-grid{
    grid-template-columns:repeat(auto-fill,120px);
    grid-auto-rows:120px;
    gap:10px;
  }
  body.home-page .game-card,
  body.home-page .thumb{
    width:120px;
    height:120px;
  }
  body.home-page .category-grid{grid-template-columns:repeat(4,1fr)!important}
}
@media(max-width:650px){
  .home-header .nav{height:58px}
  .home-header .nav nav{display:none}
  .home-main{padding:14px 8px 40px}
  .home-topline{align-items:start}
  .home-topline p{font-size:11px}
  .home-controls select{font-size:10px;min-width:105px}
  .home-game-canvas{padding:10px;border-radius:14px}
  body.home-page .games-grid{
    grid-template-columns:repeat(auto-fill,100px);
    grid-auto-rows:100px;
    gap:7px;
  }
  body.home-page .game-card,
  body.home-page .thumb{
    width:100px;
    height:100px;
    border-radius:11px;
  }
  body.home-page .game-card:hover{transform:translateY(-2px)}
  body.home-page .play-dot{width:28px;height:28px;right:6px;bottom:6px}
  body.home-page .category-grid{grid-template-columns:repeat(2,1fr)!important}
  .home-section-head h2{font-size:22px}
  body.home-page .home-footer .footer-inner{
    flex-direction:column;
    gap:12px;
  }
  .footer-links{flex-wrap:wrap;justify-content:center}
}
