@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&family=Orbitron:wght@500;700;800&display=swap");
:root {
  --bg: #f6f3eb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #fff;
  --text: #0d2340;
  --muted: #6e829b;
  --blue: #c89b3c;
  --blue-2: #e7c66d;
  --cyan: #10e4db;
  --navy: #302a20;
  --line: rgba(11, 91, 160, 0.12);
  --shadow: 0 24px 80px rgba(25, 105, 179, 0.18);
  --shadow-soft: 0 14px 40px rgba(28, 116, 190, 0.12);
  --radius: 22px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Kanit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 14% 4%,
      rgba(69, 198, 255, 0.28),
      transparent 26%
    ),
    radial-gradient(
      circle at 82% 16%,
      rgba(16, 228, 219, 0.16),
      transparent 25%
    ),
    linear-gradient(180deg, #f8fcff 0%, #f5f1e8 52%, #f7fbff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
}
.orb-a {
  width: 320px;
  height: 320px;
  left: -110px;
  top: 180px;
  background: radial-gradient(
    circle at 35% 35%,
    #fff,
    rgba(50, 185, 255, 0.44) 38%,
    rgba(50, 185, 255, 0) 72%
  );
}
.orb-b {
  width: 430px;
  height: 430px;
  right: -160px;
  top: 440px;
  background: radial-gradient(
    circle at 40% 40%,
    #fff,
    rgba(42, 244, 220, 0.28) 35%,
    rgba(42, 244, 220, 0) 72%
  );
}
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  max-width: 1600px;
  margin: auto;
  padding: 18px;
}
.sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  padding: 22px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
}
.brand img {
  width: 175px;
  height: auto;
  object-fit: contain;
}
.brand-mini {
  display: none;
  font-family: "Orbitron";
  font-weight: 800;
  color: var(--blue);
}
.nav {
  display: grid;
  gap: 8px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 15px;
  color: #526d8b;
  font-weight: 500;
  transition: 0.25s;
}
.nav a:hover,
.nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #d1a84d);
  box-shadow: 0 12px 25px rgba(0, 125, 255, 0.28);
  transform: translateY(-1px);
}
.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(8, 125, 255, 0.08);
  font-size: 15px;
}
.nav a.active .nav-icon,
.nav a:hover .nav-icon {
  background: rgba(255, 255, 255, 0.18);
}
.side-card {
  margin-top: auto;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, #302a20, #0a7ffc);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 34px rgba(7, 88, 181, 0.25);
}
.side-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  right: -45px;
  top: -40px;
}
.side-card b {
  font-size: 20px;
}
.side-card p {
  font-size: 13px;
  opacity: 0.8;
  margin: 8px 0 14px;
}
.side-card .btn {
  background: #fff;
  color: var(--blue);
  box-shadow: none;
}
.main {
  min-width: 0;
}
.topbar {
  height: 72px;
  padding: 0 4px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.search {
  width: min(440px, 48vw);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid rgba(7, 125, 255, 0.1);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 25px rgba(23, 114, 186, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: var(--text);
}
.search-submit {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.search-submit:hover,
.search-submit:focus-visible {
  color: var(--blue);
  background: rgba(8, 125, 255, 0.09);
  outline: none;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn,
.profile {
  border: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 25px rgba(23, 114, 186, 0.1);
  border-radius: 14px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn {
  width: 44px;
}
.profile {
  padding: 0 14px;
  gap: 9px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.content {
  padding: 8px 4px 50px;
}
.hero {
  position: relative;
  min-height: 390px;
  border-radius: 34px;
  overflow: hidden;
  padding: 54px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.96),
    rgba(231, 248, 255, 0.82)
  );
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 76% 18%,
      rgba(63, 215, 255, 0.42),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 80%,
      rgba(10, 125, 255, 0.25),
      transparent 32%
    );
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e5f6ff;
  color: #0878d4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
h1 {
  font-family: "Orbitron", "Kanit", sans-serif;
  font-size: clamp(38px, 5.2vw, 74px);
  line-height: 1.05;
  margin: 18px 0 16px;
  letter-spacing: -0.03em;
  color: #302a20;
}
.gradient-text {
  background: linear-gradient(90deg, #c89b3c, #12cddd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 24px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
  background: linear-gradient(135deg, var(--blue), #12aefb);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 125, 255, 0.25);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 125, 255, 0.32);
}
.btn.secondary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(16, 82, 143, 0.12);
  border: 1px solid rgba(7, 125, 255, 0.12);
}
.hero-art {
  height: 330px;
  position: relative;
  z-index: 2;
  perspective: 900px;
}
.device {
  position: absolute;
  right: 2%;
  top: 8%;
  width: 78%;
  height: 82%;
  border-radius: 30px;
  background: linear-gradient(145deg, #0a2e67, #0b75e2 65%, #1be0d8);
  box-shadow:
    28px 34px 65px rgba(0, 75, 162, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: rotateY(-13deg) rotateX(6deg) rotateZ(2deg);
  padding: 16px;
}
.device-screen {
  height: 100%;
  border-radius: 22px;
  background: linear-gradient(160deg, #effbff, #dfd4c1);
  padding: 15px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 11px;
  overflow: hidden;
}
.mini-panel {
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 20px rgba(18, 98, 164, 0.12);
}
.mini-panel.big {
  background: linear-gradient(145deg, #0d72e6, #19d6d2);
  position: relative;
  overflow: hidden;
}
.mini-panel.big::before {
  content: "PG";
  position: absolute;
  font-family: "Orbitron";
  font-size: 64px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  left: 18px;
  top: 34px;
  text-shadow: 0 12px 20px rgba(0, 63, 139, 0.24);
}
.mini-panel.big::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.18);
  right: -20px;
  bottom: -20px;
  transform: rotate(22deg);
}
.mini-stack {
  display: grid;
  gap: 11px;
}
.mini-panel.line {
  height: 33px;
}
.mini-panel.tile {
  background: linear-gradient(145deg, #fff, #e7f8ff);
}
.coin {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 33% 28%,
    #f7ebc7,
    #ffd439 35%,
    #f69b00 74%
  );
  box-shadow: 0 16px 28px rgba(221, 140, 0, 0.27);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-family: "Orbitron";
  border: 4px solid rgba(255, 255, 255, 0.65);
  animation: float 4s ease-in-out infinite;
}
.coin.c1 {
  right: 6%;
  top: 0;
}
.coin.c2 {
  right: 70%;
  bottom: 5%;
  width: 44px;
  height: 44px;
  animation-delay: -1.7s;
}
.coin.c3 {
  right: 1%;
  bottom: 12%;
  width: 38px;
  height: 38px;
  animation-delay: -0.9s;
}
.cube {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #7fe8ff);
  box-shadow: 0 18px 30px rgba(29, 144, 206, 0.24);
  transform: rotate(24deg);
  left: 5%;
  top: 9%;
  animation: float 5s ease-in-out infinite;
}
.cube::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(8, 125, 255, 0.28);
  border-radius: 10px;
}
@keyframes float {
  50% {
    transform: translateY(-13px) rotate(6deg);
  }
}
.section {
  margin-top: 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 28px;
  margin: 0;
}
.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}
.link {
  color: var(--blue);
  font-weight: 700;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
  perspective: 1200px;
}
.stat {
  position: relative;
  min-height: 112px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(239, 249, 255, 0.78)
  );
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 18px 38px rgba(28, 116, 190, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.stat::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.72),
    transparent 42%
  );
  pointer-events: none;
}
.stat::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 28px;
  right: -34px;
  bottom: -44px;
  background: linear-gradient(
    145deg,
    rgba(8, 125, 255, 0.13),
    rgba(16, 228, 219, 0.04)
  );
  transform: rotate(34deg) translateZ(12px);
}
.stat:hover {
  transform: translateY(-7px) rotateX(4deg) rotateY(-3deg);
  box-shadow:
    0 28px 52px rgba(16, 102, 181, 0.22),
    inset 0 1px 0 #fff;
}
.stat-icon {
  position: relative;
  z-index: 2;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffffff, #d8f3ff);
  box-shadow:
    10px 12px 24px rgba(18, 104, 176, 0.18),
    -7px -7px 18px rgba(255, 255, 255, 0.95),
    inset -4px -5px 10px rgba(8, 125, 255, 0.08),
    inset 4px 4px 10px rgba(255, 255, 255, 0.9);
  transform: translateZ(30px) rotate(-4deg);
  transition: 0.35s;
}
.stat:hover .stat-icon {
  transform: translateZ(42px) rotate(3deg) scale(1.06);
}

.stat-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: #c89b3c;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 5px rgba(8, 125, 255, 0.18));
}
.stat-rating .stat-icon svg {
  fill: #e7c66d;
  stroke: #c89b3c;
  stroke-width: 3;
}
.stat-copy {
  position: relative;
  z-index: 2;
  transform: translateZ(18px);
}
.stat .num {
  font-family: "Orbitron";
  font-size: 25px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  text-shadow: 0 4px 12px rgba(9, 40, 85, 0.08);
}
.stat small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 500;
}
.stat-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  left: 24px;
  top: 10px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(69, 198, 255, 0.22),
    rgba(69, 198, 255, 0) 70%
  );
  filter: blur(4px);
  pointer-events: none;
}
.stat-service .stat-icon {
  background: linear-gradient(145deg, #fff, #e2f7ff);
}
.stat-provider .stat-icon {
  background: linear-gradient(145deg, #fff, #dffbf8);
}
.stat-provider .stat-icon svg {
  stroke: #0aaea8;
}
.stat-rating .stat-icon {
  background: linear-gradient(145deg, #fff, #e4f1ff);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.game-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: 0.28s;
}
.game-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 46px rgba(21, 111, 186, 0.18);
}
.game-cover {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: #fff;
  background: linear-gradient(145deg, #0b7eff, #11d4d8);
}
.game-cover::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  right: -45px;
  top: -55px;
}
.game-cover::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border: 18px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  left: -30px;
  bottom: -35px;
  transform: rotate(24deg);
}
.cover-2 {
  background: linear-gradient(145deg, #6b4dff, #26c9ff);
}
.cover-3 {
  background: linear-gradient(145deg, #008e9a, #65e8c4);
}
.cover-4 {
  background: linear-gradient(145deg, #1354b8, #00bfff);
}
.cover-5 {
  background: linear-gradient(145deg, #ff8c35, #ffcf47);
}
.cover-6 {
  background: linear-gradient(145deg, #19267b, #8e6cff);
}
.cover-icon {
  position: absolute;
  right: 17px;
  bottom: 8px;
  font-size: 70px;
  filter: drop-shadow(0 16px 12px rgba(0, 0, 0, 0.18));
  transform: rotate(-7deg);
}
.game-cover b {
  position: relative;
  z-index: 2;
  font-family: "Orbitron";
  font-size: 21px;
  line-height: 1.15;
  display: block;
  max-width: 75%;
  text-shadow: 0 8px 14px rgba(0, 65, 130, 0.28);
}
.tag {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
}
.game-info {
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.game-info span {
  color: var(--muted);
  font-size: 13px;
}
.play {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #e9f7ff;
  color: var(--blue);
  cursor: pointer;
  font-size: 17px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}
.feature-box {
  min-height: 255px;
  border-radius: 26px;
  padding: 28px;
  background: linear-gradient(145deg, #082f6c, #0b84ef);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-box.alt {
  background: linear-gradient(145deg, #fff, #eee7d8);
  color: var(--text);
}
.feature-box h3 {
  font-size: 31px;
  line-height: 1.15;
  margin: 0 0 10px;
  max-width: 360px;
}
.feature-box p {
  opacity: 0.76;
  max-width: 430px;
}
.feature-shape {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 48px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.05)
  );
  right: -30px;
  bottom: -60px;
  transform: rotate(32deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.feature-box.alt .feature-shape {
  background: linear-gradient(145deg, #35c7ff, #0b78f7);
  box-shadow: 0 24px 50px rgba(0, 125, 255, 0.25);
}
.page-hero {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(130deg, #fff, #efe7d5);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 54px);
  margin: 0 0 10px;
}
.page-hero p {
  color: var(--muted);
  margin: 0;
}
.page-visual {
  font-size: 90px;
  filter: drop-shadow(0 20px 22px rgba(0, 125, 255, 0.18));
  transform: rotate(-8deg);
}
.filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.chip {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #5a7694;
  cursor: pointer;
}
.chip.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(8, 125, 255, 0.22);
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.promo {
  min-height: 250px;
  border-radius: 28px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #c89b3c, #10d6d1);
  box-shadow: var(--shadow-soft);
}
.promo:nth-child(2) {
  background: linear-gradient(135deg, #6d51ff, #0cbfff);
}
.promo:nth-child(3) {
  background: linear-gradient(135deg, #0a315f, #0b8aff);
}
.promo:nth-child(4) {
  background: linear-gradient(135deg, #159f97, #58e1b6);
}
.promo h3 {
  font-size: 28px;
  margin: 0 0 9px;
  max-width: 65%;
}
.promo p {
  max-width: 65%;
  opacity: 0.82;
}
.promo-icon {
  position: absolute;
  right: 30px;
  bottom: 18px;
  font-size: 92px;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.18));
}
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}
.contact-card,
.form-card {
  padding: 30px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}
.contact-card {
  background: linear-gradient(145deg, #072d66, #0b89f2);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 48px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  right: -130px;
  bottom: -120px;
}
.contact-card h2,
.form-card h2 {
  font-size: 30px;
  margin-top: 0;
}
.contact-list {
  display: grid;
  gap: 13px;
  margin-top: 25px;
}
.contact-item {
  padding: 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 12px;
  align-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: grid;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 13px;
  color: #5e7690;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f8fcff;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(8, 125, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(8, 125, 255, 0.08);
}
.field textarea {
  min-height: 145px;
  resize: vertical;
}
.footer {
  margin-top: 28px;
  padding: 24px 10px;
  color: #6c839d;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.mobile-nav {
  display: none;
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .sidebar {
    padding: 18px 11px;
  }
  .brand img {
    display: none;
  }
  .brand-mini {
    display: block;
    font-size: 17px;
  }
  .brand {
    justify-content: center;
  }
  .nav a {
    justify-content: center;
    padding: 12px;
  }
  .nav a span:not(.nav-icon) {
    display: none;
  }
  .side-card {
    display: none;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 42px;
  }
  .hero-art {
    position: absolute;
    right: -80px;
    bottom: -60px;
    width: 48%;
    opacity: 0.42;
  }
  .hero-copy {
    max-width: 72%;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
    padding: 10px;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 62px;
  }
  .search {
    width: 100%;
  }
  .profile {
    display: none;
  }
  .content {
    padding-bottom: 95px;
  }
  .hero {
    padding: 30px 24px;
    min-height: 430px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-art {
    position: relative;
    width: 100%;
    right: auto;
    bottom: auto;
    height: 180px;
    margin-top: 20px;
    opacity: 1;
  }
  .device {
    width: 75%;
    right: 10%;
    height: 160px;
  }
  .coin.c1 {
    right: 8%;
  }
  .cube {
    left: 2%;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .feature-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .promo-grid {
    grid-template-columns: 1fr;
  }
  .promo h3,
  .promo p {
    max-width: 72%;
  }
  .page-visual {
    font-size: 60px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .footer {
    flex-direction: column;
  }
  .mobile-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 12px;
    right: 12px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(14, 96, 162, 0.2);
    z-index: 50;
    padding: 7px;
  }
  .mobile-nav a {
    display: grid;
    place-items: center;
    gap: 3px;
    font-size: 10px;
    color: #7188a1;
    padding: 7px 2px;
    border-radius: 13px;
  }
  .mobile-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #16cdd7);
  }
  .mobile-nav b {
    font-size: 17px;
  }
}
@media (max-width: 470px) {
  .top-actions {
    display: none;
  }
  .hero {
    padding: 25px 20px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero p {
    font-size: 15px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .game-cover b {
    font-size: 16px;
  }
  .cover-icon {
    font-size: 52px;
  }
  .section-head h2 {
    font-size: 23px;
  }
  .stat {
    padding: 14px;
    min-height: 98px;
    gap: 11px;
  }
  .stat-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 15px;
  }
  .stat-icon svg {
    width: 26px;
    height: 26px;
  }
  .stat .num {
    font-size: 18px;
  }
  .stat small {
    font-size: 11px;
  }
  .page-hero {
    padding: 24px;
  }
  .page-visual {
    display: none;
  }
  .promo {
    padding: 24px;
  }
  .promo h3 {
    font-size: 23px;
  }
  .promo-icon {
    font-size: 70px;
  }
}

/* ===== SLOTXO Premium Experience Pack ===== */
:root {
  --mx: 50%;
  --my: 50%;
}
body.dark {
  --bg: #171717;
  --surface: rgba(8, 28, 52, 0.78);
  --surface-strong: #29251f;
  --text: #f5f1e8;
  --muted: #8aa4bd;
  --line: rgba(90, 190, 255, 0.16);
  background:
    radial-gradient(circle at 14% 4%, rgba(8, 125, 255, 0.22), transparent 26%),
    radial-gradient(
      circle at 82% 16%,
      rgba(16, 228, 219, 0.12),
      transparent 25%
    ),
    linear-gradient(180deg, #111111, #071b31 52%, #171717);
}
body.dark .sidebar,
body.dark .topbar .search,
body.dark .icon-btn,
body.dark .profile,
body.dark .game-card,
body.dark .page-hero,
body.dark .contact-card,
body.dark .form-card,
body.dark .stat {
  background: rgba(7, 27, 50, 0.82);
  border-color: rgba(120, 210, 255, 0.12);
}
body.dark .game-info,
body.dark .nav a {
  color: #b8d2e9;
}
body.dark .field input,
body.dark .field textarea {
  background: #0b213b;
  color: #fff;
}
#particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f8fdff, #dff5ff);
  transition: 0.6s;
}
.loader.hide {
  opacity: 0;
  visibility: hidden;
}
.loader-core {
  display: grid;
  place-items: center;
  gap: 16px;
  color: var(--navy);
  font-family: "Orbitron";
}
.loader-logo {
  width: min(260px, 72vw);
  max-height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 125, 255, 0.25));
  animation: loaderFloat 1.5s ease-in-out infinite;
}
.loader-bar {
  width: 180px;
  height: 7px;
  border-radius: 99px;
  background: #d9efff;
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  animation: loadbar 1s ease-in-out infinite;
}
@keyframes loaderFloat {
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}
@keyframes loadbar {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
}
.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(8, 125, 255, 0.42);
  transition:
    width 0.2s,
    height 0.2s,
    border 0.2s;
}
.cursor-ring.hover {
  width: 48px;
  height: 48px;
  border-color: rgba(16, 228, 219, 0.65);
}
.nav-icon {
  position: relative;
  transform-style: preserve-3d;
  background: linear-gradient(145deg, #fff, #d8f2ff) !important;
  box-shadow:
    5px 7px 14px rgba(12, 103, 176, 0.18),
    -4px -4px 9px rgba(255, 255, 255, 0.9),
    inset -2px -3px 5px rgba(8, 125, 255, 0.08);
  transition: 0.3s;
}
.nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}
.nav a:hover .nav-icon,
.nav a.active .nav-icon {
  transform: translateZ(15px) rotateY(-12deg) rotateX(8deg);
  color: #c89b3c;
  background: linear-gradient(145deg, #fff, #dfd4c1) !important;
}
.mega-menu {
  position: fixed;
  left: var(--mega-menu-left, 16px);
  top: var(--mega-menu-top, 200px);
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100dvh - var(--mega-menu-top, 200px) - 16px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 80px rgba(17, 91, 153, 0.22);
  z-index: 1600;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: 0.22s;
}
.mega-menu.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mega-item {
  padding: 15px;
  border-radius: 17px;
  background: linear-gradient(145deg, #fff, #edf9ff);
  border: 1px solid rgba(8, 125, 255, 0.08);
  transition: 0.25s;
}
.mega-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(8, 125, 255, 0.14);
}
.mega-item b {
  display: block;
  color: var(--navy);
}
.mega-item small {
  color: var(--muted);
}
.fx-toolbar {
  display: flex;
  gap: 8px;
}
.fx-toolbar button {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.65s linear;
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
.game-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.game-card .game-cover,
.game-card .game-info {
  transform: translateZ(16px);
}
.game-card img.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.game-card.has-image .game-cover::before,
.game-card.has-image .game-cover::after,
.game-card.has-image .cover-icon {
  display: none;
}
.game-card.has-image .game-cover b {
  background: linear-gradient(180deg, transparent, rgba(3, 17, 35, 0.78));
  position: absolute;
  inset: auto 0 0;
  padding: 45px 15px 14px;
  max-width: none;
}
.game-card.has-image .tag {
  position: absolute;
  left: 12px;
  top: 12px;
}
.hero-slider {
  position: relative;
}
.slide-dots {
  position: absolute;
  left: 48px;
  bottom: 25px;
  display: flex;
  gap: 8px;
  z-index: 6;
}
.slide-dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 99px;
  background: rgba(8, 125, 255, 0.22);
  cursor: pointer;
  transition: 0.3s;
}
.slide-dot.active {
  width: 28px;
  background: var(--blue);
}
.ranking {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}
.rank-panel {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.rank-list {
  display: grid;
  gap: 10px;
}
.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #edf8ff);
  transition: 0.25s;
}
.rank-item:hover {
  transform: translateX(5px);
}
.rank-no {
  font-family: "Orbitron";
  font-weight: 800;
  color: var(--blue);
  font-size: 20px;
}
.rank-meter {
  width: 86px;
  height: 7px;
  border-radius: 99px;
  background: #dbeeff;
  overflow: hidden;
}
.rank-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.pwa-toast {
  position: fixed;
  right: 20px;
  bottom: var(--pwa-stack-bottom, 20px);
  z-index: 200;
  padding: 16px;
  border-radius: 18px;
  background: #302a20;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: none;
  max-width: 320px;
}
.pwa-toast.show {
  display: block;
}
.pwa-toast .btn {
  margin-top: 10px;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}
@media (max-width: 1100px) {
  .mega-menu {
    width: min(760px, calc(100vw - 24px));
  }
}
@media (max-width: 760px) {
  .mega-menu {
    display: none;
  }
  .ranking {
    grid-template-columns: 1fr;
  }
  .slide-dots {
    left: 24px;
  }
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* Dark mode text and surface consistency fixes */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark .section-head h2,
body.dark .page-hero h1,
body.dark .stat .num,
body.dark .mega-item b,
body.dark .loader-core,
body.dark .btn.secondary,
body.dark .form-card h2 {
  color: var(--text);
}

body.dark p,
body.dark small,
body.dark .section-head p,
body.dark .page-hero p,
body.dark .game-info span,
body.dark .stat small,
body.dark .mega-item small,
body.dark .footer,
body.dark .field label,
body.dark .mobile-nav a,
body.dark .chip,
body.dark .rank-item span {
  color: var(--muted);
}

body.dark .eyebrow {
  background: rgba(8, 125, 255, 0.14);
  color: #7dc7ff;
  border: 1px solid rgba(125, 199, 255, 0.15);
}

body.dark .btn.secondary,
body.dark .chip,
body.dark .play {
  background: rgba(11, 33, 59, 0.9);
  color: #8fd5ff;
  border-color: rgba(90, 190, 255, 0.18);
}

body.dark .chip.active,
body.dark .mobile-nav a.active {
  color: #fff;
}

body.dark .mega-menu,
body.dark .mobile-nav,
body.dark .rank-panel {
  background: rgba(7, 27, 50, 0.92);
  border-color: rgba(120, 210, 255, 0.12);
}

body.dark .mega-item,
body.dark .rank-item {
  background: linear-gradient(
    145deg,
    rgba(13, 43, 76, 0.96),
    rgba(8, 30, 55, 0.96)
  );
  border-color: rgba(90, 190, 255, 0.1);
}

body.dark .search input,
body.dark .field input,
body.dark .field textarea {
  color: var(--text);
}

body.dark .search input::placeholder,
body.dark .field input::placeholder,
body.dark .field textarea::placeholder {
  color: #6f8ba5;
}

body.dark .feature-box.alt {
  background: linear-gradient(145deg, #29251f, #40382a);
  color: var(--text);
}

body.dark .device-screen,
body.dark .mini-panel,
body.dark .mini-panel.tile {
  background: linear-gradient(145deg, #3a3328, #26221d);
}

body.dark .nav-icon,
body.dark .nav a:hover .nav-icon,
body.dark .nav a.active .nav-icon,
body.dark .stat-icon,
body.dark .stat-service .stat-icon,
body.dark .stat-provider .stat-icon,
body.dark .stat-rating .stat-icon {
  background: linear-gradient(145deg, #12395f, #26221d) !important;
  box-shadow:
    6px 8px 18px rgba(0, 0, 0, 0.28),
    inset 1px 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark .footer {
  border-top-color: rgba(90, 190, 255, 0.14);
}

/* ===== Complete dark theme: hero, typography and adaptive brand logo ===== */
.theme-logo {
  transition:
    opacity 0.22s ease,
    filter 0.3s ease;
  object-fit: contain;
}
body.dark {
  color-scheme: dark;
}
body.dark .hero {
  background:
    radial-gradient(
      circle at 77% 16%,
      rgba(36, 211, 255, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at 92% 84%,
      rgba(8, 125, 255, 0.24),
      transparent 35%
    ),
    linear-gradient(128deg, rgba(7, 25, 47, 0.98), rgba(9, 37, 67, 0.94));
  border-color: rgba(126, 213, 255, 0.18);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.dark .hero::before {
  background:
    linear-gradient(100deg, rgba(3, 14, 29, 0.18), transparent 52%),
    radial-gradient(
      circle at 72% 20%,
      rgba(56, 215, 255, 0.23),
      transparent 27%
    ),
    radial-gradient(circle at 90% 80%, rgba(8, 125, 255, 0.24), transparent 34%);
}
body.dark .hero h1 {
  color: #f3fbff;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
}
body.dark .hero .gradient-text {
  background: linear-gradient(90deg, #5ba8ff 0%, #18dce6 75%, #8ffcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 20px rgba(20, 196, 235, 0.16));
}
body.dark .hero p {
  color: #9db6cc;
}
body.dark .hero .eyebrow {
  background: rgba(25, 151, 227, 0.13);
  color: #72d8ff;
  border-color: rgba(87, 203, 255, 0.2);
}
body.dark .hero .btn.secondary {
  background: rgba(15, 47, 78, 0.94);
  color: #efe7d5;
  border-color: rgba(110, 208, 255, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
body.dark .hero .btn.secondary:hover {
  background: rgba(20, 63, 102, 0.98);
  color: #fff;
}
body.dark .device {
  box-shadow:
    30px 38px 75px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
body.dark .device-screen {
  background: linear-gradient(160deg, #3a3328, #071c33);
}
body.dark .mini-panel {
  background: rgba(13, 43, 73, 0.88);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}
body.dark .mini-panel.tile {
  background: linear-gradient(145deg, #143a60, #0b2744);
}
body.dark .mini-panel.line {
  background: linear-gradient(90deg, #123554, #0b2947);
}
body.dark .cube {
  background: linear-gradient(145deg, #d7fbff, #20a9e8);
  box-shadow: 0 18px 38px rgba(26, 174, 227, 0.27);
}
body.dark .slide-dot {
  background: rgba(127, 211, 255, 0.25);
}
body.dark .slide-dot.active {
  background: #39cbff;
  box-shadow: 0 0 16px rgba(57, 203, 255, 0.45);
}
body.dark .sidebar {
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
body.dark .brand img {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
}
body.dark .topbar {
  color: var(--text);
}
body.dark .search {
  color: #87cfff;
}
body.dark .icon-btn {
  color: #efe7d5;
}
body.dark .profile {
  color: #f1fbff;
}
body.dark .side-card p,
body.dark .contact-card p,
body.dark .feature-box:not(.alt) p {
  color: rgba(255, 255, 255, 0.76);
}
body.dark .game-info b,
body.dark .rank-item b,
body.dark .contact-card h2 {
  color: #eefaff;
}
body.dark .link {
  color: #65d4ff;
}
body.dark .stat {
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
body.dark .stat::before {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.045),
    transparent 45%
  );
}
body.dark .stat:hover {
  box-shadow:
    0 28px 58px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(29, 178, 240, 0.08);
}
body.dark .stat .num {
  color: #f0fbff;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
}
body.dark .loader {
  background: linear-gradient(145deg, #111111, #092844);
}
body.dark .loader-bar {
  background: #40382a;
}
body.dark .loader-core small {
  color: #9fc4df;
}
@media (max-width: 1100px) {
  body.dark .brand-mini {
    color: #74d8ff;
  }
}

/* ===== SEO content areas ===== */
.seo-content {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  margin: 24px 0 30px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid rgba(21, 151, 225, 0.14);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.94),
    rgba(239, 249, 255, 0.88)
  );
  box-shadow:
    0 18px 50px rgba(31, 116, 170, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.seo-content::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(35, 201, 238, 0.16),
    transparent 68%
  );
  pointer-events: none;
}
.seo-content--under-title {
  margin-top: -2px;
  margin-bottom: 26px;
}
.seo-content__badge {
  position: relative;
  z-index: 1;
  padding: 9px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #128df0, #22cfdf);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(20, 158, 224, 0.22);
}
.seo-content__body {
  position: relative;
  z-index: 1;
}
.seo-content h2 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: clamp(20px, 2vw, 28px);
}
.seo-content h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 16px;
}
.seo-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}
.seo-content__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(21, 151, 225, 0.12);
}
body.dark .seo-content {
  border-color: rgba(89, 199, 255, 0.16);
  background: linear-gradient(
    145deg,
    rgba(8, 31, 55, 0.96),
    rgba(8, 43, 73, 0.9)
  );
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body.dark .seo-content h2,
body.dark .seo-content h3 {
  color: #effaff;
}
body.dark .seo-content p {
  color: #9db8ce;
}
body.dark .seo-content__columns {
  border-top-color: rgba(102, 207, 255, 0.12);
}
body.dark .seo-content::after {
  background: radial-gradient(
    circle,
    rgba(27, 193, 237, 0.14),
    transparent 68%
  );
}
@media (max-width: 720px) {
  .seo-content {
    grid-template-columns: 1fr;
    padding: 22px 20px;
    border-radius: 20px;
  }
  .seo-content__badge {
    width: max-content;
  }
  .seo-content__columns {
    grid-template-columns: 1fr;
  }
}

/* ===== Header authentication buttons ===== */
.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-btn {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}
.auth-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 13px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.34),
    transparent 38%,
    transparent 62%,
    rgba(255, 255, 255, 0.18)
  );
  pointer-events: none;
}
.auth-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -45%;
  left: -55%;
  width: 38%;
  height: 190%;
  transform: rotate(22deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.72),
    transparent
  );
  animation: authShimmer 3.4s ease-in-out infinite;
  pointer-events: none;
}
.auth-btn:hover {
  transform: translateY(-3px) scale(1.025);
  filter: saturate(1.08);
}
.auth-btn:active {
  transform: translateY(0) scale(0.98);
}
.auth-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
  font-size: 13px;
}
.auth-login {
  color: #fff;
  border: 1px solid rgba(87, 214, 255, 0.65);
  background: linear-gradient(135deg, #c89b3c, #b9933f);
  box-shadow:
    0 10px 25px rgba(8, 125, 255, 0.28),
    0 0 18px rgba(31, 196, 235, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.auth-login:hover {
  box-shadow:
    0 15px 32px rgba(8, 125, 255, 0.38),
    0 0 27px rgba(31, 196, 235, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}
.auth-register {
  color: #4b3100;
  border: 1px solid rgba(255, 214, 53, 0.95);
  background: linear-gradient(135deg, #e7c557 0%, #d7aa42 52%, #ffab00 100%);
  box-shadow:
    0 11px 28px rgba(255, 177, 0, 0.38),
    0 0 22px rgba(255, 212, 45, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  animation: registerGlow 2.1s ease-in-out infinite;
}
.auth-register:hover {
  box-shadow:
    0 16px 36px rgba(255, 166, 0, 0.5),
    0 0 34px rgba(255, 221, 53, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
@keyframes registerGlow {
  0%,
  100% {
    box-shadow:
      0 11px 28px rgba(255, 177, 0, 0.35),
      0 0 16px rgba(255, 212, 45, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }
  50% {
    box-shadow:
      0 13px 32px rgba(255, 177, 0, 0.48),
      0 0 30px rgba(255, 218, 44, 0.62),
      inset 0 1px 0 rgba(255, 255, 255, 0.78);
  }
}
@keyframes authShimmer {
  0%,
  58% {
    left: -55%;
    opacity: 0;
  }
  65% {
    opacity: 1;
  }
  88%,
  100% {
    left: 125%;
    opacity: 0;
  }
}
body.dark .auth-login {
  border-color: rgba(95, 222, 255, 0.72);
  background: linear-gradient(135deg, #086fe2, #14bedc);
  box-shadow:
    0 12px 30px rgba(0, 90, 215, 0.4),
    0 0 24px rgba(31, 196, 235, 0.25);
}
body.dark .auth-register {
  color: #3c2700;
}
@media (max-width: 900px) {
  .auth-btn {
    padding: 0 13px;
  }
  .auth-icon {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 8px 4px;
  }
  .top-actions {
    margin-left: auto;
  }
  .auth-actions {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .auth-btn {
    min-height: 40px;
    border-radius: 12px;
    padding: 0 10px;
    font-size: 13px;
  }
  .auth-btn::before {
    border-radius: 11px;
  }
}
@media (max-width: 430px) {
  .fx-toolbar {
    gap: 6px;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
  }
  .auth-btn {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-register,
  .auth-btn::after {
    animation: none;
  }
}

/* Mobile auth actions: only registration and login are highlighted */
@media (max-width: 760px) {
  .mobile-nav a.mobile-register,
  body.dark .mobile-nav a.mobile-register {
    color: #382700;
    background: linear-gradient(145deg, #f2d878, #d7aa42 55%, #f3a600);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
      0 5px 14px rgba(255, 190, 0, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-weight: 800;
  }
  .mobile-nav a.mobile-login,
  body.dark .mobile-nav a.mobile-login {
    /* Keep login visually consistent with the normal navigation items. */
    color: inherit;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-weight: inherit;
  }
  .mobile-nav .mobile-login-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
  }
  .mobile-nav .mobile-login-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-nav a.mobile-register b {
    font-size: 18px;
    color: inherit;
  }
  .mobile-nav a.mobile-login b {
    font-size: inherit;
    color: inherit;
  }
  .mobile-nav a.mobile-register:active,
  .mobile-nav a.mobile-login:active {
    transform: translateY(1px) scale(0.97);
  }
}

/* SLOTXO full game catalogue */
.game-catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px auto auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
}
body.dark .game-catalog-toolbar {
  background: rgba(7, 25, 48, 0.78);
}
.catalog-search {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.catalog-search svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.catalog-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
#catalogSort {
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: inherit;
  font: inherit;
}
.catalog-view {
  display: flex;
  gap: 6px;
}
.view-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}
.view-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #c89b3c, #b9933f);
  box-shadow: 0 9px 22px rgba(8, 125, 255, 0.25);
}
.catalog-count {
  white-space: nowrap;
  font-weight: 800;
  color: var(--muted);
}
#dynamicGames.cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.pg-game-card {
  overflow: hidden;
  border-radius: 18px;
  transform-style: preserve-3d;
}
.pg-game-card .game-cover {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #071d3e;
}
.pg-game-card .game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.4s;
}
.pg-game-card:hover .game-image {
  transform: scale(1.08);
  filter: saturate(1.08);
}
.game-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 12, 30, 0.75), transparent 56%);
  opacity: 0.65;
  transition: 0.3s;
}
.pg-game-card:hover .game-shade {
  opacity: 1;
}
.pg-game-card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.game-fav {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 9px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 11px;
  background: rgba(2, 17, 39, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 19px;
  cursor: pointer;
}
.game-fav.active {
  color: #ffcf31;
  background: rgba(50, 35, 0, 0.72);
}
.game-hover-actions {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  transform: translateY(16px);
  opacity: 0;
  transition: 0.32s;
}
.pg-game-card:hover .game-hover-actions {
  transform: none;
  opacity: 1;
}
.game-hover-actions button {
  height: 38px;
  border: 0;
  border-radius: 11px;
  font-weight: 800;
  cursor: pointer;
}
.quick-play {
  color: #fff;
  background: linear-gradient(135deg, #c89b3c, #17c7e5);
  box-shadow: 0 8px 20px rgba(8, 125, 255, 0.36);
}
.quick-detail {
  padding: 0 12px;
  color: #fff;
  background: rgba(8, 26, 50, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
.pg-game-card .game-info {
  gap: 9px;
  padding: 12px;
}
.game-copy {
  min-width: 0;
}
.game-copy b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.game-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.rtp-pill {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 10px;
  text-align: right;
  background: rgba(8, 125, 255, 0.09);
  border: 1px solid rgba(8, 125, 255, 0.18);
}
.rtp-pill small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.rtp-pill strong {
  font-size: 12px;
  color: #c89b3c;
}
body.dark .rtp-pill strong {
  color: #5fdfff;
}
.catalog-list {
  display: block !important;
}
.catalog-list .pg-game-card {
  display: grid;
  grid-template-columns: 95px 1fr;
  margin-bottom: 10px;
}
.catalog-list .game-cover {
  aspect-ratio: 1/1;
}
.catalog-list .game-info {
  padding: 15px 18px;
}
.catalog-list .game-copy b {
  font-size: 16px;
}
.catalog-list .game-hover-actions {
  display: none;
}
.catalog-more {
  display: block;
  margin: 24px auto 8px;
  min-width: 190px;
}
.catalog-more[hidden] {
  display: none;
}
.game-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 10, 28, 0.74);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.game-modal.show {
  opacity: 1;
  visibility: visible;
}
.game-modal-card {
  position: relative;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 44% 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(18px) scale(0.97);
  transition: 0.3s;
}
.game-modal.show .game-modal-card {
  transform: none;
}
.game-modal-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}
.game-modal-body {
  padding: 34px;
  align-self: center;
}
.game-modal-body h2 {
  margin: 10px 0 14px;
  font-size: 30px;
}
.game-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.game-modal-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8, 125, 255, 0.1);
  border: 1px solid rgba(8, 125, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}
.game-modal-close {
  position: absolute;
  z-index: 2;
  right: 13px;
  top: 13px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}
.modal-open {
  overflow: hidden;
}
@media (max-width: 1200px) {
  #dynamicGames.cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  #dynamicGames.cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .game-catalog-toolbar {
    grid-template-columns: 1fr 170px auto;
  }
  .catalog-count {
    grid-column: 1/-1;
  }
  .game-modal-card {
    grid-template-columns: 40% 1fr;
  }
}
@media (max-width: 640px) {
  #dynamicGames.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .game-catalog-toolbar {
    grid-template-columns: 1fr auto;
  }
  .catalog-search {
    grid-column: 1/-1;
  }
  #catalogSort {
    min-width: 0;
    width: 100%;
  }
  .catalog-count {
    display: none;
  }
  .pg-game-card .game-info {
    padding: 9px;
  }
  .game-copy b {
    font-size: 12px;
  }
  .rtp-pill {
    padding: 5px 6px;
  }
  .rtp-pill strong {
    font-size: 10px;
  }
  .game-hover-actions {
    opacity: 1;
    transform: none;
  }
  .quick-detail {
    display: none;
  }
  .game-modal-card {
    display: block;
    max-height: 88vh;
    overflow: auto;
  }
  .game-modal-image {
    height: 270px;
    min-height: 0;
  }
  .game-modal-body {
    padding: 24px;
  }
  .game-modal-body h2 {
    font-size: 24px;
  }
}

.catalog-source-note {
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
}

/* Image promotion cards */
.promo-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.promo-image-card {
  display: block;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(126, 156, 192, 0.16);
  transform: translateZ(0);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.promo-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.24) 48%,
    transparent 66%
  );
  transform: translateX(-130%);
  transition: transform 0.75s ease;
  pointer-events: none;
}
.promo-image-card:hover {
  transform: translateY(-7px) scale(1.012);
  box-shadow: 0 24px 55px rgba(24, 72, 132, 0.22);
  border-color: rgba(80, 164, 255, 0.38);
}
.promo-image-card:hover::after {
  transform: translateX(130%);
}
.promo-image-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 784/466;
  object-fit: cover;
}
@media (max-width: 760px) {
  .promo-image-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .promo-image-card {
    border-radius: 20px;
  }
}

/* Sidebar promotion gallery */

/* Sidebar promotion auto slider */
.sidebar-promo-slider {
  margin-top: auto;
  padding-top: 18px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.sidebar-promo-track {
  position: relative;
  width: 100%;
  aspect-ratio: 784/466;
  border-radius: 17px;
  overflow: hidden;
  border: 1px solid rgba(79, 170, 255, 0.25);
  background: #071c35;
  box-shadow: 0 14px 30px rgba(2, 34, 72, 0.2);
}
.sidebar-promo-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px) scale(0.985);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    visibility 0.55s;
  pointer-events: none;
}
.sidebar-promo-slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.sidebar-promo-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-promo-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(255, 255, 255, 0.2) 49%,
    transparent 65%
  );
  transform: translateX(-145%);
  animation: sidebarPromoShine 4.8s ease-in-out infinite;
  pointer-events: none;
}
.sidebar-promo-slider:hover .sidebar-promo-track {
  border-color: rgba(46, 169, 255, 0.65);
  box-shadow: 0 18px 36px rgba(4, 85, 175, 0.3);
}
.sidebar-promo-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 9px;
}
.sidebar-promo-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 20px;
  background: rgba(65, 139, 205, 0.28);
  transition: 0.35s;
}
.sidebar-promo-dots i.active {
  width: 18px;
  background: #199cff;
}
body.dark .sidebar-promo-track {
  border-color: rgba(92, 188, 255, 0.2);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}
@keyframes sidebarPromoShine {
  0%,
  55% {
    transform: translateX(-145%);
  }
  80%,
  100% {
    transform: translateX(145%);
  }
}
@media (max-width: 1100px) {
  .sidebar-promo-slider {
    display: none;
  }
}

/* ===== Hero PG game character artwork ===== */
.hero-game-art {
  isolation: isolate;
  display: grid;
  place-items: center;
}
.hero-character-card {
  position: absolute;
  right: 7%;
  top: 1%;
  width: min(78%, 310px);
  aspect-ratio: 1/1;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(145deg, #0b3b75, #11aee9);
  box-shadow:
    0 30px 70px rgba(0, 85, 180, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: rotate(3deg);
  animation: heroCharacterFloat 5.4s ease-in-out infinite;
  z-index: 3;
}
.hero-character-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(1, 23, 53, 0.48));
  pointer-events: none;
}
.hero-character-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  animation: heroCharacterZoom 8s ease-in-out infinite alternate;
}
.hero-game-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 4;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(3, 29, 63, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: "Orbitron", "Kanit", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.hero-character-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  right: -35px;
  bottom: -35px;
  border-radius: 50%;
  background: rgba(29, 221, 255, 0.45);
  filter: blur(24px);
  animation: pulseGlow 3.5s ease-in-out infinite;
  z-index: 1;
}
.hero-mini-game {
  position: absolute;
  width: 74px;
  aspect-ratio: 1;
  border-radius: 21px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 35px rgba(0, 76, 155, 0.26);
  z-index: 5;
  animation: miniGameFloat 4.2s ease-in-out infinite;
}
.hero-mini-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini-neko {
  left: 3%;
  bottom: 10%;
  transform: rotate(-10deg);
  animation-delay: -1.2s;
}
.mini-mahjong {
  right: 0;
  bottom: 4%;
  width: 62px;
  transform: rotate(9deg);
  animation-delay: -2.5s;
}
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(27, 176, 255, 0.25);
  border-radius: 50%;
  z-index: 0;
  animation: orbitSpin 16s linear infinite;
}
.orbit-one {
  width: 300px;
  height: 300px;
  right: 5%;
  top: 2%;
}
.orbit-two {
  width: 230px;
  height: 230px;
  right: 14%;
  top: 13%;
  animation-direction: reverse;
  animation-duration: 12s;
  border-style: dashed;
}
.hero-orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6b45a;
  box-shadow: 0 0 18px #d6b45a;
  left: 50%;
  top: -5px;
}
.spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 15px #5de8ff;
  z-index: 6;
  animation: sparkBlink 2.4s ease-in-out infinite;
}
.spark-one {
  right: 9%;
  top: 21%;
}
.spark-two {
  left: 20%;
  top: 18%;
  animation-delay: -0.8s;
}
.spark-three {
  right: 26%;
  bottom: 3%;
  animation-delay: -1.5s;
}
@keyframes heroCharacterFloat {
  0%,
  100% {
    transform: translateY(0) rotate(3deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}
@keyframes heroCharacterZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.11);
  }
}
@keyframes miniGameFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -11px;
  }
}
@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulseGlow {
  50% {
    transform: scale(1.18);
    opacity: 0.6;
  }
}
@keyframes sparkBlink {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}
body.dark .hero-character-card {
  border-color: rgba(116, 220, 255, 0.24);
  box-shadow:
    0 30px 75px rgba(0, 0, 0, 0.44),
    0 0 42px rgba(0, 157, 255, 0.16);
}
@media (max-width: 1100px) {
  .hero-character-card {
    right: 4%;
    width: 285px;
  }
  .hero-mini-game {
    width: 62px;
  }
  .mini-mahjong {
    width: 54px;
  }
}
@media (max-width: 760px) {
  .hero-game-art {
    height: 220px;
  }
  .hero-character-card {
    width: 190px;
    right: 14%;
    top: 0;
    border-radius: 24px;
  }
  .hero-mini-game {
    width: 52px;
    border-radius: 15px;
  }
  .mini-neko {
    left: 9%;
    bottom: 5%;
  }
  .mini-mahjong {
    right: 7%;
    bottom: 2%;
    width: 45px;
  }
  .orbit-one {
    width: 210px;
    height: 210px;
    right: 10%;
  }
  .orbit-two {
    width: 160px;
    height: 160px;
    right: 18%;
  }
  .hero-game-badge {
    left: 11px;
    top: 11px;
    padding: 6px 9px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-character-card,
  .hero-character-card img,
  .hero-mini-game,
  .hero-orbit,
  .spark {
    animation: none !important;
  }
}

/* ===== Hero boy with floating PG game icons ===== */
.hero-boy-scene {
  overflow: visible;
  min-height: 390px;
}
.hero-boy {
  position: absolute;
  z-index: 5;
  right: 9%;
  bottom: -8%;
  width: min(62%, 300px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(0, 52, 120, 0.3));
  animation: heroBoyFloat 4.8s ease-in-out infinite;
  transform-origin: 50% 82%;
}
.hero-boy-glow {
  position: absolute;
  z-index: 1;
  right: 8%;
  bottom: 2%;
  width: 300px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(35, 210, 255, 0.35),
    rgba(14, 107, 255, 0.15) 45%,
    transparent 72%
  );
  filter: blur(10px);
  animation: heroBoyGlow 3.8s ease-in-out infinite;
}
.hero-game-icon {
  position: absolute;
  z-index: 7;
  display: block;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 21px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.86);
  background: #0b315f;
  box-shadow:
    0 14px 30px rgba(0, 73, 153, 0.28),
    0 0 20px rgba(55, 210, 255, 0.18);
  animation: heroGameDrift 5s ease-in-out infinite;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.hero-game-icon:hover {
  transform: translateY(-5px) scale(1.08) !important;
  box-shadow:
    0 20px 38px rgba(0, 89, 190, 0.36),
    0 0 28px rgba(65, 220, 255, 0.35);
}
.hero-game-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.icon-tiger {
  left: 5%;
  top: 8%;
  transform: rotate(-8deg);
  animation-delay: -0.4s;
}
.icon-neko {
  left: 0;
  bottom: 8%;
  width: 66px;
  transform: rotate(7deg);
  animation-delay: -1.7s;
}
.icon-mahjong {
  right: 0;
  top: 10%;
  width: 66px;
  transform: rotate(8deg);
  animation-delay: -2.8s;
}
.icon-aztec {
  right: 1%;
  bottom: 4%;
  width: 72px;
  transform: rotate(-6deg);
  animation-delay: -3.7s;
}
.hero-boy-scene .orbit-one {
  right: 7%;
  top: 5%;
  width: 320px;
  height: 320px;
}
.hero-boy-scene .orbit-two {
  right: 16%;
  top: 15%;
  width: 235px;
  height: 235px;
}
@keyframes heroBoyFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}
@keyframes heroBoyGlow {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}
@keyframes heroGameDrift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
@media (max-width: 1100px) {
  .hero-boy {
    right: 7%;
    width: 285px;
  }
  .hero-game-icon {
    width: 64px;
  }
  .icon-neko,
  .icon-mahjong {
    width: 58px;
  }
}
@media (max-width: 760px) {
  .hero-boy-scene {
    min-height: 235px;
    height: 235px;
  }
  .hero-boy {
    width: 178px;
    right: 18%;
    bottom: -4%;
  }
  .hero-boy-glow {
    width: 210px;
    height: 170px;
    right: 13%;
    bottom: 0;
  }
  .hero-game-icon {
    width: 46px;
    border-radius: 14px;
  }
  .icon-neko,
  .icon-mahjong {
    width: 42px;
  }
  .icon-tiger {
    left: 8%;
    top: 8%;
  }
  .icon-neko {
    left: 7%;
    bottom: 5%;
  }
  .icon-mahjong {
    right: 7%;
    top: 8%;
  }
  .icon-aztec {
    right: 8%;
    bottom: 3%;
    width: 46px;
  }
  .hero-boy-scene .orbit-one {
    width: 210px;
    height: 210px;
    right: 14%;
  }
  .hero-boy-scene .orbit-two {
    width: 155px;
    height: 155px;
    right: 23%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-boy,
  .hero-boy-glow,
  .hero-game-icon {
    animation: none !important;
  }
}

/* ===== Hero composition fix: keep head inside frame and crop to upper body ===== */
.hero-boy-scene {
  overflow: hidden !important;
  min-height: 390px;
}
.hero-boy {
  top: 10px !important;
  bottom: auto !important;
  right: 8% !important;
  width: min(64%, 300px) !important;
  transform-origin: 50% 38%;
}
.hero-boy-glow {
  right: 7% !important;
  bottom: -5% !important;
}
.icon-tiger {
  left: 7%;
  top: 17%;
}
.icon-neko {
  left: 4%;
  bottom: 12%;
}
.icon-mahjong {
  right: 3%;
  top: 18%;
}
.icon-aztec {
  right: 4%;
  bottom: 10%;
}
@media (max-width: 1100px) {
  .hero-boy {
    top: 8px !important;
    right: 7% !important;
    width: 278px !important;
  }
}
@media (max-width: 760px) {
  .hero-boy-scene {
    overflow: hidden !important;
    min-height: 235px;
    height: 235px;
  }
  .hero-boy {
    top: 4px !important;
    bottom: auto !important;
    right: 17% !important;
    width: 172px !important;
  }
  .hero-boy-glow {
    right: 12% !important;
    bottom: -8% !important;
  }
  .icon-tiger {
    left: 8%;
    top: 14%;
  }
  .icon-neko {
    left: 7%;
    bottom: 9%;
  }
  .icon-mahjong {
    right: 7%;
    top: 14%;
  }
  .icon-aztec {
    right: 8%;
    bottom: 8%;
  }
}

/* Hero character: anchor the cropped character to the bottom edge */
.hero-boy-scene {
  position: relative;
  overflow: hidden !important;
}
.hero-boy {
  top: auto !important;
  bottom: -205px !important;
  right: 5.5% !important;
  width: min(70%, 340px) !important;
  transform-origin: 50% 62% !important;
}
.hero-boy-glow {
  right: 4% !important;
  bottom: -10% !important;
  width: 340px !important;
  height: 270px !important;
}
@media (max-width: 1100px) {
  .hero-boy {
    right: 4.5% !important;
    bottom: -188px !important;
    width: 318px !important;
  }
}
@media (max-width: 760px) {
  .hero-boy {
    top: auto !important;
    right: 13% !important;
    bottom: -116px !important;
    width: 194px !important;
  }
  .hero-boy-glow {
    right: 8% !important;
    bottom: -12% !important;
    width: 225px !important;
    height: 180px !important;
  }
}

/* ===== Hero character final balanced composition ===== */
.hero-boy-scene {
  position: relative;
  overflow: hidden !important;
  min-height: 390px;
}
.hero-boy {
  top: 8px !important;
  bottom: auto !important;
  right: 7% !important;
  width: 300px !important;
  max-width: none !important;
  clip-path: inset(0 0 38% 0);
  filter: drop-shadow(0 24px 28px rgba(0, 52, 120, 0.28));
  animation: heroBoySoftMove 5.8s ease-in-out infinite !important;
  transform-origin: 50% 45% !important;
}
.hero-boy-glow {
  right: 5% !important;
  bottom: -4% !important;
  width: 320px !important;
  height: 230px !important;
  opacity: 0.72;
}
.icon-tiger {
  left: 7%;
  top: 20%;
}
.icon-neko {
  left: 5%;
  bottom: 13%;
}
.icon-mahjong {
  right: 4%;
  top: 20%;
}
.icon-aztec {
  right: 5%;
  bottom: 12%;
}
@keyframes heroBoySoftMove {
  0%,
  100% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-5px) rotate(0.4deg);
  }
}
@media (max-width: 1100px) {
  .hero-boy {
    top: 10px !important;
    right: 6% !important;
    width: 282px !important;
    clip-path: inset(0 0 39% 0);
  }
  .hero-boy-glow {
    right: 4% !important;
    width: 300px !important;
    height: 215px !important;
  }
}
@media (max-width: 760px) {
  .hero-boy-scene {
    min-height: 235px;
    height: 235px;
  }
  .hero-boy {
    top: 5px !important;
    right: 16% !important;
    width: 178px !important;
    clip-path: inset(0 0 38% 0);
  }
  .hero-boy-glow {
    right: 10% !important;
    bottom: -5% !important;
    width: 210px !important;
    height: 150px !important;
  }
  .icon-tiger {
    left: 8%;
    top: 18%;
  }
  .icon-neko {
    left: 7%;
    bottom: 11%;
  }
  .icon-mahjong {
    right: 7%;
    top: 18%;
  }
  .icon-aztec {
    right: 8%;
    bottom: 10%;
  }
}

/* ===== Premium full-body PG hero composition ===== */
.hero {
  min-height: 500px;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  padding: 54px 46px 44px 54px;
}
.hero-copy {
  max-width: 640px;
}
.hero-boy-scene {
  position: relative !important;
  width: 100% !important;
  height: 430px !important;
  min-height: 430px !important;
  right: auto !important;
  bottom: auto !important;
  opacity: 1 !important;
  overflow: hidden !important;
  align-self: end;
}
.hero-boy-scene::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 430px;
  height: 430px;
  right: 7%;
  top: 1%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(54, 219, 255, 0.2),
    rgba(0, 118, 255, 0.09) 42%,
    transparent 70%
  );
  filter: blur(2px);
}
.hero-boy {
  top: 10px !important;
  right: 21% !important;
  bottom: auto !important;
  width: auto !important;
  height: 402px !important;
  max-width: none !important;
  clip-path: none !important;
  object-fit: contain !important;
  transform-origin: 50% 75% !important;
  filter: drop-shadow(0 24px 30px rgba(0, 40, 105, 0.3)) !important;
  animation: heroBoyPremiumFloat 5.8s ease-in-out infinite !important;
}
.hero-boy-glow {
  z-index: 1 !important;
  right: 12% !important;
  bottom: 12px !important;
  width: 430px !important;
  height: 270px !important;
  opacity: 0.9 !important;
  background: radial-gradient(
    ellipse,
    rgba(41, 213, 255, 0.38),
    rgba(16, 109, 255, 0.16) 46%,
    transparent 72%
  ) !important;
}
.hero-energy-platform {
  position: absolute;
  z-index: 3;
  right: 14%;
  bottom: 7px;
  width: 360px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(120, 247, 255, 0.92) 0 9%,
    rgba(24, 190, 255, 0.75) 10% 20%,
    rgba(0, 103, 255, 0.35) 35%,
    transparent 69%
  );
  box-shadow:
    0 0 30px rgba(31, 203, 255, 0.48),
    0 0 68px rgba(0, 111, 255, 0.28);
  transform: perspective(300px) rotateX(64deg);
  animation: heroPlatformPulse 3.8s ease-in-out infinite;
}
.hero-energy-platform::before,
.hero-energy-platform::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(101, 235, 255, 0.62);
  border-radius: 50%;
}
.hero-energy-platform::after {
  inset: 18px;
  border-color: rgba(255, 255, 255, 0.52);
}
.hero-energy-platform span {
  position: absolute;
  inset: -17px 35px;
  border-radius: 50%;
  border: 1px solid rgba(41, 190, 255, 0.36);
  animation: orbitSpin 10s linear infinite;
}
.hero-boy-scene .orbit-one {
  width: 390px !important;
  height: 390px !important;
  right: 10% !important;
  top: 2% !important;
  opacity: 0.7;
}
.hero-boy-scene .orbit-two {
  width: 285px !important;
  height: 285px !important;
  right: 18% !important;
  top: 15% !important;
  opacity: 0.55;
}
.hero-game-icon {
  width: 76px !important;
  border-radius: 22px !important;
}
.icon-tiger {
  left: 8% !important;
  top: 16% !important;
}
.icon-neko {
  left: 4% !important;
  bottom: 18% !important;
  width: 72px !important;
}
.icon-mahjong {
  right: 2% !important;
  top: 19% !important;
  width: 72px !important;
}
.icon-aztec {
  right: 4% !important;
  bottom: 17% !important;
  width: 78px !important;
}
.hero-boy-scene .coin.c1 {
  right: 7%;
  top: 3%;
  width: 58px;
  height: 58px;
}
.hero-boy-scene .coin.c2 {
  left: 23%;
  right: auto;
  bottom: 7%;
  width: 48px;
  height: 48px;
}
.hero-boy-scene .coin.c3 {
  right: 5%;
  bottom: 22%;
  width: 42px;
  height: 42px;
}
.hero-gem {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  transform: rotate(45deg);
  border-radius: 6px;
  background: linear-gradient(145deg, #d9fbff, #38ddff 44%, #126cff);
  box-shadow: 0 0 18px rgba(62, 219, 255, 0.75);
  animation: heroGemFloat 4.6s ease-in-out infinite;
}
.gem-one {
  left: 30%;
  top: 39%;
}
.gem-two {
  right: 17%;
  bottom: 9%;
  animation-delay: -1.5s;
}
.gem-three {
  left: 34%;
  bottom: 13%;
  width: 16px;
  height: 16px;
  animation-delay: -2.7s;
}
@keyframes heroBoyPremiumFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-0.25deg);
  }
  50% {
    transform: translateY(-7px) rotate(0.35deg);
  }
}
@keyframes heroPlatformPulse {
  0%,
  100% {
    opacity: 0.78;
    filter: saturate(1);
  }
  50% {
    opacity: 1;
    filter: saturate(1.25);
  }
}
@keyframes heroGemFloat {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -10px;
    rotate: 12deg;
  }
}

