/* Página /regras: índice à esquerda, regra no meio, "nesta página" à direita. */

.rules-page {
	--rules-nav: 4.25rem;
}

.nav-links a.is-active {
	color: var(--ink);
}

.nav-links a.is-active::after {
	transform: scaleX(1);
}

/* Topo */

.rules-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: calc(var(--rules-nav) + 3rem) var(--gutter) 2.75rem;
	border-bottom: 1px solid var(--line);
}

.rules-hero-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.rules-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 42%;
	opacity: 0.32;
	filter: saturate(0.8);
}

.rules-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 10, 0.7) 45%, rgba(10, 10, 10, 0.35) 100%),
		linear-gradient(to bottom, rgba(10, 10, 10, 0.5), var(--bg));
}

.rules-hero-inner {
	max-width: 90rem;
	margin: 0 auto;
}

.rules-hero .eyebrow {
	margin-bottom: 0.75rem;
}

.rules-hero-title {
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(3rem, 6vw, 5.5rem);
	line-height: 0.9;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.rules-hero-lead {
	margin: 1rem 0 0;
	max-width: 36rem;
	color: var(--muted);
	font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
	line-height: 1.6;
}

/* Barra do celular */

.rules-bar {
	display: none;
	position: sticky;
	top: var(--rules-nav);
	z-index: 40;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem var(--gutter);
	border-bottom: 1px solid var(--line);
	background: rgba(10, 10, 10, 0.92);
	backdrop-filter: blur(12px);
}

.rules-bar-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex: none;
	height: 2.5rem;
	padding: 0 0.875rem;
	border: 1px solid var(--line-2);
	border-radius: 0.375rem;
	background: rgba(255, 255, 255, 0.06);
	color: var(--ink);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.rules-bar-btn--icon {
	width: 2.5rem;
	padding: 0;
	justify-content: center;
}

.rules-bar-btn svg {
	width: 1.125rem;
	height: 1.125rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.rules-bar-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--muted);
}

/* Estrutura */

.rules-layout {
	display: grid;
	grid-template-columns: 17.5rem minmax(0, 1fr) 14rem;
	gap: 3.5rem;
	align-items: start;
	max-width: 90rem;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.rules-side,
.rules-toc {
	position: sticky;
	top: var(--rules-nav);
	max-height: calc(100vh - var(--rules-nav));
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.rules-side {
	padding: 2rem 1.25rem 3rem 0;
	border-right: 1px solid var(--line);
	min-height: calc(100vh - var(--rules-nav));
}

.rules-side-head {
	display: none;
}

.rules-doc {
	min-width: 0;
	max-width: 50rem;
	padding: 2.5rem 0 6rem;
}

.rules-toc {
	padding: 2.5rem 0 3rem;
}

.rules-backdrop {
	display: none;
}

.rules-failed .rules-search {
	display: none;
}

/* Busca */

.rules-search {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 1.75rem;
}

.rules-search > svg {
	position: absolute;
	left: 0.875rem;
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: var(--muted);
	stroke-width: 2;
	stroke-linecap: round;
	pointer-events: none;
}

.rules-search input {
	width: 100%;
	height: 2.75rem;
	padding: 0 2.75rem 0 2.5rem;
	border: 1px solid var(--line-2);
	border-radius: 0.375rem;
	background: rgba(255, 255, 255, 0.04);
	color: var(--ink);
	font: inherit;
	font-size: 0.875rem;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.rules-search input::placeholder {
	color: rgba(173, 173, 173, 0.75);
}

.rules-search input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.rules-search input:focus {
	border-color: rgba(253, 52, 66, 0.7);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 0 0 3px rgba(253, 52, 66, 0.15);
}

.rules-search-kbd {
	position: absolute;
	right: 0.625rem;
	display: grid;
	place-items: center;
	min-width: 1.5rem;
	height: 1.5rem;
	padding: 0 0.375rem;
	border: 1px solid var(--line-2);
	border-radius: 0.25rem;
	color: var(--muted);
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.75rem;
	pointer-events: none;
}

.rules-search input:focus ~ .rules-search-kbd,
.rules-search input:not(:placeholder-shown) ~ .rules-search-kbd {
	display: none;
}

.rules-search-clear {
	position: absolute;
	right: 0.375rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.rules-search-clear:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--ink);
}

.rules-search-clear[hidden] {
	display: none;
}

.rules-side-label {
	margin: 0 0 0.75rem;
	padding-left: 0.75rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Índice */

.rules-index,
.rules-sub,
.rules-results,
.rules-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rules-index {
	display: grid;
	gap: 0.125rem;
}

.rules-index-row {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.rules-index-link {
	position: relative;
	flex: 1;
	min-width: 0;
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: 0.3125rem;
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	transition: color 0.2s, background 0.2s;
}

.rules-index-link:hover {
	color: var(--ink);
	background: rgba(255, 255, 255, 0.04);
}

.rules-index-link.is-current {
	color: #fff;
	background: linear-gradient(134.74deg, rgba(253, 52, 66, 0.28) -47%, rgba(253, 52, 66, 0.06) 120%);
}

.rules-index-link.is-current::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.375rem;
	bottom: 0.375rem;
	width: 3px;
	border-radius: 2px;
	background: var(--red);
}

.rules-index-toggle {
	display: grid;
	place-items: center;
	flex: none;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 0.3125rem;
	background: none;
	color: var(--muted);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.rules-index-toggle:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--ink);
}

.rules-index-toggle svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.3s var(--ease);
}

.rules-index-item.is-open .rules-index-toggle svg {
	transform: rotate(90deg);
}

.rules-sub {
	margin: 0.125rem 0 0.5rem 0.875rem;
	padding-left: 0.375rem;
	border-left: 1px solid var(--line);
}

.rules-sub[hidden] {
	display: none;
}

.rules-sub .rules-index-link {
	padding: 0.4375rem 0.75rem;
	font-size: 0.8125rem;
	font-weight: 400;
}

/* Resultados da busca */

.rules-results {
	display: grid;
	gap: 0.5rem;
}

.rules-result {
	display: grid;
	gap: 0.3125rem;
	padding: 0.75rem 0.875rem;
	border: 1px solid var(--line);
	border-radius: 0.375rem;
	background: rgba(255, 255, 255, 0.02);
	transition: border-color 0.2s, background 0.2s;
}

.rules-result:hover,
.rules-result.is-current {
	border-color: rgba(253, 52, 66, 0.55);
	background: rgba(253, 52, 66, 0.06);
}

.rules-result small {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.rules-result b {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink);
}

.rules-result span {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--muted);
	overflow-wrap: anywhere;
}

