

:root {
	--green-900: #030806;   /* near-black green */
	--green-800: #04110c;   /* page base (matches 777.ua body) */
	--green-700: #082117;   /* surfaces / cards */
	--green-600: #0e3a29;   /* raised surfaces / hover */
	--green-line: #16402e;  /* borders */

	--red: #f31b34;         /* brand red (777.ua reg button) */
	--red-dark: #b00b22;
	--red-bright: #ff2e45;
	--gold: #ffbd00;
	--gold-bright: #ffe600;
	--green-neon: #00e509;

	--text: #ffffff;
	--text-soft: #ebf5f1;
	--text-muted: #86c1aa;

	--radius: 8px;
	--radius-sm: 4px;       /* 777.ua buttons use ~4px */
	--container: 1240px;
	--ease: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	font-family: 'Geologica', -apple-system, Segoe UI, Roboto, sans-serif;
	background:
		radial-gradient(1200px 500px at 50% -10%, rgba(243, 27, 52, 0.12), transparent 60%),
		radial-gradient(900px 500px at 100% 110%, rgba(0, 229, 9, 0.06), transparent 60%),
		var(--green-800);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
	padding-top: 72px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--ease); }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	transition: transform var(--ease), background var(--ease), box-shadow var(--ease), color var(--ease);
}
.btn-primary {
	background: var(--red);
	color: #fff;
	box-shadow: 0 6px 18px rgba(243, 27, 52, 0.35);
}
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(243, 27, 52, 0.45); }
.btn-outline {
	background: transparent;
	color: var(--text);
	border-color: var(--green-line);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); color: #2a1a00; font-weight: 600; }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; font-weight: 600; }
.btn-block { width: 100%; }

/* ============================================================
   HEADER — centered red 777 logo, nav both sides (777.ua style)
   ============================================================ */
.header {
	position: fixed;
	inset: 0 0 auto 0;
	height: 72px;
	z-index: 100;
	background: rgba(3, 8, 6, 0.82);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--green-line);
}
.header .container {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

/* quick icon nav (left) */
.quick-nav { display: flex; align-items: center; gap: 6px; }
.quick-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 6px 12px;
	border-radius: var(--radius-sm);
	color: var(--text-muted);
	font-size: 0.7rem;
	font-weight: 500;
	transition: background var(--ease), color var(--ease);
}
.quick-item i { font-size: 1.05rem; }
.quick-item:hover, .quick-item.active { color: #fff; background: var(--green-700); }
.quick-item.live i { color: var(--red); }
.quick-item.live .live-dot { color: var(--red); animation: blink 1.3s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* centered logo */
.logo {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}
.logo img { height: 40px; width: auto; }

/* right actions */
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang {
	display: flex; align-items: center; gap: 6px;
	color: var(--text-muted); font-size: 0.85rem; padding: 6px 8px; border-radius: var(--radius-sm);
}
.lang:hover { color: #fff; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--ease); }

/* ============================================================
   HERO — banner carousel (real 440x670 banner images)
   ============================================================ */
.hero { padding: 22px 0 4px; position: relative; }
.carousel { position: relative; }
.carousel-track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 2px;
	scroll-behavior: smooth;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
	flex: 0 0 calc((100% - 42px) / 4); /* 4 visible on desktop */
	scroll-snap-align: start;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 1 / 1;          /* square banners, matching 777.ua reference */
	background: var(--green-700);
	border: 1px solid var(--green-line);
	transition: transform var(--ease), box-shadow var(--ease);
}
.slide:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.slide img { width: 100%; object-fit: cover; }
.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 1px solid var(--green-line);
	background: rgba(3, 8, 6, 0.85);
	color: #fff;
	cursor: pointer;
	display: grid; place-items: center;
	z-index: 2;
	transition: var(--ease);
}
.carousel-btn:hover { background: var(--red); border-color: var(--red); }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }
@media (max-width: 1024px) { .slide { flex-basis: calc((100% - 28px) / 3); } }
@media (max-width: 760px)  { .slide { flex-basis: calc((100% - 14px) / 2); } .carousel-btn { display: none; } }
@media (max-width: 480px)  { .slide { flex-basis: 70%; } }

/* ============================================================
   CATEGORY CHIPS
   ============================================================ */
.chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 18px 0 6px;
	scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: 999px;
	background: var(--green-700);
	border: 1px solid var(--green-line);
	color: var(--text-soft);
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: var(--ease);
}
.chip i { color: var(--gold); font-size: 0.85rem; }
.chip:hover { background: var(--green-600); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.chip.active i { color: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 30px 0; }
.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.section-title {
	font-size: 1.5rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
}
.section-title::before {
	content: "";
	width: 5px; height: 24px;
	background: var(--red);
	border-radius: 3px;
}
.section-more { color: var(--gold); font-size: 0.85rem; font-weight: 500; }
.section-more:hover { color: var(--gold-bright); }

/* ---------- Game grid (dense tiles, capped at 2 rows) ----------
   Fixed column count per breakpoint + hiding the overflow keeps the
   grid at a maximum of two rows on every screen size. */
.game-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-auto-rows: 0;            /* extra rows collapse */
	grid-template-rows: auto auto;
	overflow: hidden;
	gap: 14px;
}
.game-grid > .game:nth-child(n+15) { display: none; }                 /* 7 cols → 14 = 2 rows */
@media (max-width: 1100px) { .game-grid { grid-template-columns: repeat(6, 1fr); } .game-grid > .game:nth-child(n+13) { display: none; } }
@media (max-width: 900px)  { .game-grid { grid-template-columns: repeat(5, 1fr); } .game-grid > .game:nth-child(n+11) { display: none; } }
@media (max-width: 680px)  { .game-grid { grid-template-columns: repeat(4, 1fr); } .game-grid > .game:nth-child(n+9)  { display: none; } }
@media (max-width: 520px)  { .game-grid { grid-template-columns: repeat(3, 1fr); } .game-grid > .game:nth-child(n+7)  { display: none; } }
@media (max-width: 380px)  { .game-grid { grid-template-columns: repeat(2, 1fr); } .game-grid > .game:nth-child(n+5)  { display: none; } }
.game {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--green-700);
	border: 1px solid var(--green-line);
	transition: transform var(--ease), box-shadow var(--ease);
}
.game:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
.game img { width: 100%; aspect-ratio: 178 / 200; object-fit: cover; display: block; }
.game-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: linear-gradient(0deg, rgba(3, 8, 6, 0.86), rgba(3, 8, 6, 0.35));
	opacity: 0;
	transition: opacity var(--ease);
}
.game:hover .game-overlay, .game:focus-within .game-overlay { opacity: 1; }
.game-overlay .btn { min-width: 116px; padding: 9px 16px; }

/* ============================================================
   TOPLIST
   ============================================================ */
.toplist { display: grid; gap: 12px; }
.toprow {
	display: grid;
	grid-template-columns: 54px 1.4fr 0.8fr 1.4fr auto;
	align-items: center;
	gap: 16px;
	background: var(--green-700);
	border: 1px solid var(--green-line);
	border-radius: var(--radius);
	padding: 16px 20px;
}
.toprow.featured { border-color: rgba(255, 189, 0, 0.6); background: linear-gradient(120deg, var(--green-600), var(--green-700)); }
.toprow-rank { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.toprow-name { font-weight: 700; font-size: 1.05rem; }
.toprow-pill { display: inline-block; margin-top: 5px; font-size: 0.72rem; color: var(--green-neon); border: 1px solid var(--green-line); padding: 2px 8px; border-radius: 999px; }
.toprow-rating { font-weight: 800; }
.toprow-rating .num { color: var(--gold); font-size: 1.3rem; }
.toprow-rating .den { color: var(--text-muted); font-size: 0.85rem; }
.toprow-bonus { color: var(--text-soft); font-size: 0.92rem; }
@media (max-width: 860px) {
	.toprow { grid-template-columns: 40px 1fr auto; }
	.toprow-rating, .toprow-bonus { display: none; }
}

/* ============================================================
   REVIEW PAGE (single casino)
   ============================================================ */
.review-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.info-card {
	position: sticky; top: 90px;
	background: var(--green-700);
	border: 1px solid var(--green-line);
	border-radius: var(--radius);
	padding: 22px;
}
.info-rating { text-align: center; margin-bottom: 16px; }
.info-rating .num { font-size: 2.6rem; font-weight: 800; color: var(--gold); }
.info-rating .den { color: var(--text-muted); }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-bottom: 18px; }
.info-list dt { color: var(--text-muted); font-size: 0.82rem; padding-top: 8px; }
.info-list dd { font-weight: 600; font-size: 0.92rem; padding-top: 8px; }
@media (max-width: 760px) { .review-layout { grid-template-columns: 1fr; } .info-card { position: static; } }

/* ============================================================
   ARTICLE / SEO CONTENT
   ============================================================ */
.content { padding: 30px 0 50px; }
.page-title { font-size: 2rem; font-weight: 800; margin-bottom: 18px; }
/* min-width:0 lets the .table-scroll wrapper clamp & scroll when
   .prose is a grid/flex item (e.g. inside .review-layout) instead of
   the table's min-width blowing out the track. */
