/* Team of Monkeys site design, December 2026.
   Rebuilt pages load only this file. Older pages load it after their own CSS, so every
   shared piece (header, footer) is namespaced with .tmx- and resets what older rules set. */

:root {
	--ink: #13111c;
	--ink-2: #1d1a29;
	--ink-3: #2a2639;
	--paper: #fbf8f3;
	--paper-2: #f3eee5;
	--card: #ffffff;
	--line: #e7e0d4;
	--line-dark: rgba(255, 255, 255, 0.12);
	--text: #1c1a24;
	--muted: #5f5a6b;
	--muted-dark: #b9b4c6;
	--pink: #ff3366;
	--pink-d: #e0194f;
	--banana: #ffc93c;
	--banana-d: #f2b200;
	--violet: #6d4aff;
	--teal: #10b3a3;
	--sky: #38bdf8;
	--radius: 18px;
	--radius-s: 12px;
	--shadow: 0 1px 2px rgba(19, 17, 28, 0.06), 0 8px 28px rgba(19, 17, 28, 0.08);
	--shadow-lg: 0 2px 6px rgba(19, 17, 28, 0.08), 0 24px 60px rgba(19, 17, 28, 0.16);
	--head-h: 68px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	--mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

html[lang="he"] {
	--font: "Rubik", "Inter", system-ui, sans-serif;
	--display: "Rubik", "Inter", system-ui, sans-serif;
}

/* ------------------------------------------------------------------ base (rebuilt pages) */
[hidden] {
	display: none !important;
}

body.tmx {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

.tmx img,
.tmx video,
.tmx svg {
	max-width: 100%;
}

.tmx img {
	height: auto;
	display: block;
}

.tmx a {
	color: inherit;
}

.tmx main p a,
.tmx main li a,
.tmx main dd a {
	color: var(--pink-d);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.tmx main p a:hover,
.tmx main li a:hover {
	color: var(--violet);
}

.tmx h1,
.tmx h2,
.tmx h3,
.tmx h4 {
	font-family: var(--display);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	color: inherit;
	font-weight: 750;
}

.tmx h1 {
	font-size: clamp(2.5rem, 5.6vw, 4.6rem);
	letter-spacing: -0.035em;
}

.tmx h2 {
	font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.tmx h3 {
	font-size: 1.28rem;
	letter-spacing: -0.01em;
}

.tmx p {
	margin: 0 0 1em;
}

.tmx ul,
.tmx ol {
	padding-inline-start: 1.25em;
	margin: 0 0 1em;
}

.tmx li {
	margin-bottom: 0.4em;
}

.tmx code {
	font-family: var(--mono);
	font-size: 0.9em;
	background: var(--paper-2);
	padding: 0.1em 0.4em;
	border-radius: 6px;
}

.tmx :focus-visible {
	outline: 3px solid var(--banana);
	outline-offset: 2px;
	border-radius: 6px;
}

.tmx-skip {
	position: absolute;
	inset-inline-start: 12px;
	top: 8px;
	transform: translateY(-200%);
	z-index: 200;
	background: var(--banana);
	color: var(--ink);
	padding: 8px 14px;
	border-radius: 8px;
	font-weight: 700;
}

.tmx-skip:focus {
	transform: none;
}

.wrap {
	width: min(1180px, 100% - 40px);
	margin-inline: auto;
}

.wrap-narrow {
	width: min(820px, 100% - 40px);
	margin-inline: auto;
}

.sec {
	padding: clamp(64px, 9vw, 112px) 0;
	position: relative;
}

.sec-tight {
	padding: clamp(40px, 6vw, 72px) 0;
}

.sec-alt {
	background: var(--paper-2);
}

.sec-dark {
	background: var(--ink);
	color: #f4f1fa;
}

.sec-dark .lead,
.sec-dark p {
	color: var(--muted-dark);
}

.sec-dark h2,
.sec-dark h3 {
	color: #fff;
}

.sec-dark main p a,
.sec-dark p a {
	color: var(--banana);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pink-d);
	margin-bottom: 14px;
}

.eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.sec-dark .eyebrow {
	color: var(--banana);
}

.lead {
	font-size: clamp(1.08rem, 1.6vw, 1.25rem);
	color: var(--muted);
	max-width: 62ch;
}

.sec-head {
	max-width: 760px;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.sec-head.center {
	margin-inline: auto;
	text-align: center;
}

.sec-head.center .lead {
	margin-inline: auto;
}

.sec-head.center .eyebrow::before {
	display: none;
}

/* ------------------------------------------------------------------ buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 50px;
	padding: 12px 24px;
	border-radius: 999px;
	font-family: var(--font);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none !important;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-pink {
	background: var(--pink);
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(255, 51, 102, 0.32);
}

.btn-pink:hover {
	background: var(--pink-d);
}

.btn-banana {
	background: var(--banana);
	color: var(--ink) !important;
	box-shadow: 0 8px 22px rgba(255, 201, 60, 0.3);
}

.btn-banana:hover {
	background: var(--banana-d);
}

.btn-ink {
	background: var(--ink);
	color: #fff !important;
}

.btn-ink:hover {
	background: var(--ink-3);
}

.btn-line {
	border-color: currentColor;
	color: var(--ink) !important;
	background: transparent;
}

.sec-dark .btn-line,
.hero .btn-line {
	color: #fff !important;
}

.btn-sm {
	min-height: 40px;
	padding: 8px 16px;
	font-size: 0.92rem;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.arrow::after {
	content: "\2192";
	display: inline-block;
	transition: transform 0.15s ease;
}

html[dir="rtl"] .arrow::after {
	content: "\2190";
}

.btn:hover .arrow::after,
a:hover > .arrow::after {
	transform: translateX(3px);
}

/* ------------------------------------------------------------------ header (shared everywhere) */
.tmx-head {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(19, 17, 28, 0.92);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-family: var(--font);
	color: #fff;
	line-height: 1.3;
}

.tmx-head *,
.tmx-foot * {
	box-sizing: border-box;
}

.tmx-head .tmx-bar {
	width: min(1280px, 100% - 32px);
	margin-inline: auto;
	height: var(--head-h);
	display: flex;
	align-items: center;
	gap: 18px;
}

.tmx-head .tmx-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.12rem;
	letter-spacing: -0.02em;
	flex-shrink: 0;
}

.tmx-head .tmx-logo svg {
	width: 36px;
	height: 36px;
	display: block;
	transition: transform 0.3s ease;
}

.tmx-head .tmx-logo:hover svg {
	transform: rotate(-10deg) scale(1.05);
}

.tmx-head .tmx-logo b {
	color: var(--banana);
	font-weight: 800;
}

.tmx-head .tmx-links {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0 0 0 auto;
	padding: 0;
}

html[dir="rtl"] .tmx-head .tmx-links {
	margin: 0 auto 0 0;
}

.tmx-head .tmx-links li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmx-head .tmx-links a {
	display: block;
	padding: 9px 11px;
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	position: relative;
	transition: color 0.15s ease, background 0.15s ease;
}

.tmx-head .tmx-links a::after {
	display: none;
}

.tmx-head .tmx-links a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
}

.tmx-head .tmx-links a[aria-current="page"] {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.tmx-head .tmx-links a .tmx-new {
	display: inline-block;
	margin-inline-start: 5px;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--banana);
	color: var(--ink);
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	vertical-align: 2px;
	text-transform: uppercase;
}

.tmx-head .tmx-lang {
	border: 1px solid rgba(255, 255, 255, 0.22);
	margin-inline-start: 6px;
}

.tmx-head .tmx-cta {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--pink);
	color: #fff !important;
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	white-space: nowrap;
	margin-inline-start: 8px;
	box-shadow: 0 6px 18px rgba(255, 51, 102, 0.35);
	transition: background 0.15s ease, transform 0.15s ease;
}

.tmx-head .tmx-cta:hover {
	background: var(--pink-d);
	transform: translateY(-1px);
}

.tmx-head .tmx-burger {
	display: none;
	margin-inline-start: auto;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 12px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	padding: 0;
	align-items: center;
	justify-content: center;
}

.tmx-head .tmx-burger span {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	position: relative;
	transition: background 0.2s ease;
}

.tmx-head .tmx-burger span::before,
.tmx-head .tmx-burger span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.2s ease, top 0.2s ease;
}

