.nav-mobile,
.search-mobile {
	display: none;
}

@media (max-width: 1024px) {
	.container {
		width: 100%;
		padding: 0 14px;
	}

	.container .container {
		padding: 0;
	}

	.slider {
		margin-top: 32px;
	}

	.slider:first-child {
		margin-top: 20px;
	}

	.slider .header {
		padding-bottom: 12px;
	}

	.slider.type-desktop-only .item {
		margin-bottom: 18px;
	}

	.slider.type-desktop-only .item .title {
		font-size: 16px;
	}

	.page-title {
		margin-top: 20px;
		font-size: 26px;
	}

	.footer {
		margin-top: 32px;
	}

	.slider .item {
		margin-left: 0;
	}

	.categories {
		margin-top: 20px;
		gap: 0;
	}

	.listing.type-1 .title {
		font-size: 26px;
	}

	.listing.type-1 .description {
		margin-bottom: 20px;
		font-size: 15px;
	}

	.listing.type-1 .item {
		margin-bottom: 20px;
	}

	.navbar i {
		color: var(--primary);
		font-size: 20px;
	}

	.menu-icon {
		display: block;
	}

	.navbar-brand {
		margin-left: 10px;
		width: 150px;
		height: 44px;
		min-width: 110px;
		flex-shrink: 1;
	}

	.nav,
	.search {
		display: none;
	}

	.nav-mobile,
	.search-mobile {
		display: flex;
		align-items: center;
		z-index: 999;
	}

	.nav-mobile {
		margin: 0 20px;
		flex-grow: 1;
		justify-content: flex-end;
		gap: 15px;
	}

	.search-mobile {
		position: fixed;
		top: -110%;
		left: 0;
		width: 100%;
		height: 80px;
		padding: 0 20px;
		background: var(--surface);
		box-shadow: var(--shadow);
		display: flex;
		align-items: center;
		transition: top 0.2s ease-in-out;
	}

	.search-mobile.active {
		top: 0;
	}

	.search-mobile .search-input {
		flex-grow: 1;
		border: 1px solid var(--border-strong);
		background: var(--surface);
		color: var(--text);
		min-width: 0;
		margin-right: 20px;
		padding: 10px 20px;
		border-radius: 10px;
	}

	.search-mobile i {
		font-size: 30px;
	}

	.search-mobile .suggestions {
		width: calc(100% - 103px);
		left: 40px;
		top: calc(100% - 10px);
	}

	.login-btn span {
		display: none;
	}

	.offcanvas {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 1000;
		transition: left 0.3s ease-in-out;
	}

	.offcanvas .backdrop {
		position: relative;
		width: 100%;
		height: 100%;
		background: rgba(30, 24, 70, 0.45);
	}

	.offcanvas .sidebar {
		position: absolute;
		top: 0;
		left: -120%;
		width: 300px;
		height: 100%;
		background: var(--surface);
		padding: 20px;
		transition: left 0.3s ease-in-out;
		box-shadow: var(--shadow-lg);
		overflow-y: auto;
	}

	.offcanvas .sidebar .title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 30px;
		font-size: 25px;
		color: var(--text);
	}

	.offcanvas .sidebar .title i {
		font-size: 30px;
		color: var(--primary);
		cursor: pointer;
	}

	.offcanvas .sidebar .link {
		margin-bottom: 10px;
		display: flex;
		align-items: center;
		gap: 15px;
		padding: 10px 15px;
		color: var(--text-soft);
		border-radius: 10px;
		font-weight: 600;
	}

	.offcanvas .sidebar .link i {
		background: linear-gradient(#ca1ebd, #9482ff);
		background-clip: text;
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
	}

	.offcanvas .sidebar .link.active,
	.offcanvas .sidebar .link:hover {
		background: var(--surface-2);
		color: var(--primary);
	}

	.offcanvas.active {
		display: block;
		animation: show-offcanvas 0.3s ease-in-out;
	}

	.offcanvas.active .backdrop {
		opacity: 1;
	}

	.offcanvas.active .sidebar {
		animation: display-sidebar 0.3s ease-in-out forwards;
	}

	@keyframes show-offcanvas {
		0% {
			opacity: 0;
		}
		100% {
			opacity: 1;
		}
	}

	@keyframes display-sidebar {
		0% {
			left: -120%;
		}
		100% {
			left: 0;
		}
	}

	.hero-slider .slide-caption {
		left: 50px;
	}

	.slider .header .title {
		font-size: 25px;
	}

	.slider.type-1 .item {
		width: 200px;
	}

	.slider.type-1 .item .thumb {
		height: 200px;
	}

	.slider.type-1 .item .title {
		font-size: 20px;
	}

	.slider.type-2 .item {
		width: 200px;
	}

	.slider.type-2 .item .thumb {
		height: 300px;
	}

	.slider.type-3 .item {
		width: 150px;
	}

	.slider.type-3 .item .thumb {
		height: 250px;
	}

	.slider.type-3 .item .caption {
		padding: 5px 8px;
		opacity: 1;
	}

	/* Footer */
	.footer {
		margin-top: 40px;
	}

	.footer .footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
		padding: 36px 0 24px 0;
	}

	.footer .footer-brand {
		grid-column: 1 / -1;
	}

	.footer .footer-company {
		grid-column: 1 / -1;
	}

	.footer .buttons .lang-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		min-width: auto;
		flex: 0;
		margin: 0;
		padding: 8px 16px;
		background: var(--surface-2);
		border: 1px solid var(--border-strong);
		border-radius: 10px;
		font-size: 14px;
	}

	.footer .buttons .lang-btn i {
		margin-left: 8px;
	}

	.footer .buttons .lang-btn .dropdown {
		top: auto;
		bottom: calc(100% + 6px);
		left: 0;
		width: 100%;
		border-radius: 10px;
	}

	.footer .footer-notice {
		grid-template-columns: 1fr;
	}

	.footer .footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.listing.type-1 {
		gap: 0 14px;
	}

	.listing.type-1 .item {
		width: calc(50% - 7px);
		margin-bottom: 18px;
	}

	.listing.type-1 .ribbon .title {
		font-size: 14px;
	}

	.listing.type-2 .item {
		width: calc(50% - 20px);
	}

	.listing.type-2 .item .thumb {
		height: 100px;
	}

	.listing.type-2 .ribbon .title {
		font-size: 18px;
	}

	.listing.type-2 .ribbon i {
		font-size: 20px;
	}

	.categories .sidebar {
		position: fixed;
		right: -200%;
		background: var(--surface);
		padding-top: 20px;
		padding-bottom: 20px;
	}

	/* Game page: mobile column layout */
	.game .content {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.game {
		padding-top: 12px;
	}

	.game .content .card-1 {
		max-width: 100%;
		border-radius: 12px;
		box-shadow: none;
		background: transparent;
		display: flex;
		flex-direction: column;
	}

	.game .content .card-1 img {
		order: 1;
	}

	.game .content .card-1 .caption {
		order: 2;
		position: static;
		background: none;
		padding: 16px 0 4px 0;
		justify-content: flex-start;
	}

	.game .content .card-1 .play-btn-container {
		order: 3;
	}

	.game .content .card-1 .caption h1 {
		font-size: 24px;
		line-height: 1.25;
		text-shadow: none;
		color: var(--text);
		text-align: left;
	}

	[dir='rtl'] .game .content .card-1 .caption h1 {
		text-align: right;
	}

	.game .content .card-1 .caption .play-btn {
		display: none;
	}

	.game .content .card-1 img {
		height: auto;
		max-height: 280px;
		border-radius: 12px;
	}

	.game .content .card-1:hover img {
		transform: none;
	}

	.game .content .card-1 .category {
		top: 10px;
		left: 10px;
	}

	.game .content .card-1 .play-btn-container {
		display: block;
		width: 100%;
		margin: 12px auto 16px auto;
	}

	.game .content .card-1 .play-btn-container .play-btn {
		width: 100%;
		text-align: center;
		padding: 14px 30px;
		font-size: 16px;
	}

	.game .content .card-2 {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		padding: 15px;
		gap: 10px;
		background: var(--surface);
		border: 1px solid var(--border);
		box-shadow: var(--shadow-sm);
	}

	.game .content .card-2 .info {
		flex: 1;
		min-width: 90px;
		padding: 12px 10px;
	}

	.game .content .card-2 .info h3 {
		font-size: 20px;
	}

	.game .content .card-2 .info p {
		font-size: 11px;
	}

	.game .action-bar {
		display: none;
	}

	.game .slider {
		margin-top: 32px;
	}

	.game .description {
		position: relative;
		z-index: 111;
		margin-top: 32px;
		padding: 20px 15px;
		background: var(--surface);
	}

	.game .description .title {
		font-size: 24px;
		margin-bottom: 15px;
	}

	.game .description p {
		font-size: 15px;
	}

	.game .more {
		margin-top: 32px;
	}

	.game .more h2.title {
		font-size: 24px;
		margin-bottom: 20px;
	}

	.game .more .listing.type-1 {
		justify-content: space-between;
		gap: 15px;
	}

	.game .more .listing.type-1 .item {
		width: calc(50% - 8px);
		margin-bottom: 15px;
	}

	.slider.type-desktop-only .item {
		width: 100%;
	}

	/* Legal pages */
	.legal-page {
		margin: 12px auto 40px auto;
	}

	.legal-page .legal-hero {
		padding: 28px 22px;
	}

	.legal-page .legal-hero h1 {
		font-size: 30px;
	}

	.legal-page .legal-hero .lede {
		font-size: 16px;
	}

	.legal-page .legal-layout {
		grid-template-columns: 1fr;
	}

	.legal-page .legal-toc {
		position: static;
	}

	.legal-page .legal-body {
		padding: 6px 22px 24px 22px;
	}

	.legal-page .legal-body h2 {
		font-size: 21px;
	}

	.legal-page .legal-body .company-card {
		grid-template-columns: 1fr;
	}

	.legal-page .legal-body table {
		display: block;
		overflow-x: auto;
	}

	/* Pricing page */
	.pricing-page {
		margin: 12px auto 40px auto;
	}

	.pricing-page .pricing-hero {
		margin-bottom: 32px;
	}

	.pricing-page section {
		margin-bottom: 36px;
	}

	.pricing-page .pricing-hero {
		padding: 32px 20px;
	}

	.pricing-page .pricing-hero h1 {
		font-size: 30px;
	}

	.pricing-page .pricing-hero p {
		font-size: 16px;
	}

	.pricing-page .section-title {
		font-size: 24px;
	}

	.pricing-page .country-head {
		flex-wrap: wrap;
	}

	.pricing-page .country-head .support {
		margin-left: 0;
		width: 100%;
	}

	.pricing-page .plan-grid {
		grid-template-columns: 1fr;
	}

	.pricing-page .steps {
		grid-template-columns: 1fr 1fr;
	}

	.pricing-page .unsub-panel {
		overflow-x: auto;
	}

	.pricing-page .unsub-panel table {
		min-width: 640px;
	}

	.pricing-page .manage-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.pricing-page .faq {
		grid-template-columns: 1fr;
	}
}

