@font-face {
	font-family: 'SQUARE';
	src: url('square-bold.woff2') format('woff2');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* sportloto_01 — clone of the sportloto.co (СПОРТЛОТО) demo lobby.
   Tokens are the source's own: stripe pair #000138/#020643 under a
   rgba(0,0,255,.8) glow, column #01165f with #00a3e6 rules, orange #ff6507,
   promo-code orange #f60, info-block navy rgba(0,8,35,.93), panel gradient
   #010a5c → #031eae with an inset #031fdc glow. Font SQUARE bold. */

:root {
	--stripe-a: #000138;
	--stripe-b: #020643;
	--glow: rgba(0, 0, 255, .8);
	--col: #01165f;
	--line: #00a3e6;
	--orange: #ff6507;
	--code: #f60;
	--deep: rgba(0, 8, 35, .93);
	--panel-a: #010a5c;
	--panel-b: #031eae;
	--panel-glow: #031fdc;
	--text: #fff;
	--soft: #c9d6ff;
	--col-w: 1170px;
	--sq: 'SQUARE', Helvetica, Arial, sans-serif;
	--body: Helvetica, Arial, sans-serif;
}

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

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

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font: 16px/1.5 var(--body);
	background-color: var(--stripe-a);
	background-image:
		linear-gradient(to right, transparent 0%, var(--glow) 30%, var(--glow) 70%, transparent 100%),
		repeating-linear-gradient(-45deg, var(--stripe-a), var(--stripe-a) 10px, var(--stripe-b) 10px, var(--stripe-b) 20px);
}

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

a { color: inherit; }

[hidden] { display: none !important; }

.sr {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 2000;
	padding: 8px 14px;
	background: var(--orange);
	color: #fff;
	font-family: var(--sq);
}
.skip:focus { left: 8px; top: 8px; }

/* ---- the column ------------------------------------------------------ */

.col {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: var(--col-w);
	min-height: 100vh;
	margin: 0 auto;
	background: var(--col);
	border-left: 1px solid var(--line);
	border-right: 1px solid var(--line);
}

.main { flex: 1 0 auto; }

/* ---- plates (buttons on the source's PNG art) -------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 172px;
	aspect-ratio: 344 / 187;
	padding: 0 0 4px;
	border: 0;
	background: var(--btn-bg) center / 100% 100% no-repeat;
	color: #fff;
	font: 22px/1 var(--sq);
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: 1px 2px 3px rgba(0, 0, 0, .55);
	cursor: pointer;
	transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.btn--orange { --btn-bg: url('../img/btn/orange.webp'); }
.btn--green  { --btn-bg: url('../img/btn/green.webp'); }
.btn--red    { --btn-bg: url('../img/btn/red.webp'); aspect-ratio: 494 / 187; width: 247px; }
.btn--blue   { --btn-bg: url('../img/btn/blue.webp'); aspect-ratio: 307 / 129; padding: 0; }

/* ---- header ---------------------------------------------------------- */

.bar {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 18px;
	height: 68px;
	padding: 0 2.5% 3px;
	background: url('../img/header.webp') 100% 100% / 100% 100%;
}

.bar__logo { display: block; flex: none; line-height: 0; }
.bar__logo img { width: 170px; height: auto; }

.bar__nav {
	display: flex;
	flex: 1;
	gap: 4px;
	min-width: 0;
}
.bar__nav a {
	padding: 6px 8px;
	font: 16px/1 var(--sq);
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: #fff;
}
.bar__nav a:hover, .bar__nav a.is-on { color: var(--orange); }

.bar__act { display: flex; align-items: center; flex: none; gap: 0; }
.btn--bar { width: 110px; font-size: 15px; letter-spacing: .08em; }
.btn--bar.btn--wide { width: 140px; }