@media (max-width: 1280px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(470px, 1.05fr);
  }
  .hero-boy {
    right: 19% !important;
    height: 385px !important;
  }
  .hero-energy-platform {
    right: 12%;
    width: 335px;
  }
  .hero-boy-scene .orbit-one {
    right: 7% !important;
  }
}
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 470px;
    padding: 42px;
  }
  .hero-copy {
    max-width: 62%;
    z-index: 3;
  }
  .hero-boy-scene {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 48% !important;
    height: 420px !important;
    min-height: 420px !important;
    opacity: 1 !important;
  }
  .hero-boy {
    right: 19% !important;
    top: 12px !important;
    height: 374px !important;
  }
  .hero-energy-platform {
    right: 8%;
    width: 320px;
  }
  .hero-game-icon {
    width: 66px !important;
  }
  .icon-neko,
  .icon-mahjong {
    width: 62px !important;
  }
  .icon-aztec {
    width: 68px !important;
  }
}
@media (max-width: 760px) {
  .hero {
    min-height: 650px;
    padding: 30px 24px 24px;
    display: block;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-boy-scene {
    position: relative !important;
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 16px !important;
  }
  .hero-boy {
    top: 3px !important;
    right: 31% !important;
    height: 276px !important;
  }
  .hero-boy-glow {
    right: 14% !important;
    bottom: 0 !important;
    width: 290px !important;
    height: 180px !important;
  }
  .hero-energy-platform {
    right: 16%;
    bottom: 0;
    width: 260px;
    height: 52px;
  }
  .hero-boy-scene .orbit-one {
    width: 270px !important;
    height: 270px !important;
    right: 14% !important;
    top: 2% !important;
  }
  .hero-boy-scene .orbit-two {
    width: 195px !important;
    height: 195px !important;
    right: 25% !important;
    top: 15% !important;
  }
  .hero-game-icon {
    width: 50px !important;
    border-radius: 15px !important;
  }
  .icon-neko,
  .icon-mahjong {
    width: 46px !important;
  }
  .icon-aztec {
    width: 52px !important;
  }
  .icon-tiger {
    left: 5% !important;
    top: 15% !important;
  }
  .icon-neko {
    left: 4% !important;
    bottom: 14% !important;
  }
  .icon-mahjong {
    right: 3% !important;
    top: 16% !important;
  }
  .icon-aztec {
    right: 4% !important;
    bottom: 13% !important;
  }
  .hero-boy-scene .coin.c1 {
    right: 6%;
    top: 1%;
    width: 42px;
    height: 42px;
  }
  .hero-boy-scene .coin.c2 {
    left: 22%;
    bottom: 2%;
    width: 36px;
    height: 36px;
  }
  .hero-boy-scene .coin.c3 {
    right: 3%;
    bottom: 22%;
    width: 32px;
    height: 32px;
  }
  .hero-gem {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-energy-platform,
  .hero-gem {
    animation: none !important;
  }
}

/* Extra floating game icons for a richer hero composition */
.icon-candy {
  left: 26% !important;
  top: 4% !important;
  width: 64px !important;
  animation-delay: -1.2s !important;
}
.icon-bandito {
  left: 25% !important;
  bottom: 3% !important;
  width: 66px !important;
  animation-delay: -2.8s !important;
}
.icon-phoenix {
  right: 23% !important;
  bottom: 1% !important;
  width: 62px !important;
  animation-delay: -4s !important;
}

@media (max-width: 1280px) {
  .icon-candy {
    left: 24% !important;
    top: 5% !important;
    width: 58px !important;
  }
  .icon-bandito {
    left: 23% !important;
    bottom: 4% !important;
    width: 60px !important;
  }
  .icon-phoenix {
    right: 22% !important;
    bottom: 2% !important;
    width: 56px !important;
  }
}
@media (max-width: 1100px) {
  .icon-candy {
    left: 25% !important;
    top: 5% !important;
    width: 54px !important;
  }
  .icon-bandito {
    left: 23% !important;
    bottom: 3% !important;
    width: 56px !important;
  }
  .icon-phoenix {
    right: 22% !important;
    bottom: 2% !important;
    width: 52px !important;
  }
}
@media (max-width: 760px) {
  .icon-candy {
    left: 24% !important;
    top: 2% !important;
    width: 40px !important;
  }
  .icon-bandito {
    left: 24% !important;
    bottom: 1% !important;
    width: 42px !important;
  }
  .icon-phoenix {
    right: 23% !important;
    bottom: 0 !important;
    width: 40px !important;
  }
}

/* ===== Hero visual centering + cinematic light effects ===== */
@media (min-width: 1101px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  }
  .hero-boy-scene {
    transform: translateX(-34px);
  }
  .hero-boy {
    right: 22% !important;
  }
  .hero-energy-platform {
    right: 16% !important;
  }
  .hero-boy-glow {
    right: 14% !important;
  }
}
.hero-boy-scene::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 2% 0 0 4%;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 67% 42%,
      rgba(255, 255, 255, 0.55) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 48% 22%,
      rgba(81, 229, 255, 0.95) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 87% 31%,
      rgba(108, 87, 255, 0.9) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 57% 70%,
      rgba(255, 209, 79, 0.8) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 74% 77%,
      rgba(255, 255, 255, 0.75) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      ellipse at 68% 60%,
      rgba(35, 183, 255, 0.2),
      transparent 44%
    ),
    conic-gradient(
      from 205deg at 68% 60%,
      transparent 0 9%,
      rgba(53, 213, 255, 0.18) 11%,
      transparent 15% 27%,
      rgba(146, 74, 255, 0.16) 29%,
      transparent 34% 100%
    );
  filter: drop-shadow(0 0 10px rgba(53, 208, 255, 0.35));
  mix-blend-mode: screen;
  animation: heroFxBreathe 4.5s ease-in-out infinite;
}
.hero-boy-scene .orbit-one {
  border-color: rgba(57, 213, 255, 0.42) !important;
  box-shadow:
    0 0 20px rgba(46, 199, 255, 0.2),
    inset 0 0 25px rgba(90, 96, 255, 0.1);
}
.hero-boy-scene .orbit-two {
  border-color: rgba(144, 94, 255, 0.34) !important;
  box-shadow: 0 0 18px rgba(124, 73, 255, 0.18);
}
.hero-boy-glow {
  filter: blur(8px) saturate(1.35) !important;
  box-shadow:
    0 0 80px rgba(0, 164, 255, 0.2),
    0 0 120px rgba(119, 55, 255, 0.13);
}
.hero-energy-platform {
  box-shadow:
    0 0 34px rgba(31, 220, 255, 0.72),
    0 0 82px rgba(0, 115, 255, 0.46),
    0 0 125px rgba(113, 52, 255, 0.22) !important;
}
.hero-game-icon {
  box-shadow:
    0 16px 34px rgba(0, 73, 153, 0.34),
    0 0 24px rgba(55, 210, 255, 0.32),
    0 0 0 1px rgba(121, 231, 255, 0.16) !important;
}
.hero-game-icon::after {
  content: "";
  position: absolute;
  inset: -55% -80%;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.45) 49%,
    transparent 56%
  );
  transform: translateX(-55%) rotate(8deg);
  animation: iconShine 5.8s ease-in-out infinite;
}
.icon-neko::after,
.icon-bandito::after {
  animation-delay: -1.8s;
}
.icon-mahjong::after,
.icon-phoenix::after {
  animation-delay: -3.4s;
}
@keyframes heroFxBreathe {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.985);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}
@keyframes iconShine {
  0%,
  62% {
    transform: translateX(-65%) rotate(8deg);
    opacity: 0;
  }
  72% {
    opacity: 0.85;
  }
  88%,
  100% {
    transform: translateX(70%) rotate(8deg);
    opacity: 0;
  }
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .hero-boy-scene {
    transform: translateX(-20px);
  }
  .hero-boy {
    right: 21% !important;
  }
}
@media (max-width: 1100px) {
  .hero-boy-scene {
    transform: none;
  }
}
@media (max-width: 760px) {
  .hero-boy-scene::after {
    inset: 0;
    background:
      radial-gradient(
        ellipse at 57% 60%,
        rgba(35, 183, 255, 0.24),
        transparent 48%
      ),
      radial-gradient(
        circle at 75% 20%,
        rgba(255, 255, 255, 0.7) 0 1px,
        transparent 2px
      );
  }
}

