/* Landing pages only: index.html and the translated copies (pt-br, es, tr, ru).
   Colours and fonts come from style.css. */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* ---------- arena hero ---------- */
/* Full width, so it cancels the 20px body padding.
   min-height, not height: if the panel needs more room the arena grows. */
.arena {
	position: relative;
	margin: 0 -20px;
	min-height: clamp(420px, 66vh, 615px);
	min-height: clamp(420px, 66svh, 615px);
	overflow: hidden;
	background: var(--bg);
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px max(20px, 7vw) 32px;
}

/* ---------- menu, top right ---------- */
.top-nav {
	position: relative;
	align-self: flex-end;
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	background: var(--panel);
	background: color-mix(in srgb, var(--panel) 94%, transparent);
	border-radius: 999px;
	padding: 6px;
	font-size: 14px;
}

.top-nav a {
	margin: 0;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
}

.top-nav a:hover,
.top-nav a:focus {
	background: var(--chip);
	color: var(--text);
}

.top-nav a.nav-play {
	background: var(--accent);
	color: var(--bg);
	font-family: var(--font-display);
}

.top-nav a.nav-play:hover,
.top-nav a.nav-play:focus {
	background: var(--text);
	color: var(--bg);
}

.block {
	scroll-margin-top: 24px; /* don't stick the heading to the top after a menu click */
}

.arena canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.arena-panel {
	position: relative;
	margin: auto 0; /* centres it in the space under the menu */
	width: 100%;
	max-width: 440px;
	background: var(--panel);
	background: color-mix(in srgb, var(--panel) 94%, transparent);
	border-radius: var(--radius);
	padding: 32px 32px 26px;
}

.arena-panel h1 {
	margin: 0;
	text-align: left;
}

.arena-panel h1 img {
	width: 104px;
	height: 104px;
	display: block;
	border-radius: 15%;
}

.tagline {
	font-family: var(--font-display);
	font-size: 28px;
	line-height: 1.15;
	margin: 22px 0 10px;
}

.arena-panel .lead {
	color: var(--text-mute);
	margin: 0 0 18px;
}

/* Official Google Play badge. It has padding built in, so pull it left a bit. */
.play-badge {
	display: inline-block;
	margin-left: -10px;
}

.play-badge img {
	display: block;
	height: 76px;
	width: auto;
}

@media (max-width: 619px) {
	/* Phone: menu across the top, Play button left out because the badge is right below */
	.top-nav {
		align-self: center;
		font-size: 13px;
	}
	.top-nav a {
		padding: 8px 10px;
	}
	.top-nav a.nav-play {
		display: none;
	}
	.arena-panel {
		align-self: center;
		text-align: center;
		padding: 26px 22px 20px;
	}
	.arena-panel h1 img {
		margin: 0 auto;
	}
	.tagline {
		font-size: 24px;
	}
	.play-badge {
		margin-left: 0;
	}
}

/* ---------- sections ---------- */
.page {
	max-width: 980px;
	margin: 0 auto;
}

.block {
	margin-top: 80px;
}

.block h2 {
	font-size: 30px;
	margin: 0 0 8px;
}

.block .intro-line {
	color: var(--text-mute);
	margin: 0 0 28px;
	max-width: 560px;
}

/* ---------- modes, like the server list in the game ---------- */
.modes {
	display: grid;
	gap: 10px;
}

.mode {
	display: grid;
	grid-template-columns: 210px 1fr auto;
	align-items: center;
	gap: 8px 24px;
	background: var(--panel);
	border-radius: 18px;
	padding: 18px 24px;
}

.mode-name {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--font-display);
	font-size: 19px;
}

.mode p {
	margin: 0;
	color: var(--text-mute);
	font-size: 15px;
	line-height: 1.5;
}

.tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.tag {
	font-size: 12px;
	line-height: 1;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--bg);
	color: var(--text);
	white-space: nowrap;
}

.cell {
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
}

@media (max-width: 760px) {
	.mode {
		grid-template-columns: 1fr;
		padding: 18px 20px;
	}
	.tags {
		justify-content: flex-start;
	}
}

/* ---------- what's inside ---------- */
.inside {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px 48px;
}

@media (min-width: 620px) {
	.inside {
		grid-template-columns: 1fr 1fr;
	}
}

.inside li {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 16px;
	margin: 0;
}

.icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
}

.inside strong {
	display: block;
	font-family: var(--font-display);
	font-weight: normal;
	font-size: 17px;
	line-height: 1.3;
}

.inside div span {
	display: block;
	color: var(--text-mute);
	font-size: 15px;
	line-height: 1.5;
	margin-top: 2px;
}

/* ---------- weekly ---------- */
.weekly {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: center;
}

@media (min-width: 820px) {
	.weekly {
		grid-template-columns: 1fr 1fr;
		gap: 56px;
	}
}

.weekly .intro-line {
	margin-bottom: 16px;
}

.weekly ul {
	color: var(--text-mute);
	margin: 0;
}

.board {
	list-style: none;
	margin: 0;
	padding: 10px 24px;
	background: var(--panel);
	border-radius: var(--radius);
}

.board li {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}

.board li:last-child {
	border-bottom: 0;
}

.rank {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--chip);
	font-family: var(--font-display);
	font-size: 15px;
	line-height: 32px;
	text-align: center;
}

.rank.r1 { background: var(--gold); color: var(--bg); }
.rank.r2 { background: var(--silver); color: var(--bg); }
.rank.r3 { background: var(--bronze); color: var(--bg); }

.board .place {
	flex: 1;
}

.coins {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	color: var(--gold);
	white-space: nowrap;
}

.coin {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: inset 0 0 0 3px var(--gold-edge);
}

/* ---------- faq ---------- */
.faq {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px 48px;
}

@media (min-width: 620px) {
	.faq {
		grid-template-columns: 1fr 1fr;
	}
}

.faq h3 {
	margin: 0 0 6px;
	color: var(--text);
}

.faq p {
	margin: 0;
	color: var(--text-mute);
	font-size: 15px;
	line-height: 1.6;
}

/* ---------- browser version + discord ---------- */
.discord-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	background: var(--discord-bg);
	border: 3px solid var(--discord-edge);
	border-radius: var(--radius);
	padding: 22px 26px;
}

.discord-box p {
	margin: 0;
	color: var(--text);
	max-width: 440px;
}

.btn-white {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--text);
	color: var(--discord-bg);
	font-family: var(--font-display);
	font-size: 16px;
	text-decoration: none;
	padding: 12px 26px;
	border-radius: 999px;
	white-space: nowrap;
}

.btn-white:hover,
.btn-white:focus {
	color: var(--discord-bg);
	background: var(--discord-hover);
}

.discord-mark {
	width: 22px;
	height: auto;
}

/* ---------- last call to play ---------- */
.cta {
	text-align: center;
}

.cta .intro-line {
	margin: 0 auto 12px;
}

.cta .play-badge {
	margin-left: 0;
}

footer {
	margin-top: 80px;
}

/* Language links under the footer */
.langs {
	margin-top: 6px;
}
