/* =========================================================================
   BINGO THEME — re-skinned to match /bingo-new (green-glass panels, gold
   accents, Astrolab / Maven Pro type). Structural rules (grid layout,
   flip-card mechanics, popup positioning) are kept as-is; only palette,
   typography and button/panel chrome were updated so existing JS hooks
   (ids, classes, onclick handlers) keep working unchanged.
   ========================================================================= */

@font-face {
	font-family: "Maven Pro";
	src: url("../fonts/MavenPro-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Maven Pro";
	src: url("../fonts/MavenPro-Medium.ttf") format("truetype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Maven Pro";
	src: url("../fonts/MavenPro-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Maven Pro";
	src: url("../fonts/MavenPro-Black.ttf") format("truetype");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Astrolab";
	src: url("../fonts/DFVN-Astrolab.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

.font-astrolab {
	font-family: var(--bingo-font-astrolab);
}

:root {
	--bingo-font-body: "Maven Pro", "Helvetica Neue", Arial, sans-serif;
	--bingo-font-display: "Maven Pro", "Helvetica Neue", Arial, sans-serif;
	--bingo-font-astrolab: "Astrolab", "Maven Pro", "Helvetica Neue", Arial, sans-serif;
	--bingo-panel-bg: rgba(11, 18, 20, 0.72);
	--bingo-panel-bg-solid: #1c2422;
	--bingo-panel-border: rgba(96, 128, 92, 0.5);
	--bingo-accent: #9cb499;
	--bingo-accent-bright: #b3d7ae;
	--bingo-text-light: #cfe1c9;
	--bingo-footer-bg: #374443;
	--bingo-gold: #b3d7ae;
	--bingo-gold-soft: #f5dc88;
	--bingo-white: #fff;
	--bingo-surface: rgba(55, 68, 67, 0.8);
	--bingo-ink: rgba(20, 30, 29, 0.7);
}

html {
	background: #0b1214 url("../images/bg_main.png") no-repeat center top / cover;
	min-height: 100%;
	font-family: "Maven Pro";
	font-weight: 400;
}

/* Bootstrap's reboot sets body{background-color:#fff} and loads before this
   file, so without this override it paints over the html background above
   and the bg image never shows. */
body {
	background-color: transparent;
	min-height: 100vh;
}

/* Desktop-first: unqualified rules below are the PC (>=1024px) layout.
   Two breakpoints only — 1023px (tablet/mobile) and 767px (mobile) —
   step the layout down from there. */
header {
	width: 100%;
	height: 80px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	padding: 0;
	background: rgba(5, 14, 19, 0.55);
	backdrop-filter: blur(4px);
	border-bottom: 1px solid var(--bingo-panel-border);
	color: var(--bingo-text-light);
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 999;
	text-transform: uppercase;
}

@media (max-width: 1023px) {
	header {
		justify-content: space-between;
		gap: 0;
		padding: 0 2rem;
	}
}

.header--logo img {
	height: 48px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}

header .header--desktop {
	display: flex;
	height: 100%;
	align-items: center;
	gap: 0.25rem;
}

@media (max-width: 1023px) {
	header .header--desktop {
		display: none;
	}
}

/* Plain nav links (Trang chủ / Thể lệ / Hỗ trợ / Nạp go) get their own class
   instead of a header--desktop a:not(.btn-bg-normal) exclusion — the old
   negation also caught the unclassed <a> inside .btn-bg-normal (Thoát) and
   dragged it into this look, clashing with the pill-button style. */
header .header--desktop__link {
	min-width: 120px;
	text-align: center;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	text-transform: uppercase;
	color: rgba(207, 225, 201, 0.75);
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
	transition: color 0.2s ease-in-out;
	font-weight: 500;
}

header .header--desktop__link:hover {
	background-image: linear-gradient(to top, rgba(156, 180, 153, 0.5), transparent);
	color: var(--bingo-white);
	cursor: pointer;
}

/* Login / register / logout pill buttons in header + mobile menu now share
   the .btn-bg-normal look (see class="btn-bg-normal" in Index.cshtml). */

header .header--mobile {
	display: none;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

@media (max-width: 1023px) {
	header .header--mobile {
		display: flex;
	}
}

header .header--mobile img {
	width: 32px;
	object-fit: cover;
}

.account__info {
	color: var(--bingo-text-light);
}

.account__info--name p,
.account__info--go-coin p {
	color: var(--bingo-text-light);
	font-weight: 500;
}

.account__info--action a {
	color: var(--bingo-gold) !important;
}

.banner-events {
	width: 100%;
}

.banner-events img {
	width: 100%;
	object-fit: cover;
}

.banner-events__mobile {
	display: none;
}

@media (max-width: 640px) {
	.banner-events__pc {
		display: none;
	}

	.banner-events__mobile {
		display: block;
	}
}

/* Core functionality */
#animated-text-strip {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	overflow: hidden;
	background: rgba(5, 14, 19, 0.6);
}

#animated-text-strip .marquee {
	white-space: nowrap;
	animation: marquee 15s linear infinite;
}

@keyframes marquee {
	0% {
		transform: translate(0, 0);
	}

	100% {
		transform: translate(-100%, 0);
	}
}

#animated-text-strip img {
	height: 40px;
	max-width: none;
}

@media (max-width: 1023px) {
	#animated-text-strip img {
		height: 32px;
	}
}

@media (max-width: 767px) {
	#animated-text-strip img {
		height: 28px;
	}
}

.main-section {
	background: transparent;
	padding: 2% 0;
}

.container {
	max-width: 1440px;
	margin-right: auto;
	margin-left: auto;
	padding: 1rem;
	display: flex;
	flex-direction: row;
	align-items: start;
	gap: 1.5rem;
}

@media (max-width: 1023px) {
	.container {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
}

.container__items {
	padding: 1.5rem;
	position: relative;
	margin-left: auto;
	margin-right: auto;
}

/* "BINGO" wordmark above the board — shown at every width now that the
   board (.container__items) sits on top of the sidebar on mobile/tablet. */
.bingo-logo {
	width: 34.6666666667%;
	min-width: 192px;
	max-width: 312px;
	margin: 0 auto 1rem;
	display: block;
}

.bingo-logo img {
	width: 100%;
	height: auto;
	object-fit: contain;
	pointer-events: none;
}

.container .number-ev {
	grid-column-start: 2;
	grid-column-end: 7;
	grid-row-start: 2;
	grid-row-end: 7;
	width: 100%;
	min-width: 0;
}

.container .number-matrix {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-template-rows: repeat(5, 1fr);
	gap: 0.25rem;
	justify-items: center;
	align-items: center;
	min-width: 0;
}

.container .number-item--front {
	width: 100%;
	height: 100%;
	aspect-ratio: 117/74;
	background-color: var(--bingo-ink);
	border: 1px solid var(--bingo-panel-border);
	font-weight: 500;
	font-size: clamp(1rem, 1rem + 1vw, 2.5rem);
	color: #60805c;
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	text-overflow: ellipsis;
}

.container .reward-card--front {
	width: 100%;
	height: 100%;
	aspect-ratio: 118/74;
	background-color: rgba(28, 36, 34, 0.4);
	border: 1px solid var(--bingo-panel-border);
	font-weight: 900;
	font-size: 1rem;
	color: var(--bingo-text-light);
	display: flex;
	justify-content: center;
	align-items: center;
	text-overflow: ellipsis;
}

.reward-card--front img {
	height: 100%;
	width: 100%;
	object-fit: contain;
	pointer-events: none;
}

.container .number-item {
	width: 100%;
	height: 100%;
	min-width: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	aspect-ratio: 118/74;
}

.number-item--front img {
	width: 100%;
	aspect-ratio: 118/74;
	object-fit: contain;
	overflow: hidden;
}

.container .number-item--front p {
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.container .number-item--active {
	background-color: var(--bingo-panel-border);
	border-color: rgba(96, 128, 92, 1);
	animation: bgInnerAnimation 2s linear infinite;
	color: rgba(179, 215, 174, 1);
	animation: none;
}

.title_final_reward {
	grid-column-start: 2;
	grid-column-end: 4;
	grid-row-start: 1;
	grid-row-end: 2;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1;
	color: var(--bingo-text-light);
	font-size: clamp(0.5rem, 0.5rem + 1.25vw, 1.25rem);
	font-weight: 500;
	border: 1px solid var(--bingo-panel-border);
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 0;
}

.title_final_reward img {
	scale: 1.3;
}

@keyframes bgInnerAnimation {
	0% {
		box-shadow: inset 0px 0px 15px 4px var(--bingo-gold-soft);
	}

	50% {
		box-shadow: inset 0px 0px 15px 8px var(--bingo-gold-soft);
	}

	100% {
		box-shadow: inset 0px 0px 15px 4px var(--bingo-gold-soft);
	}
}

.bingo--number {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: repeat(7, 1fr);
	gap: 0.25rem;
	justify-items: center;
	align-items: center;
	background: rgba(11, 18, 20, 0.7);
	border: 1px solid var(--bingo-panel-border);
	padding: 1.25rem;
	margin-bottom: 1rem;
}

/* Sidebar = spin panel + action panel, stacked below the number board
   (.container__items) at every width — see .container above. */
.bingo-sidebar {
	position: relative;
	width: 100%;
	max-width: 340px;
	margin: 0;
	display: flex;
	flex-direction: column;
}

@media (max-width: 1023px) {
	.bingo-sidebar {
		max-width: none;
		margin: 0 auto;
	}
}

/* .bingo-logo (above the board) already shows the wordmark at every width,
   so this second copy inside the sidebar is kept hidden to avoid duplicating it. */
.sidebar-title {
	display: none;
}

.bingo--spin {
	width: 100%;
	color: var(--bingo-text-light);
	text-align: center;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding-top: 0;
}

.spin-title {
	font-weight: 500;
	font-size: clamp(14px, 14px + 0.5vw, 20px);
}

@media (max-width: 1023px) {
	.bingo--spin {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 1rem;
		max-width: 480px;
		padding: 1.5rem 0;
	}

	/* .spin-title and .btn-start split the row 50/50 — flex-basis:0 ignores
	   each one's own content width so neither can grow past its half. */
	.spin-title,
	.btn-start {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}

	.spin-title {
		padding: 0.25rem;
		background: rgba(55, 68, 67, 0.6);
	}

	.number-draw {
		font-size: clamp(20px, 20px + 2vw, 48px) !important;
	}

	.btn-start {
		margin-bottom: 0 !important;
	}
}

.bingo--action {
	width: 100%;
	color: var(--bingo-text-light);
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-direction: column;
	padding: 0 0 1.5rem 0;
}

.bingo--action > div {
	width: 100%;
}

.list-actions {
	width: 100%;
	list-style: none;
	margin: 0;
	padding: 0;
}

.list-actions > li {
	width: 100%;
}

.list-actions > li > a {
	display: block;
	width: 100%;
}

/* ---- Action / utility buttons ------------------------------------------
   Old markup kept a decorative <img> as button chrome plus an icon <img>
   inside; both are hidden and replaced with a flat translucent green card
   (same recipe as .btn-action in bingo-new) so no HTML had to change. */
.button-base {
	width: 100%;
	position: relative;
	max-width: 290px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 0.4rem;
	font-weight: bold;
	cursor: pointer;
	min-height: 48px;
	border: 1px solid var(--bingo-panel-border);
	background-color: var(--bingo-surface);
	transition: all 0.2s ease-in-out;
}

.button-base:hover {
	background-color: rgba(156, 180, 153, 0.65);
	border-color: var(--bingo-accent-bright);
}

.button-base > img {
	display: none;
}

.button-base div {
	width: 100%;
	position: relative;
	top: auto;
	left: auto;
	transform: none;
	display: flex;
	justify-content: start;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
}

.button-base div img {
	width: 30px;
	object-fit: contain;
}

.button-base div p {
	margin: 0;
	/* text-transform: uppercase; */
	font-size: clamp(10px, 10px + 0.5vw, 1rem);
	text-align: left;
	color: var(--bingo-text-light);
	transition: color 0.2s ease-in-out;
	font-weight: 500;
}

.button-base:hover div p {
	color: var(--bingo-white);
}

.btn-icon div img {
	display: none;
}

.btn-icon div::before {
	content: "";
	display: inline-block;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	background-color: var(--bingo-accent);
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	transition: background-color 0.2s ease-in-out;
}

.button-base:hover div::before {
	background-color: #f8f9fa;
}

.btn-icon[data-name="buy-turn"] div::before {
	mask-image: url("../images/svg/ic_buy_turn.svg");
	-webkit-mask-image: url("../images/svg/ic_buy_turn.svg");
}

.btn-icon[data-name="buy-number"] div::before {
	mask-image: url("../images/svg/ic_buy_number.svg");
	-webkit-mask-image: url("../images/svg/ic_buy_number.svg");
}

.btn-icon[data-name="change-number"] div::before {
	mask-image: url("../images/svg/ic_change_number.svg");
	-webkit-mask-image: url("../images/svg/ic_change_number.svg");
}

.btn-icon[data-name="claim-reward"] div::before {
	mask-image: url("../images/svg/ic_claim_reward.svg");
	-webkit-mask-image: url("../images/svg/ic_claim_reward.svg");
}

.btn-icon[data-name="missions"] div::before {
	mask-image: url("../images/svg/ic_missions.svg");
	-webkit-mask-image: url("../images/svg/ic_missions.svg");
}

.btn-icon[data-name="reward-list"] div::before {
	mask-image: url("../images/svg/ic_reward_list.svg");
	-webkit-mask-image: url("../images/svg/ic_reward_list.svg");
}

.btn-icon[data-name="history"] div::before {
	mask-image: url("../images/svg/ic_history.svg");
	-webkit-mask-image: url("../images/svg/ic_history.svg");
}

.final-reward--layout {
	grid-column-start: 4;
	grid-column-end: 7;
	grid-row-start: 1;
	grid-row-end: 2;
}

.final-reward {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--bingo-panel-border);
	position: relative;
}

.final-reward img {
	object-fit: contain;
	padding: 0 2rem;
	width: 100%;
	height: 100%;
	max-height: 72px;
	pointer-events: none;
}

.final-reward.final-reward--layout img {
	animation: bigGiftGlowImg 4s ease-in-out infinite;
}

.final-reward h3 {
	position: absolute;
	bottom: 1.5rem;
	left: 1.5rem;
	font-weight: bold;
	text-align: start;
	width: fit-content;
	color: var(--bingo-white);
	font-size: 20px;
}

@media (max-width: 1023px) {
	.final-reward h3 {
		bottom: 2rem;
		left: 2rem;
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.final-reward h3 {
		bottom: 0.75rem;
		left: 0.75rem;
		font-size: 10px;
	}
}

.number-draw {
	color: var(--bingo-gold);
	font-weight: 400;
	font-size: clamp(24px, 24px + 2vw, 48px);
	text-align: center;
	line-height: 120%;
	font-family: var(--bingo-font-display);
	text-shadow:
		0px 0px 4px rgba(0, 0, 0, 0.8),
		0 0 20px var(--bingo-gold);
	font-family: "Astrolab";
	margin-top: 0.5rem;
}

.btn-start {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: 400;
	color: var(--bingo-white);
	font-size: clamp(10px, 10px + 1vw, 30px);
	font-family: var(--bingo-font-display);
	text-transform: uppercase;
	max-height: none !important;
	background: url("../images/bg_button_normal.png") no-repeat center/contain;
	aspect-ratio: 277/88;
	min-height: 64px;
	border: none;
	text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
	transition: filter 0.2s ease-in-out;
	font-family: "Astrolab";
}

.btn-start:hover {
	background-color: transparent;
}

.btn-start > img {
	display: none !important;
}

.btn-start div {
	justify-content: center !important;
	padding: 0 !important;
}

.btn-total-turn-draw {
	font-size: 14px !important;
	cursor: no-drop;
	background-color: var(--bingo-surface) !important;
	border: 1px solid var(--bingo-panel-border) !important;
}

.btn-total-turn-draw:hover {
	background-color: var(--bingo-surface) !important;
	border-color: var(--bingo-panel-border) !important;
}

.btn-total-turn-draw div {
	justify-content: center !important;
}

.btn-total-turn-draw p {
	text-align: center;
	color: var(--bingo-text-light);
}

.btn-total-turn-draw span {
	font-size: 20px !important;
	color: var(--bingo-gold);
	font-family: var(--bingo-font-display);
}

footer {
	width: 100%;
	background-color: var(--bingo-footer-bg);
}

footer img {
	width: 100%;
}

footer .footer-mobile {
	display: none;
}

@media (max-width: 767px) {
	footer .footer-pc {
		display: none;
	}

	footer .footer-mobile {
		display: block;
	}
}

.flip-card--inner {
	position: relative;
	width: 100%;
	height: 100%;
	text-align: center;
	transition: transform 2s;
	transform-style: preserve-3d;
}

.flip-card--front {
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden; /* Safari */
	backface-visibility: hidden;
}

.flip-card--back {
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden; /* Safari */
	backface-visibility: hidden;
	transform: rotateY(180deg);
	background-color: var(--bingo-panel-border);
	border: 2px solid var(--bingo-ink);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: max(1rem, 6%);
	inset: 0;
}

.flip-card--back img {
	width: 100%;
	height: 100%;
	max-width: 75%;
	object-fit: contain;
}

.reward__item img {
	width: 100%;
}

.menu-mobile {
	width: 100%;
	height: calc(100vh - 80px);
	background: linear-gradient(to bottom, var(--bingo-panel-bg-solid), var(--bingo-footer-bg));
	position: fixed;
	z-index: 999;
	top: 80px;
	padding: 2rem 1rem;
	display: none;
	text-transform: uppercase;
}

@media (min-width: 1024px) {
	.menu-mobile {
		display: none !important;
	}
}

.menu-mobile--active {
	animation: fadeRTL 0.3s linear;
}

.menu-mobile--unactive {
	animation: fadeLTR 0.3s linear;
}

.menu-mobile--body {
	display: flex;
	justify-content: start;
	align-items: center;
	flex-direction: column;
	gap: 1rem;
}

.menu-mobile--body a {
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	text-transform: uppercase;
	font-weight: 500;
	color: var(--bingo-text-light);
}

.menu-mobile--body .account__info {
	flex-direction: column;
}

@keyframes fadeRTL {
	0% {
		transform: translateX(100%);
		opacity: 0;
	}

	100% {
		transform: translateX(0%);
		opacity: 1;
	}
}

@keyframes fadeLTR {
	0% {
		transform: translateX(0%);
		opacity: 1;
	}

	100% {
		transform: translateX(100%);
		opacity: 0;
	}
}

.modal-footer {
	border-top: none;
}

.popup-modal {
	height: 100vh;
	width: 100vw;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background-color: rgba(5, 14, 19, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem;
	z-index: 998;
}

.btn-bg-normal {
	min-width: 140px;
	height: 44px;
	padding: 0.5rem 1.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	text-transform: uppercase;
	background: url("../images/bg_button_normal.png") no-repeat center/contain;
	color: var(--bingo-ink);
	font-weight: 600;
	font-size: clamp(16px, 16px + 1vw, 18px);
	transition: all 0.1s ease;
}

.btn-bg-normal:hover {
	background-image: url("../images/bg_button_light.png");
	background-color: transparent;
	color: var(--bingo-ink);
}

.btn-bg-normal.btn-disable {
	background-image: url("../images/bg_button_disable.png");
	cursor: no-drop;
	pointer-events: none;
}

.btn-bg-normal.btn-disable:hover {
	background-image: url("../images/bg_button_disable.png");
	color: var(--bingo-ink);
}

/* Visual-only variant for "Huỷ" (cancel) buttons — same disable artwork as
   .btn-disable but stays clickable (no pointer-events/cursor lockout). */
.btn-bg-normal.btn-cancel,
.btn-bg-normal.btn-cancel:hover {
	background-image: url("../images/bg_button_disable.png");
	color: var(--bingo-ink);
}

.modal--contents {
	max-width: 768px;
	width: 100%;
	border: none;
	border-radius: 0;
	border: 1px solid var(--bingo-panel-border);
	box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.5);
	padding: max(2%, 1.5rem);
	background:
		url("../images/bg_popup_top.png") no-repeat top/ 100% auto,
		url("../images/bg_popup_bottom.png") no-repeat bottom/ 100% auto,
		rgba(55, 68, 67, 0.9);
}

.modal--header {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	position: relative;
	color: var(--bingo-gold);
}

.modal--header h3 {
	font-weight: bold;
	text-transform: uppercase;
	font-family: var(--bingo-font-display);
	margin-bottom: 0;
	font-size: clamp(20px, 20px + 1vw, 24px);
}

.modal--header button {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-75%);
	color: rgba(156, 180, 153, 0.7);
	padding: 0.5rem;
	border: 1px solid rgba(156, 180, 153, 0.7);
	border-radius: 50%;
	aspect-ratio: 1/1;
	width: 32px;
	height: 32px;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 0.3s ease;
}

.tranformRotage {
	transform: rotateY(180deg);
}

.modal--body {
	min-height: 180px;
	height: 100%;
	max-height: 65vh;
	overflow-y: auto;
	padding: 1rem 1.5rem;
	margin: 1rem auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-family: var(--bingo-font-body);
	background:
		url("../images/img_line_popup.png") no-repeat top/ 100% auto,
		url("../images/img_line_popup.png") no-repeat bottom/ 100% auto;
}

.modal--body h3 {
	color: var(--bingo-white);
	line-height: 1.5;
}

.modal--footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	padding: 0;
	gap: 1rem;
}

/* ===== Modal xác nhận mua lượt (#myModal - Bootstrap, dựng bởi ComLibs.Model) =====
   Ghi đè cho giống giao diện .popup-modal / .modal--contents dùng chung của trang. */
/* Không dùng !important cho display: nếu để !important thì khi bấm nút thoát/ẩn
   (jQuery .hide() chỉ set inline style, không có !important) sẽ KHÔNG thể ẩn được
   modal này nữa vì !important trong stylesheet luôn thắng inline style thường -->
   overlay bị kẹt, không thao tác được các lớp bên dưới. Selector có id (#myModal)
   đã đủ specificity để thắng rule "display: none" mặc định của .modal khi hiển thị,
   và vẫn cho phép .hide()/.show() bật tắt bình thường. */
#myModal.modal {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem !important;
	margin-top: 0 !important;
	z-index: 1050 !important;
}

