:root{
  --bg0:#070A12;
  --bg1:#0B1430;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.09);
  --text:#EAF0FF;
  --muted: rgba(234,240,255,.72);
  --primary:#6D5EF6;
  --primary2:#22C55E;
  --border: rgba(255,255,255,.14);
  --shadow: 0 22px 50px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 26px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(109,94,246,.35), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(34,197,94,.22), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a{ color:inherit; text-decoration:none; }
.container{
  width:min(1120px, calc(100% - 32px));
  margin:0 auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px;
  background:rgba(255,255,255,.12);
  border:1px solid var(--border);
  border-radius:12px;
  z-index:9999;
}

header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(7,10,18,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}
.logo{
  width:34px; height:34px;
  border-radius:12px;
  background:
    radial-gradient(16px 16px at 30% 30%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, rgba(109,94,246,1), rgba(34,197,94,1));
  box-shadow: 0 10px 26px rgba(109,94,246,.25);
  border:1px solid rgba(255,255,255,.25);
}

nav ul{
  list-style:none;
  margin:0; padding:0;
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
nav a{
  color:var(--muted);
  font-weight:600;
  font-size:14px;
}
nav a:hover{ color:var(--text); }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
  color:var(--text);
  font-weight:800;
  letter-spacing:.2px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  white-space:nowrap;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
}
.btn-primary{
  background: linear-gradient(135deg, rgba(109,94,246,1), rgba(34,197,94,1));
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 18px 40px rgba(109,94,246,.22);
}

.hero{ padding:56px 0 34px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:26px;
  align-items:center;
}

.badge-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.badge{
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);
  color:var(--muted);
  padding:7px 10px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}

h1{
  margin:0 0 12px;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height:1.05;
  letter-spacing:-.6px;
}
.lead{
  margin:0 0 20px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
  max-width: 52ch;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin: 18px 0 0;
}
.fineprint{
  margin-top:12px;
  color:rgba(234,240,255,.58);
  font-size:13px;
  line-height:1.5;
}

section{ padding: 34px 0; }

.section-title{
  font-size: 22px;
  margin:0 0 12px;
  letter-spacing:-.2px;
}
.section-sub{
  margin:0 0 22px;
  color:var(--muted);
  line-height:1.6;
  max-width: 70ch;
  font-size:15px;
}

.grid-cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
}
.card-link{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height: 200px;
  cursor:pointer;
  text-decoration:none;
  color:inherit;
  position:relative;
}
.card-link:focus-visible{
  outline:2px solid rgba(109,94,246,.9);
  outline-offset:3px;
}
.card{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding:14px;
  min-height: 200px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.085);
  border-color: rgba(255,255,255,.22);
}
.card-top{
  display:flex; align-items:flex-start; gap:10px;
}
.card-icon{
  width:56px; height:56px;
  border-radius:13px;
  background: rgba(34,197,94,.18);
  border:1px solid rgba(34,197,94,.25);
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  overflow:hidden;
  flex-shrink:0;
}
.card-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.card h3{
  margin:0;
  font-size:15px;
  letter-spacing:.1px;
  line-height:1.25;
}
.card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.card-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  font-size:13px;
  color: rgba(234,240,255,.92);
}
.card:hover .card-cta{ color:var(--text); }
.card-actions{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  padding-top:4px;
}
.btn-card-download{
  padding:9px 12px;
  border-radius:12px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.15px;
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(16,185,129,.95));
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 10px 22px rgba(34,197,94,.22);
  flex-shrink:0;
}
.btn-card-download:hover{
  background: linear-gradient(135deg, rgba(34,197,94,1), rgba(16,185,129,1));
}
.arrow{
  width:22px; height:22px;
  border-radius:10px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  display:flex; align-items:center; justify-content:center;
  font-size:13px;
}

.seo-keywords{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
.seo-keywords span{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(234,240,255,.72);
}
.seo-text{
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
  max-width:75ch;
}
.seo-text strong{
  color:rgba(234,240,255,.9);
  font-weight:700;
}

.why-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.why-item{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding:16px;
}
.why-item h3{
  margin:0 0 8px;
  font-size:16px;
  letter-spacing:-.2px;
}
.why-item p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

details{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 14px 14px;
  margin-bottom: 12px;
}
summary{
  cursor:pointer;
  font-weight:900;
  letter-spacing:.1px;
}
details p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}

