/* GameOn — клубууд (ClubsPage.jsx) */

@import url("board-wash.css");

.clubs-page {
	--ink: #141821;
	--green: #17703d;
	--red: #c2211d;
	--amber: #8a5e07;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--display: "Oswald", sans-serif;
	--sans: "Manrope", system-ui, sans-serif;
	margin: 0;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: #efe7d0;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.clubs-page *,
.clubs-page *::before,
.clubs-page *::after {
	box-sizing: border-box;
}

.clubs-page a {
	color: inherit;
	text-decoration: none;
}

@keyframes tierSheen {
	0% {
		left: -40%;
		opacity: 0;
	}
	12% {
		opacity: 1;
	}
	55% {
		left: 120%;
		opacity: 0;
	}
	100% {
		left: 120%;
		opacity: 0;
	}
}

.ap-sheen {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: repeating-conic-gradient(
		from 0deg at 84% 120%,
		rgba(255, 255, 255, 0.035) 0deg 9deg,
		transparent 9deg 18deg
	);
}

.ap-sheen-beam {
	position: absolute;
	top: 0;
	height: 100%;
	left: -40%;
	width: 32%;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		transparent,
		rgba(255, 255, 255, 0.14) 45%,
		rgba(255, 255, 255, 0.02) 60%,
		transparent
	);
	transform: skewX(-14deg);
	animation: tierSheen 5.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.ap-sheen-beam {
		animation: none;
		display: none;
	}
}

/* ---------- header / footer (archive chrome) ---------- */

.ap-header {
	position: relative;
	overflow: hidden;
}

.ap-header-in {
	position: relative;
	z-index: 1;
	max-width: 1240px;
	margin: 0 auto;
	padding: 16px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.ap-mark {
	display: flex;
	flex-direction: column;
	line-height: 0.84;
	flex: none;
}

.ap-mark-row {
	display: flex;
	align-items: center;
	gap: 1px;
}

.ap-mark-letter,
.ap-mark-dart {
	font-family: var(--display);
	font-weight: 700;
	font-size: 26px;
	color: #ffffff;
}

.ap-mark-dart {
	letter-spacing: 0.08em;
	margin-top: 3px;
}

.ap-mark-o {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.ap-mark-bull {
	width: 36%;
	height: 36%;
	border-radius: 50%;
	background: #e0322e;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.ap-ad {
	flex: 1 1 380px;
	min-width: 240px;
	max-width: 700px;
	height: 52px;
	border: 1px dashed rgba(255, 255, 255, 0.22);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: rgba(255, 255, 255, 0.02);
}

.ap-ad-size {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	color: #9a927c;
}

.ap-ad-rule {
	width: 1px;
	height: 20px;
	background: rgba(255, 255, 255, 0.16);
}

.ap-ad-text {
	font-size: 12.5px;
	color: #b8b09a;
}

.ap-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ap-nav a {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	color: #cfc9b6;
	padding: 10px 15px;
	border-radius: 8px;
}

.ap-nav a:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
}

.ap-nav-cta {
	color: #f0d78a !important;
	border: 1px solid #f0d78a;
	border-radius: 999px !important;
	padding: 10px 16px !important;
}

.ap-nav-cta:hover {
	color: #ffffff !important;
	background: rgba(240, 215, 138, 0.12) !important;
}

.ap-header-bar {
	height: 3px;
	background: linear-gradient(
		to right,
		#c2211d 0%,
		#c2211d 34%,
		#17703d 34%,
		#17703d 62%,
		rgba(255, 255, 255, 0.14) 62%
	);
}

.ap-foot {
	position: relative;
	overflow: hidden;
	margin-top: auto;
}

.ap-foot-in {
	position: relative;
	max-width: 1240px;
	margin: 0 auto;
	padding: 22px 32px;
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	color: #cfc9b6;
	text-align: center;
	text-transform: uppercase;
}

.ap-foot-in a {
	color: #f0d78a;
}

.ap-foot-in a:hover {
	color: #ffffff;
}

/* ---------- main ---------- */

.cp-main {
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(30px, 5vw, 52px) 32px clamp(40px, 6vw, 72px);
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

.cp-hero {
	position: relative;
	overflow: hidden;
	background: #16181a;
	border-radius: 6px 26px 6px 26px;
	padding: 22px 26px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
}

.cp-hero-copy {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	max-width: 640px;
}

.cp-hero h1 {
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(26px, 3.6vw, 38px);
	line-height: 1.02;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #ffffff;
}

.cp-hero h1 span {
	color: #cfc9b6;
}

.cp-hero p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: #c6c0b0;
	text-wrap: pretty;
}

.cp-hero-meta {
	position: relative;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	color: #cfc9b6;
	text-transform: uppercase;
}

.cp-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.cp-search {
	flex: 1 1 420px;
	min-width: 240px;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid rgba(20, 24, 33, 0.14);
	border-radius: 4px 16px 4px 16px;
	padding: 14px 18px;
}

.cp-search-icon {
	display: flex;
	color: #5c5348;
	flex: none;
}

.cp-search input {
	border: 0;
	outline: none;
	background: transparent;
	font-family: var(--sans);
	font-size: 14px;
	color: var(--ink);
	width: 100%;
}

.cp-search input::placeholder {
	color: #5c5348;
}

.cp-search:focus-within {
	outline: 2px solid var(--ink);
	outline-offset: 1px;
}

.cp-search-btn {
	appearance: none;
	border: 0;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	color: #ffffff;
	background: #16181a;
	padding: 15px 22px;
	border-radius: 4px 16px 4px 16px;
	flex: none;
	cursor: pointer;
}

.cp-search-btn:hover {
	color: #ffffff;
	background: #0d0f11;
}

.cp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 14px;
}

