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

:root {
  --teal: #00d2d6;
  --teal-d: #00b8bc;
  --teal-dk: #007c80;
  --white: #ffffff;
  --tx: #1a1a2e;
  --tx2: #4a5568;
  --tx3: #a0aec0;
  --or: #ff6b35;
  --nh: 58px;
  --pad: clamp(12px, 2.5vw, 36px);
  --mw: 1380px;
  --ra: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--teal); color: var(--tx); font-family: 'Inter', sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: rgba(0,180,184,.3); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: var(--teal-d); border-radius: 3px; }

/* ─── NAV (WHITE) ─────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nh);
  background: #fff;
  border-bottom: 2px solid var(--teal);
  box-shadow: 0 2px 20px rgba(0,210,214,.2);
}
.nav-in {
  max-width: var(--mw); margin: 0 auto;
  padding: 0 var(--pad); height: 100%;
  display: flex; align-items: center; gap: 12px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 36px; filter: drop-shadow(0 2px 6px rgba(0,180,184,.3)); transition: transform .3s; }
.logo:hover img { transform: scale(1.08) rotate(-3deg); }

.tabs { display: flex; gap: 3px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; padding: 7px 14px; border-radius: 10px; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800; color: var(--tx2); transition: all .15s; white-space: nowrap; }
.tab:hover { color: var(--teal-dk); background: rgba(0,210,214,.08); }
.tab.on { color: #fff; background: var(--teal); box-shadow: 0 3px 10px rgba(0,210,214,.4); }

.nav-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.siw { position: relative; width: 170px; }
.siw input { width: 100%; height: 34px; background: #f0fafa; border: 1.5px solid #b2e8ea; border-radius: 10px; padding: 0 10px 0 30px; color: var(--tx); font-size: 13px; outline: none; font-family: inherit; transition: all .2s; }
.siw input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,210,214,.15); }
.siw input::placeholder { color: var(--tx3); }
.sic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--tx3); pointer-events: none; }
.hb { display: flex; align-items: center; gap: 4px; padding: 7px 12px; background: #f0fafa; border: 1.5px solid #b2e8ea; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--tx2); transition: all .2s; }
.hb:hover { background: #fee2e2; border-color: #fca5a5; color: #ef4444; }
.fc { background: var(--or); color: #fff; font-size: 9px; font-weight: 900; min-width: 15px; height: 15px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 3px; }
.fc.hi { display: none; }

/* ─── PAGE ────────────────────────────────────────────── */
.spc { height: var(--nh); }
.page { max-width: var(--mw); margin: 0 auto; padding: 20px var(--pad) 40px; }

