:root {
  --bg: #0a0f1e;
  --bg-card: #111827;
  --bg-surf: #172033;
  --accent: #00d4ff;
  --a2: #ff2d55;
  --a3: #7c3aed;
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #CD7F32;
  --green: #22c55e;
  --txt: #f0f4ff;
  --dim: #b0bcd4;
  --mute: #6e7f9a;
  --border: rgba(0, 212, 255, .1);
  --glow: 0 0 22px rgba(0, 212, 255, .35);
  --r: 12px;
  --hdr: 62px;
  --warning-bg: #ffc107;
  --warning-txt: #332701;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  min-height: 100vh
}

a {
  text-decoration: none;
  color: inherit
}

img {
  display: block;
  max-width: 100%
}

button {
  cursor: pointer;
  font-family: inherit
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px
}

::-webkit-scrollbar-track {
  background: var(--bg)
}

::-webkit-scrollbar-thumb {
  background: var(--a3);
  border-radius: 3px
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(rgba(0, 212, 255, .015)1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 255, .015)1px, transparent 1px);
  background-size: 48px 48px
}

/* HEADER */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hdr);
  z-index: 2000;
  background: rgba(7, 11, 20, .96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  justify-content: space-between;
}

.hdr-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 200px;
}

.logo img {
  height: clamp(30px, 4vw, 50px);
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 2px;
  list-style: none;
  flex-shrink: 0
}

.nav a {
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
  transition: all .2s;
  white-space: nowrap
}

.nav a:hover,
.nav a.on {
  color: var(--accent);
  background: rgba(0, 212, 255, .08)
}

.hdr-srch {
  flex: 1;
  max-width: 420px;
  margin-left: auto
}

.srch-form {
  display: flex;
  height: 38px
}

.srch-wrap {
  position: relative;
  flex: 1
}

.srch-wrap input {
  width: 100%;
  height: 100%;
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0 36px 0 12px;
  color: var(--txt);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s
}

.srch-wrap input:focus {
  border-color: var(--accent)
}

.srch-wrap input::placeholder {
  color: var(--dim)
}

.voice-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 36px;
  background: transparent;
  border: none;
  color: var(--dim);
  font-size: 15px;
  transition: color .2s;
  display: flex;
  align-items: center;
  justify-content: center
}

.voice-btn:hover {
  color: var(--accent)
}

.voice-btn.on {
  color: var(--a2)
}

.srch-go {
  /* height: 100%; */
  padding: 0 14px;
  background: var(--accent);
  border: none;
  border-radius: 0 8px 8px 0;
  color: #000;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background .2s
}

.srch-go:hover {
  background: #00bfe8
}

.v-bar {
  display: none;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 4px
}

.v-bar.show {
  display: flex
}

.v-bar span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--a2);
  animation: vw .6s ease-in-out infinite alternate
}

.v-bar span:nth-child(1) {
  height: 6px;
  animation-delay: 0s
}

.v-bar span:nth-child(2) {
  height: 14px;
  animation-delay: .1s
}

.v-bar span:nth-child(3) {
  height: 18px;
  animation-delay: .2s
}

.v-bar span:nth-child(4) {
  height: 14px;
  animation-delay: .3s
}

.v-bar span:nth-child(5) {
  height: 6px;
  animation-delay: .4s
}

@keyframes vw {
  from {
    opacity: .4
  }

  to {
    opacity: 1
  }
}

#v-status {
  font-size: 10px;
  color: var(--a2);
  display: none;
  padding-left: 8px;
  white-space: nowrap
}

#v-status.show {
  display: block
}

.hdr-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0
}

.btn-login {
  background: transparent;
  border: 1px solid var(--dim);
  color: var(--dim);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all .2s
}

.btn-login:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.btn-join {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all .2s
}

.btn-join:hover {
  transform: translateY(-1px)
}

/* ── LAYOUT ── */
.layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--hdr);
  position: relative;
  align-items: flex-start;
}

/* ── MAIN ── */
.main {
  flex: 1;
  overflow-x: hidden;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* PAGE WRAPPER */
.gp {
  padding: 12px 18px 0
}



/* Thumbnails */
.hero-thumbs {
  flex-shrink: 0;
  display: flex;
  gap: 5px;
  padding: 8px;
  border-left: 1px solid rgba(99, 102, 241, .2);
  overflow: hidden;
  background: rgba(4, 9, 26, .3)
}

.ht-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 110px;
  flex-shrink: 0
}

.ht {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(99, 102, 241, .2);
  display: block;
  min-height: 0;
  transition: all .22s
}

.ht:hover {
  border-color: rgba(0, 212, 255, .6);
  box-shadow: 0 0 16px rgba(0, 212, 255, .35);
  transform: scale(1.04)
}

.ht img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s
}

.ht:hover img {
  transform: scale(1.1)
}

.ht-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, .25), rgba(0, 212, 255, .15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transition: opacity .2s
}

.ht:hover .ht-ov {
  opacity: 1
}

.ht-nm {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(4, 9, 26, .9), transparent);
  padding: 12px 5px 4px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(165, 243, 255, .9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .2s
}

.ht:hover .ht-nm {
  opacity: 1
}

/* ── AD COLUMN ── */
.ad-col {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: rgba(7, 11, 20, .5);
  border-left: 1px solid var(--border)
}

.ad-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  padding: 2px 0 5px
}

.ad-slot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

/* .ad-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  width: 100%;
  height: 100%
}

.ad-ph-ico {
  font-size: 26px;
  opacity: .28
}

.ad-ph-txt {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mute)
}

.ad-ph-sz {
  font-size: 8px;
  color: var(--mute);
  opacity: .5
} */