/* ===== Requested hero refinement: remove platform and tighten left-side game icons ===== */
.hero-energy-platform {
  display: none !important;
}

@media (min-width: 1101px) {
  .icon-tiger {
    left: 17% !important;
    top: 17% !important;
  }
  .icon-neko {
    left: 14% !important;
    bottom: 20% !important;
  }
  .icon-candy {
    left: 34% !important;
    top: 6% !important;
  }
  .icon-bandito {
    left: 34% !important;
    bottom: 5% !important;
  }
}
@media (max-width: 1280px) and (min-width: 1101px) {
  .icon-tiger {
    left: 16% !important;
  }
  .icon-neko {
    left: 13% !important;
  }
  .icon-candy {
    left: 32% !important;
  }
  .icon-bandito {
    left: 32% !important;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .icon-tiger {
    left: 14% !important;
    top: 17% !important;
  }
  .icon-neko {
    left: 12% !important;
    bottom: 18% !important;
  }
  .icon-candy {
    left: 31% !important;
    top: 6% !important;
  }
  .icon-bandito {
    left: 31% !important;
    bottom: 4% !important;
  }
}
@media (max-width: 760px) {
  .icon-tiger {
    left: 12% !important;
    top: 15% !important;
  }
  .icon-neko {
    left: 11% !important;
    bottom: 14% !important;
  }
  .icon-candy {
    left: 31% !important;
    top: 3% !important;
  }
  .icon-bandito {
    left: 31% !important;
    bottom: 2% !important;
  }
}

/* ===== Remove visible rectangular bounds from the hero visual FX layer ===== */
.hero-boy-scene {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  isolation: isolate;
}
.hero-boy-scene::before {
  right: -4% !important;
  top: -8% !important;
  width: 520px !important;
  height: 520px !important;
  background: radial-gradient(
    circle at 52% 48%,
    rgba(54, 219, 255, 0.22) 0,
    rgba(0, 118, 255, 0.1) 38%,
    rgba(20, 86, 190, 0.04) 57%,
    transparent 74%
  ) !important;
  filter: blur(8px) !important;
}
.hero-boy-scene::after {
  inset: -16% -12% -18% -12% !important;
  border-radius: 50% !important;
  background:
    radial-gradient(
      circle at 66% 39%,
      rgba(255, 255, 255, 0.58) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 47% 23%,
      rgba(81, 229, 255, 0.92) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(108, 87, 255, 0.82) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 59% 69%,
      rgba(255, 209, 79, 0.72) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      ellipse at 65% 58%,
      rgba(35, 183, 255, 0.24),
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 62%,
      rgba(126, 66, 255, 0.15),
      transparent 60%
    ) !important;
  -webkit-mask-image: radial-gradient(
    ellipse at 66% 57%,
    #000 0 46%,
    rgba(0, 0, 0, 0.72) 60%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse at 66% 57%,
    #000 0 46%,
    rgba(0, 0, 0, 0.72) 60%,
    transparent 78%
  );
  filter: drop-shadow(0 0 12px rgba(53, 208, 255, 0.28)) !important;
  mix-blend-mode: screen !important;
}
.hero-boy-glow {
  background: radial-gradient(
    ellipse,
    rgba(41, 213, 255, 0.34),
    rgba(16, 109, 255, 0.13) 44%,
    rgba(91, 52, 210, 0.06) 58%,
    transparent 74%
  ) !important;
  filter: blur(16px) saturate(1.25) !important;
}
@media (max-width: 760px) {
  .hero-boy-scene::after {
    inset: -12% !important;
    -webkit-mask-image: radial-gradient(
      ellipse at 58% 58%,
      #000 0 45%,
      rgba(0, 0, 0, 0.65) 60%,
      transparent 79%
    );
    mask-image: radial-gradient(
      ellipse at 58% 58%,
      #000 0 45%,
      rgba(0, 0, 0, 0.65) 60%,
      transparent 79%
    );
  }
}

/* ===== Definitive fix: remove clipped rectangular FX boundary ===== */
.hero {
  overflow: hidden !important;
}
.hero-boy-scene {
  overflow: visible !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
}
.hero-boy-scene::before {
  display: none !important;
}
.hero-boy-scene::after {
  inset: -28% -24% -30% -24% !important;
  border-radius: 50% !important;
  background:
    radial-gradient(
      circle at 48% 25%,
      rgba(96, 232, 255, 0.95) 0 1.5px,
      transparent 3px
    ),
    radial-gradient(
      circle at 78% 32%,
      rgba(131, 100, 255, 0.82) 0 1.5px,
      transparent 3px
    ),
    radial-gradient(
      circle at 59% 72%,
      rgba(255, 215, 86, 0.78) 0 1.5px,
      transparent 3px
    ),
    radial-gradient(
      ellipse at 61% 56%,
      rgba(35, 183, 255, 0.2) 0,
      rgba(35, 183, 255, 0.1) 34%,
      rgba(103, 63, 229, 0.055) 51%,
      transparent 72%
    ) !important;
  -webkit-mask-image: radial-gradient(
    ellipse at 61% 56%,
    #000 0 44%,
    rgba(0, 0, 0, 0.72) 58%,
    transparent 76%
  ) !important;
  mask-image: radial-gradient(
    ellipse at 61% 56%,
    #000 0 44%,
    rgba(0, 0, 0, 0.72) 58%,
    transparent 76%
  ) !important;
  filter: none !important;
  mix-blend-mode: screen !important;
  pointer-events: none !important;
}
.hero-boy-glow {
  width: 420px !important;
  height: 330px !important;
  right: 8% !important;
  bottom: 4% !important;
  background: radial-gradient(
    ellipse,
    rgba(41, 213, 255, 0.25) 0,
    rgba(16, 109, 255, 0.1) 43%,
    rgba(91, 52, 210, 0.035) 60%,
    transparent 76%
  ) !important;
  filter: blur(20px) !important;
  box-shadow: none !important;
}

/* ===== Definitive fix: remove clipped rectangular FX boundary ===== */
.hero {
  overflow: hidden !important;
}
.hero-boy-scene {
  overflow: visible !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
}
.hero-boy-scene::before {
  display: none !important;
}
.hero-boy-scene::after {
  inset: -28% -24% -30% -24% !important;
  border-radius: 50% !important;
  background:
    radial-gradient(
      circle at 48% 25%,
      rgba(96, 232, 255, 0.95) 0 1.5px,
      transparent 3px
    ),
    radial-gradient(
      circle at 78% 32%,
      rgba(131, 100, 255, 0.82) 0 1.5px,
      transparent 3px
    ),
    radial-gradient(
      circle at 59% 72%,
      rgba(255, 215, 86, 0.78) 0 1.5px,
      transparent 3px
    ),
    radial-gradient(
      ellipse at 61% 56%,
      rgba(35, 183, 255, 0.2) 0,
      rgba(35, 183, 255, 0.1) 34%,
      rgba(103, 63, 229, 0.055) 51%,
      transparent 72%
    ) !important;
  -webkit-mask-image: radial-gradient(
    ellipse at 61% 56%,
    #000 0 44%,
    rgba(0, 0, 0, 0.72) 58%,
    transparent 76%
  ) !important;
  mask-image: radial-gradient(
    ellipse at 61% 56%,
    #000 0 44%,
    rgba(0, 0, 0, 0.72) 58%,
    transparent 76%
  ) !important;
  filter: none !important;
  mix-blend-mode: screen !important;
  pointer-events: none !important;
}
.hero-boy-glow {
  width: 420px !important;
  height: 330px !important;
  right: 8% !important;
  bottom: 4% !important;
  background: radial-gradient(
    ellipse,
    rgba(41, 213, 255, 0.25) 0,
    rgba(16, 109, 255, 0.1) 43%,
    rgba(91, 52, 210, 0.035) 60%,
    transparent 76%
  ) !important;
  filter: blur(20px) !important;
  box-shadow: none !important;
}

/* ===== Live winner toast (demo data) ===== */
.winner-toast {
  position: fixed;
  right: 22px;
  bottom: var(--winner-stack-bottom, 22px);
  z-index: 1200;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(71, 205, 255, 0.38);
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(5, 23, 46, 0.94),
    rgba(8, 53, 91, 0.92)
  );
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(0, 174, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  transform: translate3d(calc(100% + 40px), 0, 0);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.35s ease,
    visibility 0.35s;
  overflow: hidden;
}
.winner-toast.show {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
}
.winner-toast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 15%,
    rgba(255, 255, 255, 0.12) 42%,
    transparent 67%
  );
  transform: translateX(-120%);
  animation: winnerShine 4.8s ease-in-out infinite;
  pointer-events: none;
}
.winner-toast__image {
  width: 72px;
  height: 72px;
  border-radius: 15px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 9px 24px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(31, 193, 255, 0.22);
}
.winner-toast__copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.winner-toast__top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}
.winner-toast__badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 4px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffba00, #e9cb72);
  color: #3a2600;
  box-shadow: 0 0 14px rgba(255, 194, 32, 0.32);
}
.winner-toast__demo {
  font-size: 9px;
  font-weight: 800;
  color: #84dfff;
  border: 1px solid rgba(77, 205, 255, 0.32);
  padding: 3px 6px;
  border-radius: 999px;
}
.winner-toast__title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.25;
}
.winner-toast__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: #a9c8df;
  font-size: 11px;
}
.winner-toast__amount {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, #f2dfaa, #ffc62f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255, 203, 52, 0.16);
}
.winner-toast__close {
  position: relative;
  z-index: 2;
  align-self: start;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: #bcd3e5;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.winner-toast__close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.winner-toast__pulse {
  position: absolute;
  left: 9px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28e7a2;
  box-shadow: 0 0 0 0 rgba(40, 231, 162, 0.55);
  animation: winnerPulse 1.8s infinite;
}
@keyframes winnerShine {
  0%,
  50% {
    transform: translateX(-120%);
  }
  75%,
  100% {
    transform: translateX(130%);
  }
}
@keyframes winnerPulse {
  70% {
    box-shadow: 0 0 0 8px rgba(40, 231, 162, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 231, 162, 0);
  }
}
@media (max-width: 760px) {
  .winner-toast {
    right: 12px;
    bottom: 86px;
    width: calc(100vw - 24px);
    grid-template-columns: 58px minmax(0, 1fr) 26px;
    padding: 10px;
    border-radius: 17px;
  }
  .winner-toast__image {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }
  .winner-toast__amount {
    font-size: 16px;
  }
  .winner-toast__title {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .winner-toast,
  .winner-toast::before,
  .winner-toast__pulse {
    animation: none !important;
    transition: none !important;
  }
}

/* Articles, About and Trending upgrade */
.trending-section {
  margin: 26px 0 32px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 5px 0 4px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}
.trending-arrows {
  display: flex;
  gap: 8px;
}
.trending-arrows button {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 25px;
  cursor: pointer;
}
.trending-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}
.trending-track::-webkit-scrollbar {
  display: none;
}
.trending-card {
  position: relative;
  min-width: 210px;
  aspect-ratio: 1/1.15;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(8, 45, 100, 0.16);
  transition: 0.3s;
}
.trending-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 25px 55px rgba(0, 136, 255, 0.26);
}
.trending-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trending-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(1, 12, 35, 0.94));
}
.trending-rank {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffca2c, #ff7a00);
  color: #171000;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 0 22px rgba(255, 180, 0, 0.55);
}
.trending-overlay {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: 14px;
  bottom: 13px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  color: white;
}
.trending-overlay b {
  display: block;
  font-size: 15px;
}
.trending-overlay span {
  font-size: 12px;
  color: #bcd9ff;
}
.trending-play {
  border: 0;
  border-radius: 11px;
  padding: 9px 12px;
  background: #168cff;
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 145, 255, 0.55);
}
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
}
.article-search {
  max-width: 430px;
}
.article-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.featured-article {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.featured-article img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 22px;
}
.featured-article h2 {
  font-size: clamp(24px, 3vw, 38px);
  margin: 8px 0 12px;
}
.featured-article p {
  color: var(--muted);
  line-height: 1.75;
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 18px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 22px;
  transition: 0.3s;
  box-shadow: 0 16px 34px rgba(5, 45, 95, 0.1);
}
.article-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(0, 130, 255, 0.2);
}
.article-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.article-card > div {
  padding: 18px;
}
.article-card h3 {
  margin: 9px 0;
  font-size: 19px;
}
.article-card p {
  color: var(--muted);
  line-height: 1.65;
}
.article-tag {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(0, 136, 255, 0.12);
  color: #1189ff;
  font-size: 12px;
  font-weight: 800;
}
.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  margin: 26px 0;
}
.about-intro h2 {
  font-size: clamp(28px, 3.5vw, 46px);
  margin: 8px 0 14px;
}
.about-intro p {
  color: var(--muted);
  line-height: 1.8;
}
.about-logo-card {
  min-height: 310px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 55% 35%,
      rgba(0, 183, 255, 0.26),
      transparent 45%
    ),
    linear-gradient(145deg, #092a63, #07152f);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(0, 107, 255, 0.25);
}
.about-logo-card img {
  width: min(250px, 70%);
}
.about-logo-card span {
  color: #cce9ff;
  letter-spacing: 3px;
  font-size: 12px;
}
.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.about-values article,
.feature-grid article {
  padding: 22px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 15px 34px rgba(4, 45, 100, 0.1);
}
.about-values b {
  display: block;
  font-size: 34px;
  color: #128cff;
}
.about-values span {
  font-weight: 800;
}
.about-values p,
.feature-grid p {
  color: var(--muted);
  line-height: 1.6;
}
.about-features,
.about-timeline {
  margin: 40px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-grid article > span {
  font-size: 30px;
  color: #1894ff;
}
.timeline {
  display: grid;
  gap: 14px;
}
.timeline article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 20px;
}
.timeline article > b {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #128fff, #6b5cff);
  color: white;
  font-size: 19px;
}
.timeline h3 {
  margin: 2px 0 6px;
}
.timeline p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 1050px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid,
  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .section-head,
  .article-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .trending-card {
    min-width: 170px;
  }
  .featured-article,
  .about-intro {
    grid-template-columns: 1fr;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid,
  .about-values {
    grid-template-columns: 1fr;
  }
  .about-logo-card {
    min-height: 230px;
  }
  .article-search {
    max-width: none;
    width: 100%;
  }
}

