@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-display: swap; src: url("/assets/fonts/interdisplay-700.woff2") format("woff2"); }

:root {
  --bg: #111214;
  --bar: #17181b;
  --panel: #1b1d21;
  --panel-2: #24272c;
  --line: #2c2f35;
  --line-2: #3a3e45;
  --text: #f2f3f5;
  --text-2: #c9ccd1;
  --muted: #9a9fa8;
  --faint: #6d727b;
  --red: #f87171;
  --bar-h: 56px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 20px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
main { flex: 1; padding-bottom: 72px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 36px); }
h2 { font-size: 22px; }
h3 { font: 600 17px/1.3 var(--font); letter-spacing: 0; }
p { margin: 0; }
code { font: 500 0.9em ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--panel-2); border-radius: 5px; padding: 1px 6px; }
::selection { background: #fff; color: #111214; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.pad { padding: 20px 22px; }

.bar { position: sticky; top: 0; z-index: 50; background: var(--bar); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; gap: 20px; height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px var(--font-display); white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 50%; }
.bar__nav { display: flex; align-self: stretch; gap: 2px; margin-right: auto; }
.bar__nav a { display: flex; align-items: center; padding: 0 14px; border-top: 2px solid transparent; border-bottom: 2px solid transparent; color: var(--text-2); font-weight: 600; font-size: 15px; }
.bar__nav a:hover { color: #fff; }
.bar__nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.bar__menu { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); color: var(--text); cursor: pointer; }
.bar__menu svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .bar__nav { display: none; position: absolute; top: var(--bar-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 20px 12px; background: var(--bar); border-bottom: 1px solid var(--line); }
  .bar__nav.is-open { display: flex; }
  .bar__nav a { padding: 12px 0; border: 0; border-top: 1px solid var(--line); font-size: 16px; }
  .bar__nav a:first-child { border-top: 0; }
  .bar__play, .bar__cart { margin-left: auto; }
  .bar__menu { display: inline-flex; }
}
@media (max-width: 420px) { .brand span { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); color: var(--text); font: 600 15px/1 var(--font); white-space: nowrap; cursor: pointer; }
.btn:hover { background: #2d3137; border-color: #4a4f57; }
.btn svg { width: 13px; height: 13px; flex: none; }
.btn svg.icon-roblox { width: 16px; height: 16px; }
.btn--primary { background: var(--text); border-color: var(--text); color: #111214; }
.btn--primary:hover { background: #fff; border-color: #fff; }
.btn--lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.pagehead { padding: 36px 0 4px; }
.pagehead > p, .pagehead__lead { margin-top: 8px; max-width: 68ch; }
.pagehead__lead p + p { margin-top: 6px; }
.pagehead .pagehead__meta { color: var(--faint); font-size: 14px; }
.section { margin-top: 40px; }
.section > h2 { margin-bottom: 14px; }
.section__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 14px; }
.sneakpeek { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.sneakpeek iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.notice { margin-top: 20px; padding: 14px 18px; color: var(--text-2); }

.profile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px 24px; margin-top: 28px; padding: 24px; }
.profile__icon { width: 112px; height: 112px; border-radius: 22px; border: 1px solid var(--line); }
.profile__text p { margin-top: 4px; font-size: 17px; }
.profile__actions { display: flex; gap: 10px; }
.stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 0; font: 700 22px/1.3 var(--font-display); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .profile { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .profile__icon { width: 72px; height: 72px; border-radius: 16px; }
  .profile__actions { grid-column: 1 / -1; }
  .profile__actions .btn { flex: 1; }
  .stats { gap: 12px 28px; }
}

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--panel-2); font-weight: 700; }
.steps p { color: var(--muted); font-size: 15px; }
.steps .btn { min-width: 96px; }
@media (max-width: 520px) { .steps li { grid-template-columns: 32px minmax(0, 1fr); } .steps .btn { grid-column: 2; justify-self: start; } }

.tabs__list { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { margin-bottom: -1px; padding: 12px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 600 15px/1.2 var(--font); white-space: nowrap; cursor: pointer; }
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
.tabs__panel { margin-top: 14px; }
.tabs__title { margin-bottom: 10px; }
.tabs:not(.is-ready) .tabs__list { display: none; }
.tabs:not(.is-ready) .tabs__panel + .tabs__panel { margin-top: 28px; }
.tabs.is-ready .tabs__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.keys { list-style: none; margin: 0; padding: 0; }
.keys li { display: grid; grid-template-columns: minmax(140px, 32%) minmax(0, 1fr); align-items: center; gap: 16px; padding: 11px 20px; border-top: 1px solid var(--line); color: var(--text-2); }
.keys li:first-child { border-top: 0; }
.key { justify-self: start; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 14px; }
.keys small { color: var(--faint); font-size: 13px; }
.keys__extra { margin: 20px 0 10px; color: var(--muted); font-weight: 600; }
@media (max-width: 520px) { .keys li { grid-template-columns: 1fr; gap: 6px; } }

.paylogos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 14px; }
.paylogos li { display: inline-flex; align-items: center; gap: 8px; }
.paylogos img { width: 32px; height: 24px; }
.packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pack { display: flex; flex-direction: column; align-items: center; padding: 22px 16px 16px; text-align: center; }
.pack--featured { border-color: #70757e; }
.pack__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 50%; background: var(--panel-2); color: var(--text-2); }
.pack__icon svg { width: 26px; height: 26px; }
.pack__amount { font: 700 26px/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.pack__label { color: var(--muted); font-size: 14px; }
.pack__bonus { min-height: 21px; color: var(--muted); font-size: 13px; }
.pack__price { margin: 10px 0 12px; font-weight: 600; font-size: 17px; }
.pack { position: relative; }
.sale-badge { position: absolute; top: 10px; right: 10px; padding: 1px 9px; border-radius: 999px; background: var(--text); color: var(--bg); font: 700 12px/1.6 var(--font); font-variant-numeric: tabular-nums; }
.price__was { color: var(--muted); font-weight: 400; font-size: 0.85em; }
.price__now { font-weight: 700; }
.sale-note { color: var(--text); }
.pack .btn { margin-top: auto; height: auto; min-height: 44px; padding: 8px 10px; white-space: normal; line-height: 1.2; font-size: 14px; text-wrap: balance; }
@media (max-width: 560px) { .pack { padding-inline: 12px; } .pack .btn { padding-inline: 6px; } }

.pack .btn { position: relative; }
.add__label { transition: opacity 0.15s ease; }
.add__check { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.btn .add__check svg { width: 22px; height: 22px; stroke-width: 2.6; }
.add__check path { stroke-dasharray: 1 2; }
.btn.is-added .add__label { opacity: 0; }
.btn.is-added .add__check { opacity: 1; }
.btn.is-added .add__check svg { animation: add-pop 0.36s cubic-bezier(0.3, 1.4, 0.5, 1) backwards; }
.btn.is-added .add__check path { animation: add-tick 0.38s cubic-bezier(0.3, 0.7, 0.2, 1) 0.06s backwards; }
@keyframes add-tick { from { stroke-dashoffset: 1.02; } }
@keyframes add-pop { from { transform: scale(0.6); } }
@media (prefers-reduced-motion: reduce) { .add__label, .add__check { transition: none; } .btn.is-added .add__check svg, .btn.is-added .add__check path { animation: none; } }

.gift { display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.gift + .gift { margin-top: 12px; }
.gift .pack__icon { margin: 0; }
.gift__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gift__text .muted { font-size: 14px; }
.gift .btn { flex: none; }
.gift__buy { display: flex; align-items: center; gap: 16px; flex: none; }
.gift__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 560px) { .gift { flex-wrap: wrap; } .gift__text { flex-basis: calc(100% - 70px); } .gift .btn { width: 100%; } .gift__buy { flex-basis: 100%; } .gift__buy .btn { width: auto; flex: 1; } }
.claim-item { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.claim-item > div { display: grid; min-width: 0; }
.claim-done { display: grid; justify-items: center; gap: 8px; padding: 48px 12px 32px; text-align: center; }
.claim-done .cart-empty__icon { color: var(--text); }
.claim-done .muted { max-width: 34ch; font-size: 14px; }
.claim-done .btn { margin-top: 12px; }

.faq details { padding: 0 20px; border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq details.is-moving { overflow: hidden; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; list-style: none; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; align-self: flex-start; width: 12px; height: 12px; margin-top: 7px; color: var(--muted); background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: background-size 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
.faq details[open]:not(.is-closing) summary::after { background-size: 100% 2px, 2px 0; }
.faq details p { max-width: 70ch; padding: 0 0 16px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

.receipt { margin: 20px 0 0; }
.receipt div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line); }
.receipt div:first-child { border-top: 0; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; text-align: right; }

.input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); color: var(--text); font: inherit; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: #fff; }
.field label, .label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.field__row { display: flex; gap: 8px; }
.field__row .btn { flex: none; }
.hint { margin-top: 6px; color: var(--faint); font-size: 13px; }
.hint:empty { display: none; }
.hint b { color: var(--text-2); font-weight: 600; }
.idbox { display: grid; gap: 16px; }
.details { display: grid; gap: 12px; }
.details > .label { margin-bottom: 0; }
.details__names { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.details .names { display: grid; gap: 8px; }

.player { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); }
.player img { width: 48px; height: 48px; border-radius: 50%; background: var(--line); flex: none; }
.player strong { display: block; }
.player .muted { font-size: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 3px 0 0; flex: none; accent-color: #fff; }
.check a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.paymethods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.paymethod { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border: 1px solid var(--text); border-radius: 8px; background: var(--text); color: #111214; font: 600 15px/1 var(--font); cursor: pointer; }
.paymethod img { width: 40px; height: 30px; flex: none; }
.paymethod:hover:not([disabled]) { background: #fff; }
.paymethod[disabled] { opacity: 0.4; cursor: not-allowed; }
.note { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text-2); font-size: 14px; }
.form-error { color: var(--red); font-size: 14px; }
.form-error:empty { display: none; }
.fine { color: var(--faint); font-size: 13px; }
@media (max-width: 380px) { .paymethods, .details__names { grid-template-columns: 1fr; } }

.cart-btn { position: relative; width: 40px; padding: 0; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn__count { position: absolute; top: -8px; right: -8px; box-sizing: content-box; min-width: 16px; height: 16px; padding: 0 3px; border: 2px solid var(--bar); border-radius: 12px; background: var(--text); color: #111214; font: 700 11px/16px var(--font); text-align: center; font-variant-numeric: tabular-nums; }
.cart-btn.is-ringing svg { animation: cart-ring 0.8s ease-in-out; transform-origin: 50% 25%; }
.cart-btn.is-ringing .cart-btn__count { animation: cart-pop 0.5s ease-out; }
@keyframes cart-ring { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-18deg) scale(1.15); } 25% { transform: rotate(15deg) scale(1.15); } 40% { transform: rotate(-11deg) scale(1.1); } 55% { transform: rotate(8deg); } 70% { transform: rotate(-4deg); } 85% { transform: rotate(2deg); } }
@keyframes cart-pop { 0% { transform: scale(0.5); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(540px, 100%); max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line-2); border-radius: 0; background: var(--panel); color: var(--text); overflow: hidden; }
.drawer::backdrop { background: rgba(0, 0, 0, 0.62); }
.drawer[open] { display: block; animation: drawer-in 0.28s cubic-bezier(0.2, 0.75, 0.2, 1); }
.drawer[open]::backdrop { animation: drawer-fade 0.28s ease-out; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-fade { from { opacity: 0; } }
html:has(.drawer[open]) { overflow: hidden; scrollbar-gutter: stable; }
.drawer__in { display: flex; flex-direction: column; height: 100%; }
.drawer__head { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 18px; }
.drawer__close { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.drawer__close:hover { background: var(--panel-2); color: var(--text); }
.drawer__close svg { width: 18px; height: 18px; }
.drawer__body { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-auto-rows: max-content; gap: 18px; align-content: start; padding: 20px; overscroll-behavior: contain; }

.cart-empty { display: grid; justify-items: center; gap: 4px; padding: 56px 12px 40px; text-align: center; }
.cart-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 50%; background: var(--panel-2); color: var(--muted); }
.cart-empty__icon svg { width: 26px; height: 26px; }
.cart-empty .muted { max-width: 30ch; font-size: 14px; }

.cart-items { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cart-items:empty { display: none; }
.cart-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) 32px; grid-template-areas: "icon info remove" "icon side side"; gap: 8px 12px; padding: 14px; border-top: 1px solid var(--line); }
.cart-item:first-child { border-top: 0; }
.cart-item__icon { grid-area: icon; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2); color: var(--text-2); }
.cart-item__icon svg { width: 20px; height: 20px; }
.cart-item__info { grid-area: info; display: grid; gap: 1px; min-width: 0; }
.cart-item__info strong { font-size: 16px; }
.cart-item__info .muted { font-size: 13px; }
.cart-item__remove { grid-area: remove; align-self: start; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--faint); cursor: pointer; }
.cart-item__remove:hover { background: var(--panel-2); color: var(--text); }
.cart-item__remove svg { width: 16px; height: 16px; }
.cart-item__side { grid-area: side; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-item__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel-2); }
.qty__btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 7px; background: none; color: var(--text); cursor: pointer; }
.qty__btn:hover:not([disabled]) { background: #2d3137; }
.qty__btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.qty__btn svg { width: 14px; height: 14px; }
.qty__n { min-width: 34px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.cart-checkout { display: grid; gap: 16px; }
.cart-sum { margin: 0; display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bar); }
.cart-sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted); }
.cart-sum dd { margin: 0; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-sum__total dd { font: 700 22px/1.2 var(--font-display); }
@media (prefers-reduced-motion: reduce) {
  .cart-btn.is-ringing svg, .cart-btn.is-ringing .cart-btn__count, .drawer[open], .drawer[open]::backdrop { animation: none; }
}

body.bare main { display: grid; place-items: center; padding: 48px 20px; }
.login-card { width: 100%; max-width: 500px; display: grid; gap: 22px; padding: 48px 44px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }
.login-card img { margin: 0 auto; border-radius: 50%; }
.login-card h1 { font-size: 32px; }
.login-note { margin-top: -10px; color: var(--muted); }
.login-alert { color: var(--red); font-size: 14px; }
.login-field { display: grid; gap: 6px; }
.login-field > span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.login-field .input { height: 40px; padding: 0 16px; font-size: 16px; }
.login-card .btn { font-size: 16px; }
@media (max-width: 560px) { .login-card { padding: 32px 22px; } }
.foot__private { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; color: var(--faint); font-size: 13px; }
.foot__private button { padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 28px; margin-top: 24px; }
.doc__side { position: sticky; top: calc(var(--bar-h) + 16px); display: grid; gap: 12px; max-height: calc(100vh - var(--bar-h) - 32px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--faint); pointer-events: none; }
.search .input { padding-left: 36px; }
.toc { padding: 8px; }
.toc summary { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; padding: 7px 10px; border-radius: 6px; color: var(--muted); font-size: 15px; }
.toc a:hover { color: var(--text); }
.toc__num { color: var(--faint); font-variant-numeric: tabular-nums; }
.toc li.is-active > a { background: var(--panel-2); color: #fff; font-weight: 600; }
.toc__sub { display: none; margin: 2px 0 8px 26px !important; }
.toc li.is-active > .toc__sub { display: block; }
.toc__sub a { display: block; padding: 4px 10px; color: var(--faint); font-size: 13.5px; }
.toc__sub a span { margin-right: 8px; font-variant-numeric: tabular-nums; }
.toc__sub a:hover { color: var(--text-2); }
.doc--wide { grid-template-columns: minmax(0, 1fr); }
.doc--wide .doc__side { position: static; max-height: none; overflow: visible; }
.doc--wide .article p, .doc--wide .article ul { max-width: none; }

.chapter { margin-bottom: 36px; scroll-margin-top: calc(var(--bar-h) + 16px); }
.chapter__head { margin-bottom: 12px; }
.chapter__head p { margin-top: 4px; color: var(--muted); }
.articles { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.article { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--bar-h) + 16px); }
.article:first-child { border-top: 0; }
.article__num { padding-top: 1px; color: var(--faint); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.article__num:hover { color: var(--text); }
.article p, .article ul { max-width: 68ch; margin: 4px 0 0; color: var(--text-2); }
.tablewrap { margin: 12px 0 2px; overflow-x: auto; }
.rules { width: 100%; border-collapse: collapse; font-size: 15px; }
.rules th { padding: 6px 14px 8px 0; text-align: left; font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.rules td { padding: 10px 14px 10px 0; vertical-align: top; color: var(--text-2); border-top: 1px solid var(--line); }
.rules tbody tr:first-child td { border-top: 0; }
.rules td:first-child { width: 36%; color: var(--text); font-weight: 600; }
.rules th:last-child, .rules td:last-child { padding-right: 0; }
@media (max-width: 640px) {
  .tablewrap { overflow-x: visible; }
  .rules, .rules tbody, .rules tr, .rules td { display: block; width: auto; }
  .rules thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rules tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .rules tbody tr:first-child { border-top: 0; padding-top: 2px; }
  .rules td, .rules tbody tr:first-child td { padding: 0; border: 0; }
  .rules td:first-child { width: auto; margin-bottom: 2px; }
}
.article ul { padding-left: 20px; }
.article:target { background: var(--panel-2); }
mark { padding: 0 1px; border-radius: 2px; background: #fff; color: #111214; }
.toc li.toc__apart { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.toc li.toc__apart > a { grid-template-columns: minmax(0, 1fr); }
.apart { padding: 16px 20px; }
.apart p { max-width: 68ch; margin: 0 0 12px; color: var(--text-2); }
.apart p:last-child { margin-bottom: 0; }
.apart .tablewrap { margin: 14px 0 16px; }
.no-results { padding: 24px 0; }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; gap: 16px; }
  .doc__side { position: static; max-height: none; overflow: visible; }
  .toc { padding: 0; }
  .toc summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; list-style: none; font-weight: 600; cursor: pointer; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary svg { width: 18px; height: 18px; color: var(--muted); }
  .toc[open] summary svg { transform: rotate(180deg); }
  .toc nav { padding: 0 8px 8px; }
  .toc__sub { display: none !important; }
}
@media (max-width: 520px) {
  .article { grid-template-columns: 36px minmax(0, 1fr); padding: 14px 16px; }
  .apart { padding: 14px 16px; }
}

.prose { margin-top: 20px; color: var(--text-2); }
.prose h2 { margin: 28px 0 6px; color: var(--text); font-size: 19px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose > :last-child { margin-bottom: 0; }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.foot { padding: 26px 0; border-top: 1px solid var(--line); background: var(--bar); color: var(--faint); font-size: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 10px; }
.foot__links a { color: var(--text-2); font-weight: 600; }
.foot__links a:hover { color: #fff; }

@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .section { margin-top: 32px; }
}