/* BREADCRUMB */
.bc {
  font-size: 11px;
  color: var(--mute);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap
}

.bc a {
  color: var(--mute)
}

.bc a:hover {
  color: var(--accent)
}

/* TITLE ROW */
.gt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap
}

.gt-title {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 900
}

.gt-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px
}

.bg-hot {
  background: var(--a2);
  color: #fff
}

.bg-new {
  background: var(--accent);
  color: #000
}

.gt-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--dim);
  background: var(--bg-surf);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 5px;
  transition: all .15s
}

.gt-cat:hover {
  color: var(--accent);
  border-color: var(--accent)
}

.gt-stars {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: -1px;
  margin-left: auto
}

.gt-plays {
  font-size: 11px;
  color: var(--mute);
  font-family: 'Inter', sans-serif
}

.content-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start
}

.content-left {
  flex: 1;
  min-width: 0
}

.content-right {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px;
  box-sizing: border-box;
}

/* GAME AREA */
.game-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--r);
  overflow: hidden;
  background: #000;
  border: 2px solid var(--border)
}

/* SPLASH */
.game-splash {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2
}

.splash-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.2);
  transition: filter .3s
}

.game-splash:hover .splash-img {
  filter: brightness(.3)
}

.splash-ov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px
}

.splash-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b5ef4, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  border: 3px solid rgba(165, 180, 252, .4);
  box-shadow: 0 0 50px rgba(91, 94, 244, .8), 0 0 0 14px rgba(91, 94, 244, .12);
  transition: transform .2s, box-shadow .2s
}

.game-splash:hover .splash-btn {
  transform: scale(1.1);
  box-shadow: 0 0 55px rgba(91, 94, 244, .8), 0 0 0 14px rgba(91, 94, 244, .12);
}

.splash-lbl {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9)
}

.splash-sub {
  font-size: 12px;
  color: rgba(255, 255, 255);
  font-family: 'Inter', sans-serif
}

/* RUFFLE CONTAINER */
#ruffle-player {
  width: 100%;
  height: 100%;
  display: none;
}

/* Target the actual custom element Ruffle creates */
#ruffle-player ruffle-player {
  width: 100% !important;
  height: 100% !important;
}

/* IFRAME */
.game-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block
}

.frame-loader {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 3;
  transition: opacity .4s
}

.frame-loader.hide {
  opacity: 0;
  pointer-events: none
}

.loader-ring {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 212, 255, .15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.loader-txt {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--dim)
}

/* CONTROLS */
.ctrl-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0;
  flex-wrap: wrap
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .2s;
  white-space: nowrap
}

.ctrl-btn:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.ctrl-play {
  background: linear-gradient(135deg, #5b5ef4, #7c3aed);
  color: #fff;
  border-color: rgba(165, 180, 252, .3);
  box-shadow: 0 0 18px rgba(91, 94, 244, .4)
}

.ctrl-play:hover {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  color: #fff
}

.ctrl-liked {
  color: var(--green);
  border-color: var(--green);
}

.ctrl-disliked {
  color: var(--a2);
  border-color: var(--a2);
}

.ctrl-ext {
  font-size: 10px;
  margin-left: auto
}

@media (max-width: 768px) {
  .qr-mobile{
    display: none;
  }
}

/* GAME INFO */
.gi-card,
.gi-card2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 14px
}

.gi-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(0, 212, 255, .06), transparent);
  border-bottom: 1px solid var(--border)
}

.gi-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border)
}

.gi-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.gi-gname {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700
}

.gi-gmeta {
  font-size: 11px;
  color: var(--mute);
  margin-top: 2px;
  font-family: 'Inter', sans-serif
}

.gi-body {
  padding: 12px 16px
}

.gi-row {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 212, 255, .05);
  font-size: 13px
}

.gi-row:last-child {
  border-bottom: none
}

.gi-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--mute);
  min-width: 100px;
  flex-shrink: 0;
  padding-top: 1px
}

.gi-val {
  color: var(--dim);
  font-family: 'Inter', sans-serif;
  flex: 1;
  line-height: 1.6
}

.gi-val a {
  color: var(--accent)
}

.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-top: 1px solid var(--border)
}

.share-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mute);
  margin-right: 4px
}

.share-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-surf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all .2s;
  cursor: pointer;
  font-weight: 700;
  color: var(--txt)
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent)
}

/* RELATED GAMES GRID */
.rel-sec {
  margin-top: 16px
}

.rel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px
}

.rel-ttl {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px
}

.rel-ic {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--a3), #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0
}

.rel-va {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase
}

.rel-va:hover {
  color: #00bfe8
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px
}

/* ── HOT STRIP ── */
.hot-strip {
  display: flex;
  background: var(--bg-card);
  /* border-bottom: 2px solid rgba(0, 212, 255, .1) */
}

.hot-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--txt);
  white-space: nowrap;
  border-right: 1px solid var(--border);
  flex-shrink: 0
}

.hot-games {
  display: flex;
  flex: 1;
  overflow: hidden
}

.hot-game {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-right: 1px solid var(--border);
  transition: background .15s;
  position: relative
}

.hot-game:last-child {
  border-right: none
}

.hot-game:hover {
  background: rgba(255, 255, 255, .04)
}

.hot-thumb {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border)
}

.hot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.hot-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88px
}

.hot-cat {
  font-size: 10px;
  color: var(--txt);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 2px
}

.hot-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 7px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--a2);
  color: #fff;
  letter-spacing: .5px
}

/* ── CATEGORY PILLS ── */
.cat-strip {
  display: flex;
  gap: 8px;
  padding: 16px 22px 8px;
  overflow-x: auto;
  scrollbar-width: none
}

