/* TopKasyno24 (PL) - main stylesheet. Mobile first, local system fonts only, no external requests.
   Identity: deep plum ink header in two tiers with a white and crimson flag rule, cool lilac-grey
   ground, crisp white cards with square-ish corners, condensed DIN-style headings, crimson CTAs,
   left accent bars instead of underlines, lotto cards coloured per game. */

:root {
	--ink: #1d1726;
	--ink-soft: #5a5266;
	--ground: #f4f2f7;
	--card: #ffffff;
	--zebra: #faf9fc;
	--line: #e3dfea;
	--line-strong: #c8c0d3;
	--plum: #221733;
	--plum-2: #35264d;
	--plum-3: #160e22;
	--plum-soft: #efeaf6;
	--red: #c42b36;
	--red-2: #a01f29;
	--red-soft: #fdecee;
	--coral: #ff6b5e;
	--amber: #e09a12;
	--ok: #0f7a5c;
	--ok-soft: #e2f3ed;
	--warn-bg: #fff3dc;
	--warn-line: #eac27a;
	--warn-text: #7a4a00;
	--on-dark: #ffffff;
	--on-dark-soft: #cfc6dc;
	--radius: 10px;
	--radius-sm: 6px;
	--pill: 999px;
	--shadow: 0 1px 2px rgba(34, 23, 51, .06), 0 2px 10px rgba(34, 23, 51, .05);
	--shadow-lift: 0 8px 24px rgba(34, 23, 51, .14);
	--flag: linear-gradient(180deg, #ffffff 0 50%, #c42b36 50% 100%);
	--wrap: 1180px;
	--narrow: 800px;
	--header-h: 64px;
	--font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
	--font-head: Bahnschrift, "DIN Alternate", "DIN Next", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", "Segoe UI", sans-serif;
	--mono: "Cascadia Mono", "JetBrains Mono", Consolas, "Liberation Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font: 400 16px/1.65 var(--font);
	overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-2); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
	outline: 3px solid var(--coral);
	outline-offset: 2px;
	border-radius: 3px;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--plum); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 6.6vw, 2.75rem); margin: .3em 0 .45em; }
h2 { font-size: clamp(1.32rem, 4.2vw, 1.75rem); margin: 1.9em 0 .6em; }
h3 { font-size: 1.16rem; margin: 1.5em 0 .4em; color: var(--ink); }
p, ul, ol, table, blockquote { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.35em; }
li { margin: .3em 0; }
strong { font-weight: 700; }
code { font-family: var(--mono); font-size: .86em; padding: 1px 6px; border-radius: 4px; background: var(--plum-soft); color: var(--plum); }
hr { border: 0; border-top: 1px solid var(--line-strong); margin: 2em 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--coral); color: var(--plum); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: var(--narrow); }

/* ----- Header: plum, brand + 18+ chip + menu on one row, quick links below; two tiers on desktop ----- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--plum); color: var(--on-dark); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
.flag-rule { height: 4px; background: var(--flag); }

.brand {
	order: 1; margin-right: auto; min-width: 0;
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--on-dark); text-decoration: none; font: 700 1.32rem/1 var(--font-head); letter-spacing: -.01em;
}
.brand:hover { color: var(--on-dark); text-decoration: none; }
.brand__mark {
	display: grid; place-items: center; flex: 0 0 auto;
	width: 34px; height: 34px; border-radius: 8px;
	background: var(--red); color: #fff; font: 700 1.1rem/1 var(--font-head);
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18);
}
.brand__name { white-space: nowrap; }
.brand__tld { color: var(--coral); margin-left: 1px; }
.brand--logo { gap: 0; }
.brand__logo { display: block; height: 40px; width: auto; max-width: 230px; object-fit: contain; }

.age-chip {
	order: 2; flex: 0 0 auto;
	display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 8px;
	border: 2px solid var(--coral); border-radius: var(--radius-sm);
	color: var(--on-dark); font: 700 .8rem/1 var(--font-head); text-decoration: none;
}
a.age-chip:hover { background: var(--coral); color: var(--plum); text-decoration: none; }

.nav-toggle {
	order: 3; flex: 0 0 auto;
	display: inline-flex; align-items: center; gap: 8px; min-height: 36px;
	background: var(--plum-2); color: var(--on-dark); border: 0;
	border-radius: var(--radius-sm); padding: 8px 12px; font: 600 .9rem/1 var(--font); cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--red); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 16px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle__bars::before { position: absolute; top: -5px; }
.nav-toggle__bars::after { position: absolute; top: 5px; }
@media (max-width: 360px) { .nav-toggle__label { display: none; } }

.quick-links {
	order: 4; width: 100%;
	display: flex; align-items: center; gap: 8px;
	overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.quick-links::-webkit-scrollbar { display: none; }
.tips-link, .lotto-link {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
	padding: 5px 12px; border-radius: var(--radius-sm);
	font: 700 .8rem/1.2 var(--font); text-decoration: none; white-space: nowrap;
}
.tips-link { background: var(--coral); color: var(--plum); }
.tips-link:hover { background: #fff; color: var(--plum); text-decoration: none; }
.tips-link__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--plum); }
.lotto-link { color: var(--on-dark); background: var(--plum-2); }
.lotto-link:hover { background: #fff; color: var(--plum); text-decoration: none; }
.lotto-link__ball { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 20%, var(--coral) 24%); }

.site-nav { order: 5; display: none; width: 100%; }
.site-nav.is-open { display: block; max-height: calc(100vh - 130px); overflow-y: auto; }
.site-nav .menu { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-nav li { margin: 0; }
.site-nav a {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08);
	color: var(--on-dark); text-decoration: none; font: 600 1rem/1.2 var(--font-head);
}
.site-nav a::after { content: "\203A"; color: var(--coral); font-size: 1.2rem; }
.site-nav a:hover { color: var(--coral); }
.site-nav .current-menu-item > a, .site-nav .current-page-ancestor > a { color: var(--coral); box-shadow: inset 4px 0 0 var(--coral); padding-left: 12px; }

/* ----- Page heads ----- */

