:root {
  --bg: #f5f6fb; --card: #ffffff; --tint: #eef0f8; --rule: #dde1ee;
  --ink: #10142e; --txt: #2a2f4c; --dim: #5d6382; --navy: #0b1033; --navy-2: #1b2259;
  --red: #fe284a; --red-2: #d9173a; --green: #16804a;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rad: 6px; --max: 1180px; --col: 780px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 17px/1.72 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
.ad-skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: var(--rad); z-index: 99; }
.ad-skip:focus { left: 8px; }
.ad-lock, .ad-lock body { overflow: hidden; }

/* header */
.ad-hd { position: sticky; top: 0; z-index: 30; background: var(--navy); border-bottom: 3px solid var(--red); }
.ad-hd__in { max-width: var(--max); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 22px; }
.ad-hd__logo { flex: none; }
.ad-word { color: var(--red); font-size: 24px; letter-spacing: .06em; }
.ad-hd__nav { flex: 1; min-width: 0; }
.ad-hd__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.ad-hd__list a { display: block; padding: 8px 10px; color: #cfd3ec; text-decoration: none; font-size: 15px; font-weight: 600; border-radius: var(--rad); }
.ad-hd__list a:hover { color: #fff; background: var(--navy-2); }
.ad-hd__list .ad-here a { color: #fff; box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.ad-hd__acts { display: flex; align-items: center; gap: 8px; flex: none; }
.ad-hd__burger { display: none; width: 42px; height: 42px; border: 1px solid #39407a; background: transparent; border-radius: var(--rad); cursor: pointer; position: relative; }
.ad-hd__burger span, .ad-hd__burger span::before, .ad-hd__burger span::after { position: absolute; left: 11px; width: 18px; height: 2px; background: #fff; content: ""; }
.ad-hd__burger span { top: 20px; } .ad-hd__burger span::before { top: -6px; left: 0; } .ad-hd__burger span::after { top: 6px; left: 0; }
.ad-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: var(--rad); background: var(--red); color: #fff; border: 0; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.ad-btn:hover { background: var(--red-2); color: #fff; }
.ad-btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #6c73b0; }
.ad-btn--line:hover { background: var(--navy-2); }
.ad-btn--big { min-height: 54px; padding: 10px 28px; font-size: 17px; white-space: normal; text-align: center; line-height: 1.25; max-width: 100%; overflow-wrap: anywhere; }

/* front hero slides */
.ad-hero { background: var(--navy); padding: 22px 16px 0; }
.ad-stage { position: relative; max-width: var(--max); margin: 0 auto; border-radius: 12px; overflow: hidden; background: var(--navy-2); }
.ad-stage__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ad-stage__track::-webkit-scrollbar { display: none; }
.ad-stage__slide { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.ad-stage__slide img { width: 100%; height: auto; aspect-ratio: 1600 / 640; object-fit: cover; }
.ad-stage__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.ad-stage__dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; transition: width .2s; }
.ad-stage__dots button[aria-current] { width: 26px; background: var(--red); }

/* front band */
.ad-band { background: var(--navy); color: #fff; background-image: linear-gradient(90deg, rgba(254,40,74,.12) 0 6px, transparent 6px); }
.ad-band__in { max-width: var(--max); margin: 0 auto; padding: 48px 16px 52px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 44px; align-items: start; }
.ad-band__h { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.02; margin: 0 0 14px; letter-spacing: -.02em; color: #fff; }
.ad-band__txt > p { font-size: 19px; color: #e1e4f6; margin: 14px 0 26px; max-width: 40em; }
.ad-band .ad-by, .ad-band .ad-by a { color: #aeb3d6; }
.ad-card { background: #fff; color: var(--ink); border-radius: var(--rad); padding: 18px 18px 8px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.ad-card__t { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 700; }
.ad-card__list { list-style: none; margin: 0; padding: 0; }
.ad-card__list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px dashed var(--rule); font-size: 15px; line-height: 1.4; }
.ad-card__list b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--navy); background: var(--tint); padding: 2px 8px; border-radius: 4px; justify-self: start; }

/* page top */
.ad-top { background: var(--card); border-bottom: 1px solid var(--rule); }
.ad-top__in { max-width: var(--max); margin: 0 auto; padding: 34px 16px 28px; }
.ad-top--pic .ad-top__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.ad-top__h { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; margin: 0 0 10px; color: var(--ink); letter-spacing: -.015em; }
.ad-top__h::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin-top: 14px; }
.ad-top__pic figure { margin: 0; }
.ad-top__pic img { border-radius: var(--rad); width: 100%; }
.ad-by { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 14px; color: var(--dim); }
.ad-by a { color: var(--dim); }
.ad-lost .ad-top__in { padding-bottom: 60px; }

/* reading column + contents chips */
.ad-wrap { max-width: var(--col); margin: 0 auto; padding: 28px 16px 56px; }
.ad-jumps { margin: 0 0 28px; }
.ad-jumps__t { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 700; }
.ad-jumps__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ad-jumps__list a { display: inline-flex; gap: 8px; align-items: baseline; padding: 7px 12px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.35; }
.ad-jumps__list i { font-style: normal; color: var(--red-2); font-weight: 700; font-size: 12px; }
.ad-jumps__list a:hover, .ad-jumps__list a[aria-current] { border-color: var(--navy); background: var(--navy); color: #fff; }
.ad-jumps__list a[aria-current] i, .ad-jumps__list a:hover i { color: #ff8da0; }

/* text */
.ad-text > :first-child { margin-top: 0; }
.ad-text h2 { font-size: 29px; line-height: 1.2; color: var(--ink); margin: 52px 0 14px; padding-top: 18px; border-top: 1px solid var(--rule); letter-spacing: -.01em; }
.ad-text h3 { font-size: 21px; line-height: 1.3; color: var(--ink); margin: 32px 0 10px; }
.ad-text h3::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--red); margin-right: 10px; vertical-align: 2px; }
.ad-text h4 { font-size: 18px; color: var(--ink); margin: 24px 0 8px; }
.ad-text p { margin: 0 0 16px; }
.ad-text ul, .ad-text ol { margin: 0 0 18px; padding-left: 22px; }
.ad-text li { margin: 0 0 6px; }
.ad-text li::marker { color: var(--red-2); }
.ad-text strong { color: var(--ink); }

/* tables */
.ad-tab { margin: 22px 0; }
.ad-tab__x { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--rad); background: var(--card); }
.ad-tab table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.ad-tab th { background: var(--navy); color: #fff; text-align: left; padding: 10px 12px; font-weight: 700; }
.ad-tab td { padding: 10px 12px; border-top: 1px solid var(--rule); vertical-align: top; }
.ad-tab tr:nth-child(even) td { background: #fafbfe; }

/* components */
.ad-hint { margin: 22px 0; padding: 14px 16px; background: #fff5f7; border-left: 4px solid var(--red); border-radius: 0 var(--rad) var(--rad) 0; }
.ad-hint p:last-child { margin-bottom: 0; }
.ad-hint__tag { font-weight: 800; color: var(--red-2); }
.ad-path { list-style: none; counter-reset: s; margin: 22px 0; padding: 0; }
.ad-path li { counter-increment: s; position: relative; padding: 0 0 18px 50px; margin: 0; }
.ad-path li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; background: var(--navy); color: #fff; border-radius: var(--rad); font-weight: 800; font-size: 15px; }
.ad-path li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--rule); }
.ad-path li:last-child::after { display: none; }
.ad-spec { margin: 22px 0; }
.ad-spec table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad); overflow: hidden; }
.ad-spec th, .ad-spec td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--rule); vertical-align: top; }
.ad-spec thead th { background: var(--tint); color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; border-top: 0; }
.ad-spec td:first-child { color: var(--dim); width: 42%; }
.ad-spec td:last-child { color: var(--ink); font-weight: 600; }
.ad-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 22px 0; border: 1px solid var(--rule); border-radius: var(--rad); overflow: hidden; background: var(--card); }
.ad-pair__half { padding: 14px 16px; }
.ad-pair__half p:last-child { margin-bottom: 0; }
.ad-pair__real { background: var(--navy); color: #e6e8f7; }
.ad-pair__real strong { color: #fff; }
.ad-pair__tag { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 6px; color: var(--red-2); }
.ad-pair__real .ad-pair__tag { color: #ff8da0; }

/* images */
.ad-img, .ad-fig { margin: 24px 0; }
.ad-img img, .ad-fig img { border-radius: var(--rad); width: 100%; }
.ad-fig__cap, .ad-img figcaption { font-size: 14px; color: var(--dim); margin-top: 8px; }
.ad-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; margin: 24px 0; }
.ad-duo--l .ad-duo__img { order: -1; }

/* CTA */
.ad-go { display: flex; justify-content: flex-start; margin: 18px 0 8px; }
.ad-text .ad-go__one a, .ad-text a.ad-btn { color: #fff; }

/* FAQ */
.ad-qa { margin-top: 48px; }
.ad-qa__row { border: 1px solid var(--rule); border-radius: var(--rad); background: var(--card); margin: 0 0 10px; }
.ad-qa__row summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; color: var(--ink); list-style: none; position: relative; }
.ad-qa__row summary::-webkit-details-marker { display: none; }
.ad-qa__row summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 24px; color: var(--red); font-weight: 400; }
.ad-qa__row[open] summary::after { content: "\2212"; }
.ad-qa__a { padding: 0 16px 14px; }
.ad-qa__a p:last-child { margin-bottom: 0; }

/* demos */
.ad-demo { margin: 22px 0; }
.ad-demo__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ad-demo__tile { display: block; width: 100%; padding: 0; border: 1px solid var(--rule); border-radius: var(--rad); background: var(--card); cursor: pointer; text-align: left; overflow: hidden; position: relative; font: inherit; }
.ad-demo__tile img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.ad-demo__name { display: block; padding: 8px 10px 0; font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.3; }
.ad-demo__by { display: block; padding: 0 10px 10px; font-size: 13px; color: var(--dim); }
.ad-demo__go { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.ad-demo__tile:hover { border-color: var(--navy); }
.ad-demo__note { font-size: 14px; color: var(--dim); margin-top: 10px; }
.ad-demo__modal { position: fixed; inset: 0; z-index: 90; background: rgba(6,8,26,.82); display: grid; place-items: center; padding: 16px; }
.ad-demo__modal[hidden] { display: none; }
.ad-demo__box { width: min(1000px, 100%); background: var(--navy); border-radius: var(--rad); overflow: hidden; }
.ad-demo__bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: #fff; }
.ad-demo__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-demo__real { background: var(--red); color: #fff; padding: 6px 12px; border-radius: var(--rad); text-decoration: none; font-weight: 700; font-size: 14px; }
.ad-demo__x { background: transparent; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.ad-demo__frame { aspect-ratio: 16 / 9; background: #000; }
.ad-demo__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* lobby dictionary */
.ad-dict { margin: 22px 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad); overflow: hidden; }
.ad-dict__head { background: var(--navy); color: #fff; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.ad-dict__t { margin: 0; font-weight: 800; font-size: 18px; }
.ad-dict__find { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #b9bede; flex: 1 1 240px; max-width: 360px; }
.ad-dict__find input { font: inherit; font-size: 16px; padding: 9px 12px; border-radius: var(--rad); border: 0; width: 100%; }
.ad-dict__list { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; }
.ad-dict__row { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 2px 16px; padding: 12px 16px; border-top: 1px solid var(--rule); margin: 0; }
.ad-dict__row:first-child { border-top: 0; }
.ad-dict__row[hidden] { display: none; }
.ad-dict__en { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--navy); background: var(--tint); padding: 2px 8px; border-radius: 4px; justify-self: start; grid-row: span 2; align-self: start; }
.ad-dict__hr { font-weight: 700; color: var(--ink); }
.ad-dict__why { font-size: 15px; color: var(--dim); line-height: 1.5; }
.ad-dict__none { padding: 12px 16px; margin: 0; color: var(--dim); }

/* footer */
.ad-ft { background: var(--navy); color: #c3c7e3; font-size: 15px; }
.ad-ft__in { max-width: var(--max); margin: 0 auto; padding: 40px 16px 24px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
.ad-ft__id p { margin: 12px 0 0; line-height: 1.55; }
.ad-ft__list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ad-ft__list a { color: #fff; text-decoration: none; }
.ad-ft__list a:hover { color: #ff8da0; }
.ad-ft__list--fine a { color: #aeb3d6; font-size: 14px; }
.ad-ft__age { max-width: var(--max); margin: 0 auto; padding: 16px; border-top: 1px solid #262d63; font-size: 14px; display: flex; gap: 12px; align-items: center; }
.ad-ft__age span { flex: none; border: 2px solid var(--red); color: #fff; font-weight: 800; border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; font-size: 13px; }

/* narrow screens */
@media (max-width: 960px) {
  .ad-hd__in { flex-wrap: wrap; gap: 10px; }
  .ad-hd__acts { margin-left: auto; }
  .ad-hd__burger { display: inline-block; }
  .ad-hd__nav { display: none; order: 3; flex-basis: 100%; }
  .ad-hd__nav--open { display: block; }
  .ad-hd__list { flex-direction: column; padding: 4px 0 8px; }
  .ad-band__in, .ad-top--pic .ad-top__in, .ad-ft__in { grid-template-columns: 1fr; }
  .ad-band__in { gap: 28px; padding: 32px 16px 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .ad-hero { padding: 0; }
  .ad-stage { border-radius: 0; }
  .ad-stage__slide img { aspect-ratio: 900 / 1000; }
  .ad-hd__logo img { width: 92px; height: auto; }
  .ad-btn { padding: 0 11px; font-size: 14px; min-height: 40px; }
  .ad-hd__acts .ad-btn--line { display: none; }
  .ad-text h2 { font-size: 24px; margin-top: 40px; }
  .ad-text h3 { font-size: 19px; }
  .ad-jumps__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .ad-jumps__list a { white-space: nowrap; }
  .ad-pair, .ad-duo { grid-template-columns: 1fr; }
  .ad-demo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-dict__row { grid-template-columns: 1fr; }
  .ad-dict__en { grid-row: auto; }
  .ad-card__list li { grid-template-columns: 1fr; gap: 4px; }
  .ad-tab--cards thead { display: none; }
  .ad-tab--cards table, .ad-tab--cards tbody, .ad-tab--cards tr, .ad-tab--cards td { display: block; width: 100%; }
  .ad-tab--cards tr { border-top: 1px solid var(--rule); padding: 8px 0; }
  .ad-tab--cards tr:first-child { border-top: 0; }
  .ad-tab--cards td { border: 0; padding: 4px 12px; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 10px; }
  .ad-tab--cards td::before { content: attr(data-h); color: var(--dim); font-size: 13px; font-weight: 700; }
  .ad-tab--cards tr:nth-child(even) td { background: transparent; }
}