.cat-strip::-webkit-scrollbar {
  display: none
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 7px 14px;
  color: var(--txt);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .2s;
  white-space: nowrap
}

.cat-pill:hover,
.cat-pill.on {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 255, .06)
}

/* ── SECTION ROWS ── */
.section {
  padding: 0 22px;
  margin-bottom: 4px
}

.sec-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px
}

.sec-ttl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase
}

.sec-ic {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0
}

.ic-new {
  background: linear-gradient(135deg, var(--accent), #0050ff)
}

.ic-hot {
  background: linear-gradient(135deg, var(--a2), #ff6b35)
}

.ic-cat {
  background: linear-gradient(135deg, var(--a3), #a855f7)
}

.sec-va {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color .2s
}

.sec-va:hover {
  color: #00bfe8
}

.row-wrap {
  position: relative
}

.scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  /* scrollbar-width: thin; */
  scrollbar-width: none;
  /* scrollbar-color: var(--a3) transparent */
}

.scroll-row::-webkit-scrollbar {
  height: 4px
}

.scroll-row::-webkit-scrollbar-thumb {
  background: var(--a3);
  border-radius: 2px
}

.row-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--txt);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all .2s
}

.row-arr:hover {
  border-color: var(--accent);
  box-shadow: var(--glow)
}

.arr-l {
  left: -14px
}

.arr-r {
  right: -14px
}

/* ── GAME CARD ── */
.card {
  flex-shrink: 0;
  width: 155px;
  display: block;
  transition: transform .22s
}

/* .card:hover {
      transform: translateY(-6px)
    } */

.card-thumb {
  width: 155px;
  height: 130px;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .05);
  transition: all .22s
}

.card:hover .card-thumb {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(0, 212, 255, .3), 0 10px 28px rgba(0, 0, 0, .5)
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
  display: block
}

.card:hover .card-thumb img {
  transform: scale(1.08)
}

.recent-section .card{
  flex-shrink: 0;
  width: 80px;
  display: block;
  transition: transform .22s;
}

.recent-section .card-thumb{
  width: 100%;
  height: 80px;
}

.recent-section .card-info, .recent-section .thumb-video, .recent-section .card-ov{
  display: none;
}


.recent-section .scroll-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%; /* Ensure the row spans the full container */
}

.recent-ad-filler {
    flex: 1; /* This is the magic: it grows to fill the gap */
    min-width: 200px; /* Minimum width so the ad doesn't disappear */
    height: 80px; /* Match the height of your recent game cards */
    background: var(--bg-surf);
    border: 1px dashed var(--border);
    border-radius: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-placeholder {
    color: var(--mute);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-fb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surf);
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(0, 212, 255, .3)
}

.card-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2
}

.badge-new {
  background: var(--accent);
  color: #000
}

.badge-hot {
  background: var(--a2);
  color: #fff
}

.card-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 7px;
  opacity: 0;
  transition: opacity .2s;
  z-index: 1
}

.card:hover .card-ov {
  opacity: 1
}

.play-ico {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #000;
  font-weight: bold
}

.plays-lbl {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, .8)
}

.card-info {
  padding: 6px 1px 0
}

.card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  gap: 4px;
  min-width: 0
}

.card-cat {
  font-size: 9px;
  color: var(--txt);
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1
}

.card-stars {
  font-size: 9px;
  color: var(--gold);
  letter-spacing: -1px;
  flex-shrink: 0
}

/* ── GRID PAGE ── */
.grid-page {
  padding: 0 22px
}

.grid-hdr {
  padding: 16px 0 14px
}

.grid-h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: capitalize;
  background: linear-gradient(130deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  display: flex;
}

.grid-meta {
  font-size: 13px;
  color: var(--dim);
  margin-top: 4px
}

.cat-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px
}

.chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--dim);
  transition: all .2s
}

.chip:hover,
.chip.on {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 255, .07)
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px
}

.no-res {
  text-align: center;
  padding: 60px 20px
}

.no-res-ico {
  font-size: 52px;
  margin-bottom: 14px
}

.no-res-ttl {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px
}

.no-res-sub {
  color: var(--dim);
  font-size: 16px
}

/* ── TOP 10 ── */
.top10 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  padding: 0 22px
}

.t10 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .2s
}

.t10:hover {
  border-color: var(--accent);
  transform: translateX(3px)
}

.t10-rank {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 900;
  min-width: 32px;
  text-align: center
}

.r1 {
  color: var(--gold)
}

.r2 {
  color: var(--silver)
}

.r3 {
  color: var(--bronze)
}

.rn {
  color: var(--mute)
}

.t10-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border)
}

.t10-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.t10-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.t10-plays {
  font-size: 10px;
  color: var(--dim);
  margin-top: 2px;
  font-family: 'Inter', sans-serif
}

/* ── FOOTER ── */
/* ═══════════════════════════════════════════════════════════════
   FOOTER — fully responsive
   Breakpoints:
     ≥1025px  → 4-col grid (company | games | legal | categories)
     769–1024 → 3-col (company spans full row top, then games | legal | categories)
     481–768  → 2-col (company | games+legal stacked; categories HIDDEN)
     ≤480px   → 1-col stack; categories HIDDEN
   ═══════════════════════════════════════════════════════════════ */

footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 32px) clamp(16px, 2vw, 24px);
  position: relative;
  z-index: 1;
  /* Ensure footer never bleeds under the sidebar */
  clear: both;
}

/* ── Top grid ── */
.ft-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: clamp(20px, 3vw, 36px);
  margin-bottom: clamp(20px, 3vw, 28px);
  align-items: start
}

/* ── Logo ── */
.ft-logo {
  margin-bottom: 10px
}