footer{
  padding: 28px 0 44px;
  color: rgba(234,240,255,.6);
  font-size:13px;
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(7,10,18,.25);
}
.footer-row{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.cta-mobile{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px 12px;
  border-radius: 18px;
  background: rgba(8,10,16,.72);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  display:none;
  z-index: 30;
}
.cta-mobile .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.cta-mobile b{ font-size:14px; }

/* Breadcrumbs */
.breadcrumbs{
  padding:18px 0 0;
  font-size:13px;
  color:var(--muted);
}
.breadcrumbs ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.breadcrumbs li{ display:inline-flex; align-items:center; gap:8px; }
.breadcrumbs a:hover{ color:var(--text); }
.breadcrumbs .sep{ opacity:.5; }

/* Game / article layouts */
.page-hero{
  padding:28px 0 18px;
  display:grid;
  grid-template-columns: auto 1fr;
  gap:20px;
  align-items:center;
}
.page-hero-icon{
  width:96px;
  height:96px;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.2);
  box-shadow: var(--shadow);
  flex-shrink:0;
}
.page-hero-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.page-hero h1{
  font-size: clamp(28px, 4vw, 42px);
}
.prose{
  color:var(--muted);
  font-size:16px;
  line-height:1.75;
  max-width:72ch;
}
.prose h2{
  color:var(--text);
  font-size:22px;
  margin:32px 0 12px;
  letter-spacing:-.2px;
}
.prose h3{
  color:var(--text);
  font-size:18px;
  margin:24px 0 10px;
}
.prose p{ margin:0 0 14px; }
.prose ul, .prose ol{
  margin:0 0 16px;
  padding-left:1.2em;
}
.prose li{ margin-bottom:8px; }
.prose strong{ color:rgba(234,240,255,.92); }
.prose a{
  color: rgba(167,139,250,.98);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover{ color: var(--text); }

.post-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  margin:8px 0 0;
  font-size:13px;
  color:rgba(234,240,255,.58);
}
.blog-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:14px;
}
.blog-card{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height: 180px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.blog-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.085);
  border-color: rgba(255,255,255,.22);
}
.blog-card h3{
  margin:0;
  font-size:17px;
  line-height:1.3;
  letter-spacing:-.1px;
}
.blog-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
  flex:1;
}
.blog-card .card-cta{ margin-top:auto; }

.shot-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:12px;
  margin:18px 0 8px;
}
.shot-grid figure{
  margin:0;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  overflow:hidden;
}
.shot-grid img{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio:9/16;
  object-fit:cover;
  background:#0a1020;
}
.shot-grid figcaption{
  padding:8px 10px;
  font-size:12px;
  color:var(--muted);
}

.video-wrap{
  position:relative;
  width:100%;
  max-width:720px;
  aspect-ratio:16/9;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:#000;
  margin:16px 0 8px;
  box-shadow: var(--shadow);
}
.video-wrap iframe,
.video-wrap video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.video-fallback{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  height:100%;
  padding:24px;
  text-align:center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(109,94,246,.35), transparent 60%),
    #0a1020;
}
.video-fallback p{
  margin:0;
  color:var(--muted);
  max-width:40ch;
  line-height:1.5;
}

.meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:10px 0 0;
  font-size:13px;
  color:rgba(234,240,255,.58);
}

.also-like{
  padding:28px 0 8px;
}
.also-like-list{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  max-width:420px;
}
.also-like-item{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  min-width:min(100%, 280px);
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  font-weight:800;
  font-size:15px;
  letter-spacing:.1px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.also-like-item:hover{
  transform: translateY(-1px);
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.24);
}
.also-like-sep{
  display:block;
  width:min(100%, 280px);
  text-align:center;
  color:rgba(234,240,255,.45);
  font-size:14px;
  line-height:1;
  user-select:none;
}

.article-card .card-cta{ margin-top:auto; }
.article-list{
  display:grid;
  gap:14px;
}
.article-list .card{
  min-height:auto;
}

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .cta-mobile{ display:block; }
  header{ position:static; }
  body:not(.portal-body){ padding-bottom:88px; }
  .page-hero{
    grid-template-columns: 1fr;
    justify-items:start;
  }
}

/* —— Play portal home —— */
.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.portal-body{ padding-bottom:0; }
.portal-header .portal-top{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 0;
  flex-wrap:wrap;
}
.portal-header .brand{ flex-shrink:0; }
.portal-header nav{ margin-left:auto; }

.search-bar{
  flex:1 1 220px;
  display:flex;
  align-items:center;
  gap:8px;
  min-width:min(100%, 220px);
  max-width:420px;
  padding:8px 10px 8px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
}
.search-bar input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font-size:14px;
  font-weight:600;
}
.search-bar input::placeholder{ color:rgba(234,240,255,.45); }
.search-bar button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px; height:36px;
  border:0;
  border-radius:10px;
  background: rgba(109,94,246,.28);
  color:var(--text);
  cursor:pointer;
}
.search-bar button:hover{ background: rgba(109,94,246,.42); }

