/* Góc trò chơi · cùng kiểu với trang chủ cb-family.io.vn */
:root {
	--bg: #0a0908;
	--surface: #151311;
	--line: #262220;
	--line-strong: #3a342e;
	--text: #efe8dc;
	--text-2: #a9a094;
	--text-3: #6f685e;
	--gold: #c9a35c;
	--gold-2: #e8cb8e;
	--serif: "Cormorant Garamond", "Times New Roman", serif;
	--sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1080px;
	--gutter: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font: 300 16px/1.7 var(--sans);
	font-feature-settings: "lnum" 1;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(60% 45% at 50% -8%, rgba(201, 163, 92, .16), transparent 70%),
		radial-gradient(40% 30% at 100% 100%, rgba(201, 163, 92, .05), transparent 70%);
}
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	opacity: .06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold-2); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { margin: 0; color: var(--gold); font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.monogram {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--gold);
	border-radius: 50%;
	color: var(--gold-2);
	font: 600 15px/1 var(--serif);
	letter-spacing: .04em;
}
.monogram.small { width: 34px; height: 34px; font-size: 12px; }
.brand-name { font: 500 22px/1 var(--serif); letter-spacing: .02em; }
.top-link {
	color: var(--text-2);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	transition: color .3s var(--ease);
}
.top-link:hover { color: var(--gold-2); }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(40px, 9vh, 100px); padding-bottom: clamp(48px, 9vh, 96px); }
.hero-title { margin: 22px 0 0; font: 500 clamp(56px, 11vw, 132px)/.92 var(--serif); letter-spacing: -.01em; }
.rule { display: block; width: 1px; height: 56px; margin: 32px 0 28px; background: linear-gradient(var(--gold), transparent); }
.lead { max-width: 540px; margin: 0; color: var(--text-2); font-size: clamp(15px, 1.6vw, 17px); }
.reveal { animation: rise 1.1s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .12s; }
.reveal:nth-child(3) { animation-delay: .3s; }
.reveal:nth-child(4) { animation-delay: .42s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.games { padding-bottom: clamp(72px, 10vw, 120px); }
.section-head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 8px 24px;
	padding-bottom: 28px;
	margin-bottom: 36px;
	border-bottom: 1px solid var(--line);
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head h2 { margin: 0; font: 500 clamp(34px, 5vw, 52px)/1.05 var(--serif); }
.count { margin: 0; color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	overflow: hidden;
	isolation: isolate;
	transition: border-color .5s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease);
	animation: rise 1s var(--ease) .3s both;
}
.card + .card { animation-delay: .42s; }
.card + .card + .card { animation-delay: .54s; }
.card + .card + .card + .card { animation-delay: .66s; }
.card + .card + .card + .card + .card { animation-delay: .78s; }
.card::after {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(232, 203, 142, 0);
	pointer-events: none;
	transition: border-color .6s var(--ease), inset .6s var(--ease);
}
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #1d1a16, #0f0e0c); }
.card-media img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	filter: grayscale(.25) brightness(.82) contrast(1.05);
	transform: scale(1.02);
	transition: transform 1.2s var(--ease), filter .8s var(--ease);
}
.card-media img.pos-top { object-position: 50% 35%; }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--surface) 100%); }
.card-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 4px 30px 30px; margin-top: -36px; }
.card-top { display: flex; align-items: baseline; gap: 14px; }
.num { color: var(--gold); font: italic 500 20px/1 var(--serif); }
.tag { color: var(--text-2); font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }
.card h3 { margin: 14px 0 12px; font: 500 clamp(32px, 3.4vw, 42px)/1.05 var(--serif); }
.card p { margin: 0 0 28px; color: var(--text-2); font-size: 14.5px; line-height: 1.75; }
.go {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--gold);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	transition: color .4s var(--ease);
}
.go svg { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .5s var(--ease); }
.card:hover, .card:focus-visible { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(201, 163, 92, .12); }
.card:hover::after, .card:focus-visible::after { border-color: rgba(232, 203, 142, .22); inset: 8px; }
.card:hover img, .card:focus-visible img { transform: scale(1.07); filter: grayscale(0) brightness(.95) contrast(1.05); }
.card:hover .go, .card:focus-visible .go { color: var(--gold-2); }
.card:hover .go svg, .card:focus-visible .go svg { transform: translateX(6px); }
.card:focus-visible { outline: none; }

.foot { display: flex; align-items: center; gap: 16px; padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; letter-spacing: .08em; }
.foot p { margin: 0; }

@media (max-width: 760px) {
	.grid { grid-template-columns: 1fr; gap: 20px; }
	.section-head { grid-template-columns: 1fr; }
	.card-body { padding: 4px 22px 24px; }
	.brand-name { font-size: 20px; }
}
@media (hover: none) {
	.card-media img { filter: grayscale(.05) brightness(.9) contrast(1.05); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