.ft-logo img {
  width: clamp(70px, 10vw, 90px);
  height: auto;
  display: block
}

/* ── Description ── */
.ft-desc {
  font-size: clamp(12px, 1.3vw, 14px);
  color: var(--dim);
  line-height: 1.65;
  font-family: 'Inter', sans-serif;
  max-width: 340px
}

/* ── Section headings ── */
.ft-h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border)
}

/* ── Nav links (Games / Legal) ── */
.ft-links {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.ft-links a {
  font-size: clamp(12px, 1.3vw, 14px);
  color: var(--mute);
  transition: color .2s, padding-left .2s;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px
}

.ft-links a:hover {
  color: var(--accent);
  padding-left: 4px
}

.ft-links a.on {
  color: var(--accent)
}

.ft-links img{
  width: 16px;
}

/* ── Category pill grid ── */
.ft-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.ft-cats a {
  font-size: 11px;
  color: var(--dim);
  background: var(--bg-surf);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 5px;
  transition: color .2s, border-color .2s, background .2s;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px
}

.ft-cats a:hover,
.ft-cats a.on {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 212, 255, .06)
}

.ft-cats .sb-ic{
  width: 20px;
}

/* ── Bottom bar ── */
.ft-bot {
  border-top: 1px solid var(--border);
  padding-top: clamp(12px, 2vw, 16px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px
}

.ft-copy {
  font-size: clamp(11px, 1.2vw, 13px);
  color: var(--dim);
  font-family: 'Inter', sans-serif;
  line-height: 1.4
}

.ft-copy .fa-heart {
  color: var(--a2)
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet landscape: 3-col, company info on top row ── */
@media (max-width: 1024px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto
  }

  /* Company info spans all 3 cols in row 1 */
  .ft-grid > div:first-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 20px
  }

  .ft-logo {
    margin-bottom: 0;
    flex-shrink: 0
  }

  .ft-desc {
    max-width: 480px
  }
}

/* ── Tablet portrait: 2-col, categories hidden ── */
@media (max-width: 768px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr
  }

  /* Company info: full-width row */
  .ft-grid > div:first-child {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 10px
  }

  /* Categories column: hidden on tablet portrait and below */
  .ft-grid > div:last-child {
    display: none
  }

  .ft-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px
  }
}

/* ── Mobile: single column, categories hidden ── */
@media (max-width: 480px) {
  footer {
    padding: 20px 16px 16px
  }

  .ft-grid {
    grid-template-columns: 1fr;
    gap: 20px
  }

  /* Company info back to vertical */
  .ft-grid > div:first-child {
    flex-direction: column;
    gap: 8px
  }

  .ft-desc {
    font-size: 12px
  }

  .ft-h {
    margin-bottom: 8px
  }

  .ft-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px
  }

  .ft-copy {
    font-size: 11px
  }
}

/* ── RESPONSIVE ── */
@media(max-width:1180px) {
  .ad-col {
    width: 280px
  }
}

@media(max-width:980px) {
  .ht-col:nth-child(n+3) {
    display: none
  }

  .daily {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:720px) {
  .hero-thumbs {
    display: none
  }

  .hero-txt {
    padding: 18px
  }

  .sb-a span:not(.sb-ic) {
    display: none
  }

  .sb-sec,
  .sb-div {
    display: none
  }

  .daily {
    grid-template-columns: 1fr
  }

  /* .nav li:nth-child(n+4) {
        display: none
      } */

  .hot-game:nth-child(n+4) {
    display: none
  }
}

@media(max-width:480px) {
  .hero {
    min-height: 380px;
    height: auto;
    max-height: none
  }

  /* .hdr-btns {
        display: none
      } */
}

/* ══ PAGINATION CONTAINER ══ */
.pg-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  user-select: none;
}

/* ══ INDIVIDUAL BUTTONS ══ */
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

/* ══ HOVER STATE ══ */
.pg-btn:hover:not(.pg-disabled):not(.pg-current) {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--a3, #ff4757);
  transform: translateY(-2px);
}

/* ══ CURRENT ACTIVE PAGE ══ */
.pg-btn.pg-current {
  background: var(--a3, #ff4757);
  color: #fff;
  border-color: var(--a3, #ff4757);
  cursor: default;
}

/* ══ DISABLED STATE (Prev/Next) ══ */
.pg-btn.pg-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* ══ ELLIPSIS (…) ══ */
.pg-ellipsis {
  color: var(--mute, #888);
  font-size: 14px;
  padding: 0 4px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 600px) {
  .pg-nav {
    gap: 5px;
  }

  .pg-btn {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
    padding: 0 8px;
  }
}

/* Video thumbnails */
.media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  /* This uses PHP to set the specific background for this card */
  background-size: cover;
  background-position: center;
}

.thumb-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-thumb:hover .thumb-video {
  opacity: 1;
}

/* SEARCH RESULTS */
.srch-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-top: none;
  z-index: 99999999;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.srch-item {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 12px;
  color: #eee;
  text-decoration: none;
  border-bottom: 1px solid #222;
}

.srch-item:hover {
  background: #252525;
}

.srch-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 12px;
}

.srch-item.srch-active {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-left: 3px solid #00d4ff;
  outline: none;
}

/* Sidebar section heading */
.sb-ttl {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--txt);
  padding: 4px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px
}

.sb-ttl-ic {
  font-size: 13px
}

/* Sidebar game rows */
.sb-list {
  display: flex;
  flex-direction: column;
  gap: 5px
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color .15s;
  position: relative
}

.sb-item:hover {
  border-color: var(--accent);
  background: rgba(0, 212, 255, .04)
}

.sb-img {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border)
}

