/* Strategery — landing page.
   Dark hex-tiled ground, rainbow wordmark, four blob colors doing the work. */

:root {
	--ground:     #262626;
	--ground-2:   #1c1c1c;
	--panel:      rgba(255, 255, 255, .05);
	--line:       rgba(255, 255, 255, .10);
	--ink:        #f4f4f2;
	--muted:      #b9b9b4;

	/* The four enemy colors, lifted from the art. */
	--green:  #43b047;
	--orange: #f5b400;
	--blue:   #1e7ad0;
	--red:    #e5312b;

	--display: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
	--body:    Mulish, "Avenir Next", -apple-system, BlinkMacSystemFont,
	           "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wrap: 1120px;
	--ease: cubic-bezier(.2, .8, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ground) url("../img/bg-hex-tile.png") repeat;
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

h1, h2, h3 {
	font-family: var(--display);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: .005em;
	margin: 0;
}

.c-green  { color: var(--green); }
.c-orange { color: var(--orange); }
.c-blue   { color: #4aa3ff; }
.c-red    { color: #ff5d57; }

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 10;
	padding: 8px 14px; border-radius: 8px;
	background: var(--ink); color: var(--ground); font-weight: 800;
}
.skip:focus { top: 12px; }

/* ── Header ── */

.top {
	display: flex;
	justify-content: center;
	padding: clamp(28px, 5vw, 56px) 20px 0;
}

.brand { display: block; width: min(560px, 82vw); }
.brand img {
	width: 100%;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55));
	animation: settle .9s var(--ease) both;
}

/* ── Shared section rhythm ── */

section {
	position: relative;
	width: min(var(--wrap), 100%);
	margin: 0 auto;
	padding: clamp(48px, 8vw, 96px) 20px;
}

h2 {
	font-size: clamp(30px, 4.6vw, 48px);
	margin-bottom: .5em;
}

/* ── Buttons ── */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	border-radius: 14px;
	font-weight: 800;
	font-size: 17px;
	line-height: 1.1;
	text-decoration: none;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}

.btn.primary {
	background: var(--ink);
	color: #111;
	box-shadow: 0 6px 0 #8f8f8a, 0 18px 30px rgba(0, 0, 0, .45);
}
.btn.primary small {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: .7;
}
.btn.primary span { text-align: left; font-size: 20px; }
.btn.primary svg { flex: 0 0 auto; }

.btn.ghost {
	color: var(--ink);
	border: 2px solid var(--line);
	background: var(--panel);
}

.btn:hover { transform: translateY(-2px); }
.btn.primary:hover { box-shadow: 0 8px 0 #8f8f8a, 0 22px 34px rgba(0, 0, 0, .5); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 3px 0 #8f8f8a, 0 10px 18px rgba(0, 0, 0, .45); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .28); }

/* ── Hero ── */

.hero {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
	padding-top: clamp(40px, 6vw, 72px);
}

.hero h1 {
	font-size: clamp(38px, 6.4vw, 70px);
	animation: rise .8s var(--ease) .15s both;
}
.hero h1 em {
	font-style: normal;
	display: block;
	background: linear-gradient(92deg, var(--green) 0%, var(--orange) 34%, var(--blue) 67%, var(--red) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	/* Slab serifs go thin at the joins; a soft glow keeps the gradient reading as solid. */
	filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .35));
}
.hero h1 .ellipsis { letter-spacing: -.02em; }

.lede {
	font-size: clamp(17px, 2vw, 21px);
	max-width: 56ch;
	color: var(--ink);
	margin: 1.2em 0 1.6em;
	animation: rise .8s var(--ease) .3s both;
}
.lede b { font-weight: 900; }

.cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	animation: rise .8s var(--ease) .42s both;
}

.fine {
	margin: 18px 0 0;
	font-size: 14px;
	color: var(--muted);
	animation: rise .8s var(--ease) .52s both;
}

.hero-art {
	margin: 0;
	animation: settle 1s var(--ease) .2s both;
}
.hero-art img {
	width: min(440px, 100%);
	margin: 0 auto;
	border-radius: 28px;
	transform: rotate(3deg);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .06);
	transition: transform .5s var(--ease);
}
.hero-art:hover img { transform: rotate(-1deg) scale(1.02); }

/* Four blobs drifting behind the hero copy. Pure decoration. */
.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: visible; }
.blob {
	position: absolute;
	width: 180px; height: 180px;
	opacity: .18;
	filter: blur(2px);
	animation: morph 14s ease-in-out infinite alternate, drift 22s ease-in-out infinite alternate;
	border-radius: 58% 42% 55% 45% / 47% 55% 45% 53%;
}
.blob.green  { background: var(--green);  left: -60px;  top: -20px; }
.blob.orange { background: var(--orange); left: 46%;    top: 70%;  animation-delay: -4s, -6s; width: 140px; height: 140px; }
.blob.blue   { background: var(--blue);   right: -40px; top: -30px; animation-delay: -8s, -11s; width: 220px; height: 220px; }
.blob.red    { background: var(--red);    left: 22%;    top: 88%;  animation-delay: -2s, -15s; width: 120px; height: 120px; }