/* modal-backdrop mặc định của Bootstrap là z-index 1040, phải luôn thấp hơn #myModal
   (997 trước đây thấp hơn backdrop nên backdrop đè lên, không bấm được nút Xác nhận) */
.modal-backdrop {
	z-index: 1040;
}

#myModal .modal-dialog {
	max-width: 768px;
	width: 100%;
	margin: 0 auto;
}

#myModal .modal-header {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	position: relative;
	/* Bootstrap đặt .modal-dialog{pointer-events:none} và chỉ mở lại pointer-events:auto
	   cho .modal-content (bootstrap.css). modal-header là anh em (không phải con) của
	   modal-content nên vẫn bị kế thừa pointer-events:none -> nút thoát (✖) bên trong
	   không bấm được dù nhìn thấy rõ. Phải tự mở lại pointer-events ở đây. */
	pointer-events: auto;
	color: var(--bingo-gold);
	background:
		url("../images/bg_popup_top.png") no-repeat top/ 100% auto,
		rgba(55, 68, 67, 0.9);
	border: 1px solid var(--bingo-panel-border);
	border-bottom: none;
	border-radius: 0;
	padding: max(2%, 1.5rem) max(2%, 1.5rem) 0.75rem;
}

#myModal .modal-header h3 {
	font-weight: bold;
	text-transform: uppercase;
	font-family: var(--bingo-font-display);
	margin-bottom: 0;
	font-size: clamp(20px, 20px + 1vw, 24px);
}