.sb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.sb-info {
  flex: 1;
  min-width: 0
}

.sb-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.sb-meta {
  font-size: 10px;
  color: var(--mute);
  margin-top: 2px;
  letter-spacing: .4px
}

.sb-play {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 212, 255, .12);
  border: 1px solid rgba(0, 212, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--accent);
  flex-shrink: 0;
  transition: all .15s
}

.sb-item:hover .sb-play {
  background: var(--accent);
  color: #000;
  border-color: var(--accent)
}

.sb-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--accent);
  color: #000
}


/* RESPONSIVE */
@media(max-width:1100px) {
  .content-right {
    width: 280px
  }
}

@media(max-width:900px) {
  .content-right {
    width: 260px
  }

  .nav {
    display: none !important;
  }
}

@media(max-width:768px) {
  .content-right {
    display: none
  }

  .sb-a span:not(.sb-ic) {
    display: none
  }

  .sb-sec,
  .sb-div {
    display: none
  }

  .sidebar {
    display: none !important;
  }

  .layout {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .logo img {
    max-height: 32px;
    /* Slightly smaller for tablet */
  }

  .indent-icon {
    display: none;
  }
}

@media (max-width: 480px) {
  .hdr-brand {
    gap: 8px;
  }

  .hdr-btns {
    gap: 4px;
  }

  .btn-login,
  .btn-join {
    padding: 6px 10px;
    font-size: 10px;
  }

  .logo {
    max-width: 150px;
  }

  .logo img {
    max-height: 28px;
  }
}

/* Mobile Search Trigger Icon */
.mobile-search-trigger {
  display: none;
  font-size: 18px;
  color: var(--dim);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  transition: color 0.2s;
  flex-shrink: 0;
  z-index: 999999;
}

/* The Full Screen Overlay */
.m-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #0e1624;
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.m-search-hdr {
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.m-srch-form {
  flex-grow: 1;
  display: flex;
  gap: 10px;
}

.m-srch-form input {
  flex-grow: 1;
  background: #1c273a;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 15px;
  color: white;
  max-width: 90%;
}

.close-m-search {
  padding: 10px;
}

/*Search Style Grid */
.m-search-content {
  padding: 20px;
  color: white;
  display: block !important;
}

.overlay-sec h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}

.m-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 25px;
}

.feat-box {
  background: #1c273a;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  color: var(--txt);
  text-decoration: none;
}

.m-cat-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--txt);
  text-decoration: none;
}

.m-cat-row span {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between the SVG and the Text */
}

.m-cat-icon {
    display: inline-block;
    vertical-align: middle;
    /* This ensures the icon doesn't shrink if the text is long */
    flex-shrink: 0; 
}

/* Visibility Breakpoints */
@media (max-width: 991px) {
  .hdr-srch {
    display: none !important;
  }

  .mobile-search-trigger {
    display: block;
  }

  .hdr {
    gap: 8px;
  }
}

#m-search-results {
  display: none;
  padding: 15px;
  background: #121b2a;
}

/* When the user starts typing, we will toggle these classes via JS */
.searching .m-search-content {
  display: none;
}

.searching #m-search-results {
  display: block;
}

.search-results-box {
  /* position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #0e1624; 
    z-index: 10001; 
    display: none;
    overflow-y: auto;
    padding: 15px; */
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  margin: 0;
  /* Prevents pushing the header */
  padding-top: 10px;
}

#m-search-overlay {
  display: none;
  /* Keeps it hidden until clicked */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0e1624;
  z-index: 99999 !important;
  flex-direction: column;
}

.gi-card2 .gi-row {
  padding: 9px 16px;
  display: grid;
}

.gi-card2 .gi-lbl {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--mute);
  min-width: 100px;
  flex-shrink: 0;
  padding-top: 1px;
}

.banner-ad {
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO — GAME OF THE DAY
   Responsive across all screen sizes (320px → 4K)
═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   HERO — GAME OF THE DAY
   3-column layout: [Text] [Mini-Game] [GOTD Card] + [Ad]
   Breakpoints (mobile-friendly, no !important):
     ≥1200px  All 4 columns visible
     ≤1199px  Ad hidden
     ≤1023px  GOTD hidden, 2-col (text + game)
     ≤768px   Stack: text top, game below
     ≤480px   Text only (game + gotd hidden)
═══════════════════════════════════════════════════════════════ */

.hero-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  border-bottom: 2px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(90deg, #7c3aed, #00d4ff, #a855f7, #7c3aed) border-box;
}

/* ── Hero block (fills all space left of ad-col) ─────────────── */
.hero {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

/* ── Deep-space background ───────────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 40% at 85% -10%, rgba(99, 102, 241, .55) 0%, transparent 60%),
    radial-gradient(ellipse 55% 70% at -5% 55%, rgba(124, 58, 237, .5) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 52% 5%, rgba(0, 212, 255, .28) 0%, transparent 55%),
    radial-gradient(ellipse 60% 30% at 65% 105%, rgba(255, 45, 85, .28) 0%, transparent 50%),
    linear-gradient(175deg, #04091a 0%, #010510 50%, #07020f 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0, 212, 255, .55) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, .2) 1px, transparent 1px);
  background-size: 80px 80px, 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: .15;
}

/* ── Particles ───────────────────────────────────────────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle linear infinite;
}

@keyframes twinkle {
  0% {
    opacity: 0;
    transform: scale(.4)
  }

  15% {
    opacity: 1;
    transform: scale(1)
  }

  85% {
    opacity: .6
  }

  100% {
    opacity: 0;
    transform: scale(.3)
  }
}

/* ── Decorative floating emojis ─────────────────────────────── */
/* z-index 1 = above bg (z:0), below hero-inner (z:3)           */
.hero-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: .07;
  font-style: normal;
  line-height: 1;
}

.hero-deco-1 {
  font-size: 80px;
  top: 10%;
  left: 36%;
  transform: rotate(-18deg);
}

.hero-deco-2 {
  font-size: 64px;
  bottom: 12%;
  right: 30%;
  transform: rotate(20deg);
}

.hero-deco-3 {
  font-size: 48px;
  top: 58%;
  left: 25%;
  transform: rotate(-10deg);
}

.hero-deco-4 {
  font-size: 40px;
  top: 18%;
  right: 27%;
  transform: rotate(14deg);
}

/* ── hero-inner: flex row, 3 columns ────────────────────────── */
/* flex-wrap:wrap is the key trick for the tablet layout         */
/*
  Precise viewport budget to show 2 full card rows below hero:
    header       : 62px  (var --hdr, position:fixed)
    cat-strip    : 52px  (16px top + 8px bottom padding + ~28px pill)
    featured hdr : 50px  (14px top + 10px bottom + text)
    featured row : 172px (130px thumb + 34px card-info + 8px pb)
    new games hdr: 50px
    new games row: 172px
    main pb      : 60px
    sub-total    : 556px  (everything below hero)
  → hero height  = 100vh - 62px - 556px = 100vh - 618px
  Clamped: 240px min (so content never collapses), 380px max
*/
.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  min-height: clamp(240px, calc(100vh - 618px), 380px);
}

