/* Casino Ranking PT */
:root {
	--crpt-primary: #0b5d3b;
	--crpt-accent: #f2b705;
	--crpt-ink: #14201a;
	--crpt-muted: #5d6b63;
	--crpt-line: #e2e8e4;
	--crpt-bg: #ffffff;
	--crpt-soft: #f4f7f5;
	--crpt-radius: 14px;
}

.crpt-ranking { margin: 1.5rem 0 2.5rem; }
.crpt-ranking-title { margin-bottom: .25rem; }
.crpt-updated { color: var(--crpt-muted); font-size: .875rem; margin: 0 0 1rem; }
.crpt-empty { padding: 1rem; background: #fff7e0; border-radius: 8px; }

/* Cartão */
.crpt-card {
	position: relative;
	background: var(--crpt-bg);
	border: 1px solid var(--crpt-line);
	border-radius: var(--crpt-radius);
	margin: 0 0 1rem;
	box-shadow: 0 1px 2px rgba(20, 32, 26, .04), 0 6px 20px rgba(20, 32, 26, .05);
	transition: box-shadow .2s ease, transform .2s ease;
	color: var(--crpt-ink);
}
.crpt-card:hover { box-shadow: 0 2px 4px rgba(20, 32, 26, .06), 0 10px 30px rgba(20, 32, 26, .09); }
.crpt-card--top { border: 2px solid var(--crpt-accent); }

.crpt-tag {
	position: absolute; top: -11px; left: 18px;
	background: var(--crpt-primary); color: #fff;
	font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 999px;
}
.crpt-card--top .crpt-tag { background: var(--crpt-accent); color: #1d1600; }

.crpt-card-main {
	display: grid;
	grid-template-columns: 1.2fr 1.4fr 1.2fr 1fr;
	gap: 1.25rem;
	align-items: center;
	padding: 1.5rem 1.25rem 1.25rem;
}
.crpt-col { min-width: 0; }

.crpt-col-brand { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; row-gap: .3rem; align-items: center; }
.crpt-rank {
	grid-row: span 2; width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--crpt-soft); color: var(--crpt-primary); font-weight: 800; font-size: .95rem;
}
.crpt-card--top .crpt-rank { background: var(--crpt-accent); color: #1d1600; }
.crpt-logo { grid-column: 2; }
.crpt-logo-img { max-width: 140px; height: auto; max-height: 56px; object-fit: contain; display: block; }
.crpt-logo-fallback {
	display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 12px;
	background: var(--crpt-primary); color: #fff; font-weight: 800; font-size: 1.15rem;
}
.crpt-name, .crpt-rating, .crpt-badge-srij { grid-column: 1 / -1; }
.crpt-name { font-size: 1.1rem; margin: .35rem 0 0; line-height: 1.25; }
.crpt-name a { color: inherit; text-decoration: none; }
.crpt-name a:hover { text-decoration: underline; }

.crpt-rating { font-size: .9rem; color: var(--crpt-muted); display: flex; align-items: center; gap: .4rem; }
.crpt-rating strong { color: var(--crpt-ink); }
.crpt-stars {
	position: relative; display: inline-block; width: 84px; height: 16px;
	background: no-repeat left/84px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 105 20'%3E%3Cg fill='%23dfe5e1'%3E%3Cpath id='s' d='M10 1.5l2.6 5.4 5.9.8-4.3 4.1 1 5.9L10 14.9l-5.2 2.8 1-5.9L1.5 7.7l5.9-.8z'/%3E%3Cuse href='%23s' x='21'/%3E%3Cuse href='%23s' x='42'/%3E%3Cuse href='%23s' x='63'/%3E%3Cuse href='%23s' x='84'/%3E%3C/g%3E%3C/svg%3E");
}
.crpt-stars-fill {
	position: absolute; inset: 0 auto 0 0; overflow: hidden;
	background: no-repeat left/84px 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 105 20'%3E%3Cg fill='%23f2b705'%3E%3Cpath id='s' d='M10 1.5l2.6 5.4 5.9.8-4.3 4.1 1 5.9L10 14.9l-5.2 2.8 1-5.9L1.5 7.7l5.9-.8z'/%3E%3Cuse href='%23s' x='21'/%3E%3Cuse href='%23s' x='42'/%3E%3Cuse href='%23s' x='63'/%3E%3Cuse href='%23s' x='84'/%3E%3C/g%3E%3C/svg%3E");
}
.crpt-badge-srij {
	justify-self: start; font-size: .72rem; font-weight: 700; color: var(--crpt-primary);
	background: #e3f3ea; padding: 3px 8px; border-radius: 6px;
}

.crpt-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--crpt-muted); margin-bottom: .35rem; }
.crpt-bonus { font-size: 1.15rem; font-weight: 800; line-height: 1.3; margin: 0; color: var(--crpt-ink); }