#myModal .modal-header button {
	position: absolute;
	right: max(2%, 1.5rem);
	top: 50%;
	transform: translateY(-50%);
	color: rgba(156, 180, 153, 0.7);
	background: transparent;
	padding: 0.5rem;
	border: 1px solid rgba(156, 180, 153, 0.7);
	border-radius: 50%;
	aspect-ratio: 1/1;
	width: 32px;
	height: 32px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 14px;
	line-height: 1;
}

#myModal .modal-content.modal-pay {
	max-width: 768px;
	width: 100%;
	margin: 0 auto;
	background:
		url("../images/bg_popup_bottom.png") no-repeat bottom/ 100% auto,
		rgba(55, 68, 67, 0.9) !important;
	border: 1px solid var(--bingo-panel-border) !important;
	border-top: none !important;
	border-radius: 0 !important;
	box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.5) !important;
	padding: 0 max(2%, 1.5rem) max(2%, 1.5rem) !important;
}

#myModal .modal-pay-ct {
	min-height: 180px;
	max-height: 65vh;
	overflow-y: auto;
	padding: 1rem 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-family: var(--bingo-font-body);
	color: var(--bingo-white);
	line-height: 1.5;
	background:
		url("../images/img_line_popup.png") no-repeat top/ 100% auto,
		url("../images/img_line_popup.png") no-repeat bottom/ 100% auto;
}