.rules-results-empty {
	margin: 0;
	padding: 0 0.75rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--muted);
}

.rules-results-empty .link-btn {
	font-size: inherit;
	color: var(--red);
}

.rules-page mark {
	padding: 0 0.1em;
	border-radius: 0.1875rem;
	background: rgba(253, 52, 66, 0.3);
	color: #fff;
}

.rules-page mark.rules-hit {
	background: rgba(253, 52, 66, 0.4);
	box-shadow: 0 0 0 1px rgba(253, 52, 66, 0.6);
}

/* Cabeçalho da página */

.rules-sample {
	margin: 0 0 1.5rem;
}

.rules-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--red);
}

.rules-crumbs a {
	transition: color 0.2s;
}

.rules-crumbs a:hover {
	color: var(--ink);
}

.rules-crumbs-sep {
	color: var(--line-2);
}

.rules-title {
	font-family: var(--display);
	font-size: clamp(2.75rem, 5vw, 4.5rem);
	line-height: 0.92;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.rules-summary {
	margin: 1rem 0 0;
	max-width: 40rem;
	color: var(--muted);
	font-size: 1.125rem;
	line-height: 1.6;
}

.rules-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin: 1.5rem 0 2.25rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--line);
	font-size: 0.8125rem;
	color: var(--muted);
}

.rules-updated {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
}

.rules-updated::before {
	content: "";
	width: 0.4375rem;
	height: 0.4375rem;
	background: var(--red);
	transform: rotate(45deg);
}

.rules-copy {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--line-2);
	border-radius: 0.375rem;
	background: rgba(255, 255, 255, 0.04);
	color: var(--ink);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.rules-copy:hover {
	border-color: rgba(253, 52, 66, 0.6);
	background: rgba(253, 52, 66, 0.12);
}

