:root {
  --u888-red: #d40008;
  --u888-red-dark: #6d0004;
  --u888-gold: #ffd34a;
  --u888-gold-deep: #d98b00;
  --u888-blue: #062a65;
  --u888-navy: #031936;
  --u888-ink: #211316;
  --u888-muted: #60565a;
  --u888-line: #ead5d5;
  --u888-shell: 1120px;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #fff;
  color: var(--u888-ink);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.u888-shell {
  width: min(var(--u888-shell), calc(100% - 48px));
  margin: 0 auto;
}

.u888-top {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.u888-top::before {
  content: "U  U  U  U  U  U  U";
  position: absolute;
  inset: -22px 0 auto 40px;
  color: rgba(233, 172, 31, .16);
  font-size: 74px;
  font-weight: 900;
  letter-spacing: 58px;
  white-space: nowrap;
  pointer-events: none;
}

.u888-top-inner {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.u888-brand,
.u888-footer-brand {
  display: inline-flex;
  align-items: baseline;
  color: #d40008;
  font-size: 47px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(98, 0, 0, .18);
}

.u888-brand span,
.u888-footer-brand span {
  color: var(--u888-gold);
  -webkit-text-stroke: 1px #8a4a00;
  text-shadow: 0 4px 0 rgba(122, 52, 0, .18);
}

.u888-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.u888-login-btn {
  min-width: 118px;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, #0d3b85, #06275e);
  box-shadow: 0 8px 20px rgba(3, 35, 89, .2);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.u888-nav {
  background: linear-gradient(180deg, #dc050b, #b50006);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .16);
}

.u888-nav-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.u888-nav a {
  position: relative;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.u888-nav a.is-active { color: var(--u888-gold); }

.u888-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: var(--u888-gold);
}

.u888-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(50, 0, 0, .96) 0%, rgba(74, 0, 0, .72) 31%, rgba(141, 0, 0, .16) 60%, rgba(122, 0, 0, .05) 100%),
    url("u888-hero.png") center right / cover no-repeat,
    linear-gradient(110deg, #310000, #d50009);
}

.u888-hero-inner {
  min-height: 390px;
  display: flex;
  align-items: center;
}

.u888-hero-copy {
  width: min(600px, 100%);
  padding: 34px 0 38px;
}

.u888-hero h1 {
  margin: 0;
  max-width: 620px;
  color: #fff;
  font-size: 48px;
  line-height: 1.13;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(30, 0, 0, .34);
}

.u888-hero h1 span {
  color: var(--u888-gold);
  -webkit-text-stroke: .5px rgba(70, 30, 0, .2);
}

.u888-hero p {
  max-width: 470px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .94);
  font-size: 18px;
  line-height: 1.52;
  font-weight: 700;
}

.u888-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.u888-cta {
  min-width: 176px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 950;
}

.u888-cta svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.u888-cta.primary {
  color: #351800;
  background: linear-gradient(180deg, #ffec7e, #f5ad16);
  box-shadow: 0 12px 24px rgba(255, 185, 26, .26);
}

.u888-cta.secondary {
  color: #fff;
  border: 2px solid var(--u888-gold);
  background: rgba(0, 0, 0, .22);
}

.u888-intro {
  padding: 28px 0 14px;
  text-align: center;
}

.u888-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  color: #5b0709;
  font-size: 29px;
  line-height: 1.18;
  font-weight: 950;
}

.u888-section-title::before,
.u888-section-title::after {
  content: "";
  width: 42px;
  height: 3px;
  background: var(--u888-red);
}

.u888-intro p {
  max-width: 760px;
  margin: 10px auto 0;
  color: var(--u888-muted);
  font-size: 15px;
  line-height: 1.62;
}

.u888-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 0 16px;
}

.u888-feature {
  min-height: 126px;
  padding: 18px 18px;
  border: 1px solid var(--u888-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  box-shadow: 0 12px 24px rgba(61, 10, 10, .06);
}

.u888-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--u888-gold);
  background: linear-gradient(180deg, #df0008, #a90005);
}

.u888-feature-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.u888-feature h3 {
  margin: 3px 0 8px;
  color: #9e0006;
  font-size: 17px;
  line-height: 1.25;
}

.u888-feature ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #4e4444;
  font-size: 13px;
  line-height: 1.58;
}

.u888-feature li {
  position: relative;
  padding-left: 16px;
}

.u888-feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--u888-red);
  border-bottom: 2px solid var(--u888-red);
  transform: rotate(-45deg);
}

.u888-news {
  padding: 0 0 20px;
}

.u888-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 12px;
}

.u888-news-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #111;
  font-size: 23px;
  line-height: 1.22;
  font-weight: 950;
}

.u888-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--u888-red);
}