.site-main { padding-bottom: 56px; }

.page-head { padding: 18px 0 8px; }
.page-head--band, .page-head--accent, .page-head--game, .page-head--review { padding: 18px 0 26px; margin-bottom: 24px; }

/* Dark heads: hubs, predictions, codes, tools, games. A crimson slice on the right edge. */
.page-head--band, .page-head--game { position: relative; overflow: hidden; background: var(--plum); color: var(--on-dark); }
.page-head--band::after, .page-head--game::after {
	content: ""; position: absolute; top: 0; bottom: 0; right: -60px; width: 140px;
	background: var(--red); transform: skewX(-16deg); opacity: .9; pointer-events: none;
}
.page-head--game { background: linear-gradient(135deg, var(--plum) 0, var(--plum-2) 100%); }
.page-head--band .wrap, .page-head--game .wrap { position: relative; z-index: 1; }
.page-head--band .page-title, .page-head--game .page-title { color: var(--on-dark); max-width: 26ch; }
.page-head--band .lead, .page-head--game .lead,
.page-head--band .meta-line, .page-head--game .meta-line { color: var(--on-dark-soft); }
.page-head--band .meta-line a, .page-head--game .meta-line a { color: var(--coral); }
.page-head--band .meta-line span + span::before, .page-head--game .meta-line span + span::before { color: rgba(255, 255, 255, .35); }
.page-head--band .crumbs ol, .page-head--game .crumbs ol,
.page-head--band .crumbs a, .page-head--game .crumbs a { color: var(--on-dark-soft); }
.page-head--band .crumbs a:hover, .page-head--game .crumbs a:hover { color: var(--on-dark); }
.page-head--band .crumbs li + li::before, .page-head--game .crumbs li + li::before { color: var(--coral); }
.page-head--band .eyebrow, .page-head--game .eyebrow { color: var(--coral); }
.page-head--band .eyebrow::before, .page-head--game .eyebrow::before { background: var(--coral); }
.page-head--band .live-dot, .page-head--game .live-dot { background: var(--coral); }

.page-head--accent { background: var(--card); border-bottom: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--red); }
.page-head--review { background: var(--card); border-bottom: 1px solid var(--line); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 12px 0 0; color: var(--red);
	font: 700 .76rem/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--red); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: rv-pulse 2s ease-in-out infinite; }
@keyframes rv-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 64ch; }

.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .84rem; color: var(--ink-soft); margin: 0 0 6px; }
.meta-line span + span::before { content: "|"; margin-right: 12px; color: var(--line-strong); }
.meta-line a { color: var(--red); font-weight: 600; }
.meta-line__avatar { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; vertical-align: middle; margin-right: 6px; display: inline-block; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0 0 4px; padding: 0; font-size: .82rem; color: var(--ink-soft); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--red); font-weight: 700; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; }

/* ----- Offshore badge and legal line ----- */

.rv-badge {
	display: inline-flex; align-items: center; gap: 5px; width: max-content; max-width: 100%;
	padding: 2px 8px; border-radius: 4px;
	font: 700 .7rem/1.4 var(--font); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.rv-badge--offshore { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-line); }
.rv-badge--offshore::before { content: "!"; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--warn-text); color: var(--warn-bg); font-size: .62rem; }

.legal-flag {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
	margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius-sm);
	background: var(--warn-bg); border: 1px solid var(--warn-line); border-left: 4px solid var(--warn-text);
	color: var(--ink); font-size: .92rem;
}
.legal-flag__text { flex: 1 1 260px; }
.tpl-brand-sub .legal-flag { margin: 0 0 18px; }

/* ----- Author box ([rv_author] and after the text of article templates) ----- */

.rv-author {
	display: flex; gap: 16px; align-items: flex-start; margin: 30px 0 6px; padding: 18px;
	background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
}
.rv-author__photo { flex: 0 0 auto; text-align: center; }
.rv-author__img { display: block; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 2px solid var(--red); }
.rv-author--full .rv-author__img { width: 96px; height: 96px; }
.rv-author__note { display: block; margin-top: 6px; font-size: 11px; line-height: 1.3; color: var(--ink-soft); max-width: 110px; }
.rv-author__body { min-width: 0; }
.rv-author__body p { margin: 0; }
.rv-author__kicker { font: 700 .72rem/1.4 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.rv-author__name { font: 700 1.2rem/1.3 var(--font-head); color: var(--plum); }
.rv-author__name a { color: inherit; }
.rv-author__role { font-size: .88rem; color: var(--ink-soft); }
.rv-author__bio { margin-top: 8px; font-size: .94rem; }
.rv-author__facts, .rv-author__links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--ink-soft); }
.rv-author__facts li, .rv-author__links li { margin: 0; }
.rv-author__links a { font-weight: 600; }
@media (max-width: 480px) { .rv-author { flex-direction: column; } }

/* ----- Hero (home): plum panel with a diagonal crimson band ----- */