/* Pricing page: unsubscribe table becomes stacked cards so the keyword is never off-screen */
@media (max-width: 768px) {
	.pricing-page .unsub-panel {
		overflow: visible;
		background: transparent;
		border: none;
		box-shadow: none;
		border-radius: 0;
	}

	.pricing-page .unsub-panel table,
	.pricing-page .unsub-panel tbody,
	.pricing-page .unsub-panel tr,
	.pricing-page .unsub-panel td {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.pricing-page .unsub-panel thead {
		display: none;
	}

	.pricing-page .unsub-panel tr {
		background: var(--surface);
		border: 1px solid var(--border);
		border-radius: var(--radius);
		box-shadow: var(--shadow-sm);
		padding: 6px 16px;
		margin-bottom: 12px;
	}

	.pricing-page .unsub-panel tr:last-child {
		margin-bottom: 0;
	}

	.pricing-page .unsub-panel td {
		display: flex;
		justify-content: flex-start;
		align-items: baseline;
		gap: 6px;
		padding: 10px 0;
		border-bottom: 1px solid var(--border);
		font-size: 15px;
		text-align: right;
	}

	[dir='rtl'] .pricing-page .unsub-panel td {
		text-align: left;
	}

	.pricing-page .unsub-panel td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		margin-inline-end: auto;
		padding-inline-end: 12px;
		font-size: 12px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: var(--text-muted);
		text-align: left;
	}

	[dir='rtl'] .pricing-page .unsub-panel td::before {
		text-align: right;
	}

	.pricing-page .unsub-panel tr td:last-child {
		border-bottom: none;
	}

	/* The instruction is the reason people come here: give it its own full-width block */
	.pricing-page .unsub-panel td.unsub-cell {
		display: block;
		text-align: left;
		background: var(--surface-2);
		border-radius: 8px;
		padding: 10px 12px;
		margin: 6px 0 8px;
		line-height: 1.8;
	}

	[dir='rtl'] .pricing-page .unsub-panel td.unsub-cell {
		text-align: right;
	}

	.pricing-page .unsub-panel td.unsub-cell::before {
		display: block;
		margin-bottom: 4px;
	}

	.pricing-page .unsub-panel td.unsub-cell code {
		font-size: 16px;
		background: var(--surface);
	}
}

