@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond-latin-600.woff2") format("woff2");
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: Inter;
	src: url("../fonts/inter-latin-variable.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
}
@font-face {
	font-family: "Yatra One";
	src: url("../fonts/yatra-one-latin-400.woff2") format("woff2");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Anek Latin";
	src: url("../fonts/anek-latin-600.woff2") format("woff2");
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

/* Compact entrance and lobby, with enough space on small phones. */
:root {
	color-scheme: dark;
	--lobby-display: "Cormorant Garamond", Georgia, serif;
	--lobby-heading: "Yatra One", Georgia, serif;
	--lobby-interface: Inter, system-ui, "Nirmala UI", sans-serif;
	--market-ink: #ebf2fb;
	--market-dim: #b9cadf;
	--market-gold: #ffe3a5;
	--lobby-content: min(calc(100% - 32px), 1160px);
}
#home-auth:focus-visible, #home-register:focus-visible {
	outline: 2px solid #ffdf9c;
	outline-offset: 3px;
}
#home-intro h2 {
	margin: 0 0 7px;
	color: var(--market-gold);
	font: 600 clamp(28px, 3vw, 40px)/1.12 var(--lobby-display);
}
#home-intro p {
	margin: 0 0 17px;
	color: var(--market-dim);
	font-size: 14px;
	line-height: 1.45;
}
.home-previews {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.home-previews figure {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	margin: 0;
	border: 1px solid #a9c2dd62;
	border-radius: 10px;
	background: #0b172a;
}
.home-previews figure::after {
	content: "";
	position: absolute;
	inset: 30% 0 0;
	background: linear-gradient(transparent, #060f22f5);
}
.home-previews img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; object-position: top; }
.home-previews figcaption {
	position: absolute;
	z-index: 1;
	inset: auto 8px 8px;
	color: #fff2c9;
	font: 600 clamp(11px, 3.15vw, 14px)/1.2 Georgia, serif;
	text-shadow: 0 1px 4px #030611, 0 2px 5px #030611;
}
#home-account .home-entry {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	padding-top: 0;
	border-top: none;
}
#home-account #enter, #home-auth, #home-register {
	width: 100%;
	min-height: 48px;
	padding: 7px 12px;
	border: 1px solid #c3aad35b;
	border-radius: 8px;
	background: transparent;
	color: var(--market-ink);
	font: 650 14px/1.35 var(--lobby-interface);
}
#home-account:not(.show-account) #enter {
	border-color: #ffe1a0;
	background: linear-gradient(#f8e2aa, #daad5d);
	color: #24200e;
	box-shadow: inset 0 0 0 2px #fff0bf63, 0 3px 14px #05090f55;
	font-size: 16px;
}
#home-account:not(.show-account) #enter span + span { color: #483008; }
#home-account:not(.show-account) :is(#home-auth, #home-register) { border-color: #9ab0ca60; background: #0a17276e; color: #e5eef8; }
#home-auth:hover, #home-register:hover, #home-account.show-account #enter:hover { background: #233852; }
#home-account:not(.show-account) :is(#home-auth, #home-register):hover { border-color: #a8bdd89e; background: #233852; }
#home-account.show-account-options .home-entry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#home-account.show-account-options #enter { grid-column: 1 / -1; }
#home-account.show-account .home-entry {
	border-top: 1px solid #bca06b45;
	padding-top: 6px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
#home-account.show-account #enter, #home-account.show-account #home-auth {
	border-color: transparent;
	min-height: 44px;
}
#home-account.show-account #home-auth { color: #b2c4da; }
#account-google { min-height: 44px; }