/* ── Three ways to play ── */

.modes { text-align: center; }

.cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	text-align: left;
}

.card {
	position: relative;
	overflow: hidden;
	padding: 28px 26px 30px;
	border-radius: 22px;
	background: var(--panel);
	border: 1px solid var(--line);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
	transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .22); }

.region-wrap {
	position: absolute;
	right: -44px; top: -54px;
	width: 156px; height: 156px;
	animation: bob 6s ease-in-out infinite;
	animation-delay: calc(var(--i) * -2s);
}
.region-wrap.green  { color: var(--green); }
.region-wrap.blue   { color: var(--blue); }
.region-wrap.orange { color: var(--orange); }

.card-blob { display: block; width: 100%; height: 100%; overflow: visible; }
.card-blob .region {
	fill: currentColor;
	stroke: rgba(0, 0, 0, .45);
	stroke-width: 3;
	stroke-linejoin: round;
	filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
}
/* Unfilled pegs are a pale tint of the region; filled ones are a dark shade with a glint. */
.card-blob .peg    { fill: rgba(255, 255, 255, .34); }
.card-blob .peg.on { fill: rgba(0, 0, 0, .42); stroke: rgba(255, 255, 255, .28); stroke-width: 2; }

.blob.green,  .dot.green  { background: var(--green); }
.blob.orange, .dot.orange { background: var(--orange); }
.blob.blue,   .dot.blue   { background: var(--blue); }
.blob.red,    .dot.red    { background: var(--red); }

.kicker {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}
.card h3 { font-size: 24px; margin-bottom: 10px; max-width: 70%; }
.card .kicker { max-width: 70%; }
.card p:last-child { margin: 0; color: var(--muted); }

/* ── How it's played ── */

.play {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
}
.play-art { margin: 0; }
.play-art img {
	width: min(420px, 100%);
	margin: 0 auto;
	border-radius: 28px;
	transform: rotate(-2deg);
	box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .06);
}
.play-copy p { color: var(--muted); }

.rules {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: grid;
	gap: 10px;
	font-weight: 700;
}
.rules li { display: flex; align-items: center; gap: 12px; }
.dot {
	flex: 0 0 auto;
	width: 18px; height: 18px;
	border-radius: 58% 42% 55% 45% / 47% 55% 45% 53%;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
}

/* ── Screenshots ── */

.shots { text-align: center; }
.shots .sub { margin: -8px 0 40px; color: var(--muted); }

.phones {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(14px, 2.5vw, 28px);
	align-items: start;
}

.phone .screen {
	transform: translateY(calc(var(--i) * 10px - 15px)) rotate(calc(var(--i) * 2deg - 3deg));
	transition: transform .4s var(--ease);
}
.phone:hover .screen { transform: translateY(-8px) rotate(0); }

.phone .screen {
	padding: 8px;
	border-radius: 34px;
	background: #111;
	box-shadow: 0 0 0 2px #3a3a3a, 0 30px 60px rgba(0, 0, 0, .6);
}
.phone .screen img {
	width: 100%;
	height: auto;
	aspect-ratio: 1206 / 2622;
	object-fit: cover;
	border-radius: 26px;
	display: block;
}

.phone-caption {
	margin: 16px 8px 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--muted);
}
.phone-caption b { color: var(--ink); font-weight: 800; }

/* ── Reassurance ── */

.peace {
	text-align: center;
	padding-bottom: clamp(72px, 10vw, 128px);
}
.peace p {
	max-width: 62ch;
	margin: 0 auto 32px;
	color: var(--muted);
	font-size: clamp(17px, 2vw, 20px);
}

/* ── Footer ── */