.cp-empty {
	grid-column: 1 / -1;
	margin: 8px 4px;
	color: #5c5348;
	font-weight: 600;
}

.cp-card {
	position: relative;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(20, 24, 33, 0.1);
	border-radius: 4px 22px 4px 22px;
	display: flex;
	flex-direction: column;
	transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
	--accent: #c2211d;
}

.cp-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(20, 24, 33, 0.13);
}

.cp-card-bar {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 4px;
	background: var(--accent);
}

.cp-card-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px 16px;
}

.cp-logo,
.cp-ph {
	width: 52px;
	height: 52px;
	flex: none;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 0 0 3px rgba(20, 24, 33, 0.06);
}

.cp-logo {
	display: block;
	object-fit: cover;
	background: #fff;
}

.cp-ph {
	background: var(--accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--display);
	font-size: 22px;
}

.cp-card-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cp-name {
	font-family: var(--display);
	font-weight: 600;
	font-size: 21px;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--ink);
	text-wrap: pretty;
}

.cp-city {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	color: #5c5348;
	text-transform: uppercase;
}

.cp-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: rgba(20, 24, 33, 0.12);
	border-top: 1px solid rgba(20, 24, 33, 0.09);
}

.cp-stat {
	background: #16181a;
	padding: 11px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cp-stat b {
	font-family: var(--display);
	font-weight: 600;
	font-size: 19px;
	line-height: 1;
	color: #ffffff;
	font-variant-numeric: tabular-nums;
}

.cp-stat b.gold {
	color: #f0d78a;
}

.cp-stat b.dim {
	color: #a8a294;
}

.cp-stat i {
	font-family: var(--mono);
	font-style: normal;
	font-size: 9px;
	letter-spacing: 0.14em;
	color: #cfc9b6;
}

.cp-card-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px 20px 18px;
}

.cp-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.cp-k {
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.16em;
	color: #5c5348;
}

.cp-v {
	font-family: var(--display);
	font-size: 17px;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--ink);
}

.cp-v.dim {
	color: #5c5348;
}

.cp-addr {
	font-family: var(--sans);
	font-size: 13px;
	line-height: 1.55;
	color: #3f3c33;
	text-wrap: pretty;
	text-transform: none;
}

.cp-last {
	display: flex;
	align-items: baseline;
	gap: 7px;
	flex-wrap: wrap;
	border-top: 1px dashed rgba(20, 24, 33, 0.18);
	padding-top: 13px;
}

.cp-last .cp-k {
	flex: none;
}

.cp-last-event {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ink);
	text-wrap: pretty;
}

.cp-last-date {
	font-family: var(--mono);
	font-size: 10px;
	color: #5c5348;
	margin-left: auto;
}

.cp-go {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 13px 20px;
	background: #f7f2e6;
	border-top: 1px solid rgba(20, 24, 33, 0.09);
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	color: var(--ink);
}

.cp-go-arrow {
	color: var(--accent);
	font-size: 14px;
	line-height: 1;
}

.cp-more-wrap {
	display: flex;
	justify-content: center;
	padding-top: 6px;
}

.cp-more {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	color: var(--ink);
	border: 1px solid rgba(20, 24, 33, 0.28);
	padding: 14px 26px;
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
}

.cp-more:hover {
	border-color: var(--ink);
	background: rgba(20, 24, 33, 0.04);
}

/* ---------- байгууллага ---------- */

.cp-orgs {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 12px;
}

.cp-orgs-head h2 {
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--ink);
}

.cp-orgs-head h2 span {
	color: #5c5348;
}

.cp-orgs-head p {
	margin: 8px 0 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: #3f3c33;
	text-wrap: pretty;
}

.cp-org-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid rgba(20, 24, 33, 0.1);
	border-radius: 6px 26px 6px 26px;
	overflow: hidden;
}

.cp-org {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: baseline;
	padding: 12px 20px;
	border-top: 1px solid rgba(20, 24, 33, 0.07);
}

.cp-org:first-child {
	border-top: 0;
}

.cp-org:nth-child(even) {
	background: #fcfaf4;
}

.cp-org-n {
	font-family: var(--display);
	font-size: 17px;
	color: #5c5348;
	font-variant-numeric: tabular-nums;
}

.cp-org-name {
	font-weight: 700;
	font-size: 14px;
	color: var(--ink);
	text-wrap: pretty;
}

.cp-org-n-ev {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.cp-org-n-ev i {
	font-style: normal;
	font-size: 9px;
	letter-spacing: 0.12em;
	color: #5c5348;
	text-transform: uppercase;
}

.cp-org-empty {
	padding: 16px 20px;
	color: #5c5348;
}

@media (max-width: 720px) {
	.ap-header-in,
	.cp-main,
	.ap-foot-in {
		padding-inline: 16px;
	}

	.cp-grid {
		grid-template-columns: 1fr;
	}

	.cp-org {
		grid-template-columns: 36px 1fr;
		gap: 6px 12px;
		padding: 12px 16px;
	}

	.cp-org-n-ev {
		grid-column: 2;
	}
}
