:root {
  --primary: #6d43f2;
  --primary-2: #8c5cff;
  --primary-dark: #4521b8;
  --secondary: #ff6b35;
  --secondary-2: #ffb02e;
  --accent: #16c7a3;
  --ink: #17132f;
  --ink-2: #25203e;
  --muted: #746f88;
  --surface: #ffffff;
  --page: #f7f6fc;
  --soft: #f0ecff;
  --border: #e6e1f3;
  --shadow-sm: 0 10px 30px rgba(45, 31, 98, .08);
  --shadow: 0 24px 65px rgba(45, 31, 98, .14);
  --shadow-dark: 0 26px 70px rgba(13, 9, 35, .30);
  --radius: 22px;
  --radius-lg: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 2% 18%, rgba(109, 67, 242, .055), transparent 24rem),
    radial-gradient(circle at 98% 42%, rgba(255, 107, 53, .045), transparent 28rem),
    var(--page);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
.container { max-width: 1320px; }

/* Header */
.site-header {
  z-index: 1030;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid rgba(225, 219, 240, .92);
  box-shadow: 0 8px 28px rgba(33, 24, 75, .05);
  backdrop-filter: blur(18px);
}
.navbar { min-height: 84px; }
.navbar-brand { display: flex; align-items: center; flex: 0 0 auto; }
.navbar-brand img { width: 226px; max-height: 58px; object-fit: contain; }
.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: .72rem .86rem;
  color: #403a56;
  border-radius: 13px;
  font-size: .9rem;
  font-weight: 850;
  transition: .2s ease;
}
.navbar-nav .nav-link i { color: var(--primary); font-size: .95rem; }
.navbar-nav .nav-link:hover {
  color: var(--primary-dark);
  background: var(--soft);
  transform: translateY(-1px);
}
.navbar-toggler { width: 46px; height: 42px; padding: 8px; }
.navbar-toggler span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--ink);
}
.search-box {
  display: flex;
  align-items: center;
  width: min(360px, 31vw);
  min-width: 285px;
  padding: 5px 5px 5px 15px;
  border: 1px solid #e9e4f4;
  border-radius: 15px;
  background: #f7f5fb;
  transition: .2s ease;
}
.search-box:focus-within {
  border-color: #b6a3fb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(109, 67, 242, .10);
}
.search-box > i { color: #8b859c; }
.search-box input {
  flex: 1;
  min-width: 0;
  padding: .62rem .7rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: .9rem;
}
.search-box button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 74px;
  padding: .7rem .9rem;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 18px rgba(109, 67, 242, .24);
  font-weight: 850;
}
.category-bar {
  padding: .58rem 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 107, 53, .10), transparent 25%),
    var(--ink);
}
.category-scroll { display: flex; align-items: center; gap: 5px; overflow: hidden; }
.category-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 5px;
  padding: .4rem .78rem .4rem 0;
  border-right: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
}
.category-label i { color: var(--secondary-2); }
.category-bar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: .43rem .68rem;
  border-radius: 9px;
  color: #d8d3e8;
  font-size: .77rem;
  font-weight: 750;
  white-space: nowrap;
  transition: .2s ease;
}
.category-bar a i { color: #9f8aff; }
.category-bar a:hover { color: #fff; background: rgba(255, 255, 255, .10); }
.category-bar .category-all { margin-left: auto; color: #fff; background: rgba(109, 67, 242, .35); }
.offcanvas { background: #fbfaff; }
.offcanvas-header { border-bottom: 1px solid var(--border); }
.mobile-logo { width: 200px; }
.mobile-links { display: grid; gap: 8px; }
.mobile-links a,
.mobile-category-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .88rem 1rem;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  font-weight: 800;
}
.mobile-links a i,
.mobile-category-grid a i { color: var(--primary); }
.mobile-title { margin: 25px 0 12px; font-weight: 900; }
.mobile-category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-category-grid a { padding: .72rem; font-size: .82rem; }

/* Hero */
.hero-section {
  position: relative;
  padding: 30px 0 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(121, 77, 245, .20), transparent 27rem),
    radial-gradient(circle at 92% 20%, rgba(255, 118, 62, .16), transparent 26rem),
    linear-gradient(180deg, #f7f3ff 0%, #fbfaff 72%, var(--page) 100%);
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(109, 67, 242, .3) 1.2px, transparent 1.2px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}
.hero-main { min-width: 0; }
.hero-carousel {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
  background: var(--ink);
}
.hero-slide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .78fr);
  align-items: center;
  min-height: 500px;
  padding: 54px 52px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(22, 15, 50, .98) 2%, rgba(67, 37, 137, .94) 55%, rgba(106, 68, 202, .88) 100%);
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: blur(42px) saturate(1.35);
  opacity: .26;
  transform: scale(1.12);
}
.hero-slide::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -90px;
  bottom: -220px;
  border: 95px solid rgba(255, 255, 255, .055);
  border-radius: 50%;
}
.hero-slide > * { position: relative; z-index: 2; }
.hero-content { max-width: 660px; color: #fff; }
.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--secondary);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero-kicker {
  padding: .45rem .7rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #ffd3c2;
  background: rgba(255, 107, 53, .12);
}
.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.7rem, 4.6vw, 4.65rem);
  font-weight: 950;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-content p {
  max-width: 580px;
  margin: 0;
  color: #ded9ee;
  font-size: 1rem;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 25px; }