.bottom {
	border-top: 1px solid var(--line);
	padding: 36px 20px 44px;
	text-align: center;
	color: var(--muted);
	font-size: 15px;
}
.bottom p { margin: 0 0 6px; }
.bottom .credits {
	margin: 0 auto 18px;
	max-width: 52ch;
	font-size: 17px;
	line-height: 1.5;
	color: var(--ink);
}
.bottom a { color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange); }
.bottom a:hover { color: #fff; text-decoration-color: var(--green); }
.bottom .legal a { font-weight: 700; }
.bottom b { color: var(--ink); font-weight: 900; }
.bottom .legal { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* ── Motion ── */

@keyframes rise   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob    { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes settle { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }

@keyframes morph {
	0%   { border-radius: 58% 42% 55% 45% / 47% 55% 45% 53%; }
	50%  { border-radius: 42% 58% 45% 55% / 55% 45% 58% 42%; }
	100% { border-radius: 50% 50% 60% 40% / 40% 60% 45% 55%; }
}
@keyframes drift {
	from { transform: translate(0, 0) rotate(0); }
	to   { transform: translate(40px, 30px) rotate(20deg); }
}

/* ── Responsive ── */

@media (max-width: 860px) {
	.hero { grid-template-columns: 1fr; text-align: center; }
	.hero-copy { order: 1; }
	.hero-art { order: 0; }
	.hero-art img { width: min(300px, 70vw); }
	.lede { margin-left: auto; margin-right: auto; }
	.cta { justify-content: center; }

	.cards { grid-template-columns: 1fr; }
	.card h3 { max-width: 70%; }

	.play { grid-template-columns: 1fr; text-align: center; }
	.play-art img { width: min(300px, 70vw); }
	.rules { text-align: left; max-width: 420px; margin-left: auto; margin-right: auto; }

	.phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.phone .screen { transform: none; }
	.phone .screen { padding: 6px; border-radius: 26px; }
	.phone .screen img { border-radius: 20px; }
	.phone-caption { font-size: 13px; margin: 10px 2px 0; }
	.btn.primary { width: 100%; justify-content: center; }
	.btn.ghost   { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

/* ── Footer nav ── */

.foot-nav { display: flex; justify-content: center; gap: 22px; margin: 6px 0 10px; }
.foot-nav a { color: var(--muted); font-weight: 700; text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }

/* ── Text pages (privacy, terms, contact) ── */

.top.small { padding-top: clamp(22px, 4vw, 36px); }
.top.small .brand { width: min(320px, 60vw); }

.doc {
	width: min(760px, 100%);
	margin: 0 auto;
	padding: clamp(28px, 5vw, 56px) 20px clamp(56px, 8vw, 96px);
}
.doc.narrow { width: min(560px, 100%); }

.doc h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: .5em; }
.doc h2 { font-size: clamp(21px, 2.8vw, 26px); margin: 1.8em 0 .5em; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 0 0 1em; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: #fff; }
.doc b { color: var(--ink); font-weight: 800; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .55em; }
.doc .caps { font-size: 14px; line-height: 1.6; }

.doc-kicker {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--muted);
}
.doc .lede-doc { font-size: clamp(17px, 2vw, 20px); color: var(--ink); margin-bottom: 1.4em; }

/* ── Contact form ── */

.form-card {
	padding: clamp(20px, 4vw, 32px);
	border-radius: 22px;
	background: var(--panel);
	border: 1px solid var(--line);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}

.field { margin-bottom: 18px; }
.field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	color: var(--muted);
}
.field .req { color: #ff5d57; }
.field .opt { font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=number], .field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: rgba(0, 0, 0, .35);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	outline: none;
	transition: border-color .2s;
	resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { min-height: 140px; }
.field .hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-row .question { font-weight: 800; white-space: nowrap; color: var(--ink); }
.captcha-row input { width: 90px !important; text-align: center; }
.hp { display: none; }

.btn.wide { width: 100%; justify-content: center; margin-top: 6px; border: 0; cursor: pointer; font-family: inherit; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

.notice {
	padding: 14px 18px;
	border-radius: 14px;
	margin-bottom: 16px;
	font-size: 15px;
	line-height: 1.5;
}
.notice strong { display: block; font-size: 18px; margin-bottom: 2px; }
.notice.ok  { background: rgba(67, 176, 71, .15); border: 1px solid rgba(67, 176, 71, .45); color: #9ee6a1; text-align: center; padding: 22px; }
.notice.bad { background: rgba(229, 49, 43, .15); border: 1px solid rgba(229, 49, 43, .45); color: #ffb4b0; }
.notice.bad a { color: inherit; }

/* ── Press page ── */

.doc.press { width: min(820px, 100%); }
.doc.press h1 { line-height: 1.1; }
.press-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 2em; }
.press-links .btn { margin: 0; }
.doc .dateline { color: var(--ink); }

.press-then-now {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: end;
	margin: 2em 0;
	padding: 24px;
	border-radius: 22px;
	background: var(--panel);
	border: 1px solid var(--line);
}
.press-then-now > div { text-align: center; }
.press-then-now img {
	display: block;
	margin: 0 auto;
	width: auto;
	max-width: 100%;
	height: 420px;
	border-radius: 14px;
	box-shadow: 0 0 0 2px #3a3a3a, 0 20px 40px rgba(0, 0, 0, .5);
}
.press-then-now .then img { image-rendering: auto; }
.press-then-now figcaption { margin-top: 12px; font-size: 14px; font-weight: 800; color: var(--muted); }

.doc blockquote {
	margin: 0 0 1em;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--orange);
}
.doc blockquote p { color: var(--ink); font-size: 1.05em; }

.facts { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; font-size: 16px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.facts th { color: var(--ink); font-weight: 800; white-space: nowrap; width: 1%; padding-right: 24px; }
.facts td { color: var(--muted); }

.press-phones { margin: 1.5em 0 1em; }
.press-phones .screen { display: block; }
.press-phones .phone-caption { text-align: center; }
.doc .asset-list { font-size: 15px; }
.doc .asset-list a { font-weight: 700; }

@media (max-width: 720px) {
	.press-then-now { grid-template-columns: 1fr; }
	.press-then-now img { height: 360px; }
}

/* Press page body copy: a few shades whiter than the muted gray the legal pages use. */
.doc.press p, .doc.press li, .doc.press .facts td, .doc.press figcaption, .doc.press .phone-caption { color: #dcdcd8; }
.doc.press .doc-kicker { color: #c6c6c1; }
