.SwipeAnnouncementKM {
	margin-top: 5px;
	border-radius: 12px;
}

.bg-kmtourn {
	width: 346px;
	height: auto;
	border-radius: 12px;
}

.bg-kmtourn_desktop {
	width: 450px;
	height: auto;
	border-radius: 12px;
}

.info-kmtourn {
	position: absolute;
	bottom: 13px;
	right: 20px;
	cursor: pointer;
}


.km_container {
	position: fixed;
	top: 50px;
	bottom: 50px;
	left: 10px;
	right: 10px;

	/* Optional max-width for desktop centered view while maintaining fixed position */
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	max-width: 800px;
	margin: 0 auto;
	background-color: #0d0d0d;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
	border: 2px solid #FFCF82;
	display: flex;
	flex-direction: column;
	z-index: 201;

}


.km_container_desktop {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	left: calc((1300px - 460px) / 2);
	
	margin-left: auto;
	margin-right: auto;
	max-width: 450px;
	max-height: 850px;
	margin: 0 auto;
	background-color: #0d0d0d;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
	border: 2px solid #FFCF82;
	display: flex;
	flex-direction: column;
	z-index: 201;
	color: #ebc76e;
	width: 450px;
	height: 100%;
    font-family: Noto Sans;
}

 .km_topbanner_en {
	background-image: url(../images/bg_kmtourn_en.jpg?v2);
	background-repeat: no-repeat;
	background-size: cover;
	/* padding: 12px 16px; */
	text-align: center;
	/*! border-bottom: 1px solid #374151; */
	flex-shrink: 0;
	width: 100%;
	aspect-ratio: 22/10;
	position: relative;
}

 .km_topbanner_th {
	background-image: url(../images/bg_kmtourn_th.jpg?v2);
	background-repeat: no-repeat;
	background-size: cover;
	/* padding: 12px 16px; */
	text-align: center;
	/*! border-bottom: 1px solid #374151; */
	flex-shrink: 0;
	width: 100%;
	aspect-ratio: 22/10;
	position: relative;
}

.km_topbanner_date {
	color: #FFFDEB;
	font-size: 18px;
	font-weight: 900;
	text-transform: uppercase;
	margin: 0;
	font-family: Inter;
	position: absolute;
	/* top: 50%; */
	left: 50%;
	transform: translateX(-50%);
	bottom: 27%;
	width: 100%;
	/* border: 3px solid #000000; */
	/* -webkit-text-stroke: 1px black; */
	text-shadow: -2px -2px 0 #000,  
2px -2px 0 #000,
-2px  2px 0 #000,
2px  2px 0 #000;
}

.km_topmenu_tabs {
	display: flex;
	width: 100%;
	gap: 1px;
	/*! background-color: #262626; */
	padding: 0;
	/*! border-bottom: 2px solid #3b82f6; */
	flex-shrink: 0;
	position: absolute;
	bottom: 0;
}

