/* The MakiaMC server page: the hero with the server's list entry, the three game modes, the version range, how to join. */

/* The list entry: drawn like the multiplayer list of the game, filled with the live status. */
.listing {
	position: relative;
	z-index: 1;
	display: grid;
	gap: var(--s-5);
	width: min(100%, 500px);
	padding: var(--s-6);
	border-radius: var(--r-lg);
	background: linear-gradient(180deg, color-mix(in srgb, var(--card) 88%, transparent), color-mix(in srgb, var(--mist-1) 92%, transparent));
	box-shadow: var(--shadow-3);
}
.listing__cap { font-size: var(--t-xs); color: var(--ink-3); }
.entry { direction: ltr; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); padding: var(--s-3); border-radius: var(--r-md); background: var(--paper); }
.entry__icon { width: 64px; height: 64px; border-radius: 6px; image-rendering: auto; }
.entry__body { min-width: 0; display: grid; gap: 2px; }
.entry__name { font-weight: 700; font-size: var(--t-base); line-height: 1.4; }
.entry__motd { font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry__side { display: grid; justify-items: end; gap: var(--s-2); }
.entry__players { font-size: var(--t-sm); font-weight: 600; color: var(--ink-3); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.bars i { width: 4px; border-radius: 1px; background: var(--mist-3); }
.bars i:nth-child(1) { height: 4px; }
.bars i:nth-child(2) { height: 7px; }
.bars i:nth-child(3) { height: 10px; }
.bars i:nth-child(4) { height: 13px; }
.bars i:nth-child(5) { height: 16px; }
.bars[data-level="1"] i:nth-child(-n+1), .bars[data-level="2"] i:nth-child(-n+2), .bars[data-level="3"] i:nth-child(-n+3), .bars[data-level="4"] i:nth-child(-n+4), .bars[data-level="5"] i { background: var(--ok); }
.bars[data-level="1"] i:nth-child(-n+1) { background: var(--bad); }
.bars[data-level="2"] i:nth-child(-n+2) { background: var(--warn); }
.entry.is-down .entry__name { color: var(--ink-3); }

.ipbox { display: grid; gap: var(--s-1); justify-items: start; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--violet-soft); }
.ipbox__label { font-size: var(--t-xs); color: var(--violet-deep); }
.ipbox__ip { font: 700 var(--t-lg) var(--font-mono); color: var(--ink); letter-spacing: 0.02em; user-select: all; }

.hero__facts dd.is-up { color: var(--ok); }
.hero__facts dd.is-down { color: var(--ink-3); }

/* The game modes --------------------------------------------------------- */
.modes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.mode {
	--mode: var(--ok);
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
	min-height: 360px;
	padding: var(--s-6);
	border-radius: var(--r-lg);
	background: linear-gradient(170deg, color-mix(in srgb, var(--mode) 13%, var(--card)), var(--card) 70%);
	box-shadow: var(--shadow-1);
}
.mode--prison { --mode: var(--warn); }
.mode--practice { --mode: var(--bad); }
.mode__tag { font-family: var(--font-display); font-weight: 700; font-size: var(--t-2xl); line-height: 1; color: var(--mode); }
.mode h3 { font-size: var(--t-md); }
.mode__points { display: grid; gap: var(--s-2); margin-block-start: auto; padding-block-start: var(--s-4); }
.mode__points li { position: relative; padding-inline-start: 1.4rem; font-size: var(--t-sm); color: var(--ink-2); }
.mode__points li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0.85em; width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--mode); transform: rotate(45deg); }

/* The version range ------------------------------------------------------ */
.range { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-6); padding: var(--s-7) var(--s-7); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-2); }
.range__end { display: grid; gap: 0; text-align: center; }
.range__end b { font-family: var(--font-display); font-size: var(--t-3xl); line-height: 1.1; color: var(--violet-deep); }
.range__line { display: flex; align-items: center; justify-content: space-between; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--lilac), var(--violet)); }
.range__line i { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px var(--violet); }

/* How to join ------------------------------------------------------------ */
.join .steps { max-width: 46em; }
.join .step h3 { font-size: var(--t-md); }

/* The two products it pairs with ----------------------------------------- */
.together__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.together__card { display: grid; gap: var(--s-3); align-content: start; color: var(--ink); text-decoration: none; }
.together__card:hover { text-decoration: none; }
.together__card[data-pick="launcher"] { background: linear-gradient(150deg, #3b1738, var(--card)); }
.together__card[data-pick="client"] { background: linear-gradient(150deg, #2c2052, var(--card)); }
.together__go { color: var(--violet); font-weight: 600; font-size: var(--t-sm); }

@media (max-width: 1000px) {
	.modes__grid { grid-template-columns: 1fr; }
	.mode { min-height: 0; }
	.range { grid-template-columns: 1fr; text-align: center; padding: var(--s-6); }
	.range__line { height: 4px; }
	.together__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.entry { grid-template-columns: 52px minmax(0, 1fr); }
	.entry__icon { width: 52px; height: 52px; }
	.entry__side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
	.ipbox__ip { font-size: var(--t-md); }
}

.modes__lobby { margin-block-start: var(--s-5); max-width: 46em; }
.versions__note { margin-block-start: var(--s-5); max-width: 46em; }