#myModal .modal-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	padding-top: 1rem;
	border-top: none;
	background: transparent;
}

#pop-up-buy-turn .option-buy {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	margin-bottom: 1rem;
}

#pop-up-buy-turn .option-buy p {
	width: 100%;
	color: var(--bingo-white);
}

#pop-up-mission .mission-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	margin-bottom: 1rem;
}

#pop-up-mission .mission-item p {
	width: 100%;
	color: var(--bingo-white);
}

#pop-up-mission .mission-item--status img {
	width: 36px;
	aspect-ratio: 1/1;
}

#pop-up-history table {
	width: 100%;
	color: var(--bingo-white);
	font-size: 16px;
}

@media (max-width: 767px) {
	#pop-up-history table {
		font-size: 12px;
	}
}

#pop-up-history table th,
#pop-up-history table td {
	height: 48px;
}

#pop-up-history table thead {
	border-bottom: 2px solid var(--bingo-panel-border);
}

#pop-up-history table tbody tr td:last-child {
	color: var(--bingo-accent-bright);
}

#pop-up-guide {
	color: var(--bingo-white);
}

#pop-up-guide .modal--body {
	display: flex;
	justify-content: start;
	align-items: start;
}

#pop-up-guide ul {
	display: flex;
	align-items: start;
	justify-content: start;
	flex-direction: column;
}