.hero {
	position: relative; overflow: hidden;
	background: radial-gradient(120% 140% at 0% 0%, var(--plum-2) 0, var(--plum) 55%, var(--plum-3) 100%);
	color: var(--on-dark); padding: 30px 0 34px; margin-bottom: 28px;
}
.hero::before {
	content: ""; position: absolute; top: -20%; bottom: -20%; right: -120px; width: 260px;
	background: linear-gradient(180deg, var(--red), var(--red-2)); transform: skewX(-18deg); opacity: .85; pointer-events: none;
}
.hero::after {
	content: ""; position: absolute; top: -20%; bottom: -20%; right: 150px; width: 26px;
	background: var(--coral); transform: skewX(-18deg); opacity: .55; pointer-events: none;
}
.hero .page-title { color: var(--on-dark); max-width: 22ch; }
.hero .eyebrow { color: var(--coral); }
.hero .eyebrow::before { background: var(--coral); }
.hero .lead { color: var(--on-dark-soft); }
.hero .meta-line { color: var(--on-dark-soft); }
.hero .meta-line a { color: var(--coral); }
.hero .meta-line span + span::before { color: rgba(255, 255, 255, .35); }
.hero__grid { position: relative; z-index: 1; }
.hero__media { margin: 22px 0 0; border-radius: var(--radius); overflow: hidden; border: 3px solid #fff; box-shadow: 8px 8px 0 var(--red); }
.hero__media__img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; }

.hub-chips .menu { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-chips li { margin: 0; }
.hub-chips a {
	display: inline-block; padding: 7px 14px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; text-decoration: none;
	background: var(--card); color: var(--plum); border: 1px solid var(--line-strong);
}
.hub-chips a:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.hero .hub-chips a { background: rgba(255, 255, 255, .07); color: var(--on-dark); border-color: rgba(255, 255, 255, .28); }
.hero .hub-chips a:hover { background: #fff; color: var(--plum); border-color: #fff; }

/* ----- Content ----- */

.entry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; min-width: 0; }
.entry--plain { padding-top: 10px; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { scroll-margin-top: calc(var(--header-h) + 60px); padding-left: 14px; border-left: 4px solid var(--red); }
.entry-content h3 { color: var(--plum-2); }
.entry-content blockquote {
	margin-left: 0; padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--plum-soft); border-left: 4px solid var(--plum); font-style: italic;
}
.entry-content ul > li::marker { color: var(--red); }
.entry-content ol > li::marker { font-family: var(--font-head); font-weight: 700; color: var(--red); }

/* Tables: light lilac header with a crimson rule, zebra rows */
.rv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rv-table-wrap > table { margin: 0; }
.entry-content table, .rv-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.entry-content th, .entry-content td, .rv-table th, .rv-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead th, .rv-table thead th {
	background: var(--plum-soft); color: var(--plum); border-bottom: 2px solid var(--red);
	font: 700 .78rem/1.3 var(--font-head); letter-spacing: .06em; text-transform: uppercase;
}
.entry-content tbody tr:nth-child(even), .rv-table tbody tr:nth-child(even) { background: var(--zebra); }
.entry-content tbody td:first-child, .rv-table--daily tbody td:first-child { font-weight: 600; color: var(--plum); }
.entry-content tbody tr:hover, .rv-table tbody tr:hover { background: var(--plum-soft); }
.entry-content > table { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }

.disclosure { font-size: .8rem; color: var(--ink-soft); margin: 0 0 12px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--plum); border-radius: var(--radius-sm); }
.method-link { font-size: .9rem; }

