:root {
      --red-950: #160202;
      --red-900: #350405;
      --red-800: #65070b;
      --red-700: #a20a12;
      --red-600: #d20e1a;
      --gold-600: #d58d20;
      --gold-500: #f2ae33;
      --gold-300: #ffe38a;
      --blue-700: #053bb5;
      --paper: #f3f3f3;
      --paper-2: #fff9ed;
      --white: #fff;
      --ink: #1f1410;
      --muted: #756963;
      --line: rgba(84, 18, 9, .15);
      --shadow: 0 18px 42px rgba(50, 5, 7, .14);
      --max: 1180px;
    }

    * { box-sizing: border-box; }

    html,
    body {
      margin: 0;
      min-height: 100%;
      overflow-x: hidden;
    }

    body {
      color: var(--ink);
      background: var(--paper);
      font-family: Arial, "Helvetica Neue", sans-serif;
      line-height: 1.6;
      letter-spacing: 0;
    }

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

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

    .top-strip {
      background: #e8e8e8;
      border-bottom: 1px solid rgba(45, 28, 18, .08);
    }

    .header-main {
      min-height: 92px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .brand-mark {
      width: 62px;
      height: 62px;
      display: grid;
      place-items: center;
      border-radius: 10px;
      color: #fff;
      background:
        radial-gradient(circle at 28% 22%, #ffe58a 0 12%, transparent 28%),
        linear-gradient(135deg, #ff8a00 0%, #b30b12 54%, #240204 100%);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 14px 26px rgba(99, 7, 12, .22);
      font-size: 24px;
      font-weight: 900;
    }

    .brand-word {
      display: grid;
      line-height: 1;
    }

    .brand-word strong {
      color: #22140d;
      font-size: 38px;
      font-weight: 900;
    }

    .brand-word span {
      margin-top: 6px;
      color: var(--red-700);
      font-size: 13px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .btn {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 24px;
      border-radius: 999px;
      border: 1px solid transparent;
      color: #fff;
      background: linear-gradient(180deg, #f04750 0%, #b70712 100%);
      box-shadow: 0 0 18px rgba(201, 13, 24, .26);
      font-size: 14px;
      font-weight: 900;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .btn.secondary {
      color: #351407;
      background: linear-gradient(180deg, #ffe997 0%, #eca432 100%);
      box-shadow: 0 0 18px rgba(214, 145, 25, .24);
    }

    .btn.dark {
      color: var(--gold-300);
      background: rgba(16, 2, 2, .42);
      border-color: rgba(255, 227, 138, .45);
      box-shadow: none;
    }

    .nav-wrap {
      background: #e5e5e5;
      border-bottom: 1px solid rgba(45, 28, 18, .08);
    }

    .nav {
      min-height: 58px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .nav a {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 14px;
      border-radius: 8px;
      color: #b70d16;
      text-shadow: 0 0 12px rgba(183, 13, 22, .35);
      font-size: 14px;
      font-weight: 900;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .nav a:hover,
    .nav .active {
      color: #fff;
      background: linear-gradient(180deg, #f65b65, #b80813);
    }

    .hero {
      position: relative;
      min-height: 610px;
      display: grid;
      align-items: center;
      color: #fff;
      background:
        linear-gradient(90deg, rgba(9, 1, 1, .96) 0%, rgba(21, 2, 2, .88) 35%, rgba(28, 3, 3, .44) 66%, rgba(8, 1, 1, .22) 100%),
        url("ao88-hero-visual.png") center / cover no-repeat;
      overflow: hidden;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 120px;
      background: linear-gradient(180deg, transparent, rgba(22, 2, 2, .7));
      pointer-events: none;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      width: min(640px, 100%);
      padding: 76px 0 84px;
    }

    h1,
    h2,
    h3,
    p { margin-top: 0; }

    h1 {
      margin-bottom: 20px;
      color: #fff;
      font-size: clamp(46px, 6.5vw, 82px);
      line-height: .98;
      font-weight: 900;
      text-transform: uppercase;
      text-shadow: 0 8px 0 rgba(0, 0, 0, .16), 0 22px 44px rgba(0, 0, 0, .34);
    }

    h1 .gold { color: var(--gold-300); }

    .hero p {
      max-width: 610px;
      margin-bottom: 28px;
      color: rgba(255, 249, 237, .9);
      font-size: 20px;
      font-weight: 700;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-bottom: 22px;
    }

    .official-link {
      color: rgba(255, 249, 237, .9);
      font-size: 15px;
      font-weight: 900;
    }

    .official-link a {
      color: var(--gold-300);
    }

    .main {
      background:
        linear-gradient(180deg, #fff 0%, var(--paper-2) 45%, #f1e8dc 100%);
    }

    .intro {
      padding: 36px 0 22px;
    }

    .intro-box {
      border: 6px solid #0845d1;
      border-radius: 9px;
      background: #eee;
      box-shadow: 0 20px 42px rgba(8, 69, 209, .18);
      padding: clamp(22px, 4vw, 40px);
    }

    .intro-box h2 {
      margin-bottom: 16px;
      color: #043dc1;
      font-size: clamp(28px, 4vw, 42px);
      line-height: 1.1;
      text-align: center;
      font-weight: 900;
    }

    .intro-box p {
      color: #251815;
      font-size: 17px;
      font-weight: 600;
    }

    .section {
      padding: 54px 0;
    }

    .section-head {
      max-width: 760px;
      margin: 0 auto 30px;
      text-align: center;
    }

    .section-head h2 {
      margin-bottom: 10px;
      color: var(--red-800);
      font-size: clamp(30px, 4.2vw, 48px);
      line-height: 1.05;
      font-weight: 900;
    }

    .section-head p {
      color: var(--muted);
      font-size: 16px;
      font-weight: 700;
    }

    .split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 36px;
      align-items: center;
    }

    .feature-visual {
      min-height: 380px;
      border-radius: 8px;
      background:
        linear-gradient(90deg, rgba(18, 2, 2, .06), rgba(0, 0, 0, 0)),
        url("ao88-feature-visual.png") center / cover no-repeat;
      box-shadow: var(--shadow);
    }

    .feature-copy h2 {
      margin-bottom: 14px;
      color: var(--red-800);
      font-size: clamp(32px, 4vw, 46px);
      line-height: 1.08;
      font-weight: 900;
    }

    .feature-copy > p {
      color: var(--muted);
      font-size: 16px;
      font-weight: 700;
    }

    .feature-list {
      display: grid;
      gap: 14px;
      margin-top: 22px;
    }

    .feature-row {
      display: grid;
      grid-template-columns: 52px 1fr;
      gap: 14px;
      align-items: start;
      padding: 18px;
      border-radius: 8px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: 0 10px 22px rgba(50, 5, 7, .07);
    }

    .num,
    .info-card b,
    .step-card::before {
      width: 42px;
      height: 42px;
      display: inline-grid;
      place-items: center;
      border-radius: 999px;
      color: #5a2506;
      background: linear-gradient(180deg, #ffe791 0%, #eda32f 100%);
      font-size: 12px;
      font-weight: 900;
    }

    .feature-row h3,
    .info-card h3,
    .step-card h3,
    .promo-card h3,
    .category-card h3,
    .article-card h3,
    .faq-item h3 {
      margin-bottom: 8px;
      color: var(--red-800);
      line-height: 1.16;
      font-weight: 900;
    }

    .feature-row p,
    .info-card p,
    .step-card p,
    .promo-card p,
    .category-card p,
    .faq-item p,
    .article-card p {
      margin-bottom: 0;
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
    }

    .category-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 16px;
    }

    .category-card {
      min-height: 214px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      padding: 20px;
      border-radius: 8px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: 0 14px 30px rgba(50, 5, 7, .08);
    }

    .category-icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 9px;
      color: #571f04;
      background: linear-gradient(180deg, #ffe791, #efa634);
      font-size: 13px;
      font-weight: 900;
    }

    .read-more {
      margin-top: auto;
      color: var(--red-600);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .info-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }

    .info-card {
      min-height: 210px;
      padding: 22px;
      border-radius: 8px;
      background: #fff8ec;
      border: 1px solid var(--line);
      box-shadow: 0 12px 28px rgba(50, 5, 7, .07);
    }

    .info-card b {
      margin-bottom: 16px;
    }

    .steps-band {
      padding: 58px 0;
      color: #fff;
      background: linear-gradient(180deg, #4c0708 0%, #75070d 100%);
    }

    .steps-band .section-head h2 {
      color: var(--gold-300);
    }

    .steps-band .section-head p {
      color: rgba(255, 249, 237, .78);
    }

    .steps-grid {
      counter-reset: steps;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .step-card {
      counter-increment: steps;
      position: relative;
      min-height: 204px;
      padding: 28px 20px 22px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, .14);
      background: rgba(255, 255, 255, .08);
    }

    .step-card::before {
      content: counter(steps, decimal-leading-zero);
      margin-bottom: 18px;
    }

    .step-card h3 {
      color: #fff;
    }

    .step-card p {
      color: rgba(255, 249, 237, .78);
    }

    .promo-layout {
      display: grid;
      grid-template-columns: 1.08fr .92fr;
      gap: 24px;
    }

    .promo-card {
      padding: clamp(24px, 4vw, 38px);
      border-radius: 8px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
    }

    .promo-card.dark {
      color: #fff;
      background: linear-gradient(145deg, #5a0709, #8e0910);
      border: 0;
    }

    .promo-card h2 {
      margin-bottom: 12px;
      color: var(--red-800);
      font-size: clamp(30px, 4vw, 44px);
      line-height: 1.08;
      font-weight: 900;
    }

    .promo-card.dark h2 {
      color: var(--gold-300);
    }

    .promo-card.dark p {
      color: rgba(255, 249, 237, .82);
    }

    .mini-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-top: 22px;
    }

    .mini-list div {
      min-height: 116px;
      padding: 18px;
      border-radius: 8px;
      background: #fff6e8;
      border: 1px solid var(--line);
    }

    .promo-card.dark .mini-list div {
      background: rgba(255, 255, 255, .09);
      border-color: rgba(255, 255, 255, .13);
    }

    .mini-list b {
      display: block;
      margin-bottom: 8px;
      color: var(--red-800);
      font-weight: 900;
    }

    .promo-card.dark .mini-list b {
      color: var(--gold-300);
    }

    .news {
      background: #fff;
    }

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

    .article-card {
      position: relative;
      min-height: 248px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      overflow: hidden;
      padding: 24px;
      border-radius: 8px;
      color: #fff;
      background:
        radial-gradient(circle at 64% 8%, rgba(255, 227, 138, .24), transparent 24%),
        linear-gradient(145deg, #4d0507 0%, #8a070e 100%);
      box-shadow: 0 18px 34px rgba(50, 5, 7, .14);
    }

    .article-card time,
    .article-card h3,
    .article-card p {
      position: relative;
      z-index: 1;
    }

    .article-card time {
      display: block;
      margin-bottom: 12px;
      color: var(--gold-300);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    .article-card h3 {
      color: #fff;
      font-size: 24px;
    }

    .article-card p {
      color: rgba(255, 249, 237, .78);
    }

    .content-band {
      padding: 48px 0 56px;
      background: #f0e7dc;
    }

    .content-box {
      max-width: 900px;
      margin: 0 auto;
      padding: clamp(24px, 4vw, 36px);
      border-radius: 8px;
      border-left: 5px solid var(--red-600);
      background: #fff;
      box-shadow: var(--shadow);
    }

    .content-box h2 {
      margin-bottom: 14px;
      color: var(--red-800);
      font-size: 32px;
      line-height: 1.14;
      font-weight: 900;
    }

    .content-box p,
    .content-box li {
      color: #49362f;
      font-size: 16px;
      font-weight: 600;
    }

    .faq-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }

    .faq-item {
      padding: 22px;
      border-radius: 8px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: 0 12px 28px rgba(50, 5, 7, .07);
    }

    .footer {
      padding: 46px 0;
      color: #fff;
      background: #1a0303;
    }

    .footer .shell {
      display: grid;
      grid-template-columns: 1.4fr repeat(3, 1fr);
      gap: 34px;
    }

    .footer h3 {
      margin-bottom: 12px;
      color: var(--gold-300);
      font-size: 18px;
      font-weight: 900;
    }

    .footer p,
    .footer a {
      color: rgba(255, 249, 237, .78);
      font-size: 14px;
      font-weight: 700;
    }

    @media (max-width: 1100px) {
      .header-main {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
      }

      .header-actions {
        width: 100%;
        justify-content: flex-start;
      }

      .category-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (max-width: 900px) {
      .shell {
        width: min(100% - 24px, var(--max));
      }

      .hero {
        min-height: 610px;
        background-position: 66% center;
      }

      .hero-content {
        padding: 58px 0 70px;
      }

      .split,
      .promo-layout {
        grid-template-columns: 1fr;
      }

      .feature-visual {
        min-height: 300px;
      }

      .info-grid,
      .steps-grid,
      .news-grid,
      .footer .shell {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 640px) {
      .top-strip {
        background: #fff;
      }

      .header-main {
        align-items: center;
        text-align: center;
      }

      .brand-mark {
        width: 48px;
        height: 48px;
      }

      .brand-word strong {
        font-size: 30px;
      }

      .header-actions {
        justify-content: center;
      }

      .header-actions .btn {
        width: min(100%, 260px);
        border-radius: 8px;
      }

      .nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 12px 0;
      }

      .nav a {
        width: 100%;
        text-shadow: none;
      }

      .hero {
        min-height: 560px;
        background-position: 67% center;
      }

      h1 {
        font-size: 38px;
      }

      .hero p {
        font-size: 16px;
      }

      .hero-actions .btn {
        width: 100%;
        border-radius: 8px;
      }

      .intro-box {
        border-width: 4px;
      }

      .category-grid,
      .info-grid,
      .steps-grid,
      .mini-list,
      .news-grid,
      .faq-grid,
      .footer .shell {
        grid-template-columns: 1fr;
      }

      .category-card,
      .info-card,
      .step-card,
      .article-card {
        min-height: auto;
      }
    }

/* AO88 article pages */
.article-hero {
  min-height: 350px;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9,1,1,.96) 0%, rgba(21,2,2,.88) 42%, rgba(28,3,3,.44) 100%),
    url("ao88-hero-visual.png") center / cover no-repeat;
}
.article-hero .shell { padding: 74px 0 54px; }
.article-hero h1 { max-width: 840px; margin-bottom: 16px; font-size: clamp(38px, 6vw, 70px); }
.article-hero p { max-width: 690px; margin: 0; color: rgba(255,249,237,.86); font-size: 18px; font-weight: 700; }
.article-wrap { padding: 54px 0 70px; background: linear-gradient(180deg, #fff9ed 0%, #f1e8dc 100%); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.article-main, .article-side-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.article-main { padding: clamp(24px, 4vw, 44px); }
.article-label { margin-bottom: 12px; color: var(--red-700); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.article-main h2, .article-main h3 { color: var(--red-800); line-height: 1.18; }
.article-main h2 { margin-bottom: 16px; font-size: clamp(28px, 4vw, 44px); }
.article-meta { margin-bottom: 24px; color: var(--muted); font-size: 14px; font-weight: 800; }
.article-body { color: #3d2921; font-size: 17px; line-height: 1.86; }
.article-body p { margin-bottom: 18px; }
.article-body ul { margin: 0 0 20px; padding-left: 20px; }
.article-body li { margin-bottom: 9px; }
.article-update, .article-editor { margin-top: 18px; color: var(--muted); font-size: 14px; font-weight: 800; }
.article-nav { display: grid; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--red-800); font-weight: 900; }
.article-side-card { overflow: hidden; }
.article-side-image { min-height: 210px; background: url("ao88-feature-visual.png") center / cover no-repeat; }
.article-side-body { padding: 24px; }
.article-side-body h2 { margin-bottom: 12px; color: var(--red-900); font-size: 28px; line-height: 1.08; }
.article-side-body p { color: var(--muted); font-size: 15px; }
.article-side-list { display: grid; gap: 10px; margin: 18px 0 22px; }
.article-side-list span { display: block; padding: 12px 14px; border-radius: 8px; color: var(--red-900); background: #fff6e8; font-size: 14px; font-weight: 900; }
.ao88-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.ao88-pagination a, .ao88-pagination span { min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--red-800); font-size: 13px; font-weight: 900; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-side-card { order: -1; }
}
@media (max-width: 640px) {
  .article-hero { min-height: 300px; background-position: 67% center; }
  .article-hero .shell { padding: 56px 0 40px; }
  .article-main { padding: 22px; }
  .article-body { font-size: 16px; }
}
