/* Footer icons use local files, without social links. */
/* Logo Resmi */
.topbar-inner-container .logo > img {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: auto;
	max-height: calc(100% - 8px);
	margin: 0;
	object-fit: contain;
	transform: translateY(-50%);
}

.footer-sitemap-section .community-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #8a8a8a;
	font-size: 14px;
	line-height: 24px;
}

/* Browser Mobile */
@media (max-width: 991px) {
	.supported-browser-container .hover-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.supported-browser-container .hover-list > li {
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
		margin-left: 0;
	}
	.supported-browser-container .hover-list > li + li {
		margin-left: 0;
	}
	.supported-browser-container .hover-list > li picture,
	.supported-browser-container .hover-list > li img {
		display: block;
		width: 40px;
		height: 40px;
		object-fit: contain;
	}
}
.footer-sitemap-section .community-item img {
	display: block;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
}

/* Keep the original composition; constrain only the mobile dimensions. */
@media (max-width: 991px) {
	html, body {
		width: 100%;
		min-width: 0;
		overflow-x: clip;
	}
	.container {
		max-width: 100%;
	}
	.topbar-inner-container,
	.topbar-inner-group,
	.site-header-inner-container,
	.menu-slide {
		min-width: 0;
		max-width: 100%;
	}
	.topbar-inner-container .logo > img {
		max-width: 100%;
		height: auto;
	}
	.topbar-sub-section {
		min-width: 0;
	}
	.topbar-sub-section .topbar-item + .topbar-item {
		margin-left: 4px;
	}
	.topbar-sub-section .topbar-item a,
	.topbar-sub-section .topbar-item .live-chat {
		padding-right: 6px;
		padding-left: 6px;
	}
	.top-menu {
		min-width: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.top-menu::-webkit-scrollbar {
		display: none;
	}
	.home-inner-container {
		min-width: 0;
		padding: clamp(10px, 3vw, 30px);
	}
	.home-progressive-jackpot,
	.home-progressive-jackpot .outer-container,
	.home-progressive-jackpot .inner-container,
	.home-progressive-jackpot .border-container,
	.home-progressive-jackpot .jackpot-container,
	.home-progressive-jackpot .jackpot-inner-container,
	.home-progressive-jackpot .jackpot-border-container {
		min-width: 0;
		padding: clamp(3px, 1vw, 10px);
	}
	.home-progressive-jackpot .border-container {
		gap: clamp(4px, 1.5vw, 50px);
	}
	.home-progressive-jackpot .jackpot-play-section {
		flex-shrink: 0;
		margin-left: 0;
	}
	.home-progressive-jackpot .jackpot-play-section img {
		width: clamp(40px, 14vw, 87px);
	}
	.home-progressive-jackpot .jackpot-play-section .jackpot-play-text {
		font-size: clamp(16px, 4.5vw, 38px);
	}
	.home-progressive-jackpot .jackpot-container {
		font-size: clamp(16px, 4vw, 50px);
		letter-spacing: 1px;
	}
	.home-progressive-jackpot .jackpot-border-container {
		line-height: 1.2;
	}
	.popular-game-title-container + .game-list-container {
		min-width: 0;
		padding-right: 4px;
		padding-left: 4px;
	}
	.popular-game-title-container + .game-list-container .game-list .games-group {
		width: clamp(88px, 25vw, 156px);
	}
	.footer-sitemap-section {
		gap: 8px;
		padding-right: 0;
	}
	.footer-sitemap-section > div {
		flex: 1 1 0;
		min-width: 0;
		overflow-wrap: anywhere;
	}
	.footer-sitemap-section h4 {
		font-size: clamp(11px, 3vw, 16px);
	}
	.footer-sitemap-section .footer-links > li > a,
	.footer-sitemap-section .community-item {
		max-width: 100%;
		font-size: clamp(11px, 2.9vw, 14px);
		line-height: 1.5;
	}
	.footer-sitemap-section .community-item {
		gap: 4px;
	}
	.footer-sitemap-section .community-item img {
		flex-basis: 16px;
		width: 16px;
		height: 16px;
	}
	.footer-featured-product-section > div,
	.footer-banking-section .site-info-description {
		min-width: 0;
		max-width: 100%;
	}
	.footer-banking-section .banking-footer-section .bank-service-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin: 12px;
	}
	.footer-banking-section .banking-footer-section .bank-service-container .site-info-description {
		padding: 8px;
		gap: 6px;
		overflow-wrap: anywhere;
	}
	.footer-copyright-section .copyright {
		min-width: 0;
		overflow-wrap: anywhere;
	}
}

/* Header mobile: baris 1 logo + Bahasa/Live Chat/Versi Mobile sejajar,
   baris 2 Masuk / Daftar / Unduh APK sejajar di tengah */