.crpt-code {
	margin-top: .6rem; display: inline-flex; gap: .4rem; align-items: center;
	border: 1.5px dashed var(--crpt-primary); background: #f0f8f3; color: var(--crpt-ink);
	border-radius: 8px; padding: .35rem .65rem; font: inherit; font-size: .85rem; cursor: pointer;
}
.crpt-code em { font-style: normal; color: var(--crpt-primary); font-weight: 700; font-size: .75rem; text-transform: uppercase; }
.crpt-code.is-copied em { color: #1a8a4a; }

.crpt-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crpt-chips li { background: var(--crpt-soft); border: 1px solid var(--crpt-line); border-radius: 6px; padding: 3px 8px; font-size: .78rem; margin: 0; }

.crpt-col-cta { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; text-align: center; }
.crpt-btn {
	display: inline-block; background: var(--crpt-accent); color: #1d1600 !important;
	font-weight: 800; text-decoration: none !important; text-align: center;
	padding: .85rem 1.1rem; border-radius: 10px; line-height: 1.1;
	box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
	transition: transform .1s ease, filter .15s ease;
}
.crpt-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.crpt-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.crpt-btn--sm { padding: .5rem .8rem; font-size: .85rem; }

.crpt-toggle {
	background: none; border: 0; color: var(--crpt-primary); font: inherit; font-size: .85rem; font-weight: 600;
	cursor: pointer; padding: .2rem; text-decoration: underline; text-underline-offset: 3px;
}
.crpt-toggle::after { content: " ▾"; }
.crpt-toggle[aria-expanded="true"]::after { content: " ▴"; }
.crpt-terms { color: var(--crpt-muted); font-size: .7rem; }

/* Detalhes */
.crpt-more { border-top: 1px solid var(--crpt-line); padding: 1.1rem 1.25rem 1.25rem; background: var(--crpt-soft); border-radius: 0 0 var(--crpt-radius) var(--crpt-radius); }
.crpt-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1rem; }
.crpt-pros, .crpt-cons { list-style: none; margin: 0; padding: 0; }
.crpt-pros li, .crpt-cons li { position: relative; padding-left: 1.4rem; margin: 0 0 .35rem; font-size: .92rem; }
.crpt-pros li::before { content: "✓"; position: absolute; left: 0; color: #1a8a4a; font-weight: 800; }
.crpt-cons li::before { content: "✕"; position: absolute; left: 0; color: #c0392b; font-weight: 800; }
.crpt-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 0 0 1rem; }
.crpt-info div { background: #fff; border: 1px solid var(--crpt-line); border-radius: 8px; padding: .55rem .7rem; }
.crpt-info dt { font-size: .7rem; color: var(--crpt-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.crpt-info dd { margin: .15rem 0 0; font-weight: 700; font-size: .92rem; }
.crpt-review-link { font-weight: 700; color: var(--crpt-primary); }

/* Tabela */
.crpt-table-wrap { overflow-x: auto; margin: 1rem 0 2rem; border: 1px solid var(--crpt-line); border-radius: var(--crpt-radius); }
.crpt-table { width: 100%; border-collapse: collapse; margin: 0; font-size: .92rem; }
.crpt-table th { background: var(--crpt-primary); color: #fff; text-align: left; padding: .7rem .8rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; border: 0; }
.crpt-table td { padding: .7rem .8rem; border: 0; border-top: 1px solid var(--crpt-line); vertical-align: middle; }
.crpt-table tbody tr:nth-child(even) { background: var(--crpt-soft); }
.crpt-table a { color: inherit; }

/* FAQ */
.crpt-faq { margin: 1rem 0 2rem; }
.crpt-faq-item { border: 1px solid var(--crpt-line); border-radius: 10px; margin: 0 0 .6rem; background: #fff; }
.crpt-faq-item summary { cursor: pointer; padding: .9rem 1rem; font-weight: 700; list-style: none; position: relative; padding-right: 2.5rem; }
.crpt-faq-item summary::-webkit-details-marker { display: none; }
.crpt-faq-item summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--crpt-primary); }
.crpt-faq-item[open] summary::after { content: "−"; }
.crpt-faq-a { padding: 0 1rem 1rem; color: var(--crpt-ink); }
.crpt-faq-a p:last-child { margin-bottom: 0; }

/* Jogo responsável */
.crpt-responsible { border-left: 4px solid var(--crpt-primary); background: #eef6f1; padding: 1rem 1.1rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0; font-size: .95rem; }
.crpt-cta-end { text-align: center; margin: 2rem 0 1rem; }
.crpt-cta-end .crpt-btn { min-width: 260px; font-size: 1.05rem; }

.crpt-footer-bar {
	background: #0e1a14; color: #c9d4ce; font-size: .78rem; line-height: 1.5;
	padding: .9rem 1.25rem; text-align: center;
}
.crpt-footer-bar .crpt-18 { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid #e74c3c; color: #fff; border-radius: 50%; font-weight: 800; font-size: .75rem; margin-right: .4rem; vertical-align: middle; }
.crpt-disclosure { display: block; opacity: .75; margin-top: .25rem; }

/* Responsivo */
@media (max-width: 900px) {
	.crpt-card-main { grid-template-columns: 1fr 1fr; }
	.crpt-col-cta { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.crpt-card-main { grid-template-columns: 1fr; gap: 1rem; padding: 1.4rem 1rem 1rem; }
	.crpt-proscons { grid-template-columns: 1fr; }
	.crpt-info { grid-template-columns: 1fr 1fr; }
	.crpt-table thead { display: none; }
	.crpt-table, .crpt-table tbody, .crpt-table tr, .crpt-table td { display: block; width: 100%; }
	.crpt-table tr { border-top: 1px solid var(--crpt-line); padding: .4rem 0; }
	.crpt-table td { border: 0; padding: .3rem .8rem; display: flex; justify-content: space-between; gap: 1rem; }
	.crpt-table td::before { content: attr(data-label); font-weight: 700; color: var(--crpt-muted); font-size: .8rem; }
	.crpt-table td:last-child::before { content: none; }
	.crpt-table td:last-child .crpt-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.crpt-card, .crpt-btn { transition: none; }
}

/* ---------- Estrutura do site ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: #fafbfa; color: var(--crpt-ink);
	font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--crpt-primary); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

.site-header { background: var(--crpt-primary); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.brand::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--crpt-accent); margin-right: 8px; vertical-align: middle; }
.nav-toggle { display: none; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: .4rem .8rem; font: inherit; font-size: .9rem; cursor: pointer; }

.content { padding-top: 28px; padding-bottom: 48px; }
.content h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); line-height: 1.15; margin: .3rem 0 .6rem; letter-spacing: -.02em; }
.content h2 { font-size: 1.5rem; line-height: 1.25; margin: 2.4rem 0 .8rem; letter-spacing: -.01em; }
.content h3 { line-height: 1.3; }
.content p, .content li { max-width: 75ch; }
.content ul { padding-left: 1.2rem; }
.content li { margin-bottom: .4rem; }
.lead { font-size: 1.12rem; color: #2c3a33; }
.page-meta { color: var(--crpt-muted); font-size: .88rem; margin: 0 0 1.2rem; }
.crumbs { font-size: .85rem; color: var(--crpt-muted); }
.crumbs a { color: var(--crpt-muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--crpt-line); border-radius: var(--crpt-radius); }
.review { margin-top: 1.5rem; }

.author { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--crpt-line); border-radius: var(--crpt-radius); padding: 1.1rem; margin: 1.5rem 0; }
.author-avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--crpt-primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.author p { margin: .2rem 0 .4rem; font-size: .93rem; color: #33413a; }
.author a { font-size: .88rem; }

.site-footer { background: #0e1a14; color: #b9c6bf; font-size: .9rem; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 28px; }
.site-footer a, .link-btn { color: #e6eee9; text-decoration: none; display: block; margin: .3rem 0; }
.site-footer a:hover, .link-btn:hover { text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot-cols strong { color: #fff; display: block; margin-bottom: .4rem; }
.foot-legal { border-top: 1px solid #23342b; margin-top: 2rem; padding-top: 1.2rem; font-size: .8rem; line-height: 1.55; }
.foot-legal p { margin: .4rem 0; }
.foot-legal .crpt-18 { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid #e74c3c; color: #fff; border-radius: 50%; font-weight: 800; font-size: .78rem; }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: #fff; color: var(--crpt-ink); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 1rem 1.1rem; z-index: 99; font-size: .9rem; }
.cookie p { margin: 0 0 .8rem; }
.cookie div { display: flex; gap: .5rem; justify-content: flex-end; }
.cookie button { font: inherit; font-weight: 700; border-radius: 8px; padding: .5rem 1rem; cursor: pointer; border: 1px solid var(--crpt-line); background: #fff; }
.cookie .cookie-yes { background: var(--crpt-primary); color: #fff; border-color: var(--crpt-primary); }

@media (max-width: 760px) {
	.foot-cols { grid-template-columns: 1fr; gap: 1.2rem; }
	body { font-size: 16px; }
}
.content .crpt-chips, .content .crpt-pros, .content .crpt-cons { padding-left: 0; }
.content .crpt-chips li { margin: 0; }

/* ---------- Menu com submenus ---------- */
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; }
.site-nav li { position: relative; list-style: none; }
.site-nav > ul > li > a { display: block; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600; padding: 1.15rem .6rem; opacity: .92; }
.site-nav > ul > li > a:hover, .site-nav > ul > li > a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -3px 0 var(--crpt-accent); }
.sub-toggle { display: none; }
.site-nav .sub {
	position: absolute; top: 100%; left: 0; min-width: 240px; margin: 0; padding: .4rem;
	background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 14px 30px rgba(0,0,0,.16);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub a { display: block; padding: .5rem .7rem; color: var(--crpt-ink); text-decoration: none; font-size: .9rem; border-radius: 8px; }
.site-nav .sub a:hover { background: var(--crpt-soft); color: var(--crpt-primary); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--crpt-primary); max-height: calc(100vh - 60px); overflow-y: auto; padding: .3rem 16px 1rem; }
	.site-nav.is-open { display: block; }
	.site-nav > ul { flex-direction: column; gap: 0; }
	.site-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; align-items: center; }
	.site-nav > ul > li > a { flex: 1; padding: .8rem 0; box-shadow: none !important; }
	.sub-toggle { display: block; width: 44px; height: 44px; background: none; border: 0; color: #fff; cursor: pointer; font-size: 1.1rem; }
	.sub-toggle::before { content: "▾"; }
	.sub-toggle[aria-expanded="true"]::before { content: "▴"; }
	.site-nav .sub { position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(0,0,0,.12); border-radius: 8px; margin-bottom: .6rem; }
	.site-nav .has-sub.is-open .sub { display: block; }
	.site-nav .sub a { color: #fff; }
	.site-nav .sub a:hover { background: rgba(255,255,255,.1); color: #fff; }
}

/* Índice */
.toc { background: #fff; border: 1px solid var(--crpt-line); border-left: 4px solid var(--crpt-accent); border-radius: 10px; padding: .4rem 1.1rem; margin: 1.5rem 0; max-width: 720px; }
.toc summary { font-weight: 800; cursor: pointer; padding: .5rem 0; }
.toc ol { margin: .2rem 0 .8rem; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
.toc li { margin: .2rem 0; font-size: .93rem; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.content h2[id] { scroll-margin-top: 80px; }

/* Grelha de links */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; margin: 1rem 0 2rem; }
.link-card { display: flex; flex-direction: column; gap: .3rem; background: #fff; border: 1px solid var(--crpt-line); border-radius: 12px; padding: 1rem; text-decoration: none; color: var(--crpt-ink); transition: border-color .15s, box-shadow .15s; }
.link-card:hover { border-color: var(--crpt-primary); box-shadow: 0 6px 18px rgba(20,32,26,.08); }
.link-card strong { color: var(--crpt-primary); }
.link-card strong em { font-style: normal; color: var(--crpt-muted); font-weight: 600; font-size: .85rem; }
.link-card span { font-size: .87rem; color: var(--crpt-muted); line-height: 1.45; }

/* Página de código */
.code-hero { background: linear-gradient(135deg, var(--crpt-primary), #0e3d29); color: #fff; border-radius: var(--crpt-radius); padding: 1.6rem; margin: 1.2rem 0 1.5rem; display: grid; gap: .8rem; justify-items: start; }
.code-hero .crpt-label { color: #cfe3d7; }
.code-hero ul { margin: 0; padding-left: 1.1rem; }
.code-hero .crpt-terms { color: #cfe3d7; }
.crpt-code--big { font-size: 1.3rem; padding: .7rem 1.2rem; background: #fff; border-width: 2px; border-color: var(--crpt-accent); }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-bottom: .9rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--crpt-primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.crpt-table.ficha th { background: var(--crpt-soft); color: var(--crpt-ink); width: 38%; text-transform: none; letter-spacing: 0; font-size: .9rem; border-top: 1px solid var(--crpt-line); }
.crpt-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.crpt-note { background: #fff7e0; border-radius: 8px; padding: .6rem .9rem; font-size: .9rem; }
.refs { font-size: .9rem; }
.info-box { background: #eef6f1; border-radius: 12px; padding: 1rem 1.2rem; margin: 1.2rem 0; }
.info-box p:last-child { margin-bottom: 0; }
.content table:not(.crpt-table) { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .93rem; }
.content table:not(.crpt-table) th, .content table:not(.crpt-table) td { border: 1px solid var(--crpt-line); padding: .55rem .7rem; text-align: left; }
.content table:not(.crpt-table) th { background: var(--crpt-soft); }
@media (max-width: 600px) { .toc ol { columns: 1; } .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
	.content table:not(.crpt-table) { display: block; overflow-x: auto; font-size: .85rem; }
	.content table:not(.crpt-table) th, .content table:not(.crpt-table) td { padding: .45rem .5rem; }
}