.prose { color: var(--text-soft); max-width: 920px; min-width: 0; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin: 26px 0 12px; color: #fff; }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 20px 0 10px; color: #fff; }
.prose p { margin-bottom: 14px; }
.prose a { color: var(--gold); }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.prose th, .prose td { border: 1px solid var(--green-line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--green-700); }

/* Horizontal scroll wrapper for wide tables (added around every
   .prose table by main.js) so a data-heavy table never breaks the
   page layout on narrow screens — it scrolls sideways instead. */
.table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 16px 0;
}
.table-scroll table { margin: 0; min-width: 560px; }
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: var(--green-700); border-radius: 999px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--green-line); border-radius: 999px; }
.table-scroll::-webkit-scrollbar-thumb:hover { background: var(--green-600); }

/* landing */
.landing-hero { text-align: center; padding: 50px 0 20px; }
.landing-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.landing-hero .accent { color: var(--red); }
.landing-lead { color: var(--text-soft); max-width: 620px; margin: 14px auto 26px; font-size: 1.1rem; }
.landing-bottom { text-align: center; padding: 30px 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--green-900); border-top: 1px solid var(--green-line); padding: 44px 0 28px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.footer-logo img { height: 38px; margin-bottom: 14px; }
.footer-about { color: var(--text-muted); font-size: 0.88rem; max-width: 34ch; }
.footer h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 14px; color: #fff; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.88rem; padding: 5px 0; }
.footer-col a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; }
.socials a {
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--green-700); display: grid; place-items: center; color: var(--text-soft);
	transition: var(--ease);
}
.socials a:hover { background: var(--red); color: #fff; }
.footer-bottom {
	margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--green-line);
	display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
	color: var(--text-muted); font-size: 0.82rem;
}
.footer-bottom .disclaimer { display: flex; align-items: center; gap: 8px; }
.age { border: 1px solid var(--red); color: var(--red); font-weight: 700; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-size: 0.72rem; }

/* ============================================================
   COOKIE
   ============================================================ */
.cookie {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
	background: var(--green-700); border: 1px solid var(--green-line);
	border-radius: var(--radius); padding: 14px 18px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.cookie.hidden { display: none; }
.cookie p { color: var(--text-soft); font-size: 0.85rem; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mnav { position: fixed; inset: 0 auto 0 0; width: 280px; max-width: 84vw; background: var(--green-900); border-right: 1px solid var(--green-line); z-index: 300; transform: translateX(-100%); transition: transform var(--ease); padding: 18px; overflow-y: auto; }
.mnav.open { transform: translateX(0); }
.mnav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mnav-head img { height: 34px; }
.mnav-close { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }
.mnav a { display: block; padding: 12px 10px; border-radius: var(--radius-sm); color: var(--text-soft); font-weight: 500; }
.mnav a:hover, .mnav a.active { background: var(--green-700); color: #fff; }
.mnav-actions { display: grid; gap: 10px; margin-top: 16px; }
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 250; opacity: 0; visibility: hidden; transition: var(--ease); }
.overlay.open { opacity: 1; visibility: visible; }

/* mobile bottom bar */
.bottombar { display: none; position: fixed; inset: auto 0 0 0; z-index: 120; background: var(--green-900); border-top: 1px solid var(--green-line); }
.bottombar-cta { display: block; text-align: center; background: var(--red); color: #fff; font-weight: 600; padding: 11px; font-size: 0.9rem; }
.bottombar-nav { display: grid; grid-template-columns: repeat(5, 1fr); }
.bottombar-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0; color: var(--text-muted); font-size: 0.66rem; }
.bottombar-nav a.active { color: var(--gold); }
.bottombar-nav a i { font-size: 1.05rem; }

/* gentle one-shot entrance — transform only (no opacity), so it never
   drops a candidate to opacity:0 and invalidates LCP. Composited, no CLS. */
@keyframes fadeUp { from { transform: translateY(16px); } to { transform: none; } }
.reveal { animation: fadeUp 0.5s ease both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.banner-row { grid-template-columns: 1fr 1fr; }
	.banner-main { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 920px) {
	.bonus-grid, .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.quick-nav { display: none; }
	.logo { position: static; transform: none; }
	.header .container { justify-content: space-between; }
	.burger { display: flex; }
	.header-actions .btn-login { display: none; }
	.lang span { display: none; }
	body { padding-bottom: 118px; }
	.bottombar { display: block; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.banner-row { grid-template-columns: 1fr; }
	.banner-main { grid-column: span 1; }
	.footer-grid { grid-template-columns: 1fr; }
	.header-actions .btn-register { padding: 9px 16px; }
}