/* ════════════════════════════════════════
       COL 1 — Text panel
    ════════════════════════════════════════ */
.hero-txt {
  /* flex: 0 0 310px; */
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 20px 16px 28px;
}

/* Eyebrow pill */
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 12px;
  border: 1px solid rgba(0, 212, 255, .25);
  border-radius: 20px;
  background: rgba(0, 212, 255, .06);
  backdrop-filter: blur(6px);
  flex-shrink: 0;
  width: fit-content;
}

.hero-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(.7)
  }
}

/* Heading */
.hero-h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(15px, 1.8vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fff 0%, #a5f3ff 25%, #818cf8 55%, #c084fc 80%, #f9a8d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(99, 102, 241, .4));
}

/* Sub-text */
.hero-sub {
  color: rgba(165, 243, 255, .72);
  font-size: clamp(11px, .85vw, 13px);
  line-height: 1.65;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}

/* CTA buttons */
.hero-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #5b5ef4, #7c3aed, #a855f7);
  color: #fff;
  border: 1px solid rgba(165, 180, 252, .3);
  padding: 11px 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 22px rgba(91, 94, 244, .6);
  transition: all .25s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(91, 94, 244, .8);
  background: linear-gradient(135deg, #818cf8, #a78bfa, #c084fc);
}

.btn-rand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .06);
  color: rgba(165, 243, 255, .9);
  border: 1px solid rgba(0, 212, 255, .22);
  padding: 11px 14px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-rand:hover {
  background: rgba(0, 212, 255, .08);
  border-color: rgba(0, 212, 255, .45);
}

.hero-stats {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    width: 100%;
}

.stat-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 4px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(0, 212, 255, .06));
    border: 1px solid rgba(99, 102, 241, .25);
    border-radius: 8px;
    min-width: 0;
    backdrop-filter: blur(6px);
    transition: all .25s;
}

.stat-box:hover {
    border-color: rgba(0, 212, 255, .5);
    transform: translateY(-2px);
}

.stat-n {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(13px, 1.2vw, 17px);
    font-weight: 700;
    background: linear-gradient(135deg, #a5f3ff, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-l {
    font-size: clamp(7px, .55vw, 9px);
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(165, 243, 255, .5);
    text-transform: uppercase;
    margin-top: 2px;
    text-align: center;
}

/* ════════════════════════════════════════
       COL 2 — Portrait game container
       3:4 ratio = width × (4/3) = height
       Fixed width 240px → height ≈ 320px
       align-self:stretch = fills min-height
    ════════════════════════════════════════ */
#hero-game-container {
  /* flex: 0 0 240px; */
  flex: 0 0 350px;
  align-self: stretch;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* background: rgba(4, 9, 26, .55); */
  /* border-left: 1px solid rgba(124, 58, 237, .22); */
  /* border-right: 1px solid rgba(124, 58, 237, .22); */
  backdrop-filter: blur(8px);
}

/* Subtle glow halo behind the game container */
#hero-game-container::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(124, 58, 237, .18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* "Mini Game" label at top */
.hgc-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 212, 255, .06);
  border-bottom: 1px solid rgba(0, 212, 255, .12);
  position: relative;
  z-index: 1;
}

.hgc-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* Spinner while iframe loads */
.hero-loader {
  position: absolute;
  inset: 0;
  top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(4, 9, 26, .75); */
  z-index: 5;
}

.hero-loader-spin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(0, 212, 255, .15);
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* Iframe fills the rest of the column height */
#heroGameIframe {
  flex: 1;
  width: 100%;
  border: 0;
  display: block;
  min-height: 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════
       COL 3 — Game of the Day panel
    ════════════════════════════════════════ */
.gotd-panel {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 14px;
  border-left: 1px solid rgba(99, 102, 241, .2);
  background: rgba(4, 9, 26, .5);
  backdrop-filter: blur(14px);
}

.gotd-hdr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 212, 255, .15);
  width: 100%;
  flex-shrink: 0;
}

.gotd-star {
  font-size: 12px;
}

.gotd-thumb-wrap {
  display: block;
  width: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, .35);
  box-shadow: 0 0 20px rgba(124, 58, 237, .3);
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  text-decoration: none;
}