.tmx-head .tmx-burger span::before {
	top: -6px;
}

.tmx-head .tmx-burger span::after {
	top: 6px;
}

.tmx-head.open .tmx-burger span {
	background: transparent;
}

.tmx-head.open .tmx-burger span::before {
	top: 0;
	transform: rotate(45deg);
}

.tmx-head.open .tmx-burger span::after {
	top: 0;
	transform: rotate(-45deg);
}

.tmx-head .tmx-drawer {
	display: none;
}

@media (max-width: 1180px) {
	.tmx-head .tmx-links,
	.tmx-head .tmx-cta {
		display: none;
	}

	.tmx-head .tmx-burger {
		display: inline-flex;
	}

	.tmx-head.open .tmx-drawer {
		display: block;
	}

	.tmx-head .tmx-drawer {
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		padding: 10px 16px 22px;
		max-height: calc(100vh - var(--head-h));
		overflow-y: auto;
	}

	.tmx-head .tmx-drawer ul {
		list-style: none;
		margin: 0 auto;
		padding: 0;
		width: min(640px, 100%);
	}

	.tmx-head .tmx-drawer li {
		margin: 0;
		list-style: none;
	}

	.tmx-head .tmx-drawer a {
		display: block;
		padding: 13px 6px;
		color: #fff;
		text-decoration: none;
		font-size: 1.08rem;
		font-weight: 600;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	}

	.tmx-head .tmx-drawer a[aria-current="page"] {
		color: var(--banana);
	}

	.tmx-head .tmx-drawer .tmx-cta {
		display: flex;
		justify-content: center;
		margin: 18px 0 0;
		border: 0;
		padding: 14px;
	}
}