.rules-copy svg,
.rules-anchor svg {
	width: 0.9375rem;
	height: 0.9375rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

/* Conteúdo */

.rules-body {
	color: #d6d6d6;
	font-size: 1rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.rules-body > :first-child {
	margin-top: 0;
}

.rules-body p {
	margin: 0 0 1rem;
}

.rules-body h2,
.rules-body h3,
.rules-body h4 {
	color: var(--ink);
	overflow-wrap: anywhere;
}

.rules-body h2 {
	margin: 3rem 0 1rem;
	font-family: var(--sans);
	font-size: 1.75rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-transform: none;
}

.rules-body h3 {
	margin: 2.5rem 0 0.875rem;
	font-size: 1.375rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.rules-body h4 {
	margin: 2rem 0 0.75rem;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
}

.rules-body strong {
	color: #fff;
	font-weight: 600;
}

.rules-body a {
	color: var(--red);
	text-decoration: underline;
	text-decoration-color: rgba(253, 52, 66, 0.45);
	text-underline-offset: 0.2em;
	transition: text-decoration-color 0.2s;
}

.rules-body a:hover {
	text-decoration-color: var(--red);
}

.rules-body ol,
.rules-body ul {
	margin: 0 0 1.25rem;
	padding-left: 2.125rem;
}

.rules-body ul {
	list-style: square;
}

.rules-body ol ol {
	list-style: lower-alpha;
}

.rules-body li {
	margin: 0 0 0.625rem;
	padding-left: 0.375rem;
}

.rules-body li > ol,
.rules-body li > ul {
	margin: 0.625rem 0 0;
}

.rules-body li::marker {
	color: var(--red);
}

.rules-body ol > li::marker {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.rules-body blockquote {
	margin: 1.75rem 0;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--red);
	border-radius: 0 0.375rem 0.375rem 0;
	background: linear-gradient(90deg, rgba(253, 52, 66, 0.13), rgba(253, 52, 66, 0.03));
	color: var(--ink);
}

.rules-body blockquote > :last-child {
	margin-bottom: 0;
}

.rules-body hr {
	height: 1px;
	margin: 2.5rem 0;
	border: 0;
	background: var(--line);
}

.rules-body code {
	padding: 0.1em 0.35em;
	border-radius: 0.25rem;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.875em;
}

.rules-body del {
	color: var(--muted);
}

.rules-body .tabela {
	margin: 1.75rem 0;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	scrollbar-width: thin;
}

.rules-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	line-height: 1.5;
}

.rules-body th,
.rules-body td {
	min-width: 8rem;
	padding: 0.625rem 0.875rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.rules-body th {
	background: rgba(255, 255, 255, 0.05);
	color: var(--ink);
	font-weight: 600;
}

.rules-body tr:last-child td {
	border-bottom: 0;
}

.rules-anchor {
	display: inline-grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-left: 0.5rem;
	padding: 0;
	vertical-align: middle;
	border: 1px solid var(--line-2);
	border-radius: 0.3125rem;
	background: rgba(255, 255, 255, 0.04);
	color: var(--muted);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s, color 0.2s, border-color 0.2s;
}

.rules-body :is(h2, h3, h4):hover .rules-anchor,
.rules-anchor:focus-visible {
	opacity: 1;
}

.rules-anchor:hover {
	color: var(--ink);
	border-color: rgba(253, 52, 66, 0.6);
}

@media (hover: none) {
	.rules-anchor {
		opacity: 0.7;
	}
}

/* Subpáginas e navegação do pé */

.rules-children {
	margin-top: 3rem;
}

.rules-children-title,
.rules-toc-title {
	margin: 0 0 0.875rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}

.rules-children-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: 0.625rem;
}

.rules-child {
	display: grid;
	align-content: start;
	gap: 0.375rem;
	padding: 1rem 1.125rem;
	border: 1px solid var(--line);
	border-radius: 0.375rem;
	background: rgba(255, 255, 255, 0.02);
	transition: border-color 0.2s, background 0.2s;
}

.rules-child:hover {
	border-color: rgba(253, 52, 66, 0.55);
	background: rgba(253, 52, 66, 0.06);
}

.rules-child b {
	font-weight: 600;
	font-size: 0.9375rem;
}

.rules-child span {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--muted);
}

.rules-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 4rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

.rules-pager a {
	display: grid;
	gap: 0.5rem;
	padding: 1.125rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.02);
	transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.rules-pager a:hover {
	border-color: rgba(253, 52, 66, 0.6);
	background: linear-gradient(134.74deg, rgba(253, 52, 66, 0.2) -47%, rgba(253, 52, 66, 0.04) 120%);
	transform: translateY(-2px);
}

.rules-pager small {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--red);
}

