/* Zentra Games — light, colourful, Poki-style portal */
* { box-sizing: border-box; }
:root {
  --teal: #00a896;
  --teal-dark: #00897b;
  --mint: #e6f7f3;
  --ink: #102a43;
  --muted: #627d98;
  --bg: #eefaf4;
  --card: #ffffff;
  --gold: #f6c453;
  --radius: 16px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background:
    radial-gradient(900px 320px at 85% -5%, rgba(0,168,150,.14), transparent 60%),
    radial-gradient(700px 300px at 5% 0%, rgba(246,196,83,.16), transparent 55%),
    radial-gradient(800px 400px at 50% 110%, rgba(167,139,250,.12), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #00a896, #f6c453, #f472b6, #60a5fa) 1;
  box-shadow: 0 2px 10px rgba(16, 42, 67, .08);
}
.topbar-in {
  max-width: 1240px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-size: 24px; font-weight: 900; letter-spacing: .5px; color: var(--ink); line-height: 1; }
.brand-name span { color: var(--teal); }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.nav-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: var(--mint); color: var(--ink); font-weight: 700; font-size: 14px;
  border: 1px solid transparent; cursor: pointer;
}
.pill:hover { background: #d2f0e8; text-decoration: none; }
.pill.active { background: var(--teal); color: #fff; }
.search-box { flex: 1; min-width: 160px; max-width: 340px; margin-left: auto; position: relative; }
.search-box input {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: 999px;
  border: 2px solid #dcefe8; font-size: 15px; outline: none; background: #f8fdfb;
}
.search-box input:focus { border-color: var(--teal); background: #fff; }
.search-box .s-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; }
.guest-chip {
  padding: 8px 12px; border-radius: 999px; background: #fff7e0;
  border: 1px solid #f0dfa0; font-size: 13px; font-weight: 700; color: #7a5b00; white-space: nowrap;
}

/* ---------- Hero mosaic ---------- */
.hero { padding: 22px 0 8px; }
.hero h1 {
  font-size: 34px; margin: 0 0 4px; font-weight: 900; letter-spacing: .3px;
  background: linear-gradient(90deg, #00897b, #2563eb 55%, #7c3aed);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.mosaic {
  display: grid; gap: 14px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 132px;
}
.tile {
  position: relative; display: block; border-radius: 18px;
  overflow: hidden; color: #fff; cursor: pointer;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 6px 18px rgba(16, 42, 67, .18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 14px 28px rgba(16, 42, 67, .28); text-decoration: none; }
.tile.has-art .t-ico { display: none; }
.tile.has-art .t-name { font-size: 17px; }
.tile .t-ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.tile .t-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
  font-weight: 800; font-size: 16px; text-shadow: 0 1px 4px rgba(0,0,0,.45);
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.tile .t-cat {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800;
  background: rgba(255,255,255,.92); color: var(--ink);
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
}
.tile .t-badge {
  position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800;
  background: var(--gold); color: #4a3200; padding: 3px 9px; border-radius: 999px;
}
.tile.big { grid-column: span 3; grid-row: span 2; }
.tile.big .t-ico { font-size: 110px; }
.tile.big .t-name { font-size: 24px; }
.tile.med { grid-column: span 2; grid-row: span 1; }
.tile.small { grid-column: span 1; grid-row: span 1; }
.tile.small .t-ico { font-size: 44px; }
.tile.small .t-name { font-size: 13px; }
.surprise-row { display: flex; gap: 12px; align-items: center; margin: 16px 0 4px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; border: none;
  font-size: 15px; font-weight: 800; cursor: pointer; color: #fff; background: var(--teal);
}
.btn:hover { background: var(--teal-dark); text-decoration: none; }
.btn.gold { background: linear-gradient(180deg, #ffd76a, #f6c453); color: #4a3200; box-shadow: 0 4px 14px rgba(246,196,83,.5); }
.btn.gold:hover { background: linear-gradient(180deg, #ffdf8a, #eab93f); }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid #dcefe8; }
.btn.ghost:hover { border-color: var(--teal); }

/* ---------- Carousels / rows ---------- */
.row-sec { padding: 18px 0 6px; }
.row-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.row-head h2 { margin: 0; font-size: 22px; }
.row-head a { font-size: 14px; font-weight: 700; }
.row-head .band { width: 10px; height: 22px; border-radius: 4px; background: linear-gradient(180deg, #f6c453, #f472b6); display: inline-block; vertical-align: -3px; margin-right: 8px; }
.tiles-row {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.tiles-row .tile { height: 132px; }
.tiles-row .tile .t-ico { font-size: 56px; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 20px 10px; border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, #e6f7f3);
  border: 2px solid #dcefe8; font-weight: 800; font-size: 16px; color: var(--ink);
  box-shadow: 0 3px 10px rgba(16, 42, 67, .07);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat-tile:nth-child(8n+2) { background: linear-gradient(160deg, #fff, #fef3c7); }
.cat-tile:nth-child(8n+3) { background: linear-gradient(160deg, #fff, #fce7f3); }
.cat-tile:nth-child(8n+4) { background: linear-gradient(160deg, #fff, #dbeafe); }
.cat-tile:nth-child(8n+5) { background: linear-gradient(160deg, #fff, #ede9fe); }
.cat-tile:nth-child(8n+6) { background: linear-gradient(160deg, #fff, #dcfce7); }
.cat-tile:nth-child(8n+7) { background: linear-gradient(160deg, #fff, #ffedd5); }
.cat-tile:nth-child(8n+8) { background: linear-gradient(160deg, #fff, #cffafe); }
.cat-tile:hover { border-color: var(--teal); text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(16, 42, 67, .14); }
.cat-tile .c-ico { font-size: 34px; }
.cat-tile small { font-weight: 600; color: var(--muted); font-size: 13px; }

/* ---------- Game page ---------- */
.game-page { padding: 20px 0 8px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.player-wrap {
  background: #102a43; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 42, 67, .25); position: relative;
}
.player-wrap iframe { display: block; width: 100%; height: 640px; border: 0; background: #fff; }
.player-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #fff; border: 1px solid #dcefe8; border-top: none;
  border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap;
}
.player-bar .g-ico { font-size: 34px; }
.player-bar .g-title { font-size: 20px; font-weight: 900; line-height: 1.1; }
.player-bar .g-dev { font-size: 13px; color: var(--muted); }
.like-btns { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.like-btn {
  padding: 8px 14px; border-radius: 999px; border: 2px solid #dcefe8; background: #fff;
  font-size: 15px; font-weight: 800; cursor: pointer;
}
.like-btn:hover { border-color: var(--teal); }
.like-btn.on-like { background: #e6f7f3; border-color: var(--teal); }
.like-btn.on-dislike { background: #fdecec; border-color: #e57373; }
.game-info { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin: 18px 0; }
.info-card { background: #fff; border: 1px solid #dcefe8; border-radius: var(--radius); padding: 18px 20px; }
.info-card h2 { margin: 0 0 8px; font-size: 20px; }
.info-card h3 { margin: 16px 0 6px; font-size: 16px; }
.info-card p { margin: 0 0 8px; color: #334e68; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--mint); font-size: 13px; font-weight: 700; color: var(--ink); }
.fact { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #dcefe8; font-size: 14px; }
.fact:last-child { border-bottom: none; }
.fact b { font-weight: 800; }
.ext-play {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 60px 20px; background: linear-gradient(135deg, #0f2a5c, #274b8f); color: #fff; text-align: center;
}
.ext-play .x-ico { font-size: 80px; }
.ext-play h2 { margin: 0; font-size: 26px; color: #fff; }
.ext-play p { margin: 0; color: #cfe0ff; max-width: 520px; }

/* ---------- All games / search ---------- */
.alpha-head { font-size: 22px; font-weight: 900; margin: 22px 0 4px; padding-top: 14px; border-top: 2px solid #dcefe8; }
.empty-note { padding: 30px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #dcefe8; border-radius: var(--radius); }

/* ---------- Footer ---------- */
footer { margin-top: 40px; background: #102a43; color: #cfe0ff; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 34px 16px 26px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-in h3 { color: #fff; margin: 0 0 10px; font-size: 17px; }
.foot-in p { margin: 0 0 8px; font-size: 14px; }
.foot-in a { color: #8fd8cb; display: block; padding: 3px 0; font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.foot-brand img { width: 40px; height: 40px; object-fit: contain; }
.foot-brand b { color: #fff; font-size: 19px; }
.foot-bottom { border-top: 1px solid #24405e; padding: 14px 16px; text-align: center; font-size: 13px; color: #8aa0b8; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 118px; }
  .tile.big { grid-column: span 4; grid-row: span 2; }
  .tile.med { grid-column: span 2; }
  .tile.small { grid-column: span 2; }
  .game-info { grid-template-columns: 1fr; }
  .player-wrap iframe { height: 560px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; }
  .tile.big { grid-column: span 2; }
  .tile.med, .tile.small { grid-column: span 1; }
  .tile .t-ico { font-size: 48px; }
  .hero h1 { font-size: 24px; }
  .brand-name { font-size: 20px; }
  .search-box { order: 3; max-width: none; flex-basis: 100%; }
  .player-wrap iframe { height: 520px; }
  .foot-in { grid-template-columns: 1fr; }
  .like-btns { margin-left: 0; }
}