/* ─── MOSAIC (Poki-style mixed sizes) ────────────────── */
.mosaic {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 128px;
  grid-auto-flow: dense;
  gap: 6px;
  margin-bottom: 24px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--teal-d);
  padding: 6px;
}
.mosaic .gc { background: #ccc; border: none; border-radius: 12px; overflow: hidden; }
.mosaic .gt { width: 100%; height: 100%; aspect-ratio: unset; border-radius: 12px; }
.mosaic .gt img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; transition: transform .3s; }
.mosaic .gc:hover .gt img { transform: scale(1.08); }
.mosaic .gi, .mosaic .gbs, .mosaic .gf { display: none; }
.mosaic .gov { display: flex; border-radius: 12px; }
.mosaic .gc:hover { transform: scale(1.05); z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
/* 3-size pattern: large(2x2) medium(2x1) small(1x1) — dense fills gaps */
.mosaic .gc:nth-child(5)  { grid-column: span 2; grid-row: span 2; }
.mosaic .gc:nth-child(14) { grid-column: span 2; grid-row: span 2; }
.mosaic .gc:nth-child(23) { grid-column: span 2; grid-row: span 2; }
.mosaic .gc:nth-child(32) { grid-column: span 2; grid-row: span 2; }
.mosaic .gc:nth-child(9)  { grid-column: span 2; }
.mosaic .gc:nth-child(18) { grid-column: span 2; }
.mosaic .gc:nth-child(27) { grid-column: span 2; }
.mosaic .gc:nth-child(36) { grid-column: span 2; }

/* ─── SECTION ─────────────────────────────────────────── */
.sec { margin-bottom: 28px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.sec-t { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 900; color: #003a3b; display: flex; align-items: center; gap: 8px; }
.sec-t::before { content: ''; display: block; width: 4px; height: 22px; background: #003a3b; border-radius: 2px; }
.sa { font-size: 12px; font-weight: 800; color: #005a5c; padding: 5px 14px; border-radius: 99px; border: 2px solid rgba(0,90,92,.2); background: rgba(255,255,255,.45); transition: all .18s; font-family: 'Nunito', sans-serif; }
.sa:hover { background: #003a3b; color: #fff; }

/* ─── CATEGORY CARDS (Poki-style) ────────────────────── */
.sec-cats { margin-bottom: 28px; }
.cat-cards-poki { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.cat-card-poki { background: #fff; border-radius: var(--ra); overflow: hidden; cursor: pointer; border: none; padding: 0; box-shadow: 0 4px 16px rgba(0,0,0,.1); transition: transform .22s cubic-bezier(.175,.885,.32,1.275), box-shadow .22s; display: block; width: 100%; }
.cat-card-poki:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,.15); }
.ccp-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--teal); }
.ccp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-card-poki:hover .ccp-img img { transform: scale(1.06); }
.ccp-label { padding: 10px 13px 11px; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--tx); line-height: 1.3; }

/* ─── GAME GRID ───────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

/* ─── GAME CARD ───────────────────────────────────────── */
.gc {
  display: block; border-radius: var(--ra); overflow: hidden;
  background: #fff; border: none; cursor: pointer; position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transition: transform .22s cubic-bezier(.175,.885,.32,1.275), box-shadow .22s;
}
.gc:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 14px 36px rgba(0,0,0,.16); z-index: 4; }
.gt { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--teal); }
.gt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .32s; }
.gc:hover .gt img { transform: scale(1.06); }
.gov { position: absolute; inset: 0; background: rgba(0,0,0,.42); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .18s; }
.gc:hover .gov { opacity: 1; }
.gpi { width: 46px; height: 46px; border-radius: 50%; background: var(--or); display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; box-shadow: 0 4px 16px rgba(255,107,53,.5); transform: scale(.65); transition: transform .22s cubic-bezier(.175,.885,.32,1.275); }
.gc:hover .gpi { transform: scale(1); }
.gbs { position: absolute; top: 6px; left: 6px; display: flex; gap: 3px; }
.gb { padding: 2px 6px; border-radius: 5px; font-size: 8.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.gb.HOT { background: #ef4444; color: #fff; } .gb.TOP { background: #f59e0b; color: #fff; } .gb.NEW { background: #10b981; color: #fff; }
.gf { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; background: rgba(255,255,255,.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; opacity: 0; transition: all .2s; color: #9ca3af; }
.gc:hover .gf, .gf.on { opacity: 1; }
.gf.on { color: #ef4444; }
.gi { padding: 9px 10px 10px; }
.gtt { font-family: 'Nunito', sans-serif; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; color: var(--tx); }
.gm { display: flex; justify-content: space-between; align-items: center; }
.gcat { font-size: 10px; color: var(--tx2); text-transform: capitalize; font-weight: 600; }
.grt { font-size: 10px; color: #f59e0b; font-weight: 700; }

/* ─── ROW ─────────────────────────────────────────────── */
.rw { position: relative; }
.row { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 10px; }
.row::-webkit-scrollbar { display: none; }
.row .gc { width: 168px; min-width: 168px; flex-shrink: 0; }
.row .gt { aspect-ratio: 4/3; }
.sarr { position: absolute; top: 35%; transform: translateY(-50%); width: 32px; height: 32px; background: #fff; border: 2px solid #e0f7f7; border-radius: 50%; color: var(--teal-dk); font-size: 16px; display: flex; align-items: center; justify-content: center; z-index: 10; transition: all .18s; opacity: 0; pointer-events: none; box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.rw:hover .sarr { opacity: 1; pointer-events: auto; }
.sarr:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.sl { left: -16px; } .sr { right: -16px; }

/* ─── FILTER PAGE ─────────────────────────────────────── */
.fp { margin-bottom: 32px; }
.fph { font-family: 'Nunito', sans-serif; font-size: clamp(20px,3vw,28px); font-weight: 900; margin-bottom: 4px; color: #003a3b; }
.fps { font-size: 13.5px; color: #005a5c; margin-bottom: 16px; }
.empty { text-align: center; padding: 60px; color: #005a5c; }
.empty h3 { font-family: 'Nunito', sans-serif; font-size: 20px; color: #003a3b; margin-bottom: 6px; }

/* ─── TOAST ───────────────────────────────────────────── */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(100px); background: #003a3b; border-radius: 14px; padding: 11px 20px; font-size: 13.5px; font-weight: 600; z-index: 999; transition: transform .3s cubic-bezier(.175,.885,.32,1.275); white-space: nowrap; box-shadow: 0 8px 28px rgba(0,0,0,.25); color: #fff; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.ok { background: #065f46; }

/* ─── FOOTER (WHITE) ──────────────────────────────────── */
.footer { background: #fff; border-top: 3px solid var(--teal); padding: 40px var(--pad) 24px; margin-top: 24px; }
.fi { max-width: var(--mw); margin: 0 auto; }
.ftop { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid #e0f7f7; }
.fab p { font-size: 13px; color: var(--tx2); max-width: 210px; line-height: 1.8; margin-top: 10px; }
.fcols { display: flex; gap: 40px; flex-wrap: wrap; }
.fct { font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-dk); margin-bottom: 12px; font-family: 'Nunito', sans-serif; }
.fcol ul { list-style: none; } .fcol li { margin-bottom: 7px; }
.fcol button { font-size: 13px; color: var(--tx2); background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; transition: color .15s; }
.fcol button:hover { color: var(--teal-dk); }
.fbot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.fcp { font-size: 12px; color: var(--tx3); }
.fst { display: flex; gap: 16px; }
.fsb { text-align: center; padding: 8px 14px; background: #f0fafa; border-radius: 10px; border: 1px solid #b2e8ea; }
.fsn { font-family: 'Nunito', sans-serif; font-size: 20px; font-weight: 900; color: var(--teal-dk); line-height: 1; }
.fsl { font-size: 9px; color: var(--tx3); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

/* ─── GAME PAGE ───────────────────────────────────────── */
.bc { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #005a5c; margin-bottom: 16px; flex-wrap: wrap; }
.bc a:hover { color: var(--teal-dk); } .bc .sep { color: var(--tx3); } .bc .cur { color: var(--tx); }
.gpg { display: grid; grid-template-columns: 1fr 320px; gap: 18px; margin-bottom: 32px; align-items: start; }
.gpstk { position: sticky; top: calc(var(--nh)+12px); }
.gpl { position: relative; width: 100%; aspect-ratio: 3/2; background: #000; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 48px rgba(0,0,0,.2); }
.gpp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.gpp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.gpp:hover img { filter: brightness(.3); }
.gpp-fg { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 11px; }
.pci { width: 74px; height: 74px; background: var(--or); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; box-shadow: 0 6px 28px rgba(255,107,53,.5); transition: all .3s cubic-bezier(.175,.885,.32,1.275); }
.gpp:hover .pci { transform: scale(1.12); }
.plb { font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 900; letter-spacing: .08em; text-shadow: 0 2px 10px rgba(0,0,0,.8); color: #fff; }
.gpl iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; z-index: 3; }
.gacts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gbtn { padding: 8px 14px; border-radius: 10px; background: #f0fafa; color: var(--tx2); font-size: 13px; font-weight: 600; transition: all .15s; border: 1.5px solid #b2e8ea; }
.gbtn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.gbtn.fon { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }
.gh1 { font-family: 'Nunito', sans-serif; font-size: clamp(18px,2.5vw,26px); font-weight: 900; margin-bottom: 10px; color: var(--tx); }
.rrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.stars { display: flex; gap: 1px; } .star { font-size: 14px; color: #e2e8f0; } .star.on { color: #f59e0b; }
.rinfo { font-size: 13px; color: var(--tx2); } .rinfo strong { color: var(--tx); }
.qmeta { display: flex; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--tx2); }
.gtags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.tag { padding: 3px 10px; border-radius: 8px; background: #f0fafa; font-size: 11px; color: var(--tx2); font-weight: 600; border: 1px solid #b2e8ea; transition: all .15s; }
.tag:hover { color: var(--teal-dk); border-color: var(--teal); }
.htp { background: #f0fafa; border: 1.5px solid #b2e8ea; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.htp-hd { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; transition: background .15s; }
.htp-hd:hover { background: #e0f7f7; }
.htp-lb { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800; color: var(--tx); }
.htp-ar { font-size: 10px; color: var(--tx3); transition: transform .2s; }
.htp.op .htp-ar { transform: rotate(180deg); }
.clist { display: none; flex-direction: column; gap: 6px; padding: 0 13px 11px; }
.htp.op .clist { display: flex; }
.crow { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.kbd { min-width: 48px; padding: 2px 7px; background: #fff; border: 1px solid #b2e8ea; border-bottom: 3px solid #b2e8ea; border-radius: 5px; font-size: 10px; font-weight: 800; text-align: center; }
.cact { color: var(--tx2); }
.gdesc { font-size: 13.5px; color: var(--tx2); line-height: 1.85; margin-bottom: 12px; }
.gdev { font-size: 12px; color: var(--tx2); padding-top: 11px; border-top: 1px solid #e0f7f7; }
.gdev span { color: var(--tx); font-weight: 600; }

@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.an { animation: fadeUp .18s ease both; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media(max-width:1100px) { .mosaic { grid-template-columns: repeat(7,1fr); } }
@media(max-width:900px)  { .mosaic { grid-template-columns: repeat(5,1fr); grid-auto-rows:110px; } .gpg { grid-template-columns:1fr; } .gpstk { position:static; } }
@media(max-width:700px)  { :root{--nh:50px;} .siw{width:120px;} .grid{grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:8px;} .mosaic{grid-template-columns:repeat(4,1fr);gap:4px;grid-auto-rows:90px;} .ftop{grid-template-columns:1fr;} }
@media(max-width:480px)  { .grid{grid-template-columns:repeat(3,1fr);gap:6px;} .mosaic{grid-template-columns:repeat(3,1fr);grid-auto-rows:80px;} .cat-cards-poki{grid-template-columns:repeat(2,1fr);} }

/* ARTICLE SECTION */
.article{background:#fff;border-radius:20px;padding:36px 40px;box-shadow:0 4px 20px rgba(0,0,0,.08);margin-bottom:24px}
.art-inner{max-width:780px}
.art-tag{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;color:var(--teal-d);margin-bottom:8px}
.art-h{font-family:'Nunito',sans-serif;font-size:clamp(20px,3vw,28px);font-weight:900;color:var(--tx);margin-bottom:14px;line-height:1.2}
.art-h2{font-family:'Nunito',sans-serif;font-size:17px;font-weight:900;color:var(--tx);margin:20px 0 10px}
.art-p{font-size:14px;color:var(--tx2);line-height:1.85;margin-bottom:10px}
.art-p strong{color:var(--tx);font-weight:700}
.art-link{color:var(--teal-dk);font-weight:700;font-size:14px;background:none;border:none;cursor:pointer;text-decoration:underline;font-family:inherit;padding:0;transition:color .15s}
.art-link:hover{color:var(--tx)}
.art-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.art-gl{padding:5px 13px;background:#f0fafa;border:1.5px solid #b2e8ea;border-radius:99px;font-size:12.5px;font-weight:600;color:var(--teal-dk);transition:all .18s}
.art-gl:hover{background:var(--teal);color:#fff;border-color:var(--teal)}
/* SHIMMER HOVER ANIMATION (Poki-style light sweep) */
.gc { overflow: hidden; }
.gc::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%);
  transform: skewX(-18deg);
  z-index: 8; pointer-events: none;
  transition: none;
}
.gc:hover::before { animation: shimmer .55s ease-in-out; }
@keyframes shimmer { 0%{left:-100%} 100%{left:160%} }

/* Mosaic cards also get shimmer */
.mosaic .gc::before { display: block; }

/* ── DARK MODE ───────────────────────────────────────────── */
[data-theme="dark"] {
  --teal: #0a9ea2;
  --teal-d: #087e82;
  --teal-dk: #055e62;
  --white: #1a1a2e;
  --tx: #e2e8f0;
  --tx2: #94a3b8;
  --tx3: #475569;
}
[data-theme="dark"] body { background: #0d1117; }
[data-theme="dark"] .nav { background: #161b22; border-bottom-color: #0a9ea2; }
[data-theme="dark"] .tab { color: #8b949e; }
[data-theme="dark"] .tab:hover { background: rgba(10,158,162,.15); color: #e2e8f0; }
[data-theme="dark"] .tab.on { background: #0a9ea2; color: #fff; }
[data-theme="dark"] .siw input { background: #21262d; border-color: #30363d; color: #e2e8f0; }
[data-theme="dark"] .siw input::placeholder { color: #484f58; }
[data-theme="dark"] .hb { background: #21262d; border-color: #30363d; color: #8b949e; }
[data-theme="dark"] .gc { background: #161b22; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
[data-theme="dark"] .gi { border-top-color: rgba(255,255,255,.06); }
[data-theme="dark"] .gtt { color: #e2e8f0; }
[data-theme="dark"] .gcat { color: #8b949e; }
[data-theme="dark"] .page { background: #0d1117; }
[data-theme="dark"] .mosaic { background: #087e82; }
[data-theme="dark"] .sec-t { color: #7dd3d5; }
[data-theme="dark"] .sec-t::before { background: #7dd3d5; }
[data-theme="dark"] .sa { color: #7dd3d5; border-color: rgba(125,211,213,.25); background: rgba(125,211,213,.08); }
[data-theme="dark"] .cat-card-poki { background: #161b22; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
[data-theme="dark"] .ccp-label { color: #e2e8f0; }
[data-theme="dark"] .article { background: #161b22; box-shadow: 0 4px 20px rgba(0,0,0,.4); }
[data-theme="dark"] .art-h { color: #e2e8f0; }
[data-theme="dark"] .art-p { color: #8b949e; }
[data-theme="dark"] .art-p strong { color: #e2e8f0; }
[data-theme="dark"] .art-tag { color: #7dd3d5; }
[data-theme="dark"] .art-h2 { color: #e2e8f0; }
[data-theme="dark"] .art-gl { background: #21262d; border-color: #30363d; color: #7dd3d5; }
[data-theme="dark"] .art-gl:hover { background: #0a9ea2; color: #fff; border-color: #0a9ea2; }
[data-theme="dark"] .rw .sarr { background: #21262d; border-color: #30363d; color: #7dd3d5; }
[data-theme="dark"] .footer { background: #161b22; border-top-color: #0a9ea2; }
[data-theme="dark"] .fab p { color: #8b949e; }
[data-theme="dark"] .fct { color: #484f58; }
[data-theme="dark"] .fcol button { color: #8b949e; }
[data-theme="dark"] .fcol button:hover { color: #e2e8f0; }
[data-theme="dark"] .fcp { color: #484f58; }
[data-theme="dark"] .fsb { background: #21262d; border-color: #30363d; }
[data-theme="dark"] .fsn { color: #7dd3d5; }
[data-theme="dark"] .fph { color: #7dd3d5; }
[data-theme="dark"] .fps { color: #8b949e; }
[data-theme="dark"] .empty h3 { color: #e2e8f0; }

/* Dark mode toggle button */
.dm-btn {
  width: 34px; height: 34px;
  background: #f0fafa; border: 1.5px solid #b2e8ea;
  border-radius: 10px; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.dm-btn:hover { background: var(--teal); border-color: var(--teal); }
[data-theme="dark"] .dm-btn { background: #21262d; border-color: #30363d; }

/* Surprise Me button */
.surprise-btn {
  padding: 7px 13px;
  background: linear-gradient(135deg, #ff6b35, #ff4757);
  color: #fff; border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 12.5px; font-weight: 900;
  transition: all .2s; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255,107,53,.35);
}
.surprise-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,107,53,.5); }

/* Scroll to top */
.stt {
  position: fixed; bottom: 24px; right: 24px; z-index: 500;
  width: 42px; height: 42px;
  background: var(--teal); color: #fff;
  border-radius: 50%; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,210,214,.4);
  opacity: 0; pointer-events: none;
  transition: all .3s cubic-bezier(.175,.885,.32,1.275);
  border: none;
}
.stt.show { opacity: 1; pointer-events: auto; }
.stt:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,210,214,.5); }

/* Search autocomplete */
.siw { position: relative; }
.sug { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1.5px solid #b2e8ea; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 300; display: none; overflow: hidden; }
.sug-item { display: block; padding: 9px 13px; font-size: 13px; color: var(--tx); font-weight: 600; transition: background .15s; border-bottom: 1px solid #f0fafa; }
.sug-item:last-child { border-bottom: none; }
.sug-item:hover { background: #f0fafa; color: var(--teal-dk); }
[data-theme="dark"] .sug { background: #21262d; border-color: #30363d; }
[data-theme="dark"] .sug-item { color: #e2e8f0; border-bottom-color: #30363d; }
[data-theme="dark"] .sug-item:hover { background: #2d333b; }


/* ═════════════════════════════════════════════════════════════════════
   POKI-STYLE GAME PAGE (PIXEL-PERFECT REPLICA)
   ═════════════════════════════════════════════════════════════════════ */

/* Top Stage - Teal Gaming Area */
.game-stage-wrap {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 10px 0 24px;
}

.game-stage-grid {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 12px;
  align-items: start;
}

/* Left mini sidebar of games */
.stage-left-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage-left-bar .stage-mini-card {
  width: 80px; height: 80px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
  display: block;
  transition: transform .2s cubic-bezier(.175,.885,.32,1.275);
}
.stage-left-bar .stage-mini-card:hover { transform: scale(1.08); z-index: 5; }
.stage-left-bar .stage-mini-card img { width: 100%; height: 100%; object-fit: cover; }

/* Center Player Area */
.stage-player-center {
  display: flex;
  flex-direction: column;
  background: #00282a;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}

.stage-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.stage-poster {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
}
.stage-poster img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .3s, transform .4s;
}
.stage-poster:hover img { filter: brightness(.4); transform: scale(1.03); }

.stage-play-overlay {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.stage-play-btn {
  width: 84px; height: 84px;
  background: linear-gradient(135deg, #ff6b35, #ff4757);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
  box-shadow: 0 8px 32px rgba(255,107,53,.6);
  transition: transform .25s cubic-bezier(.175,.885,.32,1.275);
}
.stage-poster:hover .stage-play-btn { transform: scale(1.15); }
.stage-play-text {
  font-family: 'Nunito', sans-serif;
  font-size: 16px; font-weight: 900;
  color: #fff; letter-spacing: .08em;
  text-shadow: 0 3px 12px rgba(0,0,0,.8);
}

/* White Player Control Bar below screen */
.stage-ctrl-bar {
  background: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.stage-ctrl-left {
  display: flex; align-items: center; gap: 12px;
}
.stage-ctrl-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.stage-ctrl-title {
  font-family: 'Nunito', sans-serif;
  font-size: 16px; font-weight: 900;
  color: #111827;
  line-height: 1.2;
}
.stage-ctrl-sub {
  font-size: 12px;
  color: #6b7280;
}

.stage-ctrl-right {
  display: flex; align-items: center; gap: 8px;
}
.poki-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: #f0fafa;
  border: 1.5px solid #b2e8ea;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 800;
  color: #005a5c;
  cursor: pointer;
  transition: all .2s;
}
.poki-btn:hover {
  background: #00d2d6; color: #fff; border-color: #00d2d6;
}
.poki-btn.liked {
  background: #fee2e2; color: #ef4444; border-color: #fca5a5;
}

/* Right Stage Cards (Recommended tiles) */
.stage-right-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.stage-right-bar .stage-right-card {
  width: 96px; height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
  display: block;
  transition: transform .2s cubic-bezier(.175,.885,.32,1.275);
}
.stage-right-bar .stage-right-card:hover { transform: scale(1.08); z-index: 5; }
.stage-right-bar .stage-right-card img { width: 100%; height: 100%; object-fit: cover; }
.stage-right-bar .stage-right-card.span-2 {
  grid-column: span 2;
  width: 100%; height: 110px;
}

/* Below Stage: Game Tiles Row & Category Pills */
.stage-bottom-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 6px;
  margin-top: 14px;
}
.stage-bottom-tiles .tile-card {
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.12);
  display: block;
  transition: transform .2s;
}
.stage-bottom-tiles .tile-card:hover { transform: scale(1.08); z-index: 4; }
.stage-bottom-tiles .tile-card img { width: 100%; height: 100%; object-fit: cover; }

.stage-cat-pills {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-top: 14px; padding-bottom: 4px;
}
.stage-cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border-radius: 99px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 800;
  color: #003a3b;
  box-shadow: 0 3px 10px rgba(0,0,0,.1);
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cat-pill:hover {
  transform: translateY(-2px);
  background: #003a3b; color: #fff;
}

/* ═════════════════════════════════════════════════════════════════════
   WHITE POKI PROFILE CARD (ABOUT THIS GAME)
   ═════════════════════════════════════════════════════════════════════ */
.poki-profile-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 38px 42px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  margin-top: 24px;
  margin-bottom: 36px;
}

.profile-top-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.profile-thumb-box {
  width: 110px; height: 110px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  background: var(--teal);
}
.profile-thumb-box img {
  width: 100%; height: 100%; object-fit: cover;
}

.profile-title-area {
  flex: 1;
}
.profile-category-tag {
  font-size: 11.5px;
  font-weight: 900;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
  font-family: 'Nunito', sans-serif;
}
.profile-h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 900;
  color: #111827;
  line-height: 1.15;
  margin-bottom: 6px;
}
.profile-developer-line {
  font-size: 13.5px;
  color: #6b7280;
  margin-bottom: 12px;
}
.profile-developer-line strong {
  color: #111827;
}
.profile-desc-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: #4b5563;
  max-width: 820px;
}

/* 4 Metrics Badges */
.poki-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.metric-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
}
.metric-icon-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.metric-icon-circle.yellow { background: #fef3c7; color: #d97706; }
.metric-icon-circle.pink { background: #fce7f3; color: #db2777; }
.metric-icon-circle.teal { background: #ccfbf1; color: #0f766e; }
.metric-icon-circle.purple { background: #f3e8ff; color: #7e22ce; }

.metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
}
.metric-val {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

/* Screenshots Gallery */
.poki-gallery-section {
  margin-bottom: 32px;
}
.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-img-wrap {
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  background: #e2e8f0;
}
.gallery-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.gallery-img-wrap:hover img { transform: scale(1.05); }

/* Specs / Details Table */
.poki-specs-section {
  margin-bottom: 34px;
}
.poki-section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 19px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 16px;
}

.specs-list {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
}
.spec-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 13px 20px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13.5px;
  align-items: center;
}
.spec-item:last-child { border-bottom: none; }
.spec-item:nth-child(odd) { background: #fafafa; }
.spec-key {
  font-weight: 800;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
}
.spec-val {
  color: #4b5563;
  line-height: 1.5;
}
.spec-val strong { color: #111827; }

/* Related Category Chips inside White Box */
.poki-rel-cats-section {
  margin-bottom: 32px;
}
.rel-cat-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.rel-pill {
  padding: 6px 14px;
  background: #f0fafa;
  border: 1.5px solid #b2e8ea;
  border-radius: 99px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #005a5c;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: all .2s;
}
.rel-pill:hover {
  background: #00d2d6; color: #fff; border-color: #00d2d6;
}

/* FAQ Section */
.poki-faq-section {
  margin-bottom: 24px;
}
.faq-accordion {
  display: flex; flex-direction: column; gap: 10px; margin-top: 12px;
}
.faq-box {
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  transition: all .2s;
}
.faq-box.open {
  border-color: #00d2d6;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,210,214,.12);
}
.faq-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.faq-q {
  font-family: 'Nunito', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #1e293b;
}
.faq-icon {
  font-size: 12px;
  color: #0284c7;
  transition: transform .2s;
}
.faq-box.open .faq-icon { transform: rotate(180deg); }
.faq-body {
  display: none;
  padding: 0 20px 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #475569;
  border-top: 1px solid #f1f5f9;
}
.faq-box.open .faq-body { display: block; }

/* Responsive adjustments */
@media(max-width: 1024px) {
  .game-stage-grid {
    grid-template-columns: 1fr;
  }
  .stage-left-bar, .stage-right-bar { display: none; }
}
@media(max-width: 768px) {
  .poki-profile-card { padding: 24px 20px; }
  .profile-top-header { flex-direction: column; gap: 16px; }
  .profile-thumb-box { width: 80px; height: 80px; }
  .spec-item { grid-template-columns: 1fr; gap: 4px; }
}
