:root {
  --blue-950: #071a43;
  --blue-900: #0b2f73;
  --blue-700: #1254d8;
  --blue-600: #1f6bff;
  --blue-100: #eaf4ff;
  --cyan-400: #35c9ff;
  --gold-500: #f3bd39;
  --red-600: #e31f35;
  --ink: #14233d;
  --muted: #65748b;
  --line: #dbe8f6;
  --paper: #ffffff;
  --soft: #f5f9ff;
  --shadow: 0 18px 42px rgba(10, 52, 116, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(90deg, #f1f5fb 0, #fff 10%, #fff 90%, #f1f5fb 100%);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.page-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 28px rgba(13, 42, 84, 0.1);
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  background: #fff;
}

.topbar-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-grid;
  gap: 1px;
  line-height: 1;
}

.brand-main {
  color: #1595f2;
  font-size: 46px;
  font-style: italic;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 64, 152, 0.16);
}

.brand-sub {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), #0b8fff);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.top-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-red {
  background: linear-gradient(135deg, #ff3549, var(--red-600));
  box-shadow: 0 10px 20px rgba(227, 31, 53, 0.24);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  box-shadow: 0 10px 20px rgba(31, 107, 255, 0.22);
}

.btn-gold {
  min-height: 50px;
  color: var(--blue-950);
  background: linear-gradient(135deg, #ffe89a, var(--gold-500));
  box-shadow: 0 18px 30px rgba(243, 189, 57, 0.3);
}

.btn-white {
  min-height: 50px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.nav-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, #1459e7, #1179f0);
  box-shadow: 0 12px 24px rgba(13, 74, 164, 0.22);
}

.nav-inner {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-inner a {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-inner a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.nav-inner a.active {
  background: rgba(5, 28, 81, 0.18);
}

.hero {
  min-height: 470px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 36, 95, 0.96) 0%, rgba(13, 87, 188, 0.78) 38%, rgba(16, 128, 235, 0.16) 72%, rgba(4, 49, 116, 0.32) 100%),
    url("xx88-hero.png") center / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: center;
  padding: 70px 0;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 3px 16px rgba(0, 22, 72, 0.28);
}

.hero-copy p {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 32px;
}

.hero-card {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px;
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 50, 130, 0.92), rgba(16, 105, 224, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 22px 40px rgba(1, 31, 91, 0.22);
  backdrop-filter: blur(10px);
}

.hero-card strong {
  font-size: 20px;
  line-height: 1.25;
}

.hero-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.hero-card b {
  color: #ffe67a;
  font-size: 58px;
  line-height: 0.95;
}

.intro {
  padding: 54px 0 34px;
}

.intro-inner {
  text-align: center;
}

.intro h2,
.section-title h2 {
  margin: 0;
  color: var(--blue-700);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.intro p {
  max-width: 900px;
  margin: 22px auto 0;
  color: #31425d;
  font-size: 16px;
  line-height: 1.8;
}

.access-line {
  font-weight: 800;
}

.access-line a {
  color: var(--blue-600);
}

.games {
  padding: 28px 0 46px;
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
  padding: 12px 18px;
  background: linear-gradient(90deg, var(--blue-700), #1c75ff);
  border-radius: 8px;
}

.section-title h2 {
  color: #fff;
  font-size: 26px;
}

.section-title span {
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  min-height: 178px;
  display: grid;
  justify-items: center;
  align-content: space-between;
  gap: 16px;
  padding: 14px 12px 12px;
  background: linear-gradient(180deg, #fff, #eef7ff);
  border: 2px solid #2b67ff;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 84, 216, 0.16);
}

.game-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.42) 36%, transparent 38%),
    linear-gradient(135deg, #ffffff, #99d5ff 55%, #2d70ff);
}

.game-icon::before,
.game-icon::after {
  content: "";
  position: absolute;
  inset: 22% auto auto 50%;
  width: 44%;
  height: 44%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.7), 0 12px 24px rgba(16, 76, 150, 0.22);
}

.game-icon::after {
  inset: auto 18% 14% auto;
  width: 28%;
  height: 28%;
  transform: none;
  background: var(--red-600);
}

.sport::before {
  background: linear-gradient(135deg, #fff, #dce7ff);
  border: 7px solid var(--blue-700);
}

.fish::before {
  width: 58%;
  height: 36%;
  border-radius: 50% 45% 55% 50%;
  background: linear-gradient(135deg, #35c9ff, #1254d8);
}

.lottery::before {
  background: #fff;
  border: 8px solid var(--gold-500);
}

.card::before {
  width: 38%;
  height: 54%;
  border-radius: 6px;
  background: #fff;
  border: 6px solid var(--red-600);
}

.game-card strong {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, #2e89ff, #134ed2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.promo {
  padding: 16px 0 32px;
}

.promo-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  color: #fff;
  background: linear-gradient(90deg, #0d65db, #35c9ff 52%, #f3bd39);
  border: 1px solid rgba(18, 84, 216, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.promo-inner strong {
  font-size: 26px;
  font-style: italic;
  text-transform: uppercase;
}

.promo-inner span {
  font-size: 15px;
  font-weight: 800;
}

.news {
  padding: 18px 0 84px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.news-card {
  text-align: center;
}

.news-thumb {
  min-height: 138px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 12px;
  background-image:
    linear-gradient(180deg, rgba(4, 25, 78, 0.08), rgba(4, 25, 78, 0.76)),
    url("xx88-hero.png");
  background-size: 140%, cover;
  background-position: center, 72% 50%;
  background-repeat: no-repeat;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(10, 52, 116, 0.12);
}

.thumb-two,
.news-card:nth-child(2n) .news-thumb {
  background-position: center, 88% 45%;
}

.thumb-three,
.news-card:nth-child(3n) .news-thumb {
  background-position: center, 66% 54%;
}

.thumb-four,
.news-card:nth-child(4n) .news-thumb {
  background-position: center, 36% 54%;
}

.news-thumb span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--blue-950);
  background: #ffe27a;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.news-card h3 {
  margin: 16px 0 0;
  color: var(--blue-700);
  font-size: 19px;
  line-height: 1.32;
  font-weight: 900;
}

.news-meta {
  display: block;
  margin: 12px 0 0;
  color: var(--red-600);
  font-size: 13px;
  font-weight: 900;
}

.news-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.article-hero {
  min-height: 360px;
}

.article-hero .hero-grid {
  grid-template-columns: 1fr;
  padding: 58px 0;
}

.article-hero .hero-copy h1 {
  max-width: 840px;
  font-size: 44px;
}

.article-hero .hero-copy p {
  max-width: 720px;
}

.article-shell {
  padding: 58px 0 76px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.article-main {
  min-width: 0;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}

.article-meta span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--blue-900);
  background: var(--blue-100);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.article-main h2 {
  margin: 0 0 18px;
  color: var(--blue-900);
  font-size: 30px;
  line-height: 1.22;
  font-weight: 900;
}

.article-main h3 {
  margin: 30px 0 12px;
  color: var(--blue-700);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 900;
}

.article-main p,
.article-main li {
  color: #31425d;
  font-size: 16px;
  line-height: 1.8;
}

.article-main p {
  margin: 0 0 18px;
}

.article-main ul,
.article-main ol {
  margin: 0 0 22px;
  padding-left: 22px;
}

.article-main a {
  color: var(--blue-700);
  font-weight: 800;
}

.xx88-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-side {
  display: grid;
  gap: 18px;
}

.side-panel {
  padding: 22px;
  background: linear-gradient(180deg, #fff, #eef7ff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(10, 52, 116, 0.1);
}

.side-panel h3 {
  margin: 0 0 14px;
  color: var(--blue-700);
  font-size: 19px;
  text-transform: uppercase;
}

.side-panel a {
  display: block;
  padding: 12px 0;
  color: #31425d;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.side-panel a:last-child {
  border-bottom: 0;
}

.xx88-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 30px;
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 900;
}

.xx88-pagination a,
.xx88-pagination span,
.xx88-pagination li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--blue-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  list-style: none;
}

.xx88-pagination ul {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.75fr 1fr;
  gap: 42px;
  padding: 62px 0 48px;
}

.footer .brand-main {
  font-size: 50px;
}

.footer p,
.footer a {
  display: block;
  margin: 10px 0 0;
  color: #32435d;
  font-size: 15px;
  line-height: 1.7;
}

.footer h3 {
  margin: 0 0 16px;
  color: var(--blue-700);
  font-size: 20px;
  text-transform: uppercase;
}

.copy {
  padding: 20px 24px;
  color: #73839b;
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 360px;
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-grid,
  .footer-grid,
  .article-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .topbar-inner {
    min-height: 74px;
  }

  .brand-main {
    font-size: 32px;
  }

  .brand-sub {
    min-height: 18px;
    padding: 0 10px;
    font-size: 11px;
  }

  .top-actions {
    gap: 8px;
  }

  .top-actions .btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .nav-inner {
    justify-content: flex-start;
  }

  .nav-inner a {
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    min-height: 560px;
    background:
      linear-gradient(180deg, rgba(6, 36, 95, 0.96) 0%, rgba(13, 87, 188, 0.74) 52%, rgba(16, 128, 235, 0.16) 100%),
      url("xx88-hero.png") 70% center / cover no-repeat;
  }

  .hero-grid {
    padding: 42px 0 76px;
  }

  .hero-copy h1 {
    max-width: 350px;
    font-size: 36px;
    line-height: 1.08;
  }

  .article-hero .hero-copy h1 {
    max-width: 350px;
    font-size: 30px;
  }

  .hero-copy p {
    max-width: 350px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-card {
    max-width: 100%;
    min-height: 158px;
    padding: 20px;
  }

  .hero-card b {
    font-size: 44px;
  }

  .intro {
    padding: 44px 0 24px;
  }

  .intro h2,
  .section-title h2 {
    font-size: 24px;
  }

  .section-title {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .section-title span {
    display: none;
  }

  .game-grid,
  .news-grid,
  .footer-grid,
  .promo-inner {
    grid-template-columns: 1fr;
  }

  .game-grid {
    gap: 16px;
  }

  .game-card {
    min-height: 126px;
    grid-template-columns: 86px 1fr;
    align-items: center;
    align-content: center;
  }

  .game-icon {
    width: 86px;
  }

  .game-card strong {
    min-height: 40px;
  }

  .promo-inner {
    align-items: start;
  }

  .news {
    padding-bottom: 58px;
  }

  .news-card {
    text-align: left;
  }

  .news-thumb {
    min-height: 176px;
  }

  .article-shell {
    padding: 44px 0 58px;
  }

  .article-main {
    padding: 22px;
  }

  .article-main h2 {
    font-size: 24px;
  }

  .footer-grid {
    gap: 26px;
    padding: 46px 0 38px;
  }
}

/* codex-xx88-supplement:start */
.quick-links {
  padding: 22px 0 52px;
}

.quick-lead {
  max-width: 880px;
  margin: -10px auto 26px;
  color: #31425d;
  font-size: 16px;
  line-height: 1.75;
  text-align: center;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #eef7ff);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(10, 52, 116, 0.1);
}

.quick-card strong {
  color: var(--blue-700);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
}

@media (max-width: 980px) {
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .quick-links {
    padding: 16px 0 40px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    min-height: 112px;
  }
}
/* codex-xx88-supplement:end */