.u888-title-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.u888-all {
  color: var(--u888-red);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.u888-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.u888-news-card {
  min-height: 108px;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--u888-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(61, 10, 10, .055);
}

.u888-news-thumb {
  min-height: 108px;
  background: var(--u888-red-dark) center / cover no-repeat;
}

.u888-news-card:nth-child(6n+1) .u888-news-thumb { background-image: url("u888-news-register.png"); }
.u888-news-card:nth-child(6n+2) .u888-news-thumb { background-image: url("u888-news-login.png"); }
.u888-news-card:nth-child(6n+3) .u888-news-thumb { background-image: url("u888-news-promo.png"); }
.u888-news-card:nth-child(6n+4) .u888-news-thumb { background-image: url("u888-news-deposit.png"); }
.u888-news-card:nth-child(6n+5) .u888-news-thumb { background-image: url("u888-news-security.png"); }
.u888-news-card:nth-child(6n+6) .u888-news-thumb { background-image: url("u888-news-app.png"); }

.u888-news-body {
  min-width: 0;
  padding: 12px 13px 10px;
}

.u888-news-body h3 {
  margin: 0;
  color: #211719;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 950;
}

.u888-news-body p {
  margin: 7px 0 8px;
  color: #66585a;
  font-size: 12.5px;
  line-height: 1.42;
}

.u888-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #595256;
  font-size: 12px;
  line-height: 1.2;
}

.u888-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.u888-meta svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.u888-footer {
  margin-top: 10px;
  color: #fff;
  background: linear-gradient(100deg, #041a3b, #00112d);
}

.u888-footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.u888-footer-copy {
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.42;
}

.u888-domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.u888-domain svg {
  width: 20px;
  height: 20px;
}

.u888-page-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(52, 0, 0, .97), rgba(94, 0, 0, .7), rgba(128, 0, 0, .15)),
    url("u888-hero.png") center right / cover no-repeat,
    linear-gradient(110deg, #310000, #d50009);
}

.u888-page-hero .u888-shell {
  min-height: 238px;
  display: flex;
  align-items: center;
}

.u888-page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 950;
  text-shadow: 0 4px 0 rgba(30, 0, 0, .32);
}

.u888-page-hero p {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: 16px;
  line-height: 1.56;
  font-weight: 700;
}

.u888-article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  padding: 30px 0 34px;
}

.u888-article-main,
.u888-side-card {
  border: 1px solid var(--u888-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(61, 10, 10, .055);
}

.u888-article-main {
  padding: 28px 30px;
}

.u888-article-main h1 {
  margin: 0;
  color: #5b0709;
  font-size: 32px;
  line-height: 1.24;
}

.u888-article-meta {
  margin: 12px 0 22px;
  color: var(--u888-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}

.u888-article-content {
  color: #3d3033;
  font-size: 16px;
  line-height: 1.75;
}

.u888-article-content h2,
.u888-article-content h3 {
  color: #8f0006;
  line-height: 1.28;
}

.u888-article-content img {
  border-radius: 8px;
  margin: 18px auto;
}

.u888-side-card {
  padding: 18px;
}

.u888-side-card h2 {
  margin: 0 0 14px;
  color: #5b0709;
  font-size: 20px;
}

.u888-side-list {
  display: grid;
  gap: 12px;
}

.u888-side-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: center;
}

.u888-side-item .u888-news-thumb {
  min-height: 58px;
  border-radius: 6px;
}

.u888-side-item h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.32;
}

@media (max-width: 980px) {
  .u888-top-inner { min-height: 68px; }
  .u888-brand { font-size: 40px; }
  .u888-nav-inner {
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .u888-hero {
    background-position: 58% center;
  }
  .u888-hero-inner { min-height: 360px; }
  .u888-hero h1 { font-size: 40px; }
  .u888-features { grid-template-columns: 1fr; }
  .u888-news-grid { grid-template-columns: repeat(2, 1fr); }
  .u888-article-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .u888-shell { width: min(100% - 28px, var(--u888-shell)); }
  .u888-top::before {
    font-size: 58px;
    letter-spacing: 42px;
  }
  .u888-top-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }
  .u888-brand { font-size: 38px; }
  .u888-top-actions {
    width: 100%;
    gap: 10px;
  }
  .u888-login-btn {
    min-width: 0;
    flex: 1;
    padding: 0 12px;
  }
  .u888-nav-inner {
    min-height: 48px;
    gap: 18px;
  }
  .u888-nav a {
    min-height: 48px;
    font-size: 13px;
  }
  .u888-hero {
    background:
      linear-gradient(90deg, rgba(50, 0, 0, .98), rgba(71, 0, 0, .9), rgba(101, 0, 0, .58)),
      url("u888-hero.png") 70% center / cover no-repeat,
      linear-gradient(110deg, #310000, #d50009);
  }
  .u888-hero-inner { min-height: 430px; }
  .u888-hero-copy { padding: 32px 0; }
  .u888-hero h1 { font-size: 34px; }
  .u888-hero p { font-size: 16px; }
  .u888-cta {
    width: 100%;
  }
  .u888-section-title {
    font-size: 24px;
    gap: 12px;
  }
  .u888-section-title::before,
  .u888-section-title::after {
    width: 28px;
  }
  .u888-news-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .u888-news-grid { grid-template-columns: 1fr; }
  .u888-news-card { grid-template-columns: 122px minmax(0, 1fr); }
  .u888-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }
  .u888-page-hero h1 { font-size: 30px; }
  .u888-article-main { padding: 22px 18px; }
  .u888-article-main h1 { font-size: 26px; }
}

@media (max-width: 420px) {
  .u888-news-card {
    grid-template-columns: 1fr;
  }
  .u888-news-thumb {
    min-height: 162px;
  }
}