body > header {
	gap: 8px clamp(8px, 2vw, 16px);
	padding-inline: calc((100% - var(--lobby-content)) / 2);
	background: transparent;
	border-bottom: 0;
}
body > header .brand { gap: clamp(10px, 1.25vw, 16px); }
body > header .brand .emblem { display: block; height: auto; border: 0; background: none; }
body > header .brand > div {
	padding-inline-start: clamp(11px, 1.2vw, 17px);
	border-inline-start: 1px solid #ddb77780;
}
body > header .brand > div::after { content: none; }
body > header .brand-wordmark {
	--brand-art-width: clamp(156px, 22vw, 270px);
	--brand-word-gap: clamp(5px, .75vw, 10px);
	display: grid;
	grid-template-columns: 558fr 594fr;
	align-items: center;
	column-gap: var(--brand-word-gap);
	inline-size: calc(var(--brand-art-width) + var(--brand-word-gap));
	margin: 0;
	filter: drop-shadow(0 1px 2px #020819a8);
}
/* Split the 1152 × 155 artwork at the transparent column between the words. */
body > header .brand-wordmark > span {
	--slice-width: 558;
	aspect-ratio: var(--slice-width) / 155;
	background: url("./aurora-summit-wordmark.webp") left center / calc(1152 / var(--slice-width) * 100%) 100% no-repeat;
}
body > header .brand-wordmark > span:last-child {
	--slice-width: 594;
	background-position: right center;
}
body > header .header-actions { gap: 6px; }
body > header .header-actions :is(.wallet, button) {
	border: 2px solid #e4b75e;
	border-radius: 999px;
	background: linear-gradient(#233d50f5, #142c44f5);
	box-shadow: inset 0 0 0 1px #fff0b4b3, 0 3px 7px #020b1b80;
}
body > header .header-actions .wallet { filter: none; }
body > header .wallet b { font-family: var(--lobby-interface); font-variant-numeric: tabular-nums; }
body > header .header-actions button {
	min-height: 44px;
	padding: 0 clamp(8px, 1vw, 14px);
	color: #ffe7b3;
	font: 650 13px/1.2 var(--lobby-interface);
	white-space: nowrap;
}
body > header .header-actions button:hover { filter: brightness(1.12); }
body > header .header-actions button:active { filter: brightness(.95); }
body > header .header-actions button:focus-visible {
	outline: 2px solid #ffe6a5;
	outline-offset: 2px;
}
#daily {
	width: var(--lobby-content);
	margin-top: 16px;
	border: 1px solid #be9b6480;
	border-radius: 15px;
	background: linear-gradient(150deg, #142d48, #111d33 62%, #171f30);
	box-shadow: 0 9px 22px #050b215e, inset 0 0 0 3px #d8ae6410;
}
#daily > .art-corner, #daily .daily-in::before, #daily .daily-in::after,
#daily h2::before, #daily h2::after { display: none; }
#daily .daily-in {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding: 13px 14px 14px;
	gap: 12px;
}
#daily .daily-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; }
#daily .daily-head > div { grid-column: auto; text-align: left; }
#daily #chest { display: block; width: 38px; height: 36px; object-fit: contain; filter: none; }
#daily h2 { display: block; color: var(--market-gold); font: 400 clamp(20px, 2.35vw, 28px)/1.15 var(--lobby-heading); letter-spacing: 0; }
#daily #daily-note { margin: 4px 0 0; max-width: none; color: var(--market-dim); font: 500 clamp(11px, 1.2vw, 14px)/1.35 var(--lobby-interface); font-variant-numeric: tabular-nums; }
#daily #claim {
	grid-area: auto;
	width: auto;
	min-width: 92px;
	height: auto;
	min-height: 44px;
	gap: 4px;
	padding: 4px 15px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: url("./reference-button.svg") center / 100% 100% no-repeat;
	color: #2f1e0e;
	font: 750 12px/1.2 var(--lobby-interface);
	text-shadow: 0 1px #fff0b9;
	box-shadow: none;
}
#daily #claim::before,
#daily #claim::after { content: none; }
#daily #claim:focus-visible {
	outline: 2px solid #ffe8ad;
	outline-offset: 2px;
}
#daily #claim:disabled {
	filter: saturate(.38) brightness(.9);
	opacity: 1;
	cursor: default;
}
#daily #claim:disabled:not([aria-busy])::before {
	content: "";
	flex: none;
	width: 8px;
	height: 5px;
	border: solid currentColor;
	border-width: 0 0 1.5px 1.5px;
	transform: translateY(-1px) rotate(-45deg);
}
#daily #days {
	grid-area: auto;
	width: 100%;
	margin: 0;
	gap: 5px;
}
#daily #days li {
	height: auto;
	min-height: 66px;
	padding: 6px 1px;
	display: grid;
	grid-template-columns: 1fr;
	grid-auto-rows: auto;
	justify-items: center;
	align-content: center;
	row-gap: 5px;
	border: 1px solid transparent;
	border-radius: 7px;
	background: #273c552e;
	color: #c9d9ea;
	box-shadow: none;
}
#daily #days li.now {
	border-color: #f3cb7a;
	color: #fff0c6;
	background: linear-gradient(#765629, #463319);
	box-shadow: inset 0 0 0 1px #e8bf7045;
}
#daily #days li.done { background: #172535; }
#daily #days li.done::after { right: 3px; bottom: 4px; font-size: 9px; line-height: 1; }
#daily #days .day, #daily #days b {
	color: inherit;
	font: 550 clamp(10px, 1vw, 13px)/1.15 var(--lobby-interface);
	font-variant-numeric: tabular-nums;
}
#daily #days b { font-size: clamp(11px, 1.12vw, 14px); font-weight: 750; }
#daily #days .reward-coins {
	width: 15px;
	height: 15px;
	margin: 0;
}
#daily #days .reward-coins .coin { inset: 0; width: 15px; height: 15px; }
#games-title {
	position: static;
	width: var(--lobby-content);
	height: auto;
	overflow: visible;
	clip-path: none;
	margin: clamp(24px, 3vw, 37px) auto 0;
	padding-inline: 3px;
	gap: clamp(12px, 1.5vw, 20px);
	color: var(--market-gold);
	font: 400 clamp(25px, 2.9vw, 36px)/1.16 var(--lobby-heading);
	letter-spacing: 0;
}
#games-title::before {
	content: "";
	width: 7px;
	height: 7px;
	flex: none;
	border: 1px solid #f1d48f;
	background: #b292514d;
	transform: rotate(45deg);
}
#games-title::after { background: linear-gradient(90deg, #d3ad7373, transparent); transform: none; }
#games {
	width: var(--lobby-content);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(15px, 2vw, 25px);
	margin-top: 14px;
	padding-top: 0;
}
#games > .card[data-game] { min-height: 0; border-radius: 16px; }
#games > .card[data-game] > .art-corner:not(.tl) { display: none; }
#games > .card[data-game] > .art-corner.tl {
	width: clamp(42px, 12cqw, 52px);
	height: auto;
	aspect-ratio: 1;
}
#games .card.has-wordmark .game-cover { aspect-ratio: 1.9; }
#games .card.has-wordmark .meta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(92px, 23%, 128px);
	align-items: center;
	min-height: 80px;
	column-gap: clamp(12px, 2vw, 22px);
	padding: 12px clamp(13px, 1.6vw, 20px);
}
#games .card.has-wordmark .meta .go {
	grid-area: 1 / 2;
	align-self: center;
	width: 100%;
	min-width: 0;
	height: auto;
	min-height: 0;
	aspect-ratio: 2.45;
	margin: 0;
	padding-inline: 8px;
	line-height: 1;
	font-family: var(--lobby-interface);
	font-weight: 750;
}
#games .card.has-wordmark .meta p {
	grid-area: 1 / 1;
	min-height: 0;
	max-width: none;
	color: #edf3fc;
	font: 600 clamp(17px, calc(13px + .82vw), 22px)/1.24 "Anek Latin", var(--lobby-interface);
	letter-spacing: 0;
	text-wrap: pretty;
}
#games > .game-preview {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 49%) minmax(0, 1fr);
	align-items: center;
	justify-self: center;
	width: min(100%, 740px);
	min-height: clamp(106px, 12vw, 150px);
	overflow: hidden;
	border: 1px solid #5598979e;
	border-radius: 16px;
	background: radial-gradient(ellipse at 68% 0%, #14505b7d, transparent 72%), #0a2032;
	box-shadow: inset 0 0 0 2px #071926a6, 0 8px 21px #040d1b44;
}
#games .preview-art {
	position: absolute;
	z-index: -1;
	inset: 0 auto 0 0;
	width: 63%;
	height: 100%;
	object-fit: cover;
	object-position: 53% 48%;
	mask-image: linear-gradient(90deg, #000 56%, transparent 100%);
}
#games .preview-copy {
	grid-column: 2;
	display: grid;
	justify-items: center;
	gap: clamp(5px, 1vw, 10px);
	padding: 10px 12px;
}
#games .preview-title {
	width: min(100%, clamp(108px, 16vw, 166px));
	margin: 0;
	color: #d3f7ee;
	text-align: center;
	font: 500 clamp(18px, 2.1vw, 24px)/1.16 var(--lobby-heading);
}
#games .preview-status {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #c5e2e0;
	font: 600 clamp(11px, 1vw, 13px)/1.35 var(--lobby-interface);
}
#games .preview-status::before {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #74d7c9;
}