@media (max-width: 640px) {
	.listing.type-1 .item {
		width: calc(50% - 7px);
	}

	.listing.type-2 .item {
		width: calc(100% - 20px);
	}

	.footer .footer-main {
		grid-template-columns: 1fr;
	}

	.pricing-page .steps {
		grid-template-columns: 1fr;
	}
}

.close-icon {
	position: absolute;
	top: 4.5%;
	transform: translateY(-50%);
	right: 4.5%;
	cursor: pointer;
	font-size: 22px;
}

@media (max-width: 768px) {
	.contact-section {
		flex-direction: column-reverse;
		padding: 12px 0 40px 0;
		gap: 32px;
	}

	.contact-form {
		padding: 24px;
	}

	.company-info {
		flex-basis: auto;
		padding-top: 0;
	}

	.contact-form {
		width: 100%;
	}

	.mission-content {
		flex-direction: column;
	}

	.stats-section {
		flex-wrap: wrap;
	}

	.stat-card {
		flex-basis: 45%;
	}

	.hero-section {
		padding: 48px 20px;
		margin-bottom: 32px;
	}

	.about-page {
		margin-top: 12px;
		padding-bottom: 40px;
	}

	.stats-section {
		margin-top: 32px;
		padding: 24px 16px;
		gap: 24px 12px;
	}

	.about-content {
		margin-top: 32px;
		padding: 0;
	}

	.content-section {
		margin-bottom: 32px;
	}

	.hero-section h1 {
		font-size: 36px;
	}

	.hero-section .tagline {
		font-size: 20px;
	}

	.login {
		padding: 10px 0 40px 0;
	}

	.login .login-card {
		grid-template-columns: 1fr;
		border-radius: 16px;
	}

	.login .login-art {
		padding: 28px 22px;
		gap: 14px;
	}

	.login .login-art h2 {
		font-size: 22px;
	}

	.login .login-art ul {
		display: none;
	}

	.login .login-form-side {
		padding: 28px 22px;
	}

	.login .login-form-side .page-title {
		font-size: 26px;
	}
}

