:root {
  --bg: #12081f;
  --surface: #1c1030;
  --surface-2: #2a1848;
  --border: #4a3270;
  --text: #f7f2ff;
  --muted: #c4b6d8;
  --primary: #e0b44a;
  --primary-hover: #f0cb6e;
  --primary-text: #1a1030;
  --login-bg: #1c1030;
  --accent-grad: linear-gradient(135deg, #e0b44a 0%, #8a3db8 100%);
  --gold: #e0b44a;
  --radius: 8px;
  --container: 1110px;
  --gutter: 15px;
  --font: Arial, Helvetica, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, label:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
h1, h2, h3, h4 { margin: 0 0 16px; font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { font-weight: 700; }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 32px; overflow: hidden; border-radius: var(--radius); }
th, td { padding: 14px 16px; border: 1px solid var(--border); text-align: center; vertical-align: middle; font-size: 15px; }
th { background: var(--surface-2); font-weight: 700; }
td { background: var(--surface); }
tr:nth-child(even) td { background: var(--surface-2); }
td:first-child { font-weight: 700; }
table tr:first-child th:first-child { border-top-left-radius: var(--radius); }
table tr:first-child th:last-child { border-top-right-radius: var(--radius); }

.page-shell { display: flex; flex-direction: column; min-height: 100vh; max-width: 100%; }
main { flex: 1 1 auto; min-width: 0; width: 100%; }
.page-column { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter) 40px; min-width: 0; }

.jump { cursor: pointer; -webkit-user-select: none; user-select: none; }

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.cta:not(.cta--quiet), .join-btn, .notes__btn {
  animation: cta-pulse 2.2s ease-in-out infinite;
  will-change: transform;
}
.cta:not(.cta--quiet):hover, .join-btn:hover, .notes__btn:hover { animation-play-state: paused; transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .cta, .join-btn, .notes__btn { animation: none; }
}
.cta {
  display: flex; align-items: center; justify-content: center; text-align: center;
  max-width: 340px; width: 100%; min-height: 60px; margin: 8px auto 0; padding: 12px 24px;
  border-radius: var(--radius); background: linear-gradient(180deg, #c45be0 0%, #7a2ea8 100%); color: #fff;
  box-shadow: 0 6px 22px rgba(138, 61, 184, .4);
  font-size: 18px; font-weight: 700; text-decoration: none; transition: background .2s, transform .1s;
}
.cta:hover { background: linear-gradient(180deg, #d07cf0 0%, #8a3db8 100%); }
.cta:is-open { transform: scale(.98); }
.cta--quiet { background: transparent; border: 2px solid var(--primary); color: var(--text); cursor: pointer; font-family: inherit; box-shadow: none; }
.cta--quiet:hover { background: rgba(138, 61, 184, .18); }

.bar { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
.bar__row { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 24px; }
.brand img { height: 48px; width: auto; }
.bar .brand { margin-right: auto; }
.menu__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu__list li { margin: 0; }
.menu__list a, .menu__list .jump { display: block; padding: 8px 14px; border-radius: 6px; font-size: 15px; font-weight: 700; text-decoration: none; color: var(--text); }
.menu__list a:hover, .menu__list .jump:hover { background: var(--surface-2); }
.menu__actions { display: none; }
.bar__actions { display: flex; gap: 10px; }
.enter-btn, .join-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px;
  border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s;
}
.enter-btn { background: var(--login-bg); color: var(--gold); border: 1px solid var(--gold); }
.enter-btn:hover { background: #2a1848; }
.join-btn { background: linear-gradient(180deg, #c45be0 0%, #7a2ea8 100%); color: #fff; }
.join-btn:hover { background: linear-gradient(180deg, #d07cf0 0%, #8a3db8 100%); }
.menu-box { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn { display: none; width: 40px; height: 40px; padding: 8px; flex-direction: column; justify-content: space-between; cursor: pointer; border-radius: 6px; }
.menu-btn span { display: block; height: 3px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .25s; }

.hero { padding: 28px 0 40px; text-align: center; }
.hero__title { margin-bottom: 20px; }
.hero__banner { display: block; margin: 0 auto 24px; border-radius: var(--radius); overflow: hidden; }
.hero__figure .jump { display: block; }
.hero__banner img { width: 100%; height: auto; }
.hero__copy { max-width: 900px; margin: 0 auto 24px; text-align: left; font-size: 17px; }
.hero__copy p:last-child { margin-bottom: 0; }
.hero__figure { margin: 8px 0 40px; }
.hero__figure img { width: 100%; border-radius: var(--radius); }

.table-scroll { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { width: 100%; min-width: 0; margin-bottom: 32px; }
.glance, .chapter { min-width: 0; max-width: 100%; }
.glance { margin: 0 0 48px; }
.glance__title {
  display: flex; align-items: center; justify-content: center; min-height: 64px; margin: 0 0 24px; padding: 12px 20px;
  border-radius: var(--radius); background: var(--accent-grad); text-align: center; font-size: 24px; color: #1a1400;
}
.glance td { font-weight: 700; }
.glance td:first-child { width: 28%; }

.chapter, .shelf, .app-band, .notes, .queries, .foot {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.chapter { margin: 0 0 48px; }
.chapter h2 { margin-top: 8px; }
.chapter__title { text-align: center; }
.chapter-text p, .chapter-text li { font-size: 17px; }
.chapter-text h3 { margin-top: 28px; }
.chapter-text table { font-size: 15px; }
.chapter__split { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 24px; }
.chapter__split .chapter__copy { flex: 1 1 0; }
.chapter__split .chapter__pic { flex: 0 0 514px; }
.chapter__split .chapter__pic img { width: 100%; border-radius: var(--radius); }

.weigh__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.weigh__box { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.weigh__box h3 { margin-bottom: 12px; }
.weigh__box ul { margin: 0; padding: 0; list-style: none; }
.weigh__box li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.weigh__box li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; }
.weigh__good li::before { background: #4cc98a; }
.weigh__bad li::before { background: #d9534f; }

.shelf { margin: 0 0 56px; }
.shelf h2 { text-align: center; margin-bottom: 24px; }
.shelf__nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; margin: 0 0 24px; padding: 0; }
.shelf__nav li { margin: 0; }
.shelf__tab {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 16px; font-weight: 700; text-decoration: none; transition: background .2s;
}
.shelf__tab svg { fill: currentColor; flex: none; }
.shelf__tab:hover, .shelf__tab.is-open { background: var(--surface-2); border-color: var(--gold); }
.shelf-pane { display: none; }
.shelf-pane.is-open { display: block; }
.shelf__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 14px; }
.shelf__item { display: block; text-decoration: none; color: var(--text); }
.shelf__item-pic { display: block; position: relative; border-radius: 6px; overflow: hidden; background: var(--surface); aspect-ratio: 360 / 472; }
.shelf__item-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.shelf__item:hover .shelf__item-pic img { transform: scale(1.04); }
.shelf__item-label { display: block; margin-top: 10px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.shelf__item small { display: block; font-size: 12px; color: var(--muted); }
.shelf__item--mark .shelf__item-label { text-align: center; }
.shelf__item--mark .shelf__item-pic { background: #24143d; aspect-ratio: 2 / 1; }
.shelf__item--mark .shelf__item-pic img { object-fit: contain; padding: 8px; }

.app-band { margin: 0 0 40px; }
.download-section__title { text-align: center; }
.download-section__inner { display: flex; gap: 32px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.download-section__subtitle { text-align: center; }
.download-section__buttons { justify-content: center; }
.download-section__left { flex: 0 0 370px; }
.download-section__left img { border-radius: 6px; }
.download-section__right { flex: 1 1 0; }
.download-section__subtitle { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.download-section__right ul { display: flex; flex-wrap: wrap; gap: 8px 0; list-style: none; margin: 0 auto 20px; padding: 0; max-width: 640px; }
.download-section__right li { flex: 1 1 25%; margin: 0; padding: 0 14px; text-align: center; border-right: 1px solid var(--border); }
.download-section__right li:last-child { border-right: 0; }
.download-section__right li span { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 20px; font-weight: 700; }
.download-section__right li span img { display: inline-block; }
.download-section__right li small { display: block; font-size: 12px; color: var(--muted); }
.download-section__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.download-section__button { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 14px; border-radius: 8px; background: #fff; border: 1px solid #fff; transition: box-shadow .2s; }
.download-section__button img { height: 33px; width: auto; }
.download-section__button:hover { box-shadow: 0 2px 16px rgba(0,0,0,.5); }

.notes { margin: 0 0 56px; }
.notes__box { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; margin-bottom: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.notes__label { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.notes__score { display: flex; align-items: center; gap: 10px; }
.notes__score > span { font-size: 26px; font-weight: 700; }
.notes__score small { color: var(--muted); font-size: 13px; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: var(--gold); }
.notes__btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 6px; background: linear-gradient(180deg, #c45be0 0%, #7a2ea8 100%); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.notes__btn:hover { background: linear-gradient(180deg, #d07cf0 0%, #8a3db8 100%); }
.notes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.notes__item { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.notes__item.hide { display: none; }
.notes__user { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.notes__avatar { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-grad); font-weight: 700; font-size: 18px; color: #1a1400; }
.notes__who span { display: block; font-weight: 700; }
.notes__who small { color: var(--muted); font-size: 12px; }
.notes__rate { margin-bottom: 10px; }
.notes__text p { margin: 0; font-size: 15px; }

.queries { margin: 0 0 40px; }
.queries__item { padding: 20px 24px; margin-bottom: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.queries__item h3 { font-size: 18px; margin-bottom: 8px; }
.queries__item p { margin: 0; font-size: 16px; }

.dated { margin: 0 0 16px; }
.dated__box { padding: 14px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: 15px; color: var(--muted); }

.foot { background: var(--surface); border-top: 1px solid var(--border); }
.foot__row { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 40px var(--gutter); display: flex; justify-content: space-between; gap: 40px; }
.foot__brand .brand img { height: 56px; width: auto; margin-bottom: 20px; }
.foot__seals { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.foot__seals img { height: 44px; width: auto; opacity: .9; }
.foot__seals a:hover img { opacity: 1; }
.age-pill { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #ff6b6b; color: #ff6b6b; font-weight: 700; font-size: 15px; }
.foot__links { display: flex; gap: 60px; }
.foot-nav__list { list-style: none; margin: 0; padding: 0; }
.foot-nav__list li { margin-bottom: 8px; }
.foot-nav__list a, .foot-nav__list .jump { font-size: 14px; text-decoration: none; color: var(--text); }
.foot-nav__list a:hover, .foot-nav__list .jump:hover { text-decoration: underline; }
.foot__end { border-top: 1px solid var(--border); }
.foot-copy { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 20px var(--gutter); text-align: center; font-size: 12px; line-height: 1.6; color: var(--muted); }
.foot-copy p { margin: 0 0 6px; }

@media (max-width: 1024px) {
  .bar__row { gap: 12px; }
  .menu__list a, .menu__list .jump { padding: 8px 10px; font-size: 14px; }
  .chapter__split { gap: 24px; }
  .chapter__split .chapter__pic { flex-basis: 40%; }
  .shelf__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: flex; order: 3; }
  .bar__actions { order: 2; margin-left: auto; }
  .bar .brand { margin-right: 0; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 64px; padding: 12px var(--gutter) 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
  .menu-box:checked ~ .menu { display: block; }
  .menu-box:checked ~ .menu-btn span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
  .menu-box:checked ~ .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-box:checked ~ .menu-btn span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
  .menu__list { flex-direction: column; gap: 0; }
  .menu__list a, .menu__list .jump { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .menu__actions { display: flex; gap: 10px; margin-top: 16px; }
  .menu__actions a { flex: 1; }
  .chapter__split { flex-direction: column; }
  .chapter__split .chapter__pic { flex-basis: auto; width: 100%; max-width: 514px; }
  .download-section__inner { flex-direction: column; align-items: stretch; }
  .download-section__left { flex-basis: auto; }
  .download-section__left img { width: 100%; }
  .notes__grid { grid-template-columns: repeat(2, 1fr); }
  .foot__row { flex-direction: column; gap: 32px; }
  .foot__links { gap: 40px; }
}
@media (max-width: 767px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  .chapter-text p, .chapter-text li, .hero__copy { font-size: 16px; }
  th, td { padding: 10px 8px; font-size: 13px; }
  .glance td:first-child { width: 34%; }
  .glance__title { font-size: 18px; min-height: 56px; }
  .shelf__nav { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .shelf__tab { height: 42px; font-size: 14px; }
  .shelf__grid { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .shelf__item-label { font-size: 14px; }
  .cta { min-height: 54px; font-size: 16px; }
  .notes__box { flex-direction: column; align-items: flex-start; }
  .notes__btn { width: 100%; }
  .notes__grid { grid-template-columns: 1fr; }
  .weigh__grid { grid-template-columns: 1fr; }
  .download-section__right li { flex-basis: 50%; border-right: 0; }
  .chapter, .shelf, .notes { margin-bottom: 36px; }
  .table-scroll table { min-width: 640px; }
  .table-scroll th, .table-scroll td { white-space: nowrap; }
}
@media (max-width: 480px) {
  .bar__row { gap: 8px; }
  .bar__actions { gap: 6px; }
  .enter-btn, .join-btn { height: 36px; padding: 0 10px; font-size: 13px; }
  .brand img { height: 32px; }
  .menu-btn { width: 36px; padding: 7px; }
}

.foot-pays { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 22px; padding: 18px var(--gutter) 8px; border-top: 1px solid var(--border); }
.foot-pays img { height: 28px; width: auto; }
.foot-social { display: flex; gap: 10px; margin: 14px 0; }
.foot-social .jump { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.foot-social svg { width: 18px; height: 18px; fill: var(--text); }
.foot-app { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.foot-app .jump { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--gold); color: var(--gold); font-size: 13px; font-weight: 700; }