/* ------------------------------------------------------------------ footer (shared everywhere) */
footer.tmx-foot {
	background: var(--ink);
	color: var(--muted-dark);
	font-family: var(--font);
	font-size: 0.94rem;
	line-height: 1.6;
	padding: 72px 0 0;
	margin: 0;
	border: 0;
	border-top: 4px solid var(--banana);
	text-align: start;
	opacity: 1;
}

.tmx-foot .tmx-foot-grid {
	width: min(1280px, 100% - 40px);
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1.5fr repeat(4, 1fr);
	gap: 36px;
}

.tmx-foot .tmx-foot-brand p {
	margin: 14px 0 18px;
	max-width: 34ch;
	color: var(--muted-dark);
	font-size: 0.94rem;
}

.tmx-foot .tmx-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.2rem;
	margin: 0;
}

.tmx-foot .tmx-logo svg {
	width: 40px;
	height: 40px;
}

.tmx-foot .tmx-logo b {
	color: var(--banana);
}

.tmx-foot h4 {
	font-family: var(--font);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	margin: 6px 0 14px;
}

.tmx-foot ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tmx-foot li {
	margin: 0 0 9px;
	padding: 0;
	list-style: none;
}

.tmx-foot a {
	color: var(--muted-dark);
	text-decoration: none;
	margin: 0;
	opacity: 1;
	font-weight: 500;
	transition: color 0.15s ease;
}

.tmx-foot a:hover {
	color: var(--banana);
}