.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .44rem .66rem;
  border-radius: 999px;
  color: #eeeafa;
  background: rgba(255, 255, 255, .09);
  font-size: .72rem;
  font-weight: 800;
}
.hero-tags i { color: #b8ffeb; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .82rem 1.15rem;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 26px rgba(93, 51, 230, .28);
  font-weight: 900;
  transition: .2s ease;
}
.btn-play:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 15px 32px rgba(93, 51, 230, .38); }
.btn-hero {
  min-width: 158px;
  padding: 1rem 1.3rem;
  background: linear-gradient(135deg, var(--secondary), #ff8e36);
  box-shadow: 0 14px 30px rgba(255, 107, 53, .30);
}
.btn-hero i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(255,255,255,.18); }
.hero-category-link { color: #fff; font-size: .84rem; font-weight: 850; }
.hero-category-link:hover { color: #ffd5c4; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-width: 0; }
.hero-art-ring {
  position: absolute;
  width: 370px;
  height: 370px;
  border: 1px dashed rgba(255, 255, 255, .25);
  border-radius: 50%;
  animation: spinSlow 25s linear infinite;
}
.hero-art-ring::before,
.hero-art-ring::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary-2);
  box-shadow: 0 0 20px rgba(255, 176, 46, .8);
}
.hero-art-ring::before { top: 32px; left: 52px; }
.hero-art-ring::after { right: 32px; bottom: 62px; background: var(--accent); }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.hero-art img {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  aspect-ratio: 1.36;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, .13);
  border-radius: 26px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, .42);
  transform: rotate(2deg);
}
.hero-live {
  position: absolute;
  z-index: 3;
  right: -2px;
  bottom: 45px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: .55rem .78rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  color: #fff;
  background: rgba(18, 13, 43, .78);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  font-size: .72rem;
  font-weight: 850;
}
.hero-live i { color: #36e6af; font-size: .6rem; }
.carousel-indicators { justify-content: flex-start; gap: 6px; margin: 0 0 24px 52px; }
.carousel-indicators [data-bs-target] { width: 25px; height: 5px; margin: 0; border: 0; border-radius: 99px; }
.carousel-control-prev,
.carousel-control-next {
  top: auto;
  bottom: 22px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  opacity: 1;
}
.carousel-control-prev { left: auto; right: 68px; }
.carousel-control-next { right: 20px; }
.carousel-control-prev-icon,
.carousel-control-next-icon { width: 17px; height: 17px; }

.quick-play-panel {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(109, 67, 242, .33), transparent 13rem),
    linear-gradient(150deg, #17132f, #211a40);
  box-shadow: var(--shadow-dark);
}
.quick-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.quick-panel-head h2 { margin: 5px 0 0; font-size: 1.7rem; font-weight: 950; letter-spacing: -.03em; }
.online-dot { display: inline-flex; align-items: center; gap: 6px; padding: .38rem .6rem; border-radius: 999px; color: #bffbea; background: rgba(22, 199, 163, .13); font-size: .68rem; font-weight: 850; }
.online-dot i { width: 7px; height: 7px; border-radius: 50%; background: #26e3ae; box-shadow: 0 0 10px #26e3ae; }
.quick-game-list { display: grid; gap: 10px; }
.quick-game {
  display: grid;
  grid-template-columns: 25px 70px minmax(0,1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 15px;
  background: rgba(255, 255, 255, .055);
  transition: .2s ease;
}
.quick-game:hover { color: #fff; border-color: rgba(141, 102, 255, .5); background: rgba(141, 102, 255, .16); transform: translateX(3px); }
.quick-rank { color: #8f87a8; font-size: .76rem; font-weight: 950; text-align: center; }
.quick-game img { width: 70px; height: 58px; object-fit: cover; border-radius: 11px; }
.quick-game span { min-width: 0; }
.quick-game strong { display: block; overflow: hidden; color: #fff; font-size: .82rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.quick-game small { display: block; overflow: hidden; margin-top: 4px; color: #aaa3bd; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.quick-game > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--primary); }
.quick-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; padding-top: 18px; }
.quick-stats div { padding: 13px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(255,255,255,.045); }
.quick-stats strong { display: block; font-size: 1.2rem; font-weight: 950; }
.quick-stats span { color: #aaa3bd; font-size: .68rem; }
.quick-all { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: .85rem 1rem; border-radius: 13px; color: #fff; background: linear-gradient(135deg, rgba(109,67,242,.85), rgba(141,92,255,.76)); font-size: .78rem; font-weight: 900; }
.quick-all:hover { color: #fff; filter: brightness(1.08); }

/* Sections */
.section-space { padding: 62px 0; }
.category-section { padding: 52px 0 50px; background: var(--surface); border-top: 1px solid rgba(230,225,243,.8); border-bottom: 1px solid rgba(230,225,243,.8); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading.compact { margin-bottom: 18px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(1.75rem, 2.6vw, 2.45rem); font-weight: 950; line-height: 1.08; letter-spacing: -.035em; }
.section-heading p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.view-all,
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .65rem .9rem;
  border: 1px solid #ddd5f4;
  border-radius: 12px;
  color: var(--primary-dark);
  background: #fff;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
  transition: .2s ease;
}
.view-all:hover,
.btn-link:hover { color: #fff; border-color: var(--primary); background: var(--primary); transform: translateY(-1px); }

.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; }
.category-card {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 22px;
  align-items: center;
  gap: 10px;
  min-height: 73px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(40, 28, 84, .035);
  transition: .22s ease;
}
.category-card:hover { color: var(--primary-dark); border-color: #c9bcf6; box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.category-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--primary); background: linear-gradient(145deg, #f1edff, #faf8ff); font-size: 1.12rem; }
.category-card:nth-child(4n+2) .category-icon { color: #e75c2b; background: #fff0e9; }
.category-card:nth-child(4n+3) .category-icon { color: #009e83; background: #e7fbf7; }
.category-card:nth-child(4n+4) .category-icon { color: #d59500; background: #fff7df; }
.category-info { min-width: 0; }
.category-info strong { display: block; overflow: hidden; font-size: .79rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.category-info small { display: block; margin-top: 3px; color: #9993a8; font-size: .64rem; }
.category-card > i { color: #aaa2ba; font-size: .78rem; transition: .2s ease; }
.category-card:hover > i { color: var(--primary); transform: translate(2px, -2px); }
.category-extra { display: none; }
.category-grid.expanded .category-extra { display: grid; }

.games-section { background: linear-gradient(180deg, var(--page), #fff 100%); }
.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.game-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(43, 30, 92, .05);
  transition: .24s ease;
}
.game-card:hover { border-color: #cbbdf8; box-shadow: 0 20px 45px rgba(43, 30, 92, .16); transform: translateY(-6px); }
.game-cover { position: relative; display: block; aspect-ratio: 1.35; overflow: hidden; background: #ece9f8; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .38s ease, filter .38s ease; }
.game-card:hover .game-cover img { transform: scale(1.07); filter: saturate(1.08); }
.game-cover-shade { position: absolute; inset: 0; opacity: 0; background: linear-gradient(to top, rgba(18, 12, 40, .88), rgba(18,12,40,.03) 72%); transition: .25s ease; }
.game-card:hover .game-cover-shade { opacity: 1; }
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  border: 5px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), #ff9b35);
  box-shadow: 0 15px 35px rgba(0,0,0,.27);
  font-size: 1.45rem;
  opacity: 0;
  transform: translate(-50%, -40%) scale(.72);
  transition: .25s ease;
}
.game-card:hover .play-badge { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.editor-badge { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: .34rem .55rem; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--secondary), #ff9a3d); box-shadow: 0 8px 18px rgba(255,107,53,.25); font-size: .59rem; font-weight: 900; }
.game-hover-label { position: absolute; right: 12px; bottom: 10px; z-index: 2; color: #fff; font-size: .66rem; font-weight: 900; opacity: 0; transform: translateY(5px); transition: .25s ease; }
.game-card:hover .game-hover-label { opacity: 1; transform: none; }
.game-card-body { padding: 13px 13px 14px; }
.game-title { display: block; overflow: hidden; color: var(--ink); font-size: .9rem; font-weight: 950; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.game-title:hover { color: var(--primary); }
.game-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 9px; color: #9690a6; font-size: .65rem; }
.game-meta a { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; color: var(--primary); font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.game-meta a i { flex: 0 0 auto; }
.game-meta > span { flex: 0 0 auto; }

.popular-section { position: relative; overflow: hidden; color: #fff; background: linear-gradient(145deg, #17122e 0%, #251b49 60%, #1a1435 100%); }
.popular-section::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right, transparent, #000, transparent); }
.popular-orb { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .22; }
.popular-orb-one { width: 380px; height: 380px; left: -180px; top: -170px; background: var(--primary-2); }
.popular-orb-two { width: 300px; height: 300px; right: -150px; bottom: -170px; background: var(--secondary); }
.light-heading h2 { color: #fff; }
.light-heading p { color: #aaa3bf; }
.light-heading .view-all { color: #fff; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); }
.popular-section .game-card { border-color: rgba(255,255,255,.10); background: #fff; }

.editor-section { background: #fff; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: stretch; }
.editor-games { display: grid; grid-template-columns: minmax(300px, 1.05fr) minmax(0, .95fr); gap: 16px; min-width: 0; }
.editor-spotlight {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: #1a1433;
  box-shadow: var(--shadow);
}
.editor-spotlight::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to top, rgba(19,12,41,.96) 5%, rgba(19,12,41,.25) 70%), var(--spotlight-image); background-size: cover; background-position: center; transition: .4s ease; }
.editor-spotlight::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.16); border-radius: inherit; }
.editor-spotlight:hover { color: #fff; }
.editor-spotlight:hover::before { transform: scale(1.04); }
.spotlight-content { position: relative; z-index: 2; padding: 28px; }
.spotlight-badge { display: inline-flex; align-items: center; gap: 6px; padding: .42rem .65rem; border-radius: 999px; color: #fff; background: var(--secondary); font-size: .65rem; font-weight: 900; }
.spotlight-content h3 { margin: 16px 0 7px; font-size: clamp(1.8rem, 3vw, 2.75rem); font-weight: 950; line-height: 1.03; letter-spacing: -.035em; }
.spotlight-content p { max-width: 380px; margin: 0 0 18px; color: #d4cfe2; font-size: .82rem; }
.spotlight-button { display: inline-flex; align-items: center; gap: 7px; padding: .75rem .9rem; border-radius: 11px; background: rgba(255,255,255,.13); backdrop-filter: blur(8px); font-size: .76rem; font-weight: 900; }
.editor-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.editor-mini-grid .game-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.editor-mini-grid .game-cover { aspect-ratio: 1.6; }
.editor-mini-grid .game-card-body { padding: 10px 11px; }
.editor-mini-grid .game-title { font-size: .78rem; }
.editor-mini-grid .game-meta { margin-top: 6px; font-size: .59rem; }
.recommend-box { min-width: 0; padding: 24px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 95% 0, rgba(109,67,242,.38), transparent 14rem), var(--ink); box-shadow: var(--shadow-dark); }
.recommend-head h2 { margin: 6px 0 5px; font-size: 1.75rem; font-weight: 950; }
.recommend-head p { margin: 0 0 16px; color: #aaa3bd; font-size: .76rem; }
.recommend-list { display: grid; gap: 8px; }
.recommend-list a { display: grid; grid-template-columns: 60px minmax(0,1fr) 28px; align-items: center; gap: 11px; padding: 8px; border: 1px solid rgba(255,255,255,.06); border-radius: 13px; background: rgba(255,255,255,.055); transition: .2s ease; }
.recommend-list a:hover { color: #fff; border-color: rgba(141,92,255,.45); background: rgba(141,92,255,.16); transform: translateX(3px); }
.recommend-list img { width: 60px; height: 48px; object-fit: cover; border-radius: 9px; }
.recommend-list span { min-width: 0; }
.recommend-list strong { display: block; overflow: hidden; color: #fff; font-size: .76rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.recommend-list small { display: block; margin-top: 3px; color: #a9a2b9; font-size: .62rem; }
.recommend-list > a > i { color: #9a7cff; font-size: 1.05rem; }

.seo-section { padding: 10px 0 65px; background: #fff; }
.seo-box { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 20px; padding: 28px 30px; overflow: hidden; border: 1px solid #e3dcf4; border-radius: 23px; background: linear-gradient(120deg, #f2edff 0%, #fff 48%, #fff2e9 100%); }
.seo-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 21px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 15px 30px rgba(109,67,242,.23); font-size: 2rem; }
.seo-box h2 { margin: 5px 0 6px; font-size: 1.5rem; font-weight: 950; }
.seo-box p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.seo-cta { display: inline-flex; align-items: center; gap: 8px; padding: .8rem 1rem; border-radius: 12px; color: #fff; background: var(--ink); font-size: .76rem; font-weight: 900; white-space: nowrap; }
.seo-cta:hover { color: #fff; background: var(--primary); }

/* Inner pages */
.page-hero { position: relative; padding: 58px 0; overflow: hidden; background: linear-gradient(135deg, #eee8ff, #fff5ed); border-bottom: 1px solid var(--border); }
.page-hero::after { content: ""; position: absolute; right: 5%; top: -70px; width: 270px; height: 270px; border: 55px solid rgba(109,67,242,.08); border-radius: 50%; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin: 12px 0 8px; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 950; letter-spacing: -.045em; }
.page-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1rem; }
.breadcrumb-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .78rem; }
.breadcrumb-line a:hover { color: var(--primary); }
.breadcrumb-line i { font-size: .65rem; }
.section-divider { margin: 45px 0; border-color: var(--border); }
.content-box { padding: 32px; border: 1px solid var(--border); border-radius: 22px; color: #514d62; background: #fff; box-shadow: var(--shadow-sm); line-height: 1.8; }
.content-box h2,
.content-box h3 { color: var(--ink); font-weight: 950; }
.pagination-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.pagination-wrap a { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--border); border-radius: 11px; background: #fff; font-weight: 850; }
.pagination-wrap a:hover,
.pagination-wrap a.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.btn-soft { display: inline-flex; align-items: center; gap: 7px; padding: .8rem 1.05rem; border: 1px solid var(--border); border-radius: 13px; color: var(--ink); background: #f5f2fb; font-weight: 850; }
.btn-soft:hover { color: var(--primary); background: #ece7fb; }

.game-detail-top { padding: 38px 0 18px; background: linear-gradient(180deg, #f4f0ff, var(--page)); }
.game-detail-card { display: grid; grid-template-columns: minmax(320px, .82fr) 1.18fr; gap: 38px; margin-top: 20px; padding: 27px; border: 1px solid var(--border); border-radius: 27px; background: #fff; box-shadow: var(--shadow); }
.game-detail-image { position: relative; }
.game-detail-image img { width: 100%; aspect-ratio: 1.35; object-fit: cover; border-radius: 20px; }
.game-detail-image .btn { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); white-space: nowrap; }
.category-pill { display: inline-flex; align-items: center; gap: 6px; padding: .42rem .75rem; border-radius: 999px; color: var(--primary); background: var(--soft); font-size: .72rem; font-weight: 900; }
.game-detail-content h1 { margin: 15px 0; font-size: clamp(2rem,4vw,3.5rem); font-weight: 950; letter-spacing: -.04em; }
.stats-row { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .82rem; }
.game-description { margin: 22px 0; color: #565166; line-height: 1.78; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.play-page { min-height: 80vh; padding: 26px 0 55px; color: #fff; background: radial-gradient(circle at 50% 0, #29204d, #100d1d 45%); }
.play-breadcrumb { margin-bottom: 18px; color: #aaa4bb; }
.play-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.play-header h1 { margin: .5rem 0 0; font-weight: 950; }
.game-frame-shell { width: 100%; height: min(76vh, 780px); min-height: 520px; overflow: hidden; border: 1px solid #3b3355; border-radius: 21px; background: #050508; box-shadow: 0 28px 85px rgba(0,0,0,.45); }
.game-frame-shell iframe { display: block; width: 100%; height: 100%; border: 0; }
.game-unavailable { display: grid; place-content: center; height: 100%; padding: 40px; color: #c9c5d8; text-align: center; }
.game-unavailable i { color: var(--secondary); font-size: 4rem; }

.form-card,
.contact-info-card { height: 100%; padding: 30px; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.form-card label { margin-bottom: 7px; font-weight: 850; }
.form-control { padding: .82rem .95rem; border: 1px solid var(--border); border-radius: 12px; }
.form-control:focus { border-color: #ad9cf7; box-shadow: 0 0 0 4px rgba(109,67,242,.1); }
.contact-info-card { color: #fff; background: radial-gradient(circle at 90% 0, rgba(109,67,242,.42), transparent 16rem), var(--ink); }
.contact-info-card h2 { font-weight: 950; }
.contact-info-card p { color: #c7c3d7; }
.contact-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 24px; border-radius: 17px; background: rgba(255,255,255,.1); font-size: 1.6rem; }
.contact-note { display: flex; gap: 10px; padding: 15px; border-radius: 14px; background: rgba(255,255,255,.08); }
.empty-state { grid-column: 1 / -1; padding: 70px 20px; border: 1px dashed #cec8df; border-radius: 22px; background: #fff; text-align: center; }
.empty-state i { color: var(--primary); font-size: 3rem; }
.error-page { padding: 110px 0; }
.error-code { color: transparent; background: linear-gradient(135deg,var(--primary),var(--secondary)); -webkit-background-clip: text; font-size: 9rem; font-weight: 950; line-height: 1; }
.error-page h1 { font-weight: 950; }
.error-page p { color: var(--muted); }
.maintenance-icon { color: var(--primary); font-size: 5rem; }
.ad-slot { margin-top: 18px; margin-bottom: 18px; overflow: hidden; text-align: center; }

/* Footer */
.site-footer { position: relative; overflow: hidden; padding: 54px 0 20px; color: #c9c4d7; background: #141027; }
.footer-glow { position: absolute; width: 520px; height: 520px; right: -240px; top: -290px; border-radius: 50%; background: rgba(109,67,242,.25); filter: blur(15px); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 27px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-logo { width: 218px; padding: 8px 12px; border-radius: 12px; background: #fff; }
.footer-brand span { color: #9f98b2; font-size: .8rem; }
.footer-play-button { display: inline-flex; align-items: center; gap: 8px; padding: .78rem 1rem; border-radius: 12px; color: #fff; background: linear-gradient(135deg,var(--secondary),#ff9635); font-size: .77rem; font-weight: 900; }
.footer-play-button:hover { color: #fff; filter: brightness(1.08); }
.footer-main { padding-top: 31px; }
.site-footer h6 { margin-bottom: 15px; color: #fff; font-weight: 900; }
.site-footer a { display: block; margin: 9px 0; font-size: .82rem; }
.site-footer a:hover { color: #fff; }
.footer-copy { color: #aaa4ba; font-size: .82rem; line-height: 1.7; }
.footer-copy h1,
.footer-copy h2 { display: inline; color: #fff; font-size: .9rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.footer-badges span { display: inline-flex; align-items: center; gap: 5px; padding: .38rem .55rem; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; color: #c9c4d7; background: rgba(255,255,255,.045); font-size: .64rem; }
.footer-badges i { color: #9d82ff; }
.site-footer p { color: #9f98b2; font-size: .78rem; }
.footer-search { display: flex; overflow: hidden; border: 1px solid #393250; border-radius: 13px; background: #221c38; }
.footer-search input { flex: 1; min-width: 0; padding: .8rem 1rem; border: 0; outline: 0; color: #fff; background: transparent; }
.footer-search button { width: 48px; border: 0; color: #fff; background: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 37px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); color: #888198; font-size: .72rem; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 1000; width: 46px; height: 46px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg,var(--primary),var(--primary-2)); box-shadow: 0 12px 28px rgba(109,67,242,.27); opacity: 0; pointer-events: none; transform: translateY(15px); transition: .2s ease; }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }

@media (max-width: 1250px) {
  .navbar-brand img { width: 205px; }
  .navbar-nav .nav-link { padding-inline: .68rem; font-size: .83rem; }
  .hero-layout { grid-template-columns: minmax(0,1fr) 330px; }
  .category-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .editor-layout { grid-template-columns: minmax(0,1fr) 350px; }
}

@media (max-width: 1199px) {
  .navbar { min-height: 76px; }
  .search-box { width: 100%; min-width: 0; }
  .hero-layout { grid-template-columns: 1fr; }
  .quick-play-panel { min-height: auto; }
  .quick-game-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .quick-game { grid-template-columns: 24px 62px minmax(0,1fr) 28px; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .editor-layout { grid-template-columns: 1fr; }
  .recommend-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 991px) {
  .hero-slide { min-height: 450px; grid-template-columns: 1fr; padding: 45px; }
  .hero-art { display: none; }
  .hero-content { max-width: 720px; }
  .quick-game-list { grid-template-columns: 1fr; }
  .quick-play-panel { padding: 21px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .game-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .editor-games { grid-template-columns: 1fr; }
  .editor-spotlight { min-height: 390px; }
  .editor-mini-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .editor-mini-grid .game-card:last-child:nth-child(odd) { grid-column: auto; }
  .game-detail-card { grid-template-columns: 1fr; }
  .play-header { align-items: flex-start; flex-direction: column; }
  .game-frame-shell { height: 65vh; min-height: 480px; }
  .seo-box { grid-template-columns: 62px minmax(0,1fr); }
  .seo-icon { width: 62px; height: 62px; }
  .seo-cta { grid-column: 2; justify-self: start; }
}

@media (max-width: 767px) {
  .container { padding-left: 17px; padding-right: 17px; }
  .navbar-brand img { width: 180px; }
  .section-space { padding: 46px 0; }
  .hero-section { padding: 14px 0 20px; }
  .hero-layout { gap: 13px; }
  .hero-carousel,
  .quick-play-panel { border-radius: 22px; }
  .hero-slide { min-height: 445px; padding: 34px 25px 64px; }
  .hero-content h1 { margin-top: 14px; font-size: 2.65rem; }
  .hero-content p { font-size: .88rem; -webkit-line-clamp: 4; }
  .hero-tags { margin: 15px 0 20px; }
  .hero-tags span:nth-child(2) { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .carousel-indicators { margin-left: 25px; }
  .carousel-control-prev { right: 62px; }
  .carousel-control-next { right: 15px; }
  .quick-game { grid-template-columns: 22px 64px minmax(0,1fr) 29px; }
  .category-section { padding: 43px 0; }
  .section-heading { align-items: flex-start; gap: 12px; }
  .section-heading h2 { font-size: 1.7rem; }
  .section-heading p { font-size: .8rem; }
  .section-heading .view-all { margin-top: 4px; padding: .54rem .68rem; font-size: .68rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .category-card { min-height: 66px; grid-template-columns: 40px minmax(0,1fr) 17px; padding: 9px; }
  .category-icon { width: 40px; height: 40px; border-radius: 12px; }
  .category-info strong { font-size: .72rem; }
  .game-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
  .game-card { border-radius: 15px; }
  .game-card-body { padding: 10px; }
  .game-title { font-size: .8rem; }
  .game-meta { margin-top: 7px; font-size: .59rem; }
  .game-meta > span { display: none; }
  .play-badge { width: 46px; height: 46px; }
  .editor-badge { max-width: calc(100% - 20px); overflow: hidden; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
  .editor-mini-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editor-spotlight { min-height: 350px; }
  .spotlight-content { padding: 23px; }
  .recommend-list { grid-template-columns: 1fr; }
  .seo-section { padding: 5px 0 48px; }
  .seo-box { grid-template-columns: 1fr; padding: 24px; }
  .seo-icon { width: 56px; height: 56px; font-size: 1.5rem; }
  .seo-cta { grid-column: auto; }
  .page-hero { padding: 40px 0; }
  .content-box { padding: 22px; }
  .game-detail-card { gap: 20px; padding: 15px; }
  .game-detail-content h1 { font-size: 2rem; }
  .play-page { padding-top: 15px; }
  .game-frame-shell { height: 62vh; min-height: 400px; border-radius: 13px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: 10px; }
  .footer-logo { width: 190px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .mobile-category-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.3rem; }
  .hero-kicker { font-size: .62rem; }
  .hero-tags span { font-size: .64rem; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .editor-mini-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .editor-mini-grid .game-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