/* Shared animated hero effects for every inner page */
.page-hero {
  position: relative;
  min-height: 200px;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 82% 35%,
      rgba(24, 198, 255, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 68% 115%,
      rgba(19, 118, 255, 0.18),
      transparent 42%
    ),
    linear-gradient(130deg, #fff, #efe7d5);
}
.page-hero > div:not(.page-hero-fx) {
  position: relative;
  z-index: 4;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -35% 34% -70% -12%;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(
    from 210deg,
    transparent 0 20%,
    rgba(19, 202, 255, 0.16) 30%,
    transparent 42% 64%,
    rgba(111, 72, 255, 0.12) 74%,
    transparent 84%
  );
  filter: blur(18px);
  animation: innerHeroAurora 15s linear infinite;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -75px;
  top: -120px;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(71, 202, 255, 0.18);
  box-shadow:
    0 0 70px rgba(0, 165, 255, 0.12),
    inset 0 0 45px rgba(28, 144, 255, 0.08);
  animation: innerHeroRing 12s ease-in-out infinite;
}
.page-hero-fx {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  overflow: hidden;
  pointer-events: none;
}
.page-hero-fx .ih-beam {
  position: absolute;
  width: 46%;
  height: 2px;
  right: 8%;
  top: 48%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(92, 222, 255, 0.9),
    transparent
  );
  filter: blur(0.2px);
  transform: rotate(-13deg);
  opacity: 0.42;
  animation: ihBeam 6.5s ease-in-out infinite;
}
.page-hero-fx .ih-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  background: radial-gradient(
    circle at 35% 30%,
    #fff 0 8%,
    #7eeaff 18%,
    #168dff 48%,
    rgba(22, 141, 255, 0) 72%
  );
  box-shadow: 0 0 22px rgba(52, 192, 255, 0.75);
  animation: ihFloat 7s ease-in-out infinite;
}
.page-hero-fx .ih-orb.o1 {
  width: 22px;
  height: 22px;
  right: 20%;
  top: 24%;
}
.page-hero-fx .ih-orb.o2 {
  width: 13px;
  height: 13px;
  right: 10%;
  bottom: 20%;
  animation-delay: -2.2s;
}
.page-hero-fx .ih-orb.o3 {
  width: 9px;
  height: 9px;
  right: 34%;
  bottom: 16%;
  animation-delay: -4.4s;
}
.page-hero-fx .ih-diamond {
  position: absolute;
  width: 18px;
  height: 18px;
  right: 27%;
  top: 17%;
  transform: rotate(45deg);
  border-radius: 5px;
  background: linear-gradient(135deg, #c8f7ff, #33d8ff 42%, #246fff);
  box-shadow: 0 0 22px rgba(54, 204, 255, 0.7);
  animation: ihDiamond 8s ease-in-out infinite;
}
.page-hero-fx .ih-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px 3px rgba(126, 225, 255, 0.85);
  animation: ihTwinkle var(--dur, 3.4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.page-hero-fx .ih-spark::before,
.page-hero-fx .ih-spark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transform: translate(-50%, -50%);
}
.page-hero-fx .ih-spark::before {
  width: 18px;
  height: 1px;
}
.page-hero-fx .ih-spark::after {
  width: 1px;
  height: 18px;
}
.page-hero-fx .ih-spark.s1 {
  right: 7%;
  top: 21%;
}
.page-hero-fx .ih-spark.s2 {
  right: 18%;
  top: 62%;
  --delay: -1.2s;
}
.page-hero-fx .ih-spark.s3 {
  right: 38%;
  top: 31%;
  --delay: -2.1s;
}
.page-hero-fx .ih-spark.s4 {
  right: 31%;
  bottom: 14%;
  --delay: -0.7s;
}
.page-hero-fx .ih-spark.s5 {
  right: 48%;
  top: 18%;
  --delay: -2.8s;
}
.page-hero-fx .ih-spark.s6 {
  right: 12%;
  bottom: 14%;
  --delay: -1.8s;
}
.page-visual {
  position: relative;
  z-index: 5;
  min-width: 128px;
  text-align: center;
  animation: innerVisualFloat 5.6s ease-in-out infinite;
  filter: drop-shadow(0 20px 24px rgba(0, 125, 255, 0.22))
    drop-shadow(0 0 22px rgba(62, 211, 255, 0.24));
}
.page-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 90px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(40, 201, 255, 0.22),
    transparent 70%
  );
  filter: blur(10px);
  z-index: -1;
  animation: innerVisualGlow 4.5s ease-in-out infinite;
}
body.dark .page-hero {
  background:
    radial-gradient(
      circle at 82% 35%,
      rgba(20, 194, 255, 0.16),
      transparent 29%
    ),
    radial-gradient(
      circle at 68% 115%,
      rgba(22, 92, 255, 0.15),
      transparent 42%
    ),
    linear-gradient(135deg, rgba(5, 29, 54, 0.96), rgba(4, 43, 78, 0.94));
}
@keyframes innerHeroAurora {
  50% {
    transform: translate3d(6%, 3%, 0) rotate(8deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes innerHeroRing {
  50% {
    transform: scale(1.08) rotate(10deg);
    opacity: 0.75;
  }
}
@keyframes ihBeam {
  0%,
  100% {
    transform: translateX(-8%) rotate(-13deg);
    opacity: 0.18;
  }
  50% {
    transform: translateX(10%) rotate(-13deg);
    opacity: 0.68;
  }
}
@keyframes ihFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.08);
  }
}
@keyframes ihDiamond {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(225deg) translateY(-9px);
  }
}
@keyframes ihTwinkle {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.55) rotate(0);
  }
  45% {
    opacity: 1;
    transform: scale(1.2) rotate(45deg);
  }
  60% {
    opacity: 0.7;
    transform: scale(0.9) rotate(70deg);
  }
}
@keyframes innerVisualFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-7px) rotate(-5deg);
  }
}
@keyframes innerVisualGlow {
  50% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1.15);
  }
}
@media (max-width: 760px) {
  .page-hero {
    min-height: 190px;
    padding: 28px;
  }
  .page-hero-fx .ih-beam {
    width: 62%;
    right: -2%;
  }
  .page-hero::after {
    right: -130px;
  }
  .page-visual {
    font-size: 64px;
    min-width: 86px;
  }
}
@media (max-width: 470px) {
  .page-hero {
    min-height: 178px;
  }
  .page-hero-fx .ih-spark.s3,
  .page-hero-fx .ih-spark.s5,
  .page-hero-fx .ih-orb.o3 {
    display: none;
  }
  .page-hero::after {
    width: 260px;
    height: 260px;
    right: -155px;
    top: -100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero::before,
  .page-hero::after,
  .page-hero-fx *,
  .page-visual {
    animation: none !important;
  }
}

/* Mobile header + hamburger drawer */
.mobile-header,
.mobile-menu-drawer,
.mobile-menu-backdrop {
  display: none;
}
@media (max-width: 760px) {
  .mobile-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 90;
    height: 64px;
    margin: 0 10px;
    padding: 9px 10px 9px 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(118, 207, 255, 0.18);
    border-radius: 0 0 18px 18px;
    background: rgba(5, 30, 55, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 34px rgba(0, 55, 105, 0.2);
  }
  .mobile-header-brand {
    display: flex;
    align-items: center;
    height: 100%;
  }
  .mobile-header-brand img {
    display: block;
    width: 142px;
    max-height: 42px;
    object-fit: contain;
    object-position: left center;
  }
  .mobile-menu-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(122, 214, 255, 0.22);
    border-radius: 14px;
    background: linear-gradient(
      145deg,
      rgba(20, 139, 255, 0.22),
      rgba(0, 213, 231, 0.1)
    );
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.16),
      0 8px 22px rgba(0, 123, 255, 0.18);
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 9px;
    background: #eee7d8;
    transition:
      transform 0.25s ease,
      opacity 0.2s ease;
  }
  .mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 94;
    background: rgba(2, 13, 27, 0.58);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.28s ease;
  }
  .mobile-menu-backdrop.show {
    opacity: 1;
  }
  .mobile-menu-drawer {
    display: flex;
    position: fixed;
    z-index: 95;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(84vw, 350px);
    padding: 18px;
    flex-direction: column;
    background: linear-gradient(160deg, #071e37, #06294b 62%, #073861);
    border-left: 1px solid rgba(114, 212, 255, 0.2);
    box-shadow: -22px 0 50px rgba(0, 0, 0, 0.34);
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .mobile-menu-drawer.show {
    transform: translateX(0);
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(130, 215, 255, 0.13);
  }
  .mobile-menu-head img {
    width: 145px;
    max-height: 44px;
    object-fit: contain;
    object-position: left center;
  }
  .mobile-menu-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(128, 216, 255, 0.18);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 29px;
    line-height: 1;
  }
  .mobile-menu-links {
    display: grid;
    gap: 7px;
    padding: 18px 0;
    overflow: auto;
  }
  .mobile-menu-links a {
    position: relative;
    padding: 13px 16px 13px 43px;
    border-radius: 14px;
    color: #c7d9e9;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid transparent;
  }
  .mobile-menu-links a:before {
    content: "◇";
    position: absolute;
    left: 15px;
    color: #38ccff;
    font-size: 17px;
  }
  .mobile-menu-links a.active {
    color: #fff;
    border-color: rgba(89, 207, 255, 0.28);
    background: linear-gradient(
      135deg,
      rgba(12, 132, 255, 0.34),
      rgba(0, 207, 226, 0.17)
    );
    box-shadow: 0 8px 20px rgba(0, 129, 255, 0.14);
  }
  .mobile-menu-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(130, 215, 255, 0.13);
  }
  .mobile-menu-auth a {
    display: grid;
    place-items: center;
    min-height: 46px;
    border-radius: 14px;
    font-weight: 900;
  }
  .mobile-drawer-login {
    color: #fff;
    background: linear-gradient(135deg, #078cff, #12cce1);
    box-shadow: 0 8px 24px rgba(0, 150, 255, 0.24);
  }
  .mobile-drawer-register {
    color: #162238;
    background: linear-gradient(135deg, #d3a843, #ffb90a);
    box-shadow: 0 8px 25px rgba(255, 190, 0, 0.28);
  }
  body.mobile-menu-open {
    overflow: hidden;
  }
  .topbar {
    margin-top: 5px;
  }
}
body:not(.dark) .mobile-header {
  background: rgba(245, 252, 255, 0.9);
  border-color: rgba(0, 118, 205, 0.12);
}
body:not(.dark) .mobile-menu-toggle span {
  background: #0a416e;
}
body:not(.dark) .mobile-menu-toggle {
  background: linear-gradient(
    145deg,
    rgba(14, 135, 255, 0.12),
    rgba(0, 207, 226, 0.08)
  );
}

/* Reliable mobile drawer interaction patch */
@media (max-width: 860px) {
  .mobile-header {
    pointer-events: auto !important;
    z-index: 1000 !important;
  }
  .mobile-menu-toggle {
    position: relative;
    z-index: 1002 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
  .mobile-menu-drawer {
    z-index: 1004 !important;
    visibility: visible !important;
    pointer-events: none !important;
  }
  .mobile-menu-drawer.show {
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }
  .mobile-menu-backdrop {
    z-index: 1003 !important;
    pointer-events: none !important;
  }
  .mobile-menu-backdrop.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .mobile-menu-backdrop[hidden] {
    display: none !important;
  }
}

/* 3D artwork for inner-page hero banners */
.page-visual {
  width: 190px;
  height: 150px;
  display: grid;
  place-items: center;
  transform: none !important;
}
.page-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 24px rgba(0, 98, 210, 0.24))
    drop-shadow(0 0 18px rgba(55, 206, 255, 0.18));
  user-select: none;
  -webkit-user-drag: none;
}
body.dark .page-visual img {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 22px rgba(48, 199, 255, 0.26));
}
@media (max-width: 760px) {
  .page-visual {
    width: 138px;
    height: 116px;
    min-width: 138px;
  }
}
@media (max-width: 470px) {
  .page-visual {
    display: grid;
    width: 106px;
    height: 92px;
    min-width: 106px;
  }
  .page-hero > div:first-child {
    max-width: calc(100% - 112px);
  }
  .page-hero h1 {
    font-size: clamp(25px, 8.5vw, 34px);
  }
}