.rules-pager b {
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.75rem;
	line-height: 1;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.rules-pager-prev small::before {
	content: "← ";
}

.rules-pager-next {
	grid-column: 2;
	text-align: right;
}

.rules-pager-next small::after {
	content: " →";
}

/* Nesta página */

.rules-toc-list {
	border-left: 1px solid var(--line);
}

.rules-toc-list a {
	margin-left: -1px;
	padding: 0.375rem 0 0.375rem 0.875rem;
	border-left: 2px solid transparent;
	color: var(--muted);
	font-size: 0.8125rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	transition: color 0.2s, border-color 0.2s;
}

.rules-toc-list a[data-depth="1"] {
	padding-left: 1.5rem;
}

.rules-toc-list a[data-depth="2"] {
	padding-left: 2.125rem;
}

.rules-toc-list a:hover {
	color: var(--ink);
}

.rules-toc-list a.is-active {
	border-left-color: var(--red);
	color: #fff;
}

.rules-toc-inline {
	display: none;
	margin: 0 0 2rem;
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	background: rgba(255, 255, 255, 0.02);
}

.rules-toc-inline summary {
	padding: 0.875rem 1.125rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
	cursor: pointer;
}

.rules-toc-inline .rules-toc-list {
	margin: 0 1.125rem 1rem;
}

/* Carregando, erro e não encontrada */

.rules-skel {
	display: block;
	height: 0.875rem;
	margin-bottom: 0.875rem;
	border-radius: 0.25rem;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 37%, rgba(255, 255, 255, 0.04) 63%);
	background-size: 400% 100%;
	animation: rules-shimmer 1.4s ease infinite;
}

.rules-skel--nav {
	height: 2rem;
	margin-bottom: 0.375rem;
}

.rules-skel--nav:nth-child(2n) {
	width: 78%;
}

.rules-skel--crumb {
	width: 8rem;
	height: 0.75rem;
	margin-bottom: 1.25rem;
}

.rules-skel--title {
	width: 55%;
	height: 3.75rem;
	margin-bottom: 1.5rem;
}

.rules-skel--meta {
	width: 14rem;
	height: 1.75rem;
	margin-bottom: 2.5rem;
}

.rules-skel--short {
	width: 68%;
}

@keyframes rules-shimmer {
	from {
		background-position: 100% 0;
	}
	to {
		background-position: 0 0;
	}
}

.rules-state {
	display: grid;
	justify-items: start;
	gap: 1rem;
	max-width: 36rem;
	padding: 2rem 0;
}

.rules-state-icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	background: var(--red);
	color: #0a0a0a;
	font-family: var(--display);
	font-size: 1.5rem;
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.rules-state h1 {
	font-family: var(--display);
	font-size: clamp(2.5rem, 4vw, 3.5rem);
	line-height: 0.95;
	text-transform: uppercase;
}

.rules-state p {
	margin: 0;
	color: var(--muted);
	line-height: 1.6;
}

.rules-state-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.rules-retry {
	font: inherit;
	color: inherit;
	background: none;
	cursor: pointer;
}

/* Responsivo */

@media (max-width: 1280px) {
	.rules-layout {
		grid-template-columns: 16rem minmax(0, 1fr);
		gap: 3rem;
	}

	.rules-toc {
		display: none;
	}

	.rules-toc-inline {
		display: block;
	}
}

@media (max-width: 900px) {
	.rules-hero {
		padding-top: calc(var(--rules-nav) + 2rem);
		padding-bottom: 2rem;
	}

	.rules-bar {
		display: flex;
	}

	.rules-layout {
		display: block;
	}

	.rules-doc {
		padding-top: 2rem;
	}

	.rules-side {
		position: fixed;
		z-index: 66;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(22rem, 86vw);
		max-height: none;
		min-height: 0;
		padding: 1rem;
		border-right: 1px solid var(--line-2);
		background: #0e0e0e;
		box-shadow: 1.5rem 0 3rem rgba(0, 0, 0, 0.6);
		transform: translateX(-102%);
		visibility: hidden;
		transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
	}

	.rules-drawer-open .rules-side {
		transform: none;
		visibility: visible;
		transition: transform 0.35s var(--ease), visibility 0s;
	}

	.rules-side-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 1rem;
		font-family: var(--display);
		font-size: 1.75rem;
		text-transform: uppercase;
	}

	.rules-side-close {
		width: 2.5rem;
		height: 2.5rem;
		border: 1px solid var(--line-2);
		border-radius: 0.375rem;
		background: rgba(255, 255, 255, 0.06);
		color: var(--ink);
		font-family: var(--sans);
		font-size: 1.5rem;
		line-height: 1;
		cursor: pointer;
	}

	.rules-search input {
		font-size: 1rem;
	}

	.rules-search-kbd {
		display: none;
	}

	.rules-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 65;
		background: rgba(0, 0, 0, 0.65);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s;
	}

	.rules-drawer-open .rules-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	body.rules-drawer-open {
		overflow: hidden;
	}
}

@media (max-width: 560px) {
	.rules-body ol,
	.rules-body ul {
		padding-left: 1.625rem;
	}

	.rules-body h2 {
		font-size: 1.5rem;
	}

	.rules-pager {
		grid-template-columns: 1fr;
	}

	.rules-pager-next {
		grid-column: auto;
	}
}