.gotd-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gotd-thumb-wrap:hover img {
  transform: scale(1.06)
}

.gotd-ov {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}

.gotd-thumb-wrap:hover .gotd-ov {
  opacity: 1
}

.gotd-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 212, 255, .7);
  transform: scale(.85);
  transition: transform .2s;
}

.gotd-thumb-wrap:hover .gotd-play-btn {
  transform: scale(1)
}

.gotd-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.gotd-name {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(9px, .85vw, 12px);
  font-weight: 700;
  color: var(--txt);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.gotd-cat {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(0, 212, 255, .08);
  border: 1px solid rgba(0, 212, 255, .2);
  color: var(--accent);
}

.gotd-stars {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: -1px;
}

.gotd-plays {
  font-size: 10px;
  color: var(--mute);
  font-family: 'Inter', sans-serif;
}

.gotd-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #5b5ef4, #7c3aed, #a855f7);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(91, 94, 244, .5);
  transition: all .25s;
  flex-shrink: 0;
}

.gotd-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(91, 94, 244, .75);
  background: linear-gradient(135deg, #818cf8, #a78bfa, #c084fc);
}

/* ── Ad sidebar ─────────────────────────────────────────────── */
.ad-col {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: rgba(7, 11, 20, .5);
  border-left: 1px solid var(--border);
}

.ad-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center
}

.ad-slot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  flex-grow: 1;
}

.ad-a {
  min-height: 250px;
  flex-grow: 2;
}

.ad-b {
  min-height: 100px;
  flex-grow: 1;
}

.multiplex-ad{
  display: block;
  width: 100%;
  min-height: 250px; /* Multiplex ads require more vertical space for the grid */
  flex-grow: 1;
  overflow: hidden;
}

.ad-horizontal-wrapper {
  width: 100%;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the label and the ad */
  padding: 0px 20px;
}

.ad-c {
  max-width: 1200px; /* Limits width so it doesn't stretch too far on ultra-wide screens */
  min-height: 90px;  /* Standard leaderboard height */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  width: 100%;
  overflow: hidden;
}

/* .ad-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  width: 100%;
  height: 100%
}

.ad-ph-ico {
  font-size: 26px;
  opacity: .28
}

.ad-ph-txt {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mute)
}

.ad-ph-sz {
  font-size: 8px;
  color: var(--mute);
  opacity: .5
} */

/* ═══════════════════════════════════════════════════════════════
       RESPONSIVE BREAKPOINTS — max-width only, clean cascade
    ═══════════════════════════════════════════════════════════════ */

/* ≥1400px: extra wide */
@media (min-width: 1400px) {
  .hero-txt {
    padding: 18px 22px 18px 32px
  }

  #hero-game-container {
    /* flex: 0 0 260px */
    flex: 0 0 450px
  }

  .gotd-panel {
    flex: 0 0 270px;
    padding: 14px 18px
  }

  .hero-h1 {
    font-size: clamp(18px, 2vw, 32px)
  }
}

/* ≤1180px: ad col narrows */
@media (max-width: 1180px) {
  .ad-col {
    width: 280px
  }
}

/* ≤1099px: tighten all three cols */
@media (max-width: 1099px) {
  .hero-txt {
    flex: 0 0 270px;
    padding: 14px 16px 14px 20px
  }

  #hero-game-container {
    flex: 0 0 210px
  }

  .gotd-panel {
    flex: 0 0 220px;
    padding: 10px 11px;
    gap: 7px
  }
}

/* ≤980px: hide ad col */
@media (max-width: 980px) {
  .ad-col {
    display: none
  }
}

/* ─────────────────────────────────────────────────────────────
       TABLET 769–1024px:
       flex-wrap:wrap makes hero-inner flow into 2 rows:
         Row 1: [hero-txt flex:1] [game 220px portrait]
         Row 2: [gotd-panel 100% → horizontal strip]
    ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

  .hero-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    min-height: 0;
  }

  /* hero-txt fills all space beside the portrait game in row 1 */
  .hero-txt {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 16px 12px 22px;
    justify-content: space-evenly;
  }

  .hero-h1 {
    font-size: clamp(15px, 2.6vw, 26px)
  }

  /* Portrait game: fixed width, stretches full row height */
  #hero-game-container {
    /* flex: 0 0 220px; */
    flex: 0 0 300px;
    align-self: stretch;
    border-right: none;
  }

  /* GOTD drops to its own row (100% width) as horizontal strip */
  .gotd-panel {
    flex: 0 0 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 12px 20px;
    border-left: none;
    border-top: 1px solid rgba(99, 102, 241, .2);
    background: rgba(4, 9, 26, .7);
  }

  .gotd-hdr {
    display: none
  }

  /* replaced by inline "GOTD" text below */

  .gotd-thumb-wrap {
    width: 88px;
    height: 66px;
    aspect-ratio: unset;
    flex-shrink: 0;
    border-radius: 8px;
  }

  .gotd-info {
    flex: 1;
    align-items: flex-start;
    text-align: left;
    gap: 3px;
    min-width: 0;
  }

  /* Inline "Game of the Day" micro-label */
  .gotd-info::before {
    content: '⭐  Game of the Day';
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
  }

  .gotd-name {
    font-size: 13px;
    text-align: left;
  }

  .gotd-plays {
    display: none
  }

  .gotd-cta {
    width: auto;
    padding: 10px 22px;
    font-size: 9px;
    flex-shrink: 0;
    border-radius: 7px;
  }

  /* Floating icons: fewer on tablet */
  .hero-deco-3,
  .hero-deco-4 {
    display: none
  }
}