.notice { padding: 12px 14px 12px 50px; border-radius: var(--radius-sm); font-size: .92rem; position: relative; margin: 0 0 18px; }
.notice::before {
	position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 6px;
	display: grid; place-items: center; font: 700 .95rem/1 var(--font-head);
}
.notice--info { background: var(--plum-soft); border: 1px solid #d9d0e6; }
.notice--info::before { content: "i"; background: var(--plum); color: #fff; }
.notice--warn { background: var(--red-soft); border: 1px solid #f1c2c6; }
.notice--warn::before { content: "!"; background: var(--red); color: #fff; }

.section-title { font-size: 1.3rem; margin: 32px 0 14px; padding-left: 14px; border-left: 4px solid var(--red); }
.back-link { margin: 18px 0; font-weight: 600; }
.back-link a::before { content: "\2039  "; }

.rv-email { font-weight: 700; font-family: var(--mono); overflow-wrap: anywhere; }

/* ----- Buttons: squared, crimson CTA ----- */

.rv-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm); border: 2px solid var(--plum);
	background: var(--plum); color: #fff; font: 700 .96rem/1.2 var(--font-head); letter-spacing: .01em;
	text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s;
}
.rv-btn:hover { color: #fff; background: var(--plum-2); border-color: var(--plum-2); text-decoration: none; }
.rv-btn--cta { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red-2); }
.rv-btn--cta::after { content: "\203A"; font-size: 1.25em; line-height: 1; }
.rv-btn--cta:hover { background: var(--red-2); border-color: var(--red-2); color: #fff; }
.rv-btn--cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-2); }
.rv-btn--lg { min-height: 52px; padding: 12px 26px; font-size: 1.06rem; }
.rv-btn--ghost { background: transparent; color: var(--plum); border-color: var(--plum); }
.rv-btn--ghost:hover { background: var(--plum); color: #fff; }
.rv-cta-wrap { margin: 1.2em 0; }

.cta-strip {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	background: var(--plum-soft); color: var(--ink); border-left: 4px solid var(--red);
	border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 18px;
}
.cta-strip p { margin: 0; font-weight: 600; }
.cta-strip .rv-tile { margin-right: 4px; }
.cta-strip .rv-btn { margin-left: auto; }

/* Brand page line: "Gra bez podatku", "Czas wypłaty" */
.quick-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.page-head .quick-facts { margin: 14px 0 0; }
.quick-facts__item {
	display: flex; flex-direction: column; gap: 1px; min-width: 140px;
	padding: 8px 14px; border-radius: var(--radius-sm);
	background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ok);
}
.quick-facts dt { font: 700 .68rem/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.quick-facts dd { margin: 0; font: 700 1rem/1.3 var(--font); color: var(--ink); overflow-wrap: anywhere; }

/* ----- Operators table ----- */
/* Cards by default; a real table when the block itself is at least 700px wide (container query),
   so the same markup stays a card list in the narrow sidebar of game pages. */

.rv-ops { container: rvops / inline-size; margin: 0 0 30px; }
.rv-ops .rv-table--ops { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .94rem; margin: 0; }
.rv-ops .rv-table--ops caption {
	display: block; text-align: left; font: 700 1.25rem/1.25 var(--font-head); color: var(--plum);
	padding: 0 0 0 14px; margin: 0 0 14px; border-left: 4px solid var(--red);
}
.rv-ops .rv-table--ops thead { display: none; }
.rv-ops .rv-table--ops tbody { display: block; }
.rv-ops .rv-table--ops tr {
	position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 10px 12px; align-items: center;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 14px; margin: 0 0 12px; box-shadow: var(--shadow);
}
.rv-ops .rv-table--ops tbody tr:nth-child(even), .rv-ops .rv-table--ops tr:hover { background: var(--card); }
.rv-ops .rv-table--ops tr.rv-ops__row--top { box-shadow: inset 4px 0 0 var(--red), var(--shadow); }
.rv-ops .rv-table--ops tr.rv-ops__row--offshore { box-shadow: inset 4px 0 0 var(--warn-line), var(--shadow); }
.rv-ops .rv-table--ops td { display: block; padding: 0; border: 0; vertical-align: middle; min-width: 0; }
.rv-ops .rv-table--ops td:empty { display: none; }
.rv-ops__pos { grid-column: 1; align-self: start; }
.rv-ops__name { grid-column: 2; }
.rv-ops__rating { grid-column: 3; justify-self: end; }
.rv-ops__rating .rv-rate { align-items: flex-end; }
.rv-ops__bonus, .rv-ops__feat, .rv-ops .rv-table--ops td.rv-ops__cta { grid-column: 1 / -1; }
.rv-ops .rv-table--ops td.rv-ops__cta { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; }

.rv-rank {
	display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px;
	background: var(--plum-soft); color: var(--plum); font: 700 1rem/1 var(--font-head);
}
.rv-rank--1 { background: var(--red); color: #fff; }
.rv-rank--2 { background: var(--plum); color: #fff; }
.rv-rank--3 { background: var(--plum-2); color: #fff; }

.rv-ops__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rv-ops__id { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.rv-ops__title { font: 700 1.1rem/1.2 var(--font-head); color: var(--plum); overflow-wrap: anywhere; }
.rv-ops__review { font-size: .8rem; font-weight: 600; color: var(--red); white-space: nowrap; }
.rv-ops__pay { font-size: .78rem; color: var(--ink-soft); }
.rv-ops__pay strong { color: var(--ok); }

.rv-rate { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rv-rate__pill {
	display: inline-flex; align-items: baseline; gap: 1px; padding: 3px 9px; border-radius: 6px;
	background: var(--plum); color: #fff; font: 700 1.08rem/1.1 var(--font-head); white-space: nowrap;
}
.rv-rate__pill small { font-size: .72rem; font-weight: 600; color: var(--on-dark-soft); }
.rv-stars { position: relative; display: inline-block; font-size: .84rem; line-height: 1; letter-spacing: 1px; color: #dcd6e4; white-space: nowrap; }
.rv-stars::before { content: "\2605\2605\2605\2605\2605"; }
.rv-stars::after {
	content: "\2605\2605\2605\2605\2605"; position: absolute; left: 0; top: 0; overflow: hidden;
	width: calc(var(--rv-s, 0) * 10%); color: var(--amber);
}
.rv-stars--0 { --rv-s: 0; } .rv-stars--1 { --rv-s: 1; } .rv-stars--2 { --rv-s: 2; } .rv-stars--3 { --rv-s: 3; }
.rv-stars--4 { --rv-s: 4; } .rv-stars--5 { --rv-s: 5; } .rv-stars--6 { --rv-s: 6; } .rv-stars--7 { --rv-s: 7; }
.rv-stars--8 { --rv-s: 8; } .rv-stars--9 { --rv-s: 9; } .rv-stars--10 { --rv-s: 10; }

.rv-offer {
	display: flex; flex-direction: column; gap: 3px; padding: 10px 12px;
	border-radius: var(--radius-sm); background: var(--ground); border: 1px solid var(--line); border-top: 3px solid var(--red);
}
.rv-offer__text { font-weight: 700; color: var(--ink); line-height: 1.35; font-size: .95rem; }
.rv-offer__code { font-size: .82rem; color: var(--ink-soft); }
.rv-offer__code code { background: var(--card); border: 1px dashed var(--plum); color: var(--ink); letter-spacing: .04em; }
.rv-offer__tc { font-size: .72rem; color: var(--ink-soft); }
.rv-muted { color: var(--ink-soft); font-size: .88rem; }

.rv-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chips li {
	margin: 0; padding: 2px 9px; border-radius: 4px; background: var(--plum-soft); color: var(--plum);
	font-size: .76rem; font-weight: 600; line-height: 1.6; white-space: nowrap;
}

.rv-ops .rv-table--ops td.rv-ops__cta { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.rv-ops__btn { width: 100%; white-space: normal; text-align: center; }
.rv-ops__more { display: block; text-align: center; font-size: .8rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.rv-ops__more:hover { color: var(--red); text-decoration: underline; }
.rv-ops__legal {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
	margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-sm);
	background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--ink); font-size: .86rem;
}
.rv-ops__note { font-size: .78rem; color: var(--ink-soft); margin: 8px 0 0; }

/* Older markup that may still be cached */
.rv-score { display: inline-block; background: var(--plum); color: #fff; font: 700 .9rem/1.3 var(--font-head); padding: 2px 8px; border-radius: 6px; }
.rv-tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.rv-tags li { margin: 0; font-size: .78rem; padding: 2px 8px; border-radius: 4px; background: var(--plum-soft); color: var(--ink-soft); }

@container rvops (min-width: 700px) {
	.rv-ops .rv-table--ops {
		display: table; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
		overflow: hidden; box-shadow: var(--shadow);
	}
	.rv-ops .rv-table--ops caption { display: table-caption; }
	.rv-ops .rv-table--ops thead { display: table-header-group; }
	.rv-ops .rv-table--ops tbody { display: table-row-group; }
	.rv-ops .rv-table--ops thead th {
		padding: 11px 14px; background: var(--plum-soft); color: var(--plum); border-bottom: 2px solid var(--red);
		font: 700 .76rem/1.3 var(--font-head); letter-spacing: .08em; text-transform: uppercase; text-align: left; vertical-align: middle;
	}
	.rv-ops .rv-table--ops thead .rv-ops__pos-h { text-align: center; }
	.rv-ops .rv-table--ops tr { display: table-row; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
	.rv-ops .rv-table--ops tbody tr:nth-child(even) { background: var(--zebra); }
	.rv-ops .rv-table--ops tbody tr:hover { background: var(--plum-soft); }
	.rv-ops .rv-table--ops tr.rv-ops__row--top, .rv-ops .rv-table--ops tr.rv-ops__row--offshore { box-shadow: none; }
	.rv-ops .rv-table--ops td { display: table-cell; padding: 16px 14px; border-bottom: 1px solid var(--line); }
	.rv-ops .rv-table--ops td:empty { display: table-cell; }
	.rv-ops .rv-table--ops tbody tr:last-child td { border-bottom: 0; }
	.rv-ops .rv-table--ops tr.rv-ops__row--top td:first-child { box-shadow: inset 4px 0 0 var(--red); }
	.rv-ops .rv-table--ops tr.rv-ops__row--offshore td:first-child { box-shadow: inset 4px 0 0 var(--warn-line); }
	.rv-ops__pos { width: 60px; text-align: center; }
	.rv-ops__name { min-width: 210px; }
	.rv-ops__rating { width: 124px; }
	.rv-ops__rating .rv-rate { align-items: flex-start; }
	.rv-ops__bonus { min-width: 190px; }
	.rv-ops__feat { width: 22%; }
	.rv-ops .rv-table--ops td.rv-ops__cta { display: table-cell; width: 176px; text-align: center; border-top: 0; margin: 0; padding-top: 16px; border-left: 1px solid var(--line); }
	.rv-ops__more { margin-top: 6px; }
}

@container rvops (min-width: 700px) and (max-width: 879px) {
	.rv-ops__feat, .rv-ops__feat-h { display: none !important; }
}

/* ----- Facts box ----- */

.rv-facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 16px; box-shadow: var(--shadow); margin: 0 0 20px; overflow: hidden; }
.rv-facts__head { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; padding: 12px 14px; background: var(--plum-soft); border-bottom: 3px solid var(--red); }
.rv-facts__title { font: 700 1.1rem/1.25 var(--font-head); color: var(--plum); margin: 0; }
.rv-facts__legal { margin: 10px 14px 0; }
.rv-facts dl { margin: 0; padding: 0 14px; }
.rv-facts__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.rv-facts__row:last-child { border-bottom: 0; }
.rv-facts dt { color: var(--ink-soft); }
.rv-facts dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.rv-facts__cta { margin: 12px 14px 0; }
.rv-facts__cta .rv-btn { width: 100%; white-space: normal; }

/* ----- Review head ----- */

.review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.review-head__text { min-width: 0; }
.head-logo { margin: 10px 0 6px; }
.score-badge {
	flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
	width: 88px; height: 88px; margin-top: 18px; border-radius: 14px;
	background: var(--plum); color: #fff; box-shadow: 5px 5px 0 var(--red);
}
.score-badge__value { font: 700 1.35rem/1 var(--font-head); color: #fff; }
.score-badge__label { font: 700 .6rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--coral); }
.review-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; }
.review-cta__note { font-size: .8rem; color: var(--ink-soft); }

.layout-aside { display: grid; gap: 22px; }
.side { min-width: 0; }

/* ----- Daily feed ----- */

.rv-daily { border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius-sm); background: var(--card); padding: 14px; margin: 0 0 1.4em; overflow: hidden; }
.rv-daily__title { font: 700 1.15rem/1.3 var(--font-head); color: var(--plum); margin: 0 0 8px; }
.rv-daily__date { display: inline-block; font: 700 .84rem/1.3 var(--font-head); color: var(--plum); background: var(--plum-soft); padding: 3px 10px; border-radius: 4px; margin: 0 0 10px; }
.rv-daily__empty { margin: 0 0 8px; padding: 16px 14px; text-align: center; background: var(--ground); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--ink-soft); font-weight: 600; }
.rv-daily__stale { font-size: .85rem; color: var(--red-2); }
.rv-daily__note { font-size: .8rem; color: var(--ink-soft); margin: 10px 0 0; }
.rv-daily__result.is-won { color: var(--ok); font-weight: 700; }
.rv-daily__result.is-lost { color: var(--red); font-weight: 700; }
.rv-daily__result.is-void { color: var(--ink-soft); font-weight: 700; }
.rv-daily__pick { font-weight: 700; color: var(--plum); }
.rv-daily__odds { font-family: var(--font-head); font-weight: 700; }
.rv-daily__code code { background: var(--plum-soft); border: 1px dashed var(--plum); color: var(--ink); letter-spacing: .04em; }

@media (max-width: 639px) {
	.rv-table--daily thead { display: none; }
	.rv-table--daily, .rv-table--daily tbody, .rv-table--daily tr, .rv-table--daily td { display: block; width: 100%; }
	.rv-table--daily tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
	.rv-table--daily tbody tr:nth-child(even) { background: transparent; }
	.rv-table--daily td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 12px; }
	.rv-table--daily td::before { content: attr(data-label); color: var(--ink-soft); font-size: .8rem; font-weight: 400; }
	.rv-table--daily td:empty { display: none; }
	.rv-table-wrap:has(.rv-table--daily) { border: 0; }
}

/* ----- Lotto results: one card per draw, any number of balls, optional second row ----- */
/* Card colour per game (class rv-game--<slug of the game name>): --ball fills the main balls,
   --ball-ink is the numeral colour on it; extra balls are white with a ring in the same colour. */

.rv-lotto { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.rv-lotto__item { margin: 0; min-width: 0; }
.rv-lotto__card {
	--ball: var(--red); --ball-ink: #fff;
	height: 100%; padding: 0 14px 14px; border-radius: var(--radius-sm);
	background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--ball);
}
.rv-game--lotto, .rv-game--lotto-plus { --ball: #c42b36; --ball-ink: #fff; }
.rv-game--mini-lotto { --ball: #0f7a5c; --ball-ink: #fff; }
.rv-game--multi-multi { --ball: #1f5fbf; --ball-ink: #fff; }
.rv-game--eurojackpot { --ball: #e0a100; --ball-ink: #1d1726; }
.rv-game--keno { --ball: #6a3fb5; --ball-ink: #fff; }
.rv-game--ekstra-pensja { --ball: #0b7285; --ball-ink: #fff; }
.rv-game--kaskada { --ball: #c2410c; --ball-ink: #fff; }
.rv-game--szybkie-600 { --ball: #b0177a; --ball-ink: #fff; }
.rv-lotto__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 0 0 10px; padding: 10px 0 8px; border-bottom: 1px solid var(--line); }
.rv-lotto__name { margin: 0; font: 700 1.2rem/1.2 var(--font-head); color: var(--plum); }
.rv-lotto__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: .82rem; color: var(--ink-soft); }
.rv-lotto__event { font-weight: 700; color: var(--plum); }
.rv-lotto__row { margin: 0 0 10px; }
.rv-lotto__row--extra { padding-top: 8px; border-top: 1px dashed var(--line-strong); }
.rv-lotto__label { margin: 0 0 6px; font: 700 .7rem/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.rv-lotto__note { margin: 6px 0 0; font-size: .82rem; color: var(--ink-soft); }

.rv-balls { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.rv-ball {
	display: inline-grid; place-items: center; margin: 0; flex: 0 0 auto;
	width: 42px; height: 42px; border-radius: 50%;
	font: 700 1.08rem/1 var(--font-head); font-variant-numeric: tabular-nums;
}
.rv-balls--main .rv-ball {
	background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .45) 0 12%, transparent 36%), var(--ball);
	color: var(--ball-ink);
	box-shadow: inset -2px -3px 0 rgba(0, 0, 0, .16);
}
.rv-balls--extra { gap: 6px; }
.rv-balls--extra .rv-ball {
	width: 36px; height: 36px; font-size: .95rem;
	background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 3px var(--ball);
}
/* Long draws (Keno, Multi Multi: 20 numbers) stay compact */
.rv-balls--main:has(> .rv-ball:nth-child(9)) .rv-ball { width: 36px; height: 36px; font-size: .95rem; }

@media (max-width: 360px) {
	.rv-ball { width: 36px; height: 36px; font-size: .95rem; }
	.rv-balls--extra .rv-ball, .rv-balls--main:has(> .rv-ball:nth-child(9)) .rv-ball { width: 32px; height: 32px; font-size: .85rem; }
}

/* ----- Child page cards ----- */

.rv-cards { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; grid-template-columns: 1fr; }
.rv-card { margin: 0; }
.rv-card__link {
	position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%;
	padding: 16px 16px 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
	text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s;
}
.rv-card__link::after {
	content: "Czytaj \203A"; position: absolute; left: 16px; bottom: 12px;
	font: 700 .8rem/1 var(--font-head); letter-spacing: .04em; color: var(--red);
}
.rv-card__link:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); color: var(--ink); text-decoration: none; }
.rv-card__link:hover .rv-card__title { color: var(--red); }
.rv-card__title { font: 700 1.1rem/1.25 var(--font-head); color: var(--plum); }
.rv-card__text { font-size: .9rem; color: var(--ink-soft); }
.rv-card--img .rv-card__link { padding-top: 0; }
.rv-card__media { display: block; margin: 0 -16px 12px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--radius-sm) - 1px) calc(var(--radius-sm) - 1px) 0 0; background: var(--plum-soft); border-bottom: 3px solid var(--red); }
.rv-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.side .rv-cards { grid-template-columns: 1fr; }

/* ----- TOC ----- */

.rv-toc { background: var(--ground); border: 1px solid var(--line); border-left: 4px solid var(--plum); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 1.4em; }
.rv-toc__title { margin: 0; font: 700 1rem/1.3 var(--font-head); color: var(--plum); display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; letter-spacing: .06em; }
.rv-toc__btn { all: unset; cursor: pointer; display: flex; width: 100%; justify-content: space-between; align-items: center; }
.rv-toc__btn::after {
	content: ""; width: 9px; height: 9px; margin-right: 4px;
	border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .15s;
}
.rv-toc__btn[aria-expanded="true"]::after { transform: rotate(-135deg); }
.rv-toc ol { margin: 8px 0 0; padding-left: 1.4em; font-size: .93rem; }
.rv-toc ol > li::marker { color: var(--red); font-weight: 700; }
.rv-toc.is-collapsed ol { display: none; }
.rv-toc a { text-decoration: none; color: var(--ink); }
.rv-toc a:hover { color: var(--red); text-decoration: underline; }
.rv-toc a.is-active { font-weight: 700; color: var(--red); }

/* ----- FAQ ----- */

.rv-faq { margin-top: 2em; }
.rv-faq__item { margin: 0; border-bottom: 1px solid var(--line); background: transparent; }
.rv-faq__item:first-of-type { border-top: 1px solid var(--line); }
.rv-faq__item summary { cursor: pointer; padding: 14px 40px 14px 0; font-weight: 700; list-style: none; position: relative; color: var(--plum); }
.rv-faq__item summary::-webkit-details-marker { display: none; }
.rv-faq__item summary::after {
	content: ""; position: absolute; right: 8px; top: 19px; width: 9px; height: 9px;
	border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .15s;
}
.rv-faq__item[open] summary { color: var(--red); }
.rv-faq__item[open] summary::after { transform: rotate(-135deg); top: 23px; }
.rv-faq__a { padding: 0 0 8px 14px; border-left: 3px solid var(--plum-soft); margin-bottom: 12px; }

/* ----- Related ----- */

.rv-related { margin-top: 1.8em; padding: 16px; border-radius: var(--radius-sm); background: var(--plum-soft); border-top: 3px solid var(--plum); }
.rv-related__title { font: 700 1rem/1.3 var(--font-head); color: var(--plum); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; }
.rv-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rv-related li { margin: 0; }
.rv-related a { display: inline-block; padding: 6px 12px; border-radius: 4px; background: var(--card); border: 1px solid var(--line-strong); color: var(--plum); text-decoration: none; font-size: .88rem; font-weight: 600; }
.rv-related a:hover { border-color: var(--red); background: var(--red); color: #fff; }

/* ----- Calculator ----- */

.rv-calc { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius-sm); padding: 16px; margin: 0 0 24px; box-shadow: var(--shadow); }
.rv-calc__title { font: 700 1.25rem/1.25 var(--font-head); color: var(--plum); margin: 0 0 12px; }
.rv-calc__subtitle { font: 700 1.05rem/1.3 var(--font-head); color: var(--plum); margin: 0 0 8px; }
.rv-calc__grid { display: grid; gap: 12px; }
.rv-calc__legs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.rv-calc label { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.rv-calc label.rv-calc__tax { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.rv-calc input {
	font: 600 1.05rem/1.2 var(--font-head); padding: 10px 12px; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); width: 100%;
}
.rv-calc input[type="checkbox"] { width: 20px; height: 20px; padding: 0; accent-color: var(--red); flex: 0 0 auto; }
.rv-calc input:focus { border-color: var(--plum); }
.rv-calc__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; }
.rv-calc__out div { background: var(--plum); border-radius: var(--radius-sm); padding: 10px 12px; }
.rv-calc__out dt { font: 600 .7rem/1.3 var(--font-head); color: var(--on-dark-soft); text-transform: uppercase; letter-spacing: .08em; }
.rv-calc__out dd { margin: 3px 0 0; font: 700 1.2rem/1.2 var(--font-head); color: var(--coral); overflow-wrap: anywhere; }
.rv-calc__convert { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rv-calc__help { font-size: .8rem; color: var(--ink-soft); margin: 4px 0 0; }
.rv-calc__note { font-size: .8rem; color: var(--ink-soft); margin: 12px 0 0; }

/* ----- Footer ----- */

.site-footer { position: relative; background: var(--plum-3); color: var(--on-dark-soft); padding: 38px 0 38px; font-size: .92rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--flag); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--coral); }
.age-notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); background: var(--plum); border-left: 4px solid var(--red); }
.age-notice p { margin: 0; }
.age-notice__text p + p { margin-top: 8px; }
.age-badge {
	flex: 0 0 auto; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 10px;
	background: var(--red); color: #fff; font: 700 1.1rem/1 var(--font-head); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2);
}
.footer-nav .menu { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.footer-nav li { margin: 0; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-small { font-size: .8rem; color: #b9b0c6; margin: 0 0 8px; }

/* ----- Images: operator logos, heroes ----- */

/* Operator logo tiles: fixed size, logo contained. Light logos on plum, dark and opaque ones on white. */
.rv-tile {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	box-sizing: border-box; overflow: hidden; vertical-align: middle;
	width: 72px; height: 44px; padding: 5px 7px; border-radius: var(--radius-sm);
}
.rv-tile--md { width: 112px; height: 64px; padding: 8px 10px; border-radius: 8px; }
.rv-tile--lg { width: 136px; height: 76px; padding: 10px 12px; border-radius: 10px; }
.rv-tile--on-light { background: #fff; border: 1px solid var(--line); }
.rv-tile--on-dark { background: var(--plum); border: 1px solid var(--plum); }
img.rv-tile__img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; border-radius: 2px; }
.rv-tile--initials { font: 700 1.1rem/1 var(--font-head); letter-spacing: .03em; border: 0; }
.rv-tile--md.rv-tile--initials { font-size: 1.5rem; }
.rv-tile--lg.rv-tile--initials { font-size: 1.75rem; }
.rv-tile--p0 { background: var(--plum); color: var(--coral); }
.rv-tile--p1 { background: var(--red); color: #fff; }
.rv-tile--p2 { background: var(--plum-soft); color: var(--plum); }
.rv-tile--p3 { background: #2b2a33; color: #fff; }
.rv-tile--p4 { background: var(--ok-soft); color: var(--ok); }

.page-hero { margin: 0 0 24px; border-radius: var(--radius-sm); overflow: hidden; background: var(--plum-soft); border-bottom: 4px solid var(--red); }
.page-hero__img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; }

/* Infographics: [rv_figure] */
.rv-figure { margin: 24px 0; }
.rv-figure__img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); }
.rv-figure figcaption { margin-top: 8px; font-size: .86rem; color: var(--ink-soft); padding-left: 10px; border-left: 3px solid var(--red); }

/* "Dlaczego napisaliśmy tę stronę" box before the author box */
.rv-method { margin: 28px 0 16px; padding: 16px 18px; background: var(--plum-soft); border-left: 4px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .95rem; }
.rv-method p { margin: 0 0 8px; }
.rv-method__title { font-family: var(--font-head); font-weight: 700; color: var(--plum); text-transform: uppercase; letter-spacing: .06em; font-size: .86rem; }
.rv-method__more { margin: 4px 0 0 !important; font-size: .88rem; }

/* ----- Wider screens ----- */

@media (min-width: 480px) {
	.brand__logo { height: 40px; }
}
@media (max-width: 479px) {
	.brand__logo { height: 34px; max-width: 170px; }
	.brand { font-size: 1.18rem; }
}

@media (min-width: 640px) {
	.entry { padding: 28px 32px; }
	.rv-cards { grid-template-columns: repeat(2, 1fr); }
	.rv-lotto { grid-template-columns: repeat(2, 1fr); }
	.rv-calc { padding: 20px; }
	.rv-calc__grid { grid-template-columns: 2fr 1fr; align-items: end; }
	.rv-calc__actions { grid-row: 2; }
	.rv-calc__tax { grid-column: 1 / -1; }
	.rv-calc__out { grid-template-columns: repeat(4, 1fr); }
	.footer-nav .menu { display: flex; flex-wrap: wrap; gap: 8px 22px; }
	.site-nav .menu { grid-template-columns: 1fr 1fr; column-gap: 24px; }
	.quick-links { order: 2; width: auto; }
	.age-chip { order: 3; }
	.nav-toggle { order: 4; }
}

@media (min-width: 900px) {
	.hero--media .hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
	.hero--media .hero__media { margin: 0; }
	.page-head--band::after, .page-head--game::after { width: 220px; right: -40px; }
}

/* Desktop: two tiers. Row 1 brand, quick links, 18+; row 2 the menu as a tab strip. */
@media (min-width: 1100px) {
	:root { --header-h: 108px; }
	body { font-size: 17px; }
	.site-header__inner { padding-top: 10px; padding-bottom: 0; gap: 10px 14px; }
	.nav-toggle { display: none; }
	.site-nav { display: block; order: 5; width: 100%; padding: 0; min-width: 0; }
	.site-nav .menu { display: flex; flex-wrap: nowrap; gap: 4px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .1); overflow-x: auto; scrollbar-width: none; }
	.site-nav a { padding: 12px 12px 11px; border-bottom: 3px solid transparent; font-size: .94rem; white-space: nowrap; }
	.site-nav a::after { content: none; }
	.site-nav a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .45); }
	.site-nav .current-menu-item > a, .site-nav .current-page-ancestor > a { color: #fff; border-bottom-color: var(--coral); box-shadow: none; padding-left: 12px; }

	.hero { padding: 54px 0 52px; }
	.hero::before { width: 420px; right: -140px; }
	.hero::after { right: 250px; width: 34px; }

	.layout-aside { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 28px; }
	.layout-aside .side { position: sticky; top: calc(var(--header-h) + 16px); }

	.rv-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.rv-card__link, .rv-btn, .rv-toc__btn::after, .rv-faq__item summary::after { transition: none; }
	.live-dot { animation: none; }
}

@media print {
	.site-header, .site-footer, .rv-btn, .cta-strip, .nav-toggle, .quick-links, .flag-rule { display: none !important; }
	body { background: #fff; }
	.entry { border: 0; }
	.page-head--band, .page-head--game, .hero { background: #fff !important; color: #000 !important; }
	.page-head--band::after, .page-head--game::after, .hero::before, .hero::after { display: none; }
	.rv-ball { box-shadow: inset 0 0 0 2px #000 !important; background: #fff !important; color: #000 !important; }
}
