/* Game and app pages (2.93): /game/<name>/, /app/<name>/. The hero, summary, search and filters are roblox.css's. */

.y4h-tag-gp { background-color: rgba(34, 197, 94, .22) !important; color: #86efac !important; }

/* ---------------------------------------------------------------- The top card (2.94.1)
   Phones: the icon with the name and small tags beside it, the numbers as one row (rating with its reviews, views,
   versions), "Share your version" and then Google Play and Share side by side. Wider: icon | name, tags, text, numbers | buttons. */
.y4h-hero .rbx-hero-in { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "icon text" "stats stats" "act act"; gap: .875rem; padding: 1rem; }
.y4h-hero .rbx-hero-icon { grid-area: icon; width: 4.75rem; height: 4.75rem; border-radius: 1.125rem; align-self: center; }
.y4h-hero .rbx-hero-text { grid-area: text; min-width: 0; }
.y4h-hero .rbx-hero-title {
	margin: 0 0 .5rem; font-size: 1.25rem; line-height: 1.2;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.y4h-hero .rbx-tags { gap: .25rem; margin: 0; }
.y4h-hero .rbx-tag { height: 1.375rem; padding: 0 .5rem; border-radius: .4375rem; font-size: .6875rem; }
.y4h-hero .y4h-tag-all, .y4h-hero .y4h-tag-gp, .y4h-hero .rbx-hero-sub { display: none; } /* the breadcrumbs say "Games", the button says Google Play, the text below says the rest */
.y4h-stats {
	grid-area: stats; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0;
	padding: .75rem 0; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.y4h-stats li { position: relative; flex-direction: column; justify-content: center; gap: .1875rem; min-width: 0; padding: 0 .375rem; text-align: center; }
.y4h-stats li + li::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 1px; background-color: rgba(255, 255, 255, .14); }
.y4h-stats .rbx-i { display: none; }
.y4h-stats b { display: inline-flex; align-items: center; gap: .1875rem; font-size: 1.0625rem; line-height: 1.1; }
.y4h-star { color: #ffc93c; }
.y4h-stats span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6875rem; color: rgba(255, 255, 255, .62); }
.y4h-hero .rbx-hero-actions { grid-area: act; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.y4h-hero .rbx-hero-actions .rbx-btn { min-width: 0; height: 2.75rem; padding: 0 .75rem; font-size: .875rem; }
.y4h-hero .rbx-hero-actions .rbx-btn-play { grid-column: 1 / -1; height: 3rem; font-size: .9375rem; }
.y4h-hero .rbx-hero-actions:not(.has-play) .rbx-btn-ghost { grid-column: 1 / -1; }
.y4h-hero .y4h-lg { display: none; }

@media (min-width: 48rem) {
	.y4h-hero .rbx-hero-in { grid-template-areas: "icon text" "icon stats" "act act"; gap: 1rem 1.75rem; padding: 1.75rem 2rem; }
	.y4h-hero .rbx-hero-icon { width: 8rem; height: 8rem; border-radius: 1.75rem; }
	.y4h-hero .rbx-hero-title { font-size: 2rem; margin-bottom: .625rem; }
	.y4h-hero .rbx-tag { height: 1.625rem; padding: 0 .625rem; font-size: .75rem; border-radius: .5rem; }
	.y4h-hero .y4h-tag-all, .y4h-hero .y4h-tag-gp { display: inline-flex; }
	.y4h-hero .rbx-hero-sub { display: block; margin: .75rem 0 0; }
	.y4h-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; border: 0; align-self: start; }
	.y4h-stats li { flex-direction: row; gap: .375rem; padding: 0; }
	.y4h-stats li + li::before { display: none; }
	.y4h-stats .rbx-i { display: inline-block; }
	.y4h-star { display: none; }
	.y4h-stats span { font-size: .8125rem; overflow: visible; }
	.y4h-hero .rbx-hero-actions { display: flex; flex-wrap: wrap; }
	.y4h-hero .rbx-hero-actions .rbx-btn { flex: 0 0 auto; height: 3rem; padding: 0 1.25rem; font-size: .9375rem; }
	.y4h-hero .y4h-lg { display: inline; }
	.y4h-hero .y4h-sm { display: none; }
}
@media (min-width: 62rem) {
	.y4h-hero .rbx-hero-in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon text act" "icon stats act"; padding: 2.25rem 2.5rem; min-height: 0; }
	.y4h-hero .rbx-hero-icon { width: 9.5rem; height: 9.5rem; border-radius: 2rem; }
	.y4h-hero .rbx-hero-title { font-size: 2.5rem; }
	.y4h-hero .rbx-hero-actions { flex-direction: column; flex-wrap: nowrap; align-self: center; min-width: 13rem; }
	.y4h-stats b { font-size: 1.25rem; }
	.y4h-stats span { font-size: .875rem; }
}

/* The versions: the cards of "Versions from members" (fullstory.css), a little more room between them here */
.y4h-grid { margin-bottom: .5rem; }
@media (min-width: 62rem) { .y4h-grid { gap: 16px; } }

/* ---------------------------------------------------------------- About, sharing, similar */
.y4h-two { display: grid; gap: 1rem; margin-top: 1.75rem; }
@media (min-width: 62rem) { .y4h-two { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.125rem; } }
.y4h-about { margin: 0; padding: 1.25rem 1.375rem; border-radius: 1.125rem; background-color: #fff; box-shadow: 0 0 0 1px rgba(23, 32, 33, .08); }
.y4h-about h2, .y4h-share h2 { margin: 0 0 .75rem; font-size: 1.25rem; }
.y4h-about p { margin: 0 0 .875rem; line-height: 1.65; color: rgba(23, 32, 33, .82); }
.y4h-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; margin: 0; }
.y4h-facts div { min-width: 0; }
.y4h-facts dt { font-size: .8125rem; color: rgba(23, 32, 33, .6); }
.y4h-facts dd { margin: .15rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.y4h-share {
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .25rem;
	padding: 1.5rem; border-radius: 1.125rem; color: #fff;
	background: linear-gradient(135deg, #142046 0%, #1d3f8f 60%, #23a6d5 130%);
}
.y4h-share h2 { color: #fff; margin: 0; }
.y4h-share p { margin: 0 0 .75rem; color: rgba(255, 255, 255, .8); line-height: 1.6; }

.y4h-similar { margin-top: 2rem; }
.y4h-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } /* 2.95.4: two across on phones */
@media (min-width: 48rem) { .y4h-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; } }
.y4h-tile {
	display: flex; flex-direction: column; min-width: 0; padding: .75rem; border-radius: 1rem; color: #172021;
	background-color: #fff; box-shadow: 0 0 0 1px rgba(23, 32, 33, .08); transition: transform .25s ease, box-shadow .25s ease;
}
.y4h-tile:hover { color: #172021; transform: translateY(-3px); box-shadow: 0 1rem 2rem -.75rem rgba(41, 177, 216, .35), 0 0 0 1px rgba(41, 177, 216, .28); }
.y4h-tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 1rem; margin-bottom: .6rem; }
/* every tile the same height: the name two lines at most, room for two always */
.y4h-tile b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.6em; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
@media (min-width: 48rem) {
	.y4h-tile { padding: 1.1rem 1.1rem 1rem; border-radius: 1.25rem; }
	.y4h-tile img { border-radius: 1.4rem; margin-bottom: .85rem; }
	.y4h-tile b { font-size: .9375rem; }
}