/* ≤899px: tablet portrait — compress hero row */
@media (max-width: 899px) {
  .hero-txt {
    padding: 18px 14px 18px 16px
  }

  .hero-h1 {
    font-size: clamp(14px, 3.5vw, 22px)
  }

  .hero-sub {
    display: none
  }

  #hero-game-container {
    /* flex: 0 0 190px */
    flex: 0 0 300px
  }

  .hcg-item {
    padding: 7px 3px;
    gap: 3px
  }

  .hcg-icon {
    font-size: 14px
  }

  .hcg-label {
    display: none
  }

  /* icons only, no labels */
}

/* ─────────────────────────────────────────────────────────────
       MOBILE ≤768px:
       Stack vertically: txt → gotd → game HIDDEN
       GOTD panel reverts to vertical card below text
    ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  .hero-inner {
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  /* Text panel: full width */
  .hero-txt {
    flex: none;
    width: 100%;
    padding: 18px 16px 14px;
    gap: 12px;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(99, 102, 241, .12);
  }

  .hero-h1 {
    font-size: clamp(18px, 5.5vw, 26px)
  }

  .hero-sub {
    display: block
  }

  /* Hide game entirely on mobile */
  #hero-game-container {
    display: none
  }

  /* GOTD reverts to compact vertical card below text */
  .gotd-panel {
    flex: none;
    width: 100%;
    flex-direction: row;
    /* keep it as a horizontal strip on mobile too */
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-left: none;
    border-top: 1px solid rgba(99, 102, 241, .15);
  }

  /* Floating icons: all hidden on mobile */
  .hero-deco {
    display: none
  }

  /* Restore icon labels (more room) */
  .hcg-label {
    display: block
  }

  .gotd-thumb-wrap {
    width: 76px;
    height: 57px;
    flex-shrink: 0;
    aspect-ratio: unset
  }
}

/* ≤600px: compact phone */
@media (max-width: 600px) {
  .hero-txt {
    padding: 14px 14px 12px
  }

  .hero-h1 {
    font-size: clamp(17px, 5.5vw, 23px)
  }

  .hero-sub {
    display: none
  }

  .btn-play {
    padding: 9px 14px;
    font-size: 9px
  }

  .btn-rand {
    padding: 9px 12px;
    font-size: 11px
  }

  .hero-cat-grid {
    gap: 5px
  }

  .hcg-item {
    padding: 7px 3px;
    gap: 3px
  }

  .hcg-icon {
    font-size: 13px
  }

  .hcg-label {
    font-size: 7px
  }

  .gotd-cta {
    padding: 9px 14px
  }
}

/* ≤480px: small phone — GOTD also hidden, text + cat-grid only */
@media (max-width: 480px) {

  .gotd-panel {
    display: none
  }

  .hero-inner {
    min-height: 0
  }

  .hero-txt {
    padding: 20px 16px;
    gap: 16px;
    border-bottom: none;
    justify-content: space-evenly;
  }

  .hero-h1 {
    font-size: clamp(20px, 6.5vw, 27px)
  }

  .hero-sub {
    display: block;
    font-size: 12px
  }

  /* Restore full 3-col grid with labels */
  .hero-cat-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .hcg-label {
    display: block
  }

  /* .hdr-btns {
    display: none
  } */
}

/* ≤380px: very small phone */
@media (max-width: 380px) {
  .hero-txt {
    padding: 16px 12px;
    gap: 12px
  }

  .hero-h1 {
    font-size: 18px;
    line-height: 1.2
  }

  .hero-sub {
    display: none
  }

  .btn-rand {
    display: none
  }

  .btn-play {
    padding: 9px 14px
  }

  .hero-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px
  }

  .hcg-label {
    font-size: 7px
  }
}

.hero-overlay {
    display: none; /* Ensure this is none by default */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 100; /* Must be above the iframe */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
 .overlay-content{
  text-align: center;
 }
 
.overlay-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.btn-similar {
    display: block;
    background: var(--primary); /* Use your site's primary blue */
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 10px;
    transition: transform 0.2s;
}

.btn-similar:hover {
    transform: scale(1.05);
}

.btn-retry {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  flex-shrink: 0;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* blocks scrolling  */
#game-frame {
  overflow: hidden;
  overscroll-behavior: none;
}

#game-iframe,
ruffle-player {
  overflow: hidden;
  overscroll-behavior: none;
  display: block;
}

/* BLACK OVERLAY */
.search-overlay-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001; /* Just below the header */
  display: none; /* Hidden by default */
  pointer-events: all;
}

/* WARNING MESSAGE FOR FLASH GAMES IN MOBILE */
.mobile-keyboard-warning {
    display: none;
    background: var(--warning-bg);
    color: var(--warning-txt);
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    border: 1px solid rgba(0, 212, 255, .1);
    border-radius: 4px;
    margin-top: 10px;
    text-align: center;
}

/* Visible only on screens smaller than 1024px (Tablets & Phones) */
@media screen and (max-width: 1024px) {
    .mobile-keyboard-warning {
        display: block;
    }
}

#floating-actions {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    #goToTop, #rand-btn-float {
        border: none;
        outline: none;
        color: white;
        cursor: pointer;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        text-decoration: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Go to Top specific states */
    #goToTop { 
        background-color: var(--a3); 
    }
    
    #goToTop.hide-top {
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        pointer-events: none;
    }

    #goToTop.show-top {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Random Button (Always Visible) */
    #rand-btn-float { 
        background-color: var(--a2);
    }

    #goToTop:hover, #rand-btn-float:hover {
        transform: scale(1.1);
        filter: brightness(1.1);
    }

    @media (max-width: 768px) {
        #floating-actions { bottom: 20px; right: 20px; }
        #goToTop, #rand-btn-float { width: 45px; height: 45px; }
    }