@media (min-width: 850px) and (orientation: landscape) {
	#daily .daily-in { grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); align-items: center; gap: 17px; padding: 13px 18px; }
	#daily .daily-head { gap: 12px; }
	#daily #chest { width: 54px; height: 52px; }
}
@media (orientation: portrait), (max-width: 650px) {
	.home-brand { left: max(15px, env(safe-area-inset-left)); }
	.home-brand > img { width: 32px; height: 32px; }
	body > header { display: flex; flex-wrap: wrap; padding-block: 8px; min-height: 60px; }
	body > header .brand { margin: 0; }
	body > header .brand .emblem { width: clamp(30px, 5.5vw, 50px); transform: none; }
	body > header .brand h1 { font-size: clamp(14px, 4vw, 17px); }
	body > header .header-actions { flex: 0 0 auto; width: auto; margin-left: auto; justify-content: flex-end; }
	body > header .header-actions .wallet {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 4px;
		width: 88px;
		min-width: 0;
		max-width: none;
		height: 36px;
		padding: 0 2px;
	}
	body > header .header-actions .wallet b {
		position: static;
		transform: none;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 12px;
		line-height: 1;
		font-weight: 750;
	}
	body > header .header-actions .wallet .coin { position: static; transform: none; flex: none; width: 13px; }
	#games { grid-template-columns: minmax(0, 1fr); }
	#games .card.has-wordmark .game-cover { aspect-ratio: 2.05; }
}
@media (min-width: 388px) and (orientation: portrait) {
	body > header .header-actions { width: auto; justify-content: flex-end; }
	body > header .header-actions .wallet { width: 79px; }
}
@media (max-width: 520px) {
	#games .preview-art { width: 67%; object-position: 54% center; }
	#games .preview-copy { padding-inline: 8px; }
}
@media (521px <= width <= 650px) {
	body > header .brand-wordmark { --brand-art-width: clamp(134px, 26vw, 156px); }
}
@media (max-width: 580px) {
	body > header .header-actions button { font-size: 12px; padding-inline: 8px; }
}
@media (max-width: 360px) {
	body > header .header-actions button { font-size: 11px; padding-inline: 4px; }
	#daily #chest { width: 30px; height: 31px; }
	#daily h2 { font-size: 19px; }
	#daily #claim { min-width: 78px; padding-inline: 11px; }
}
@media (max-width: 350px) and (orientation: portrait) {
	#daily .daily-in { padding-inline: 9px; }
	#daily #days li.done::after { content: none; }
}