.tmx-foot .tmx-social {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.tmx-foot .tmx-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border-radius: 12px;
	border: 1px solid var(--line-dark);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.tmx-foot .tmx-social a:hover {
	background: var(--banana);
	color: var(--ink);
	border-color: var(--banana);
}

.tmx-foot .tmx-foot-bottom {
	width: min(1280px, 100% - 40px);
	margin: 56px auto 0;
	padding: 22px 0 28px;
	border-top: 1px solid var(--line-dark);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	font-size: 0.84rem;
	color: #8d879c;
}

.tmx-foot .tmx-foot-bottom p {
	margin: 0;
	color: #8d879c;
	font-size: 0.84rem;
}

.tmx-foot .tmx-foot-bottom a {
	color: #cfc9dc;
}

@media (max-width: 1000px) {
	.tmx-foot .tmx-foot-grid {
		grid-template-columns: 1fr 1fr;
	}

	.tmx-foot .tmx-foot-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.tmx-foot .tmx-foot-grid {
		grid-template-columns: 1fr;
	}
}

/* Older pages still contain the 2025 fixed nav and mobile drawer markup in a few places */
body.tmx-legacy #navbar,
body.tmx-legacy .mobile-nav {
	display: none !important;
}

body.tmx-legacy {
	padding-top: 0 !important;
}

/* ------------------------------------------------------------------ hero */
.hero {
	position: relative;
	background: var(--ink);
	color: #fff;
	overflow: hidden;
	padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
	isolation: isolate;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(600px 400px at 85% 10%, rgba(255, 51, 102, 0.28), transparent 70%),
		radial-gradient(500px 380px at 10% 90%, rgba(109, 74, 255, 0.26), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 44px 44px;
	z-index: -1;
	-webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
	mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}

.hero h1 {
	color: #fff;
	margin-bottom: 22px;
}

.hero h1 .hl {
	color: var(--banana);
	display: inline-block;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero h1 .hl.out {
	opacity: 0;
	transform: translateY(10px);
}

.hero .lead {
	color: var(--muted-dark);
	margin-bottom: 30px;
}

.hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px 7px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.88rem;
	font-weight: 600;
	color: #e9e5f3;
	margin-bottom: 24px;
}

.hero-kicker span {
	background: var(--pink);
	color: #fff;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 34px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats div {
	display: flex;
	flex-direction: column;
}

.hero-stats b {
	font-family: var(--display);
	font-size: 1.9rem;
	color: #fff;
	line-height: 1.1;
}

.hero-stats span {
	font-size: 0.86rem;
	color: var(--muted-dark);
}

.hero-art {
	position: relative;
}

.hero-art img {
	width: 100%;
	border-radius: 22px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-art .float-chip {
	position: absolute;
	background: #fff;
	color: var(--ink);
	padding: 10px 14px;
	border-radius: 14px;
	box-shadow: var(--shadow-lg);
	font-size: 0.86rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
	animation: bob 5s ease-in-out infinite;
}

.hero-art .float-chip i {
	font-style: normal;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--banana);
}

.hero-art .chip-a {
	top: 8%;
	inset-inline-start: -22px;
}

.hero-art .chip-b {
	bottom: 10%;
	inset-inline-end: -14px;
	animation-delay: -2.5s;
}

@keyframes bob {
	50% {
		transform: translateY(-8px);
	}
}

.page-hero {
	padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 7vw, 80px);
}

.page-hero h1 {
	font-size: clamp(2.3rem, 5vw, 3.9rem);
}

.page-hero .hero-grid {
	grid-template-columns: 1.15fr 0.85fr;
}

.crumbs {
	font-size: 0.85rem;
	color: var(--muted-dark);
	margin-bottom: 18px;
}

.crumbs a {
	color: var(--muted-dark);
	text-decoration: none;
}

.crumbs a:hover {
	color: #fff;
}

@media (max-width: 900px) {
	.hero-grid,
	.page-hero .hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-art .chip-a {
		inset-inline-start: 8px;
	}

	.hero-art .chip-b {
		inset-inline-end: 8px;
	}
}

/* ------------------------------------------------------------------ cards and grids */
.grid {
	display: grid;
	gap: 22px;
}

.g2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.g3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.g4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
	.g3,
	.g4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.g2,
	.g3,
	.g4 {
		grid-template-columns: 1fr;
	}
}

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow);
	position: relative;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.card {
	text-decoration: none;
	display: block;
	color: inherit;
}

a.card:hover,
.card.lift:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: #d9cfbf;
}

.card h3 {
	margin-bottom: 0.45em;
}

.card p {
	color: var(--muted);
	margin-bottom: 0.8em;
}

.card p:last-child {
	margin-bottom: 0;
}

.card .more {
	font-weight: 700;
	color: var(--pink-d);
	text-decoration: none;
	font-size: 0.95rem;
}

