:root {
  --bg: #262e4f;
  --bg-2: #2e3760;
  --surface: #333d69;
  --surface-2: #3b4677;
  --line: #4a5691;
  --line-soft: #414c7f;
  --text: #f0f3ff;
  --text-2: #d3d9f2;
  --muted: #a3adcf;
  --gold: #ffc93c;
  --gold-2: #ffa724;
  --hot: #ff4d6d;
  --hot-2: #ff7a3d;
  --ink: #241a05;
  --glow-gold: rgba(255, 201, 60, .4);
  --glow-hot: rgba(255, 77, 109, .45);
  --radius: 16px;
  --radius-s: 12px;
  --header-h: 78px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(900px 420px at 12% -60px, rgba(255, 201, 60, .1), transparent 70%),
    radial-gradient(760px 380px at 92% 120px, rgba(255, 77, 109, .12), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text-2);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(38, 46, 79, .9);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 6px 24px rgba(12, 16, 32, .28);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  transition: transform .28s ease;
}

.logo:hover {
  transform: scale(1.06);
}

.logo img {
  height: 42px;
  width: auto;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--radius-s);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .28s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 45%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: rotate(18deg);
  transition: left .55s ease;
}

.btn:hover::after {
  left: 130%;
}

.btn:active {
  transform: translateY(1px) scale(.99);
}

.btn--ghost {
  color: var(--gold);
  background: rgba(255, 201, 60, .1);
  border: 1.5px solid rgba(255, 201, 60, .55);
}

.btn--ghost:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--glow-gold);
}

.btn--solid {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  box-shadow: 0 6px 20px var(--glow-gold);
}

.btn--solid:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px var(--glow-gold);
}

.btn--lg {
  padding: 17px 44px;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--hot-2) 0%, var(--hot) 100%);
  box-shadow: 0 10px 30px var(--glow-hot);
}

.btn--lg:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 44px var(--glow-hot);
}

/* Banner */

.banner {
  padding: 30px 0 4px;
}

.banner__box {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: 0 22px 50px rgba(12, 16, 32, .42);
}

.banner__box img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, rgba(38, 46, 79, .96) 0%, rgba(38, 46, 79, .86) 38%, rgba(38, 46, 79, .3) 68%, rgba(38, 46, 79, .05) 100%);
}

.banner__content {
  max-width: 620px;
  padding: 36px 40px;
}

.banner__kicker {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hot-2), var(--hot));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px var(--glow-hot);
  margin-bottom: 16px;
}

.banner__title {
  display: block;
  color: var(--text);
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.6px;
  text-shadow: 0 4px 22px rgba(12, 16, 32, .5);
  margin-bottom: 14px;
}

.banner__title span {
  background: linear-gradient(120deg, var(--gold) 10%, var(--hot-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.banner__text {
  display: block;
  color: var(--text-2);
  font-size: 17px;
  margin-bottom: 28px;
}

/* Slots */

.section {
  padding: 54px 0 8px;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 26px;
}

.section__title {
  display: block;
  position: relative;
  padding-bottom: 12px;
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.3px;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--hot));
}

.section__sub {
  display: block;
  color: var(--muted);
  font-size: 15px;
  padding-top: 10px;
}

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

.slot {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: 0 6px 18px rgba(12, 16, 32, .26);
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

.slot__media {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 100%;
  overflow: hidden;
  flex: 0 0 auto;
}

.slot__media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .35s ease;
}

.slot__hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(38, 46, 79, .5), rgba(23, 28, 51, .84));
}

.slot__play {
  color: #fff;
  background: linear-gradient(135deg, var(--hot-2), var(--hot));
  box-shadow: 0 8px 22px var(--glow-hot);
  transition: transform .32s cubic-bezier(.34, 1.45, .64, 1), box-shadow .25s ease;
}

.slot__name {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 13px 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
}

@media (hover: hover) and (pointer: fine) {
  .slot:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(12, 16, 32, .46), 0 0 0 1px var(--gold);
  }

  .slot:hover .slot__media img {
    transform: scale(1.09);
    filter: saturate(1.15);
  }

  .slot__hover {
    opacity: 0;
    transition: opacity .3s ease;
  }

  .slot:hover .slot__hover {
    opacity: 1;
  }

  .slot__play {
    transform: scale(.8);
  }

  .slot:hover .slot__play {
    transform: scale(1);
  }
}

@media (hover: none) {
  .slot__hover {
    align-items: flex-end;
    padding-bottom: 10px;
    background: linear-gradient(180deg, transparent 48%, rgba(23, 28, 51, .88) 100%);
  }

  .slot__play {
    padding: 8px 22px;
    font-size: 13px;
  }
}

/* Page content */

.toc {
  margin-top: 54px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  box-shadow: 0 6px 20px rgba(12, 16, 32, .22);
  overflow: hidden;
}

.toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-left: 4px solid var(--gold);
  transition: background-color .22s ease;
}

.toc__head::-webkit-details-marker {
  display: none;
}

.toc__head:hover {
  background: var(--surface);
}

.toc__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink);
  font-size: 11px;
  transition: transform .3s ease;
}

.toc[open] .toc__arrow {
  transform: rotate(180deg);
}

.toc__body {
  padding: 4px 24px 22px;
  border-top: 1px solid var(--line-soft);
}

.toc__list {
  columns: 2;
  column-gap: 34px;
  list-style: none;
  margin-top: 16px;
}

.toc__list li {
  break-inside: avoid;
  margin-bottom: 4px;
}

.toc__list a {
  display: block;
  padding: 7px 13px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 15px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.toc__list a:hover {
  background: var(--surface-2);
  color: var(--gold);
  transform: translateX(4px);
}

.toc__list li.is-sub a {
  margin-left: 16px;
  color: var(--muted);
  font-size: 14px;
  border-left: 2px solid var(--line);
  border-radius: 0 9px 9px 0;
}

.toc__list li.is-sub a:hover {
  border-left-color: var(--gold);
}

/* Article */

.article {
  padding: 46px 0 16px;
}

.article h1,
.article h2,
.article h3 {
  scroll-margin-top: calc(var(--header-h) + 18px);
  color: var(--text);
  line-height: 1.26;
  font-weight: 900;
  letter-spacing: -.4px;
}

.article h1 {
  font-size: clamp(29px, 4vw, 42px);
  margin-bottom: 20px;
}

.article h2 {
  font-size: 27px;
  margin: 44px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--gold);
}

.article h3 {
  font-size: 20px;
  margin: 30px 0 12px;
  color: var(--gold);
}

.article p {
  margin-bottom: 16px;
}

.article strong {
  color: var(--text);
  font-weight: 700;
}

.article ol {
  margin: 0 0 20px;
  list-style: none;
  counter-reset: step;
}

.article ol li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 42px;
  counter-increment: step;
}

.article ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 3px;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 27px;
  text-align: center;
}

.article hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 40px 0;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  box-shadow: 0 6px 20px rgba(12, 16, 32, .22);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 480px;
}

th,
td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

thead th {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .2px;
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, .035);
}

tbody th {
  width: 34%;
  color: var(--text);
  font-weight: 700;
}

/* FAQ */

.faq {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.faq__item {
  border-radius: var(--radius-s);
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.faq__item[open] {
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(12, 16, 32, .3);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: var(--text);
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease, background-color .2s ease;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  background: var(--surface);
  color: var(--gold);
}

.faq__sign {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--gold);
  font-size: 17px;
  font-weight: 800;
  line-height: 26px;
  text-align: center;
  transition: transform .3s ease, background-color .25s ease, color .25s ease;
}

.faq__item[open] .faq__sign {
  transform: rotate(135deg);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--ink);
}

.faq__a {
  padding: 0 20px 18px;
  border-top: 1px solid var(--line-soft);
}

.faq__a p {
  margin: 14px 0 0;
}

/* Footer */

.footer {
  margin-top: 64px;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 30px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__nav a {
  color: var(--text-2);
  font-size: 15px;
  transition: color .2s ease;
}

.footer__nav a:hover {
  color: var(--gold);
}

.footer__bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer__note {
  display: block;
  max-width: 800px;
}

.age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
}

/* Responsive */

@media (max-width: 1000px) {
  .slots {
    grid-template-columns: repeat(4, 1fr);
  }

  .banner__box img {
    height: 400px;
  }

  .banner__content {
    padding: 30px 28px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 66px;
  }

  .logo img {
    height: 32px;
  }

  .btn {
    padding: 10px 17px;
    font-size: 14px;
  }

  .btn--lg {
    padding: 18px 50px;
    font-size: 19px;
  }

  .banner__box img {
    height: 460px;
  }

  .banner__overlay {
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(38, 46, 79, .35) 0%, rgba(38, 46, 79, .82) 46%, rgba(38, 46, 79, .96) 100%);
  }

  .banner__content {
    padding: 26px 20px;
  }

  .slots {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .slot__name {
    padding: 10px 6px;
    font-size: 13px;
  }

  .toc__list {
    columns: 1;
  }

  .article h2 {
    font-size: 23px;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 14px;
  }

  .slots {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner__box img {
    height: 430px;
  }

  th,
  td {
    padding: 11px 14px;
  }
}

@media (max-width: 420px) {
  .header__actions {
    gap: 8px;
  }

  .btn {
    padding: 9px 13px;
    font-size: 13px;
  }

  .btn--lg {
    padding: 17px 44px;
    font-size: 18px;
  }

  .section__title {
    font-size: 23px;
  }
}