.portal-main{ padding:28px 0 48px; }
.portal-intro{
  margin:0 0 18px;
}
.portal-intro h1{
  margin:0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
}
.portal-intro p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
  max-width:56ch;
}

.cat-bar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 22px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.cat-chip{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--muted);
  font-weight:800;
  font-size:13px;
  padding:9px 14px;
  border-radius:999px;
  cursor:pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease, transform .12s ease;
}
.cat-chip:hover{
  color:var(--text);
  border-color: rgba(255,255,255,.24);
  transform: translateY(-1px);
}
.cat-chip.is-active{
  color:#081018;
  background: linear-gradient(135deg, #A78BFA, #34D399);
  border-color: transparent;
}

.game-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap:14px;
}
.game-tile{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
  text-decoration:none;
  color:inherit;
}
.game-tile:hover,
.game-tile:focus-visible{
  transform: translateY(-3px) scale(1.01);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
  outline:none;
}
.game-tile-icon{
  display:block;
  aspect-ratio:1;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(40px 40px at 30% 25%, rgba(255,255,255,.2), transparent 60%),
    linear-gradient(145deg, rgba(109,94,246,.55), rgba(34,197,94,.4));
}
.game-tile-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.game-tile-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  font-size:42px;
  font-weight:900;
  color:rgba(255,255,255,.9);
}
.game-tile-name{
  font-weight:900;
  font-size:14px;
  line-height:1.25;
  letter-spacing:.1px;
}
.game-tile-desc{
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.game-tile-badge{
  position:absolute;
  top:18px;
  left:18px;
  z-index:1;
  padding:4px 8px;
  border-radius:8px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.4px;
  color:#fff;
  background: linear-gradient(135deg, #EF4444, #F97316);
  box-shadow: 0 6px 14px rgba(239,68,68,.35);
}
.portal-empty{
  margin:28px 0 8px;
  color:var(--muted);
  text-align:center;
}

.portal-aside{
  margin-top:40px;
  padding:22px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.portal-aside h2{
  margin:0 0 8px;
  font-size:18px;
}
.portal-aside p{
  margin:0 0 16px;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  max-width:60ch;
}
.portal-aside-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.btn-gplay{
  background: linear-gradient(135deg, #34D399, #22C55E);
  border-color: rgba(255,255,255,.2);
  color:#04120a;
  box-shadow: 0 14px 28px rgba(34,197,94,.22);
}
.btn-gplay:hover{
  background: linear-gradient(135deg, #4ade80, #22C55E);
}
.portal-seo{
  margin-top:36px;
  padding-top:28px;
  border-top:1px solid rgba(255,255,255,.1);
}
.portal-seo h2{
  margin:0 0 10px;
  font-size:20px;
}
.portal-seo p{
  margin:0 0 12px;
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
  max-width:72ch;
}
.nav-gplay{
  color: #86efac !important;
}
.nav-gplay:hover{
  color: #bbf7d0 !important;
}

/* Detail: marketing below play area */
.game-seo{
  margin:36px 0 12px;
  padding-top:28px;
  border-top:1px solid rgba(255,255,255,.1);
}
.game-seo h2{
  color:var(--text);
  font-size:22px;
  margin:28px 0 12px;
  letter-spacing:-.2px;
}
.game-seo h2:first-child{ margin-top:0; }
.game-seo h3{
  color:var(--text);
  font-size:17px;
  margin:20px 0 8px;
}
.game-seo p,
.game-seo li{
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}
.game-seo p{ margin:0 0 12px; }
.game-seo ul{ margin:0 0 14px; padding-left:1.2em; }
.game-seo strong{ color:rgba(234,240,255,.92); }
.game-seo a{
  color: rgba(167,139,250,.98);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.game-seo a:hover{ color: var(--text); }
.game-seo .tu-seo-tags{
  margin-top:18px;
  font-size:12px;
  line-height:1.6;
  color:rgba(234,240,255,.5);
}

.play-gplay-promo{
  display:flex;
  justify-content:center;
  margin:0 auto 24px;
  max-width:520px;
}
.play-compact-hero{
  padding:18px 0 12px;
}
.play-compact-hero h1{
  font-size: clamp(24px, 3.4vw, 34px);
  margin:0 0 6px;
}
.play-compact-hero .lead{
  margin:0;
  font-size:14px;
  max-width:62ch;
}

@media (max-width: 720px){
  .portal-header .portal-top{ gap:10px; }
  .portal-header nav{ margin-left:0; width:100%; }
  .portal-header nav ul{ justify-content:flex-start; }
  .search-bar{ max-width:none; order:3; flex-basis:100%; }
  .game-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap:10px; }
  .game-tile{ padding:10px; border-radius:14px; }
  .game-tile-icon{ border-radius:12px; }
  .portal-body{ padding-bottom:0; }
}