.sec-dark .card {
	background: var(--ink-2);
	border-color: var(--line-dark);
	box-shadow: none;
}

.sec-dark .card p {
	color: var(--muted-dark);
}

.icon-dot {
	width: 50px;
	height: 50px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	background: #ffe9ef;
	color: var(--pink-d);
}

.icon-dot svg {
	width: 26px;
	height: 26px;
}

.icon-dot.b {
	background: #fff4d4;
	color: #a77600;
}

.icon-dot.v {
	background: #ece7ff;
	color: var(--violet);
}

.icon-dot.t {
	background: #dcf6f2;
	color: #0b8277;
}

.tag {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--paper-2);
	color: var(--muted);
}

.tag.pink {
	background: #ffe3ea;
	color: var(--pink-d);
}

.tag.banana {
	background: #fff1c7;
	color: #8a6200;
}

.tag.violet {
	background: #ebe5ff;
	color: #5135d6;
}

.tag.teal {
	background: #d6f5f0;
	color: #097a6f;
}

/* split rows */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
}

.split.rev > :first-child {
	order: 2;
}

.split figure,
.figure {
	margin: 0;
}

.split figure img,
.figure img {
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	width: 100%;
}

.figure figcaption,
.split figcaption {
	font-size: 0.86rem;
	color: var(--muted);
	margin-top: 10px;
}

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

	.split.rev > :first-child {
		order: 0;
	}
}

.checks {
	list-style: none;
	padding: 0;
	margin: 0 0 1.4em;
}

.checks li {
	position: relative;
	padding-inline-start: 34px;
	margin-bottom: 12px;
}

.checks li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--banana) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313111c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* steps */
.steps {
	counter-reset: step;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.steps .card {
	padding-top: 66px;
}

.steps .card::before {
	counter-increment: step;
	content: "0" counter(step);
	position: absolute;
	top: 22px;
	inset-inline-start: 28px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--pink);
}

@media (max-width: 980px) {
	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

/* quick facts box (answer-first summaries) */
.facts {
	background: var(--card);
	border: 1px solid var(--line);
	border-inline-start: 5px solid var(--banana);
	border-radius: var(--radius-s);
	padding: 22px 26px;
	margin: 0 0 28px;
	box-shadow: var(--shadow);
}

.facts h2,
.facts h3 {
	font-size: 1.05rem;
	margin-bottom: 10px;
	font-family: var(--font);
	letter-spacing: 0;
}

.facts dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 18px;
	margin: 0;
	font-size: 0.97rem;
}

.facts dt {
	font-weight: 700;
	color: var(--ink);
}

.facts dd {
	margin: 0;
	color: var(--muted);
}