@media (max-width: 640px) {
	.listing.type-1 .item {
		width: calc(50% - 7px);
	}
}

/* =====================================================
   MOBILE CAROUSEL - SIMPLE HORIZONTAL SCROLL
   ===================================================== */
@media (max-width: 1024px) {
	.game .slider.type-screenshots .slick-prev,
	.game .slider.type-screenshots .slick-next {
		display: none !important;
	}

	.game .slider.type-screenshots {
		padding: 0;
	}

	.game .slider.type-screenshots .slick-track {
		display: flex;
		gap: 15px;
	}

	.game .slider.type-screenshots .slick-slide {
		width: 85vw !important;
		max-width: 350px;
	}

	.game .slider.type-screenshots .item img {
		border-radius: 12px;
		width: 100%;
		height: auto;
		box-shadow: var(--shadow);
	}
}

/* Extra small screens */
@media (max-width: 480px) {
	.game .content .card-2 .info {
		min-width: 75px;
		padding: 10px 8px;
	}

	.game .content .card-2 .info h3 {
		font-size: 16px;
	}

	.game .slider.type-screenshots .slick-slide {
		width: 80vw !important;
		max-width: 300px;
	}

	.game .content .caption h1 {
		font-size: 20px;
	}
}

/* Home hero: keep it short on small screens */
@media (max-width: 1024px) {
	.home-hero {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		margin-top: 16px;
		padding: 18px 16px;
	}

	.home-hero h1 {
		font-size: 22px;
		margin-bottom: 6px;
	}

	.home-hero .tagline {
		font-size: 14px;
		line-height: 1.4;
		margin-bottom: 12px;
	}

	.home-hero .actions .btn {
		flex: 1 1 0;
		justify-content: center;
		padding: 10px 14px;
		font-size: 14px;
	}

	/* Points collapse into a single scrollable chip row */
	.home-hero-points {
		flex-direction: row;
		gap: 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.home-hero-points::-webkit-scrollbar {
		display: none;
	}

	.home-hero-points li {
		padding: 6px 10px;
		font-size: 12px;
		gap: 8px;
		white-space: nowrap;
		box-shadow: none;
	}

	.home-hero-points li i {
		width: 22px;
		height: 22px;
		font-size: 11px;
	}
}

@media (max-width: 640px) {
	.home-hero {
		gap: 0;
		padding: 16px 14px;
	}

	/* Phones: swap in the shorter tagline */
	.home-hero .tagline-full {
		display: none;
	}

	.home-hero .tagline-short {
		display: block;
	}

	/* Phones: one full-width play button; categories are directly below the hero anyway */
	.home-hero .actions .btn-secondary {
		display: none;
	}

	.home-hero .actions .btn-primary {
		width: 100%;
	}

	/* Phones: drop the feature chips to keep the hero short */
	.home-hero-points {
		display: none;
	}
}