.km_topcategory_tab {
	background: linear-gradient(0deg, #000000 0%, #2A2A2A 100%);
	flex: 1;
	text-align: center;
	padding: 10px 16px;
	cursor: pointer;
	user-select: none;
	transition: all 0.2s ease;
	border-radius: 20px 20px 0 0;
	color: #C9C9C9;
	border: none;
	font-family: Noto Sans;
	font-weight: 700;
	font-size: 11px;
	line-height: 100%;
	letter-spacing: 0%;
	display: flex;
	align-items: center;
	justify-content: center;
}

	.km_topcategory_tab.active {
		background: linear-gradient(0deg, #2A2A2A 32.09%, #686868 100%);
		color: #F2D798;
		/*! box-shadow: 0px -2px 2px 0px #000000; */
		justify-content: center;
		align-items: center;
	}


	
.km-table {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0; /* Ensures inner scrolling inside fixed bounds */
}

.km-table-header {
	display: grid;
	grid-template-columns: 0.6fr 1.5fr 1fr;
	align-items: center;
	padding: 10px 10px;
}

.km-table-header {
	background-color: #2A2A2A;
	border-bottom: 1px solid #262626;
	flex-shrink: 0;
}

.km-table-col-header {
  color: #F2D798;
  font-family: Noto Sans;
	font-weight: 700;
	font-style: Bold;
	font-size: 12px;
	line-height: 100%;
	letter-spacing: 0%;
	vertical-align: middle;

}

.km-table-col-rank {
	padding-left: 5px;
}

.km-table-col-turnover {
	text-align: right;
}

.km-table-row {
	display: grid;
	grid-template-columns: 0.6fr 1.5fr 1fr;
	align-items: center;
	padding: 8px 5px 8px 10px;
}

.km-table-row:nth-child(odd) {
	background-color: #202020;
}

.km-table-row:nth-child(even) {
	background-color: #161616;
}

.km-table-cell {
	font-size: 8pt;
	color: #C9C9C9;
	font-family: Noto Sans;
	font-weight: 700;
	font-style: Bold;
	line-height: 100%;
	letter-spacing: 0%;
	vertical-align: middle;

}

.km-table-cell2 {
	font-size: 8pt;
	color: #000;
	font-family: Noto Sans;
	font-weight: 700;
	font-style: Bold;
	line-height: 100%;
	letter-spacing: 0%;
	vertical-align: middle;

}

.col-rank {
	padding-left: 5px;
}

.col-turnover {
	text-align: right;
	padding-right: 10px;
}

.col-turnover2 {
	text-align: right;
	padding-right: 5px;
}

.col-turnover3 {
	text-align: right;
}

.no-data-msg {
	  text-align: center;
	padding: 40px 16px;
	color: #6b7280;
	font-size: 0.9rem;
}
.floating-row {
  flex-shrink: 0;
  background: linear-gradient(90deg, #FFF6E0 0%, #F6DB9C 54.81%, #FFD36D 100%);
}

.km-table {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0; /* Ensures inner scrolling inside fixed bounds */
}

/* Scrollable Body inside fixed height */
.km-table-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #facc15 #181818;
}

/* CUSTOM YELLOW SCROLLBAR */
.km-table-body::-webkit-scrollbar {
  width: 8px;
}

.km-table-body::-webkit-scrollbar-track {
  background: #181818;
}

.km-table-body::-webkit-scrollbar-thumb {
  background-color: #facc15;
  border-radius: 4px;
}

.km-table-body::-webkit-scrollbar-thumb:hover {
  background-color: #eab308;
}

.enter-actions-row {
	flex-shrink: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 26px 16px;
	background-color: #2A2A2A;
	border-top: 1px solid #262626;
}

.btn-enter {
	background: linear-gradient(180deg, #FFE6A7 0%, #AD8647 100%);
	color: #000;
	padding: 8px 32px;
	border-radius: 20px;
	font-family: Noto Sans;
	font-weight: 900;
	font-size: 14pt;
	line-height: 100%;
	letter-spacing: 0%;
	vertical-align: middle;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0px 4px 4px 0px #000000CC;
}

.km-table-cell-sp {
	font-size: 8pt;
	color: #C9C9C9;
	font-family: Noto Sans;
	font-weight: 700;
	font-style: Bold;
	line-height: 100%;
	letter-spacing: 0%;
	vertical-align: middle;
	background-image: url(../images/img-sp-rank.png);
	background-repeat: no-repeat;
	background-size: cover;
	aspect-ratio: 24/19;
	position: absolute;
	height: 47px;
	display: flex;
	align-items: center;
	padding-left: 12px;
}

.km-table-row-sp {
	display: grid;
	grid-template-columns: 0.6fr 1.5fr 1fr;
	align-items: center;
	padding: 14px 10px;
	position: relative;
}

.km-term {
	background-color: #2A2A2A;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0; /* Ensures inner scrolling inside fixed bounds */
}

.km-term-content {
	padding: 12px;
	font-size: 9pt;
	font-family: Noto Sans;
	flex: 1;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #FFE6A7 #181818;
	font-weight: 700;
}

.km-term-table {
	margin: 12px auto;
	font-family: sans-serif;
	width: 100%;
}

.km-term-table-header {
	background-color: #F2D798;
	font-weight: bold;
	text-align: center;
	padding: 8px;
	font-family: Noto Sans;
	font-weight: 700;
	line-height: 100%;
	letter-spacing: 0%;
	color: #000;

}

.km-term-table-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 0px; 
}

.km-term-table-body > :nth-child(odd) {
	border-right: 1px solid #818181;
}

/* Table Content Cells */
.km-term-table-cell {
	display: flex;
	justify-content: center; /* Horizontally centered */
	align-items: center;     /* Vertically centered */
	padding: 5px;
	text-align: center;
	background-color: #202020; /* Cell color hides gap background elsewhere */
	color: #C9C9C9;
	font-family: Noto Sans;
	font-weight: 700;
	line-height: 100%;
	letter-spacing: 0%;
}

.km-tourn-enter {
	position: absolute;
	inset: 0;
	clip-path: polygon(26% 80%, 73% 80%, 73% 96%, 26% 96%); /* Example triangle area */
	cursor: pointer;  
}

.km-prize-week {
	color: White;
}

.km-term-paragraph {
	color: #C9C9C9;
	margin-top: 10px;
	margin-bottom: 10px;
}
	
.km-bullet-list {
	display: block;
	margin-left: 20px;
	margin-bottom: 10px;
}

.km-bullet-list span {
	display: list-item;
	list-style-type: disc;
}

.km-term-remark {
	font-style: italic
}

.loading {
    position: relative !important;
    top: 0 !important
}

    .loading:before, .loading:not(:required):after {
        display: none !important
    }

/* Absolute Center Spinner */
.loading {
    position: fixed;
    width: 50px;
    height: 50px;
    display: inline-block;
    overflow: show;
    margin: auto;
    top: 28rem;
    left: 0;
    bottom: 0;
    right: 0;
    /* z-index: 1; */
}

div.loading div {
    width: 6%;
    height: 16%;
    background: #fff;
    position: absolute;
    left: 49%;
    top: 43%;
    opacity: 0;
    -webkit-border-radius: 50px;
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
    -webkit-animation: fade 1s linear infinite;
}

.loading:before {
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(20, 20, 20, 0.8), rgba(0, 0, 0, 0.8));
    background: -webkit-radial-gradient( rgba(20, 20, 20, 0.8), rgba(0, 0, 0, 0.8) );
}

.loading:not(:required) {
    /* hide "loading..." text */
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

    .loading:not(:required):after {
        content: "";
        display: block;
        font-size: 10px;
        width: 1em;
        height: 1em;
        margin-top: -0.5em;
    }

@-webkit-keyframes fade {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.25;
    }
}

.loading div.bar1 {
    -webkit-transform: rotate(0deg) translate(0, -130%);
    -webkit-animation-delay: 0s;
}

.loading div.bar2 {
    -webkit-transform: rotate(30deg) translate(0, -130%);
    -webkit-animation-delay: -0.9167s;
}

.loading div.bar3 {
    -webkit-transform: rotate(60deg) translate(0, -130%);
    -webkit-animation-delay: -0.833s;
}

.loading div.bar4 {
    -webkit-transform: rotate(90deg) translate(0, -130%);
    -webkit-animation-delay: -0.7497s;
}

.loading div.bar5 {
    -webkit-transform: rotate(120deg) translate(0, -130%);
    -webkit-animation-delay: -0.667s;
}

.loading div.bar6 {
    -webkit-transform: rotate(150deg) translate(0, -130%);
    -webkit-animation-delay: -0.5837s;
}

.loading div.bar7 {
    -webkit-transform: rotate(180deg) translate(0, -130%);
    -webkit-animation-delay: -0.5s;
}

.loading div.bar8 {
    -webkit-transform: rotate(210deg) translate(0, -130%);
    -webkit-animation-delay: -0.4167s;
}

.loading div.bar9 {
    -webkit-transform: rotate(240deg) translate(0, -130%);
    -webkit-animation-delay: -0.333s;
}

.loading div.bar10 {
    -webkit-transform: rotate(270deg) translate(0, -130%);
    -webkit-animation-delay: -0.2497s;
}

.loading div.bar11 {
    -webkit-transform: rotate(300deg) translate(0, -130%);
    -webkit-animation-delay: -0.167s;
}

.loading div.bar12 {
    -webkit-transform: rotate(330deg) translate(0, -130%);
    -webkit-animation-delay: -0.0833s;
}