@media (max-width: 560px) {
	.facts dl {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.facts dd {
		margin-bottom: 8px;
	}
}

/* FAQ */
.faq {
	max-width: 860px;
}

.faq details {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	margin-bottom: 12px;
	transition: box-shadow 0.15s ease;
}

.faq details[open] {
	box-shadow: var(--shadow);
}

.faq summary {
	cursor: pointer;
	list-style: none;
	padding: 20px 56px 20px 22px;
	font-weight: 700;
	font-size: 1.05rem;
	position: relative;
}

html[dir="rtl"] .faq summary {
	padding: 20px 22px 20px 56px;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	position: absolute;
	inset-inline-end: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--paper-2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	font-weight: 600;
	transition: transform 0.2s ease, background 0.2s ease;
}

.faq details[open] summary::after {
	content: "\2212";
	background: var(--banana);
}

.faq .ans {
	padding: 0 22px 20px;
	color: var(--muted);
}

.faq .ans p:last-child {
	margin-bottom: 0;
}

/* CTA band */
.cta-band {
	background: linear-gradient(120deg, var(--pink) 0%, #ff5f6d 45%, var(--banana) 120%);
	color: #fff;
	border-radius: 28px;
	padding: clamp(36px, 6vw, 64px);
	display: grid;
	grid-template-columns: 1.3fr auto;
	gap: 28px;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.cta-band::after {
	content: "";
	position: absolute;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	inset-inline-end: -90px;
	top: -120px;
	background: rgba(255, 255, 255, 0.14);
}

.cta-band h2 {
	color: #fff;
	margin-bottom: 10px;
}

.cta-band p {
	color: rgba(255, 255, 255, 0.92);
	margin: 0;
	max-width: 56ch;
}

.cta-band .btn {
	position: relative;
	z-index: 1;
}

@media (max-width: 800px) {
	.cta-band {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ games */
.game-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

.game-card .shot {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--ink);
	overflow: hidden;
}

.game-card .shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.game-card:hover .shot img {
	transform: scale(1.05);
}

.game-card .shot .tag {
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
}

.game-card .body {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.game-card .body p {
	color: var(--muted);
	flex: 1;
	font-size: 0.97rem;
}

.game-card .play {
	font-weight: 700;
	color: var(--pink-d);
}

.sec-dark .game-card {
	background: var(--ink-2);
	border-color: var(--line-dark);
}

.sec-dark .game-card .body p {
	color: var(--muted-dark);
}

.sec-dark .game-card .play {
	color: var(--banana);
}

.game-feature {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 0;
	background: var(--ink-2);
	border: 1px solid var(--line-dark);
	border-radius: 24px;
	overflow: hidden;
	margin-bottom: 26px;
}

.game-feature .shot {
	position: relative;
	min-height: 320px;
}

.game-feature .shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.game-feature .body {
	padding: clamp(26px, 4vw, 48px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.game-feature h3 {
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	color: #fff;
}

@media (max-width: 860px) {
	.game-feature {
		grid-template-columns: 1fr;
	}

	.game-feature .shot {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
}

/* ------------------------------------------------------------------ proxy animation block */
.proxy-block {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.proxy-anim {
	background: radial-gradient(circle at 50% 50%, #221d38 0%, #13111c 70%);
	border: 1px solid var(--line-dark);
	border-radius: 24px;
	padding: 10px;
	position: relative;
	overflow: hidden;
	aspect-ratio: 560 / 400;
}

.proxy-anim svg {
	width: 100%;
	height: 100%;
	display: block;
}

.proxy-anim .ring {
	transform-origin: 280px 200px;
	animation: spin 26s linear infinite;
}

.proxy-anim .ring.r2 {
	animation-duration: 40s;
	animation-direction: reverse;
}

.proxy-anim .node-pulse {
	animation: pulse 2.4s ease-in-out infinite;
	transform-box: fill-box;
	transform-origin: center;
}

.proxy-anim .ip-label {
	font-family: var(--mono);
	font-size: 11px;
	fill: #a9a3bd;
}

.proxy-anim .ip-swap {
	animation: ipswap 6s steps(1) infinite;
}

.proxy-anim .ip-swap.s2 {
	animation-delay: -2s;
}

.proxy-anim .ip-swap.s3 {
	animation-delay: -4s;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes pulse {
	50% {
		transform: scale(1.18);
		opacity: 0.7;
	}
}

@keyframes ipswap {
	0%,
	33% {
		opacity: 1;
	}

	34%,
	100% {
		opacity: 0;
	}
}

.partner-btns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 22px 0 18px;
}

.partner-btn {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--ink-2);
	border: 1px solid var(--line-dark);
	color: #fff !important;
	text-decoration: none !important;
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
	position: relative;
}

.partner-btn:hover {
	transform: translateY(-2px);
	border-color: var(--pc, var(--banana));
	background: #252033;
}

.partner-btn b {
	font-size: 1.02rem;
	display: flex;
	align-items: center;
	gap: 8px;
}

.partner-btn b::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--pc, var(--banana));
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc, #ffc93c) 25%, transparent);
}

.partner-btn small {
	font-size: 0.82rem;
	color: var(--muted-dark);
	line-height: 1.4;
}

.partner-btn code {
	background: rgba(255, 201, 60, 0.16);
	color: var(--banana);
	font-size: 0.82rem;
}

.guide-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.guide-links a {
	display: inline-flex;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--line-dark);
	color: #f1eef8 !important;
	text-decoration: none !important;
	font-size: 0.9rem;
	font-weight: 600;
}

.guide-links a:hover {
	background: var(--banana);
	color: var(--ink) !important;
	border-color: var(--banana);
}

.disclose {
	font-size: 0.8rem;
	color: #8d879c !important;
	margin-top: 14px;
}

@media (max-width: 900px) {
	.proxy-block {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 460px) {
	.partner-btns {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ TV block */
.tv-block {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.tv-frame {
	position: relative;
	padding: 14px 14px 30px;
	background: linear-gradient(180deg, #1a1a1f, #0b0b0e);
	border-radius: 20px;
	box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tv-frame::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -26px;
	width: 34%;
	height: 26px;
	transform: translateX(-50%);
	background: linear-gradient(180deg, #2a2a30, #121216);
	clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}

.tv-screen {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}

.tv-screen img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	animation: tvcycle 24s infinite;
}

.tv-screen img:nth-child(1) { animation-delay: 0s; }
.tv-screen img:nth-child(2) { animation-delay: 4s; }
.tv-screen img:nth-child(3) { animation-delay: 8s; }
.tv-screen img:nth-child(4) { animation-delay: 12s; }
.tv-screen img:nth-child(5) { animation-delay: 16s; }
.tv-screen img:nth-child(6) { animation-delay: 20s; }

@keyframes tvcycle {
	0% { opacity: 0; }
	3% { opacity: 1; }
	16.6% { opacity: 1; }
	20% { opacity: 0; }
	100% { opacity: 0; }
}

.tv-screen .live {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 2;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	padding: 5px 10px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tv-screen .live::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff3b3b;
	animation: pulse 1.6s infinite;
}

.lg-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--line);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--ink);
	margin-bottom: 18px;
}

.lg-badge .lg-dot {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #a50034;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: 800;
}

.chan-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 18px 0 22px;
}

.chan {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--card);
	text-decoration: none !important;
	color: var(--ink) !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chan:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.chan img {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}

.chan b {
	display: block;
	font-size: 0.98rem;
	line-height: 1.2;
}

.chan small {
	color: var(--muted);
	font-size: 0.8rem;
}

@media (max-width: 900px) {
	.tv-block {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	.chan-list {
		grid-template-columns: 1fr;
	}
}

.channel-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}

.channel-card .shot img {
	width: 100%;
	aspect-ratio: 1920 / 630;
	object-fit: cover;
}

.channel-card .body {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.channel-card .body p {
	color: var(--muted);
	flex: 1;
}

/* ------------------------------------------------------------------ misc content */
.prose {
	max-width: 760px;
}

.prose h2 {
	margin-top: 1.6em;
}

.prose h3 {
	margin-top: 1.4em;
}

.prose > :first-child {
	margin-top: 0;
}

.gif-fig {
	margin: 32px auto;
	text-align: center;
	max-width: 100%;
}

.gif-fig img {
	display: block;
	margin: 0 auto;
	border-radius: 14px;
	box-shadow: var(--shadow);
	max-width: 100%;
	height: auto;
}

.gif-fig figcaption {
	font-size: 0.86rem;
	color: var(--muted);
	margin-top: 10px;
}

.sec-dark .gif-fig figcaption {
	color: var(--muted-dark);
}

.quote {
	font-family: var(--display);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	line-height: 1.25;
	letter-spacing: -0.02em;
	max-width: 26ch;
	margin: 0;
	color: var(--ink);
}

.quote::before {
	content: "\201C";
	color: var(--pink);
}

.quote::after {
	content: "\201D";
	color: var(--pink);
}

.math {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.math div {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	padding: 20px;
	text-align: center;
}

.math b {
	display: block;
	font-family: var(--display);
	font-size: 2rem;
	color: var(--ink);
}

.math span {
	color: var(--muted);
	font-size: 0.9rem;
}

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

.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	background: var(--card);
}

.table-wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.96rem;
}

.table-wrap th,
.table-wrap td {
	padding: 14px 16px;
	text-align: start;
	border-bottom: 1px solid var(--line);
}

.table-wrap th {
	background: var(--paper-2);
	font-weight: 700;
}

.table-wrap tr:last-child td {
	border-bottom: 0;
}

.people {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.person {
	display: flex;
	gap: 18px;
	align-items: center;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px;
	box-shadow: var(--shadow);
}

.person img {
	width: 96px;
	height: 116px;
	object-fit: cover;
	border-radius: 14px;
	flex-shrink: 0;
}

.person h3 {
	margin-bottom: 2px;
}

.person p {
	margin: 0 0 6px;
	color: var(--muted);
	font-size: 0.95rem;
}

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

.brand-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
}

.brand-card .pics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	background: var(--line);
}

.brand-card .pics img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	background: #fff;
}

.brand-card .pics.one {
	grid-template-columns: 1fr;
}

.brand-card .pics.one img {
	aspect-ratio: 16 / 9;
}

.brand-card .body {
	padding: 20px 22px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.brand-card .body p {
	color: var(--muted);
	flex: 1;
	font-size: 0.96rem;
}

.coupon {
	display: inline-block;
	background: #fff1c7;
	color: #6d4e00;
	border: 1px dashed #d9a400;
	border-radius: 10px;
	padding: 6px 10px;
	font-size: 0.88rem;
	font-weight: 700;
	margin-bottom: 12px;
}

.notice {
	background: #fff8e6;
	border: 1px solid #f3dc9b;
	border-radius: var(--radius-s);
	padding: 16px 20px;
	font-size: 0.94rem;
	color: #5c4a16;
}

.src-list {
	font-size: 0.94rem;
	columns: 2;
	column-gap: 40px;
}

.src-list li {
	break-inside: avoid;
}

@media (max-width: 700px) {
	.src-list {
		columns: 1;
	}
}

.updated {
	font-size: 0.86rem;
	color: var(--muted);
}

.marquee {
	overflow: hidden;
	border-block: 1px solid var(--line);
	background: var(--card);
	padding: 18px 0;
}

.marquee-track {
	display: flex;
	gap: 48px;
	width: max-content;
	animation: marquee 40s linear infinite;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--muted);
	white-space: nowrap;
}

.marquee-track span::before {
	content: "\25CF";
	color: var(--banana-d);
	margin-inline-end: 48px;
	font-size: 0.7em;
	vertical-align: 2px;
}

@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}

html[dir="rtl"] .marquee-track {
	animation-name: marquee-rtl;
}

@keyframes marquee-rtl {
	to {
		transform: translateX(50%);
	}
}

html.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	html.js .reveal {
		opacity: 1;
		transform: none;
	}

	.tv-screen img:first-child {
		opacity: 1;
	}
}

@media print {
	.tmx-head,
	.tmx-foot,
	.cta-band {
		display: none !important;
	}
}

/* ------------------------------------------------------------------ blocks added to older pages */
.tmx-gif-block {
	max-width: 1000px;
	margin: 56px auto;
	padding: 0 20px;
	text-align: center;
	font-family: var(--font);
}

.tmx-gif-block figure {
	margin: 0;
}

.tmx-gif-block img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.tmx-gif-block figcaption {
	margin-top: 10px;
	font-size: 0.88rem;
	opacity: 0.75;
}

.tmx-page-note {
	text-align: center;
	font-family: var(--font);
	font-size: 0.88rem;
	opacity: 0.75;
	margin: 32px auto;
	padding: 0 20px;
}

/* Older pages carry their own element styles (header, nav a, tables). Keep them off the shared chrome. */
header.tmx-head {
	padding: 0 !important;
	text-align: start;
}

.tmx-head nav a,
.tmx-head a {
	margin: 0;
}

footer.tmx-foot {
	text-align: start;
}

body.tmx-legacy img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 760px) {
	body.tmx-legacy table:not([class]),
	body.tmx-legacy table:not([class]) > tbody,
	body.tmx-legacy table:not([class]) > tbody > tr,
	body.tmx-legacy table:not([class]) > tbody > tr > td {
		display: block;
		width: auto !important;
		max-width: 100%;
	}
}
body.tmx-legacy iframe { max-width: 100%; }