.bar__login { display: none; color: #fff; line-height: 0; }
.bar__login .ic { width: 30px; height: 30px; }

/* ---- banner + control strip ------------------------------------------ */

.banner { line-height: 0; }
.banner img { display: block; width: 100%; height: auto; }

.controls {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 58px;
	padding: 2px 10px;
	background: url('../img/controls.webp') 100% 100% / 100% 100%;
	box-shadow: 0 7px 10px -5px #000;
	position: relative;
	z-index: 1;
}

.search {
	width: 235px;
	height: 53px;
	padding: 5px 44px 5px 30px;
	border: none;
	border-radius: 5px;
	outline: none;
	color: #fff;
	font: 22px var(--sq);
	background: url('../img/glass.svg') 90% 50% / 20px 20px no-repeat, url('../img/search.webp') 0 0 / 100% 100% no-repeat;
	-webkit-appearance: none;
	appearance: none;
}
.search::placeholder { color: rgba(255, 255, 255, .9); font: 22px var(--sq); }
.search::-webkit-search-cancel-button { -webkit-appearance: none; }
.search:focus-visible { box-shadow: 0 0 0 2px #fff; }

/* ---- game groups ----------------------------------------------------- */

.games { padding: 2%; text-align: center; text-transform: uppercase; font-family: var(--sq); }

.group { margin: 0 0 15px; }
.group__t {
	display: block;
	margin: 0;
	font: 24px/1.3 var(--sq);
	text-transform: uppercase;
	text-align: center;
}
.group__list {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.game { position: relative; width: 14.6%; margin: 1%; }
.game a { display: block; color: #fff; text-decoration: none; }
.game__pic { position: relative; display: block; line-height: 0; }
.game__pic img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 11%; }
.game__pic .game__mask,
.rank__pic .game__mask { position: absolute; top: 0; left: 0; width: 100%; height: auto; border-radius: 0; }
.game__name { display: block; margin: 5px 0 0; font: 14px/1.2 var(--sq); text-transform: uppercase; }
.game a:hover .game__pic img:first-child { filter: brightness(1.15); }
.game a:hover .game__name { color: var(--orange); }

.games__none { display: block; padding: 20px 0; font: 20px var(--sq); color: var(--soft); }

/* ---- start screen ---------------------------------------------------- */

.start {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 34px 16px 30px;
	text-align: center;
	font-family: var(--sq);
	text-shadow: 2px 2px 5px #000;
	background: url('../img/back.webp') center / cover no-repeat;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.start__offer { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.start__lead { font-size: 40px; line-height: 1.15; }
.start__sub  { font-size: 28px; line-height: 1.2; }
.start__code { font-size: 46px; line-height: 1.1; color: var(--code); }
.start__note { font-size: 24px; line-height: 1.25; }
.start__logo { display: block; width: 46%; max-width: 560px; height: auto; margin: 26px 0 22px; }
.start__btns { display: flex; justify-content: center; align-items: center; gap: 22px; width: 100%; }
.start__btns .btn { font-size: 24px; }

.start--full {
	justify-content: space-between;
	min-height: calc(100vh - 68px);
	border-top: 0;
}

/* ---- inner pages ----------------------------------------------------- */

.inner { padding: 22px 2.5% 30px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; font: 14px var(--sq); color: var(--soft); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.crumbs__now { color: #fff; }

.inner__t {
	display: block;
	margin: 0 0 18px;
	font: 32px/1.2 var(--sq);
	text-transform: uppercase;
}

.plate {
	padding: 26px 3% 30px;
	background: linear-gradient(to bottom, var(--panel-a) 0, var(--panel-b) 100%);
	border: 1px solid var(--line);
	box-shadow: inset 0 0 25px 2px var(--panel-glow);
}

/* ---- prose ----------------------------------------------------------- */

.prose { font: 17px/1.65 var(--body); color: #eef2ff; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 {
	font-family: var(--sq);
	font-weight: 400;
	line-height: 1.25;
	color: #fff;
}
.prose h1 { margin: 0 0 18px; font-size: 32px; text-transform: uppercase; }
.prose h2 {
	margin: 34px 0 14px;
	padding: 0 0 0 14px;
	font-size: 26px;
	border-left: 4px solid var(--orange);
}
.prose h3 { margin: 26px 0 10px; font-size: 21px; color: #ffd2b8; }
.prose h4 { margin: 20px 0 8px; font-size: 18px; }
.prose p { margin: 0 0 14px; }
.prose a { color: #ff8a45; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #fff; }
.prose ul, .prose ol { margin: 0 0 16px; padding: 0 0 0 24px; }
.prose li { margin: 0 0 6px; }
.prose ul li::marker { color: var(--orange); }
.prose ol li::marker { color: var(--orange); font-family: var(--sq); }
.prose img { display: block; height: auto; margin: 18px auto; border-radius: 10px; border: 1px solid var(--line); }
.prose figure { margin: 18px 0; }
.prose figcaption { font-size: 14px; color: var(--soft); text-align: center; }
.prose blockquote {
	margin: 18px 0;
	padding: 14px 18px;
	background: var(--deep);
	border-left: 4px solid var(--line);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }

.table-scroll { margin: 0 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--stripe-a); font-family: var(--sq); font-weight: 400; }
.prose tr:nth-child(even) td { background: rgba(0, 1, 56, .35); }

.prose details { margin: 0 0 10px; background: var(--deep); border: 1px solid var(--line); }
.prose summary { padding: 12px 16px; font-family: var(--sq); cursor: pointer; }
.prose details > :not(summary) { padding: 0 16px; }

/* ---- toplist --------------------------------------------------------- */

.rank { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.rank__row {
	display: grid;
	grid-template-columns: 44px 84px 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 10px 16px 10px 10px;
	background: var(--deep);
	border: 1px solid var(--line);
}
.rank__n {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	font: 24px var(--sq);
	background: var(--orange);
	border-radius: 8px;
	transform: skewX(-12deg);
}
.rank__pic { position: relative; display: block; line-height: 0; }
.rank__pic img:first-child { width: 84px; height: 84px; border-radius: 11%; }
.rank__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rank__name { font: 20px/1.2 var(--sq); text-transform: uppercase; }
.rank__prov { font: 14px var(--sq); color: var(--orange); }
.rank__line { font-size: 15px; color: var(--soft); }
.rank__btn { width: 130px; font-size: 18px; }

/* ---- review ---------------------------------------------------------- */

.offer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 16px;
	padding: 22px 26px;
	font-family: var(--sq);
	text-shadow: 2px 2px 5px #000;
	background: url('../img/back.webp') center / cover no-repeat;
	border: 1px solid var(--line);
}
.offer__txt { display: flex; flex-direction: column; gap: 2px; }
.offer__k { font-size: 22px; }
.offer__code { font-size: 44px; line-height: 1; color: var(--code); }
.offer__n { font-size: 18px; }

.facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 0 0 20px;
}
.facts__i { padding: 14px 16px; background: var(--deep); border: 1px solid var(--line); }
.facts dt { margin: 0 0 4px; font: 14px var(--sq); color: var(--orange); text-transform: uppercase; }
.facts dd { margin: 0; font: 18px/1.3 var(--sq); }

.group--inner { margin: 0 0 20px; text-align: center; font-family: var(--sq); }
.group--inner .game { margin: 1%; }

/* ---- footer ---------------------------------------------------------- */

.foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 26px 3% 30px;
	text-align: center;
	background: var(--deep);
	border-top: 1px solid var(--line);
}
.foot__logo { width: 170px; height: auto; }
.foot__menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot__menu a { font: 15px var(--sq); text-transform: uppercase; text-decoration: none; color: #fff; }
.foot__menu a:hover { color: var(--orange); }
.foot__tg {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 20px var(--sq);
	color: #fff;
	text-decoration: underline;
}
.foot__tg .ic { width: 30px; height: 30px; }
.foot__tg:hover { color: var(--orange); }
.foot__text { max-width: 820px; font-size: 14px; line-height: 1.55; color: var(--soft); }
.foot__row { display: flex; align-items: center; gap: 12px; max-width: 820px; text-align: left; }
.foot__age {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px; height: 44px;
	font: 16px var(--sq);
	border: 2px solid var(--orange);
	border-radius: 50%;
	color: var(--orange);
}
.foot__note { font-size: 13px; line-height: 1.5; color: var(--soft); }
.foot__copy { font: 13px var(--sq); color: var(--soft); }

/* ---- bottom bar + drawer -------------------------------------------- */

.tabbar { display: none; }

.overlay {
	position: fixed;
	inset: 0;
	z-index: 300;
	background: rgba(0, 1, 30, .7);
}

.drawer {
	position: fixed;
	top: 0; bottom: 0; left: 0;
	z-index: 310;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: min(320px, 86vw);
	padding: 14px 16px 24px;
	overflow-y: auto;
	background: linear-gradient(to bottom, var(--panel-a) 0, var(--panel-b) 100%);
	border-right: 1px solid var(--line);
	box-shadow: inset 0 0 25px 2px var(--panel-glow);
	transform: translateX(-105%);
	transition: transform .25s ease;
	visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__head img { width: 150px; height: auto; }
.drawer__close { padding: 6px; border: 0; background: none; color: #fff; cursor: pointer; line-height: 0; }
.drawer__close .ic { width: 22px; height: 22px; }
.drawer__nav, .drawer__info { display: flex; flex-direction: column; }
.drawer__nav a {
	padding: 11px 4px;
	font: 18px var(--sq);
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	border-bottom: 1px solid rgba(0, 163, 230, .35);
}
.drawer__nav a.is-on, .drawer__nav a:hover { color: var(--orange); }
.drawer__act { display: flex; justify-content: space-between; gap: 6px; }
.drawer__act .btn { width: 46%; font-size: 17px; }
.drawer__act .btn--wide { width: 54%; }
.drawer__info a { padding: 7px 4px; font-size: 15px; color: var(--soft); text-decoration: none; }
.drawer__info a:hover { color: #fff; }

body.menu-open { overflow: hidden; }

/* ---- breakpoints (source: 31% → 23% → 18% → 14.6% tiles) -------------- */

@media (max-width: 1199px) {
	.game { width: 18%; }
	.bar__nav a { font-size: 14px; padding: 6px 5px; }
}

@media (max-width: 1100px) {
	.bar { justify-content: space-between; }
	.bar__nav, .bar__act { display: none; }
	.bar__login { display: block; }

	body { padding-bottom: 76px; }
	.tabbar {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 200;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		align-items: center;
		justify-items: center;
		gap: 4px;
		height: 72px;
		padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
		background: var(--deep);
		border-top: 1px solid var(--line);
	}
	.tabbar .btn { width: 100%; max-width: 170px; font-size: 18px; aspect-ratio: auto; height: 58px; }
	.tabbar .btn--red { max-width: 220px; }
	.tabbar .btn--blue { height: 50px; }
}

@media (max-width: 991px) {
	.game { width: 23%; }
	.facts { grid-template-columns: repeat(2, 1fr); }
	.start__lead { font-size: 32px; }
	.start__note { font-size: 20px; }
	.start__btns .btn { font-size: 20px; }
}

@media (max-width: 767px) {
	.col { border: 0; }
	.bar { height: 60px; padding: 0 12px 3px; }
	.bar__logo img { width: 140px; }
	.controls { min-height: 54px; justify-content: center; }
	.search { width: 100%; max-width: 235px; height: 46px; font-size: 19px; }
	.search::placeholder { font-size: 19px; }
	.game { width: 31.33%; }
	.game__name { font-size: 12px; }
	.group__t { font-size: 22px; }

	.start { padding: 26px 12px 24px; }
	.start__lead { font-size: 28px; }
	.start__sub { font-size: 21px; }
	.start__code { font-size: 38px; }
	.start__note { font-size: 17px; }
	.start__logo { width: 80%; margin: 18px 0 16px; }
	.start__btns { flex-direction: column; gap: 4px; }
	.start__btns .btn { width: 62%; max-width: 260px; aspect-ratio: auto; height: 74px; font-size: 20px; }
	.start__btns .start__reg { order: 3; }
	.start__btns .start__in { order: 1; }
	.start__btns .start__demo { order: 2; }
	.start--full { min-height: calc(100vh - 60px - 76px); }

	.inner { padding: 16px 12px 24px; }
	.inner__t, .prose h1 { font-size: 26px; }
	.plate { padding: 18px 14px 22px; }
	.prose { font-size: 16px; }
	.prose h2 { font-size: 22px; }
	.prose h3 { font-size: 19px; }

	.rank__row { grid-template-columns: 34px 64px 1fr; gap: 10px; padding: 8px; }
	.rank__n { width: 34px; height: 34px; font-size: 19px; }
	.rank__pic img:first-child { width: 64px; height: 64px; }
	.rank__name { font-size: 16px; }
	.rank__line { font-size: 13px; }
	.rank__btn { grid-column: 1 / -1; justify-self: center; width: 70%; max-width: 240px; aspect-ratio: auto; height: 56px; }

	.offer { flex-direction: column; text-align: center; padding: 18px 14px; }
	.offer__code { font-size: 38px; }
	.facts { grid-template-columns: 1fr 1fr; }
	.facts dd { font-size: 16px; }

	.tabbar .btn { font-size: 16px; letter-spacing: .06em; }
}

@media (max-width: 380px) {
	.facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.drawer, .btn { transition: none; }
}

.prose--title { overflow-wrap: normal; }
.prose--title h1.inner__t { margin: 0 0 18px; font-size: 32px; }
.plate .prose > .inner__t { font-size: 28px; }
@media (max-width: 767px) {
	.prose--title h1.inner__t { font-size: 26px; }
}

/* ---- language switcher (sportloto.org.ua: uk / en / ru) --------------- */

.lsw { position: relative; flex: none; }
.lsw__btn { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 18px; background: rgba(0, 8, 35, .55); color: #fff; font: 15px/1 var(--sq); cursor: pointer; }
.lsw__btn:hover, .lsw.is-open .lsw__btn { border-color: var(--orange); color: var(--orange); }
.lsw__globe { width: 18px; height: 18px; }
.lsw__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; display: none; min-width: 180px; margin: 0; padding: 6px 0; list-style: none; background: var(--deep); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }
.lsw.is-open .lsw__panel { display: block; }
.lsw__opt { display: flex; align-items: center; gap: 12px; padding: 9px 14px; font-size: 15px; color: var(--soft); text-decoration: none; }
.lsw__opt b { min-width: 30px; font: 14px/1 var(--sq); color: #fff; }
.lsw__opt:hover { color: #fff; background: rgba(3, 30, 174, .45); }
.lsw__opt.is-on, .lsw__opt.is-on b { color: var(--orange); }

@media (max-width: 1100px) {
	.lsw { margin-left: auto; }
}

/* Editorial images: centred, natural height, never wider than the plate. */
.prose img { max-width: 100%; }

/* Contents-list jumps land below the sticky bar. */
.prose h2[id], .prose h3[id] { scroll-margin-top: 84px; }