/* User-supplied 3D inner-page icons + playful motion */
.page-visual {
  animation: pageIconFloat 4.8s ease-in-out infinite !important;
  transform-origin: 50% 72%;
}
.page-visual img {
  animation: pageIconWiggle 5.2s ease-in-out infinite;
  transform-origin: 50% 65%;
  will-change: transform, filter;
}
.page-hero:hover .page-visual img {
  animation-duration: 3.4s;
}
@keyframes pageIconFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.5deg);
  }
  50% {
    transform: translate3d(0, -8px, 0) rotate(1.5deg);
  }
}
@keyframes pageIconWiggle {
  0%,
  100% {
    transform: rotate(-1deg) scale(1);
  }
  25% {
    transform: rotate(1.4deg) scale(1.012);
  }
  50% {
    transform: rotate(-0.6deg) scale(1.025);
  }
  75% {
    transform: rotate(1deg) scale(1.01);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-visual,
  .page-visual img {
    animation: none !important;
  }
}

/* ===== Stats icon palette refinement ===== */
/* Light mode: clean white icon tile with blue icon */
body:not(.dark) .stat-icon,
body:not(.dark) .stat-service .stat-icon,
body:not(.dark) .stat-provider .stat-icon,
body:not(.dark) .stat-rating .stat-icon {
  background: #ffffff !important;
  border: 1px solid rgba(8, 125, 255, 0.16);
  box-shadow:
    0 10px 22px rgba(20, 105, 175, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
body:not(.dark) .stat-icon svg,
body:not(.dark) .stat-provider .stat-icon svg,
body:not(.dark) .stat-rating .stat-icon svg {
  stroke: #c89b3c !important;
  fill: none;
  filter: drop-shadow(0 4px 6px rgba(8, 125, 255, 0.16));
}
body:not(.dark) .stat-rating .stat-icon svg {
  fill: #e7c66d !important;
  stroke: #c89b3c !important;
}

/* Dark mode: same bright blue family as the active menu / primary buttons */
body.dark .stat-icon,
body.dark .stat-service .stat-icon,
body.dark .stat-provider .stat-icon,
body.dark .stat-rating .stat-icon {
  background: linear-gradient(135deg, #c89b3c 0%, #d1a84d 100%) !important;
  border: 1px solid rgba(123, 220, 255, 0.34);
  box-shadow:
    0 12px 26px rgba(8, 125, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}
body.dark .stat-icon svg,
body.dark .stat-provider .stat-icon svg,
body.dark .stat-rating .stat-icon svg {
  stroke: #ffffff !important;
  fill: none;
  filter: drop-shadow(0 4px 7px rgba(0, 38, 90, 0.28));
}
body.dark .stat-rating .stat-icon svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}
.stat:hover .stat-icon {
  box-shadow:
    0 16px 30px rgba(8, 125, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Keep the mobile action bar and transient messages in separate vertical lanes. */
@media (max-width: 760px) {
  .mobile-nav {
    z-index: 1400 !important;
  }
  .winner-toast {
    bottom: var(
      --winner-stack-bottom,
      calc(88px + env(safe-area-inset-bottom, 0px))
    ) !important;
    z-index: 1200 !important;
  }
  .pwa-toast {
    left: 12px;
    right: 12px;
    bottom: var(
      --pwa-stack-bottom,
      calc(99px + env(safe-area-inset-bottom, 0px))
    ) !important;
    width: auto;
    max-width: none;
    z-index: 1300 !important;
  }
}

@media (max-width: 360px) {
  .pwa-toast {
    padding: 13px;
  }
}
