:root {
  --blue-main: #4161ff;
  --blue-dark: #1b2e88;
  --yellow: #ffb800;
  --body: #d9922c;
  --text: #0a0a0a;
  --white: #ffffff;
  --card: #ffffff;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Roboto", Arial, sans-serif;
  background-color: var(--body);
  background-image: url("images/bg-body.webp");
  background-size: cover;
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  background: var(--body);
  color: #1b2e88;
  border-bottom: 1px solid rgba(27, 46, 136, 0.25);
}

.header-bottom {
  background: #1b2e88;
  color: #ffe7a7;
  position: relative;
}

.header-bottom-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 1rem;
}

.header-bottom-note {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.header-bottom-actions {
  display: none;
  gap: 0.5rem;
}

.nav-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--white);
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 900;
}

.logo-img {
  height: 52px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: #ffe7a7;
}

.header-actions {
  display: flex;
  gap: 0.45rem;
}

.header-actions .btn {
  position: relative;
  min-width: 108px;
  height: 36px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
  animation: ctaPulse 1.8s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-actions .btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.header-actions .btn::before {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffb800;
  color: #002080;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.62rem;
  line-height: 1.3;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(0, 32, 128, 0.3);
  animation: badgeBounce 1.5s ease-in-out infinite;
}

.header-actions .btn-yellow::before {
  content: "Nhận lượt quay PG";
}

.header-actions .btn-blue::before {
  content: "+100%";
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  padding: 0.56rem 0.92rem;
  border: 1px solid transparent;
}

.btn-yellow {
  background: var(--yellow);
  color: #002080;
}

.btn-blue {
  background: #003cff;
  color: var(--white);
  border-color: var(--yellow);
}

.mobile-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #ffcc4d;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.84rem;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
  animation: ctaPulse 1.8s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-cta::before {
  content: attr(data-badge);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffb800;
  color: #002080;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.62rem;
  line-height: 1.3;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(0, 32, 128, 0.3);
  animation: badgeBounce 1.5s ease-in-out infinite;
}

.mobile-cta-login {
  background: linear-gradient(to bottom, #ffd34d, #ffb800);
  color: #002080;
}

.mobile-cta-register {
  background: linear-gradient(to bottom, #2b57ff, #003cff);
  color: #ffffff;
}

.mobile-cta:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

@keyframes badgeBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-2px) scale(1.08);
  }
}

@keyframes ctaPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
  }
}

.hero {
  margin-top: 0.8rem;
}

.hero-img {
  width: 100%;
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.hero-img-mobile {
  display: none;
}

.casino-home-wrap {
  background: rgba(18, 44, 131, 0.1);
  border: 2px solid #1b2e88;
  border-radius: 14px;
  padding: 0.8rem;
}

.top-mini-bar {
  background: #1b2e88;
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.7rem;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.casino-block + .casino-block {
  margin-top: 0.9rem;
}

.casino-title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  background: #1b2e88;
  color: #fff;
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
}

.hot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hot-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hot-controls button,
.hot-controls a {
  border: 1px solid #1b2e88;
  background: #ffbd2f;
  color: #1b2e88;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0 0.65rem;
}

.hot-layout {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: stretch;
  gap: 0.6rem;
}

.hot-middle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.game-grid-simple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.game-card {
  position: relative;
  margin: 0;
  background: #082a8d;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.game-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  opacity: 0.92;
}

.game-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.3;
  padding: 0.4rem 0.45rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2));
}

.game-card--small img {
  height: 100px;
}

.game-card--tall img {
  height: 205px;
}

.game-card--tall span {
  font-size: 0.82rem;
}

.social-float {
  position: fixed;
  right: 10px;
  top: 40%;
  z-index: 20;
  display: grid;
  gap: 0.45rem;
}

.social-float a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1b2e88;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  display: grid;
  place-items: center;
  border: 2px solid #ffb800;
}

.section {
  padding: 1rem 0;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
}

h1,
h2,
h3,
h4 {
  color: #011c7e;
}

h1 {
  line-height: 1.25;
  margin-top: 0;
}

p,
li {
  line-height: 1.65;
}

.notice {
  border-left: 4px solid var(--yellow);
  background: #fff6da;
  padding: 0.7rem;
  margin-top: 0.8rem;
}

.content-image {
  border-radius: 10px;
  margin: 0.8rem auto;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  min-width: 540px;
}

caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.55rem;
  color: #1b2e88;
}

th,
td {
  border: 1px solid #d6d6d6;
  padding: 0.6rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf1ff;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

details {
  border: 1px solid #d3dcff;
  border-radius: 8px;
  background: #f8faff;
  padding: 0.7rem;
}

details + details {
  margin-top: 0.55rem;
}

summary {
  font-weight: 700;
  color: #1b2e88;
  cursor: pointer;
}

.site-footer {
  margin-top: 1.3rem;
  background: #d9922c;
  color: #1b2e88;
  border-top: 2px solid rgba(27, 46, 136, 0.3);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0 0.7rem;
}

.footer-brand p,
.footer-contact p {
  margin: 0.35rem 0 0;
  font-weight: 600;
  color: #1f2f78;
}

.footer-logo {
  height: 52px;
  width: auto;
}

.footer-contact {
  justify-self: end;
  text-align: right;
}

.footer-contact h4 {
  margin: 0;
  color: #1b2e88;
}

.footer-official-img {
  margin-top: 0.45rem;
  max-width: 260px;
  width: 100%;
  height: auto;
  margin-left: auto;
}

.footer-socials {
  margin-top: 0.35rem;
  display: inline-flex;
  gap: 0.4rem;
}

.footer-socials a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1b2e88;
  color: #fff;
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.social-icon-img {
  width: 14px;
  height: 14px;
  display: block;
  filter: invert(1);
}

.footer-partners {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 0.55rem;
}

.partner-logos {
  max-width: min(100%, 620px);
  height: auto;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.2rem 0 0.85rem;
}

.footer-links a {
  color: #1b2e88;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
}

.copyright {
  border-top: 1px solid rgba(27, 46, 136, 0.24);
  text-align: center;
  color: #1b2e88;
  font-size: 0.86rem;
  padding: 0.8rem 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

@media (max-width: 900px) {
  .split,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .hot-layout {
    grid-template-columns: 1fr;
  }

  .hot-middle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-grid-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card--tall img {
    height: 150px;
  }

  .footer-contact {
    justify-self: start;
    text-align: left;
  }

  .footer-official-img {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    background: #1b2e88;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 5;
  }

  .site-nav.open {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .header-bottom-wrap {
    min-height: 46px;
    justify-content: center;
  }

  .header-bottom-note {
    display: none;
  }

  .header-bottom-actions {
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }

  .hero-img-desktop {
    display: none;
  }

  .hero-img-mobile {
    display: block;
  }

  .card {
    padding: 0.85rem;
  }

  h1 {
    font-size: 1.35rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  table {
    min-width: 460px;
  }

  .hot-controls a {
    padding: 0 0.4rem;
    font-size: 0.8rem;
  }

  .game-grid-simple {
    grid-template-columns: 1fr;
  }

  .social-float {
    display: none;
  }
}