.login-panel .login-panel-apk {
	display: none;
}
@media (max-width: 991px) {
	html body .topbar-inner-container {
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		gap: 6px 8px;
		padding: 0 16px;
	}
	html body .topbar-inner-container .logo {
		display: block;
		flex: 0 0 auto;
		width: clamp(78px, 22vw, 150px);
		height: 38px;
		padding-top: 0;
	}
	html body .topbar-inner-container .logo > img {
		max-height: 100%;
	}
	html body .topbar-inner-group {
		display: contents;
	}
	html body .topbar-sub-section {
		display: flex;
		flex: 1 1 0;
		justify-content: flex-end;
		align-items: center;
		min-width: 0;
		padding: 0;
	}
	html body .topbar-sub-section .topbar-item {
		display: flex;
		align-items: center;
		padding: 0;
		font-size: 12px;
		line-height: 16px;
		white-space: nowrap;
	}
	html body .topbar-sub-section .topbar-item + .topbar-item {
		margin-left: 0;
		padding-left: 8px;
		margin-left: 8px;
	}
	html body .topbar-sub-section .topbar-item a,
	html body .topbar-sub-section .topbar-item .live-chat,
	html body .topbar-sub-section .language-selector-trigger {
		padding: 0;
		font-size: 12px;
		line-height: 16px;
		white-space: nowrap;
	}
	html body .topbar-sub-section .language-selector {
		right: 0;
		left: auto;
	}
	html body .login-panel {
		flex: 0 0 100%;
		justify-content: center;
		gap: 8px;
		padding: 0;
	}
	html body .login-panel .login-panel-item + .login-panel-item,
	html body .login-panel .login-panel-item:last-of-type {
		margin: 0;
		padding: 0;
	}
	html body .login-panel .login-panel-item {
		flex: 1 1 0;
		max-width: 120px;
	}
	html body .login-panel .login-panel-apk {
		display: block;
	}
	html body .login-panel .login-button,
	html body .login-panel .register-button {
		width: 100%;
		padding: 4px 6px;
		font-size: 13px;
		line-height: 22px;
		white-space: nowrap;
	}
}
@media (max-width: 420px) {
	html body .topbar-sub-section .topbar-item i[data-icon] {
		display: none;
	}
	html body .topbar-sub-section .topbar-item + .topbar-item {
		padding-left: 5px;
		margin-left: 5px;
	}
	html body .topbar-sub-section .topbar-item a,
	html body .topbar-sub-section .topbar-item .live-chat,
	html body .topbar-sub-section .language-selector-trigger {
		font-size: 11px;
	}
}
@media (max-width: 380px) {
	html body .topbar-sub-section .topbar-item a,
	html body .topbar-sub-section .topbar-item .live-chat,
	html body .topbar-sub-section .language-selector-trigger {
		font-size: 10.5px;
	}
}

/* Pengumuman: teks berjalan satu baris + tanggal rapi */
html body .announcement-outer-container {
	padding: 6px 0;
}
html body .announcement-container {
	gap: 12px;
	font-family: "Lato", "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 13px;
	line-height: 20px;
}
html body .announcement-container [data-icon="news"] {
	flex: 0 0 22px;
	margin-right: 0;
}
html body .announcement-container > [data-section="announcements"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 5px 16px;
	overflow: hidden;
}
html body .announcement-container .announcement-list {
	display: inline-block;
	margin: 0;
	padding: 0 0 0 100%;
	list-style: none;
	white-space: nowrap;
	animation: announcement-scroll 28s linear infinite;
}
html body .announcement-container .announcement-list:hover {
	animation-play-state: paused;
}
html body .announcement-container .announcement-list > li {
	display: inline;
}
html body .announcement-container > [data-section="date"] {
	flex: 0 0 auto;
	padding-right: 0;
	white-space: nowrap;
	color: var(--theme-muted, #b3cecc);
	font-variant-numeric: tabular-nums;
}
@keyframes announcement-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
	html body .announcement-container .announcement-list {
		animation: none;
		padding-left: 0;
		white-space: normal;
	}
}
@media (max-width: 575px) {
	html body .announcement-container {
		flex-wrap: wrap;
		gap: 4px 8px;
		font-size: 12px;
	}
	html body .announcement-container > [data-section="announcements"] {
		flex-basis: calc(100% - 30px);
		padding: 4px 12px;
	}
	html body .announcement-container > [data-section="date"] {
		flex-basis: 100%;
		justify-content: flex-end;
		font-size: 11px;
		line-height: 16px;
	}
}

/* Footer copyright: satu baris rapi, patah hanya di antara dua bagian */
html body .footer-copyright-section .copyright {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 2px 6px;
	font-size: 13px;
	line-height: 20px;
}
html body .footer-copyright-section .copyright > span {
	white-space: nowrap;
}
@media (max-width: 991px) {
	html body .footer-copyright-section .col-md-12 {
		flex-wrap: wrap;
	}
	html body .footer-copyright-section .col-md-12 .copyright {
		flex: 0 0 100%;
		justify-content: center;
		margin: 8px 0 0;
		padding-top: 12px;
		border-top: 1px solid var(--theme-line, #176166);
		font-size: 12px;
		overflow-wrap: normal;
	}
}