#pop-up-guide ul li {
	text-align: start;
	margin-bottom: 0.75rem;
}

#pop-up-list-reward .modal--body {
	display: flex;
	justify-content: start;
}

#pop-up-list-reward .reward--type {
	margin-bottom: 2rem;
	max-width: 100%;
}

#pop-up-list-reward .reward--title {
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 1rem;
	color: var(--bingo-white);
	font-weight: bold;
}

#pop-up-list-reward .reward--contents {
	display: flex;
	justify-content: center;
	align-items: center;
}

#pop-up-list-reward .reward--contents img {
	width: fit-content;
	object-fit: contain;
}

.grid-rewards {
	display: flex;
	justify-content: center;
	align-items: start;
	flex-wrap: wrap;
	gap: 2rem;
}

.grid-rewards img {
	aspect-ratio: 118/74;
	width: 160px;
}

.grid-rewards div {
	aspect-ratio: 118/74;
}

#gift-success-items > div {
	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: center;
	width: 160px;
	aspect-ratio: 118/74;
}

#gift-success-items > div img {
	border: 2px solid var(--bingo-panel-border);
	margin-bottom: 0.5rem;
	background: url("../images/bg_big_gift.png") no-repeat center / 100% 100%;
	object-fit: contain;
}

#gift-success-items p {
	text-align: center;
	color: #bec6b7;
	font-weight: 500;
}

.modal-open {
	overflow: auto !important;
}

#gift-success-items {
	overflow: auto;
	max-height: 30vh;
}

.flex-col-start {
	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: start;
}

.flex-col-center {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

a:hover {
	color: inherit;
	text-decoration: none;
}

.font-bold {
	font-weight: bold;
}

.text-highlight {
	color: var(--bingo-gold);
	font-weight: 600;
}

table.table-reward,
.table-reward th,
.table-reward td {
	border: 1px solid var(--bingo-panel-border);
	padding: 8px 16px;
}

.table-responsive {
	width: 100%;
}

.big-gift {
	background: url("../images/bg_big_gift.png") no-repeat center / 100% 100%;
}

.big-gift .number-item--front {
	background-color: transparent;
	border-color: transparent;
}

.big-gift .number-item--active {
	background: var(--bingo-panel-border);
}

.big-gift .number-item--active img {
	animation: bigGiftGlowImg 4s ease-in-out infinite;
}

@keyframes bigGiftGlowImg {
	0%,
	100% {
		filter: brightness(1) drop-shadow(0 0 1px var(--bingo-gold-soft));
	}

	50% {
		filter: brightness(1.05) drop-shadow(0 0 3px var(--bingo-gold-soft));
	}
}
