:root {
  --sj-font: "Be Vietnam Pro", "Noto Sans KR", system-ui, -apple-system, sans-serif;
}

body {
  background: #2A475E;
  color: #fff;
  font-family: var(--sj-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
    text-underline-offset: 3px;
}

.bg-dark {
    background-color: rgba(16, 29, 44, 0.9)!important;
}

.testnet-badge{
	position: absolute;
    bottom: 21px;
    font-size: 8px;
    font-family: var(--sj-font);
    left: 146px;
}

.sj-logo-image{
    height: 36px;
    border-radius: 50%;
    vertical-align: -11px;
    margin-right: 4px;
}

.profile-card-block{
    background-color: #171d25!important;
}

#appProfileContainer .login-btn, #lockScreen .login-btn{
    border: solid 1px rgb(255 204 0 / 50%) !important;
    background-color: #010000;
    color: #ffcc00!important;
}

hr{
	border-color: #607D8B;
}

.nav-link:focus-visible, .nav-link:focus, .nav-link:active{
	box-shadow: none!important;
}

.bottom-navbar a small, .bottom-navbar button small{
	font-size: 9px;
	font-family: Bungee;
}

.bottom-navbar a.nav-link.active{
	color: #FF9800 !important;
}

.sj-bottom-bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	width: 100%;
	padding: 0 4px;
	gap: 0;
}
.sj-bottom-bar > .nav-link {
	flex: 1 1 0;
	min-width: 0;
	padding-left: 2px;
	padding-right: 2px;
}
.sj-bottom-fab-slot {
	flex: 0 0 64px;
	width: 64px;
	height: 1px;
	pointer-events: none;
}
.sj-lobby-icon {
	position: relative;
	display: inline-block;
	line-height: 1;
}
.sj-lobby-badge {
	position: absolute;
	top: -5px;
	left: calc(50% + 6px);
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #dc3545;
	color: #fff;
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	display: none;
}

.sj-more-float {
	position: fixed;
	left: 10px;
	bottom: calc(78px + env(safe-area-inset-bottom, 0px));
	z-index: 1035;
}
.sj-more-float-btn {
	width: 42px;
	height: 26px;
	border: 0;
	border-radius: 0;
	padding: 0 0 2px;
	background: #f8f9fa;
	color: #212529;
	display: inline-flex;
	align-items: flex-end;
	justify-content: center;
	clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
	box-shadow: none;
}
.sj-more-float-btn i {
	font-size: 0.95rem;
	line-height: 1;
}
.sj-more-float-btn:hover,
.sj-more-float-btn:focus,
.sj-more-float-btn[aria-expanded="true"] {
	background: #f8f9fa;
	color: #FF9800;
	box-shadow: none;
}
.sj-more-float-btn.active {
	color: #FF9800;
}
.sj-more-float .dropdown-menu {
	z-index: 1040;
	min-width: 13rem;
}

.sj-find-fab {
	position: fixed;
	left: 50%;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #ffe27a 0%, #ffc107 45%, #e69500 100%);
	color: #2a1a00;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	z-index: 1036;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.38), 0 0 0 3px rgba(23, 29, 37, 0.92);
}
.sj-find-fab i {
	font-size: 1.55rem;
	line-height: 1;
}
.sj-find-fab:hover,
.sj-find-fab:focus {
	color: #1a1000;
	filter: brightness(1.06);
}
.sj-find-fab:active {
	transform: translateX(-50%) scale(0.96);
}

body.sj-game-fs .sj-more-float,
body.sj-game-fs .sj-find-fab,
body.sj-game-fs .bottom-navbar,
body.sj-game-fs .sj-duel-banner {
	display: none !important;
}

/* Duel lobby is a waiting room: no site chrome. */
body.sj-lobby-room > nav.navbar.fixed-top,
body.sj-lobby-room .sj-duel-banner,
body.sj-lobby-room .bottom-navbar,
body.sj-lobby-room .sj-more-float,
body.sj-lobby-room .sj-find-fab {
	display: none !important;
}
body.sj-lobby-room #appBodyContainer > .container {
	padding-bottom: 24px !important;
}

/* Compact incoming-duel strip, directly under the fixed header. */
.sj-duel-banner {
	position: fixed;
	top: 56px;
	left: 0;
	right: 0;
	z-index: 1020;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background: linear-gradient(90deg, rgba(60, 42, 4, 0.98) 0%, rgba(27, 40, 56, 0.98) 55%, rgba(27, 40, 56, 0.98) 100%);
	color: #fff;
	border-bottom: 2px solid #ffc107;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 193, 7, 0.18);
}
.sj-duel-banner[hidden] {
	display: none !important;
}
.sj-duel-banner-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
	background: #fff;
	border: 2px solid #ffc107;
	box-shadow: 0 0 10px rgba(255, 193, 7, 0.45);
}
.sj-duel-banner-copy {
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.2;
}
.sj-duel-banner-copy strong,
.sj-duel-banner-copy span {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sj-duel-banner-copy strong {
	font-size: 0.86rem;
	font-weight: 800;
	color: #ffd97a;
}
.sj-duel-banner-copy span {
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.85);
}
.sj-duel-banner-countdown {
	font-size: 0.72rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.75);
	white-space: nowrap;
}
#sjDuelBannerDecline {
	font-weight: 700;
	padding: 4px 14px;
	font-size: 0.78rem;
	border-radius: 999px;
}
.sj-duel-banner-actions {
	display: flex;
	gap: 6px;
	flex: 0 0 auto;
}
.sj-duel-banner-actions .btn {
	padding: 2px 8px;
	font-size: 0.72rem;
}
#sjDuelBannerAccept {
	font-weight: 800;
	padding: 4px 14px;
	font-size: 0.78rem;
	border-radius: 999px;
	animation: pulse-warning 1.6s infinite;
}
#sjDuelBannerAccept:disabled {
	animation: none;
}

/* Legacy fullscreen duel control stays in the play header; hidden for now. */
#fullscreen-duel-notification {
	display: none !important;
}

/* Fullscreen play header: title centered on row 1, HUD pill centered under it. */
.sj-fs-header {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: auto;
	background: #000;
	z-index: 10000;
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sj-fs-bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 36px;
	padding: 0 10px;
}
.sj-fs-title {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	max-width: calc(100% - 168px);
	padding: 0 6px;
	color: #fff;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}
.sj-fs-hud-row {
	display: none;
	justify-content: center;
	align-items: center;
	margin-top: -4px;
	padding: 0 10px 4px;
}
body.sj-game-fs #fullscreen-header .sj-fs-hud-row:has(.sj-play-hud:not([hidden])),
body.sj-game-fs #fullscreen-header .sj-fs-hud-row.is-on {
	display: flex;
}
.sj-fs-side {
	display: flex;
	align-items: center;
	z-index: 1;
	flex-shrink: 0;
}
.sj-fs-exit {
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.78rem;
	padding: 0.22rem 0.55rem;
}
.sj-fs-joy {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-right: 6px;
	color: #ffc107;
	font-size: 0.68rem;
	line-height: 1;
}
.sj-fs-joy i { font-size: 0.62rem; }
.sj-fs-joy strong { font-size: 0.68rem; font-weight: 700; }
.sj-fs-home {
	background: rgba(255,255,255,0.1);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 0.2rem 0.45rem;
}

.dropdown-menu li a{
	font-family: var(--sj-font);
	color: rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important
}

.navbar {
  background-color: #171d25;
  color: #fff;
}

.navbar .navbar-brand, #userAvailablePlays, .offcanvas-title{
    font-family: Bungee;
}

#userAvailablePlays{
    font-size: 16px!important;
    vertical-align: -2px;
}

.nav-link {
  color: #ffffff;
}
.nav-link:hover, .navbar-brand, .navbar-brand:hover, .navbar-brand:focus, a {
  color: #ffcc00;
}

.navbar-brand{
    font-size: 16px!important;
}

.btn{
	font-family: var(--sj-font);
}
.card {
  background-color: #18364d;
  color: #ffffff;
  border-color: rgb(255 255 255 / 5%)!important;
  border: none !important;
    border-radius: 8px;
    overflow: hidden;
}

#lockScreen{
	/* border: solid 1px rgb(255 255 255 / 10%); */
	background-color: #18364d;
}

.card-title{
	font-family: var(--sj-font);
    font-size: 18px;
    font-weight: 600;
}
.footer {
  padding: 1rem 0;
  text-align: center;
  font-size: 0.875rem;
  background-color: #1f1f1f;
  color: #cccccc;
}

.dropdown-menu li.nav-item{
	margin-bottom: 8px;
	width: 100%;
	white-space: nowrap;
}

.dropdown-menu li.nav-item a{
    display: block;
}

.dropdown-menu li.nav-item.current a{
    color: #FF9800 !important;
}

.card-footer{
	border-top-color: rgb(255 255 255 / 5%);
}

#appBodyContainer{
	min-height: calc(100vh - 150px);
}

#appBodyContainer > .container{
	padding-bottom: 100px!important;
	max-width: 1024px;
}
#appBodyContainer > .container.games-list-page {
	padding-top: 4.75rem !important;
	margin-top: 0 !important;
}

#piWarning{
	margin-top: 70px;
	margin-bottom: -60px;
}

.game-thumbnail {
  object-fit: cover;
  height: 120px;
}

.game-thumb-wrap {
  position: relative;
  display: block;
}

.game-player-count {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  backdrop-filter: blur(4px);
}

.game-player-count i {
  font-size: 10px;
  opacity: 0.9;
}

.game-thumb-link {
  display: block;
}

.game-thumb-info {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  backdrop-filter: blur(4px);
}

.game-thumb-info i {
  font-size: 12px;
}

.game-thumb-cost {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.game-thumb-cost i {
  font-size: 10px;
  opacity: 0.9;
}

.game-thumb-cost.is-free {
  background: rgba(25, 135, 84, 0.82);
}

.user-avatar{
	width: 30px;
    height: 30px;
    border: solid 1px #ffc107;
}

.simplejoy-game-container{
	position: relative;
    margin: 0 auto;
    min-height: 400px;
}

.profile-container a{
	text-decoration: none;
}

/* Compact Joy + avatar chip in the top navbar */
.sj-header-user {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 3px 2px 8px;
	border: 1px solid #ffc107;
	border-radius: 999px;
	line-height: 1;
	color: #ffc107;
}
.sj-header-user:hover,
.sj-header-user:focus {
	color: #ffc107;
}
.sj-header-joy {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 700;
}
.sj-header-joy i {
	font-size: 10px;
}
.sj-header-joy #userJoyPoints {
	font-size: 11px;
	font-weight: 700;
}
.sj-header-level-badge {
	position: absolute;
	right: -4px;
	bottom: -2px;
	min-width: 12px;
	height: 12px;
	background: #fff;
	border-radius: 50%;
	border: 1px solid #ffc107;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 7px;
	line-height: 1;
}

.sj-header-user .user-avatar {
	border: none;
}

/* Profile panel is injected inside the top navbar, so the fixed bottom
   menu paints over its last rows. Extra bottom padding lets Joyshop /
   Logout scroll fully into view (incl. iOS/Pi safe area). */
#profileOffcanvas .offcanvas-body {
	padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
}

.game-players-meta i{
	vertical-align: -1px;
}

.popover {
  background-color: #202D39; 
  color: #f1f1f1; 
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  max-width: 280px;
  font-family: var(--sj-font);
}


.popover-header {
  background-color: #2A475E;
  color: #ffdc60;
  font-weight: 600;
  border-bottom: none;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  font-size: 0.9rem;
  padding-left: 12px;
}

.popover-body {
  font-size: 0.9rem;
  padding: 0.75rem;
  line-height: 1.4;
  color: #aaa;
}

.bs-popover-auto[data-popper-placement^=top] > .popover-arrow::after,
.bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow::after,
.bs-popover-auto[data-popper-placement^=left] > .popover-arrow::after,
.bs-popover-auto[data-popper-placement^=right] > .popover-arrow::after {
  background-color: #1e1e2f;
  border: none;
}


.table thead {
  color: #ffc107;
}

.table th {
    border-color: rgb(255 255 255 / 10%);
}

.table tbody tr {
  vertical-align: middle;
  border-color: rgba(255, 255, 255, 0.05);
}

.user-info-wrapper{
    position: relative;
    min-width: 120px;
}

.joy-level{
    position: absolute;
    left: 40px;
    top: 20px;
    font-size: 11px;
    color: #ccc;
}

.avatar {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 2px;
}

.table td, .table th {
  color: #f8f9fa;
  background-color: transparent;
}

.general-card {
  /*background-color: rgba(255, 255, 255, 0.05);*/
  background-color: #18364d;
  border-radius: 8px;
  padding: 20px 14px;
  /*box-shadow: 0 0 10px rgba(0,0,0,0.2);*/
}

.general-card-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.btn{
	position: relative;
}


.btn.sending{
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}


.btn:before
 {
	content: '';
    position: absolute;
    top: 2px;
    width: 15px;
    height: 15px;
    border: 2px solid;
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s;
    animation: 0.8s linear infinite btnrotate;
    right: 1px;
}


.btn.sending:before {
    transition-delay: 0.5s;
    transition-duration: 1s;
    opacity: 1 !important;
}


@keyframes btnrotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


.nav-tabs {
    border-bottom: none;
    background: #18364d;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    gap: 8px;
}

.general-card .nav-tabs{
    background: rgb(23 29 37 / 30%);
}

.nav-tabs .nav-item {
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    color: #cfd3dc;
    background-color: #2A475E;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.nav-tabs .nav-link:hover {
    background-color: #FFCC00;
    color: #000;
    text-decoration: none;
}

.nav-tabs .nav-link.active {
    background: #FFCC00;
    color: #000;
    box-shadow: 0 2px 10px rgba(79, 145, 255, 0.4);
    font-weight: 600;
}

.table .app-page-loader{
	margin-top: 20px!important;
}


#journey {
  position: relative;
  padding-left: 14px;
  border-left: 2px solid #1b2838; /* Steam dark line */
  color: #acb2b8;
}

.journey-block {
  position: relative;
  margin-bottom: 1rem;
  background: rgba(16, 29, 44, 0.9); /* card-style background */
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.5s ease-out;
}

.journey-block.in-view {
  opacity: 1;
  transform: translateY(0);
}

.journey-block::before {
  content: '';
  position: absolute;
  left: -1.3rem;
  top: 1.4rem;
  width: 12px;
  height: 12px;
  background: #66c0f4; 
  border-radius: 50%;
}

.journey-block h2 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #fff;
}

.journey-block p {
  margin: 0;
  line-height: 1.5;
}


/* Modal Styles */

.modal-content {
    border-radius: 15px;
}

.modal-header,
.modal-footer {
    background-color: #171D25;
    border-color: rgb(255 255 255 / 10%);
}

.modal-body {
    background-color: #171D25;
}


.sj-breadcrumb .breadcrumb {
    background-color: #18364d!important;
    padding: 16px 14px !important;
    margin-bottom: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}
.rounded{
    border-radius: 8px;
}
.sj-breadcrumb .breadcrumb-item a {
    color: #66c0f4!important;
    transition: color 0.2s;
}
.sj-breadcrumb .breadcrumb-item a:hover {
    color: #9fe0ff;
    text-decoration: underline;
}
.sj-breadcrumb .breadcrumb-item.active {
    color: #c7d5e0;
    font-weight: bold;
}
.breadcrumb-item+.breadcrumb-item::before{
    color: #999;
}

.toast.bg-primary{
    background: linear-gradient(135deg, #4b6b22, #8bc53f)!important;
}

.five-stars-staking-section{
    background-color: transparent !important;
}

.sj-rate-card {
	margin: 2rem 0 0;
	padding: 16px 16px 18px;
	border-radius: 16px;
	text-align: left;
	color: #fff8e6;
	background: linear-gradient(180deg, rgba(255, 193, 7, 0.1) 0%, rgba(23, 29, 37, 0.7) 38%, #171d25 100%);
	border: 1px solid rgba(255, 193, 7, 0.28);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.sj-rate-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}
.sj-rate-icon {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at 30% 25%, #ff8ea0 0%, #ff4d6d 58%, #c9184a 100%);
	color: #fff;
	font-size: 1.05rem;
	box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.16);
}
.sj-rate-copy {
	min-width: 0;
}
.sj-rate-title {
	margin: 0 0 4px;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: #fff8e6;
}
.sj-rate-lead {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.4;
	color: rgba(255, 248, 230, 0.74);
}
.sj-rate-stars {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 2px 0 12px;
	color: #ffc107;
	font-size: 1.15rem;
	text-shadow: 0 0 10px rgba(255, 193, 7, 0.35);
}
.sj-rate-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	border-radius: 12px;
	padding: 10px 14px;
	font-size: 0.88rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-decoration: none;
}
.sj-rate-btn-gold {
	background: #ffc107;
	color: #1b1404;
	border: 1px solid #ffc107;
}
.sj-rate-btn-gold:hover {
	background: #ffcd38;
	color: #1b1404;
}
.sj-rate-split {
	height: 1px;
	margin: 16px 0 14px;
	background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.28), transparent);
}
.sj-rate-support-title {
	margin: 0 0 6px;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
}
.sj-rate-support-desc {
	margin: 0 0 12px;
	font-size: 0.8rem;
	line-height: 1.4;
	color: rgba(255, 248, 230, 0.68);
}
.sj-rate-btn-ghost {
	background: rgba(255, 255, 255, 0.06);
	color: #ffe08a;
	border: 1px solid rgba(255, 193, 7, 0.38);
}
.sj-rate-btn-ghost:hover {
	background: rgba(255, 193, 7, 0.12);
	color: #ffc107;
}

/* Notifications list styling */
#notificationsList .list-group-item {
    background-color: #1a3d57!important;
    border-radius: 8px!important;
    margin-bottom: 12px!important;
    border: none!important;
    color: #fff!important;
    padding: 14px 16px!important;
}

#notificationsList .list-group-item:hover {
    background-color: #1a3d57!important;
    color: #fff!important;
}

#notificationsList .list-group-item:last-child {
    margin-bottom: 0!important;
}


.modal .modal-body #lockScreen{
    background-color: transparent!important;
}

.pay-pi-btn .fa-ticket, .watch-ad-btn .fa-ticket{
    vertical-align: -2px;
}

.sj-quick-pp{
    width: min(280px, 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 auto;
}
.sj-quick-pp-pay,
.sj-quick-pp-ad{
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    white-space: nowrap;
    line-height: 1.2;
}
.sj-quick-pp-pay{
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
}
.sj-quick-pp-ad{
    padding: 8px 12px;
    font-size: 0.85rem;
    opacity: 0.95;
}
.sj-quick-pp-dot{
    opacity: 0.5;
    font-weight: 400;
}
.sj-quick-pp-ad-meta{
    opacity: 0.75;
    font-size: 0.8em;
    font-variant-numeric: tabular-nums;
}
.sj-quick-pp-cap{
    margin: 0;
    font-size: 0.78rem;
    opacity: 0.75;
    line-height: 1.35;
}

/* My Account offcanvas only. Game lock screen stays centered via #lockScreen. */
#profileOffcanvas .sj-quick-pp{
    margin: 0;
    width: 100%;
}
#profileOffcanvas .sj-quick-pp-cap{
    text-align: left;
}

#lockScreen.sj-pp-lock{
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 12px;
    z-index: 20;
    box-sizing: border-box;
    background-color: #0b1620;
}
#lockScreen.sj-pp-lock::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 22, 0.72);
    z-index: 0;
}
.sj-pp-lock-card{
    position: relative;
    z-index: 1;
    width: min(340px, 100%);
    padding: 18px 16px 14px;
    border-radius: 16px;
    background: rgba(16, 29, 44, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    text-align: center;
}
.sj-pp-lock-icon{
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    font-size: 1.1rem;
}
.sj-pp-lock-title{
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 14px;
}
.sj-pp-lock-card .sj-quick-pp{
    width: 100%;
}
.sj-pp-lock-shop{
    display: inline-block;
    margin-top: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.sj-pp-lock-shop:hover,
.sj-pp-lock-shop:focus{
    color: #fff;
}

.sj-alert.alert-info {
    /*
    background: linear-gradient(145deg, #1b1e26 0%, #13161c 100%);
    border-left: 4px solid #ffcc00;
    color: #fff8e6;
    border-radius: 8px;
    padding: 14px 18px;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-color: #ffcc00;
    */
    background: rgb(23 29 37 / 30%);
    border-left: 4px solid #ffcc00;
    color: #fff8e6;
    border-radius: 8px;
    padding: 14px 18px;
    font-weight: 500;
    letter-spacing: 0.2px;
    border-color: #ffcc00;
    border-right: 0;
    border-top: 0;
    border-bottom: 0;
}

.playpass-pack-item.btn-secondary{
    background-color: #2A475E;
}

.text-muted{
    color: rgb(217 217 217 / 75%) !important;
}

#eventStatus{
    background-color: #2A475E;
}


/* ===================================================
   STEAM STYLE MODAL (FOR DUEL)
   =================================================== */


.steam-game-item {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid transparent !important;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    border-radius: 2px !important;
    padding: 12px 15px !important;
    text-align: left;
    width: 100%;
}

.steam-game-item:hover {
    background: linear-gradient(to right, #3d6c8d, #2a475e) !important;
    border-color: #66c0f4 !important;
    transform: translateX(5px);
}

.steam-game-item i {
    color: #66c0f4;
}

.sj-mm-games {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding-right: 2px;
}
.sj-mm-games-status {
    grid-column: 1 / -1;
    text-align: center;
    padding: 28px 12px;
}
.sj-mm-game {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background: #101820;
    color: #fff;
    text-align: left;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.sj-mm-game-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: #0b1118;
    overflow: hidden;
}
.sj-mm-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sj-mm-game-thumb.is-fallback img {
    display: none;
}
.sj-mm-game-meta {
    display: block;
    padding: 8px 10px 9px;
    background: rgba(0, 0, 0, 0.28);
}
.sj-mm-game-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sj-mm-game:hover,
.sj-mm-game:focus {
    border-color: rgba(255, 193, 7, 0.7);
    box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.28);
    color: #fff;
}
.sj-mm-game:active {
    transform: scale(0.98);
}
.sj-mm-game.opacity-50 {
    opacity: 0.5;
}

.opponent-profile-card {
    background: linear-gradient(135deg, rgba(42, 71, 94, 0.4) 0%, rgba(27, 40, 56, 0.4) 100%);
    border: 1px solid rgba(102, 192, 244, 0.2);
    padding: 1.5rem;
    border-radius: 4px;
}

.steam-avatar-frame {
    position: relative;
    padding: 4px;
    background: #ffffff;
    display: inline-block;
    border-radius: 50%;
}

.steam-avatar-frame img {
    border: 2px solid #1b2838;
}

.pulse-steam {
    animation: pulse-blue 2s infinite;
    border-radius: 50%;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(102, 192, 244, 0.6); }
    70% { box-shadow: 0 0 0 25px rgba(102, 192, 244, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 192, 244, 0); }
}

.duel-item-card{
    background-color: #232d3b;
}



@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

#fullscreen-duel-btn {
    transition: all 0.3s ease;
}

#fullscreen-duel-btn:hover {
    background: rgba(255, 193, 7, 0.3) !important;
}

#fullscreen-duel-panel {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Victory state — duel result card (winner only gets celebration in JS) */
#battleCompletedCard.duel-result-card--win {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 193, 7, 0.45) !important;
	box-shadow:
		0 0 24px rgba(255, 193, 7, 0.15),
		inset 0 0 40px rgba(255, 193, 7, 0.06);
	animation: duelVictoryPulse 2.2s ease-in-out infinite;
}
@keyframes duelVictoryPulse {
	0%, 100% { box-shadow: 0 0 24px rgba(255, 193, 7, 0.15), inset 0 0 40px rgba(255, 193, 7, 0.06); }
	50% { box-shadow: 0 0 36px rgba(255, 193, 7, 0.28), inset 0 0 50px rgba(255, 193, 7, 0.1); }
}
#battleCompletedCard.duel-result-card--win .fa-trophy {
	animation: duelTrophyBounce 1s ease-in-out infinite;
}
@keyframes duelTrophyBounce {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-6px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
	#battleCompletedCard.duel-result-card--win {
		animation: none;
	}
	#battleCompletedCard.duel-result-card--win .fa-trophy {
		animation: none;
	}
}
#battleCompletedCard.duel-result-card--loss {
	opacity: 0.95;
	border-color: rgba(255, 255, 255, 0.08) !important;
}

.lobby-recent-duel-row {
    display: block;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.lobby-recent-duel-row:last-child { margin-bottom: 0; }
.lobby-recent-duel-row:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255, 204, 0, 0.25);
}

.dropdown-item.active{
    background-color: rgba(0,0,0,.05)!important;
}

.sj-lang-switcher {
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sj-lang-label {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
}

.sj-lang-pills {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 3px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}

.sj-lang-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / 4);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255,204,0,0.28) 0%, rgba(255,204,0,0.12) 100%);
    border: 1px solid #ffcc00;
    box-shadow: 0 0 0 1px rgba(255,204,0,0.12), 0 6px 14px rgba(255,204,0,0.08);
    pointer-events: none;
    z-index: 0;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.sj-lang-pills[data-active="vi"] .sj-lang-indicator {
    transform: translateX(100%);
}

.sj-lang-pills[data-active="zh"] .sj-lang-indicator {
    transform: translateX(200%);
}

.sj-lang-pills[data-active="ko"] .sj-lang-indicator {
    transform: translateX(300%);
}

.sj-lang-btn {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 5px 1px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(255,255,255,0.62);
    font: inherit;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, transform 0.15s ease;
}

.sj-lang-btn:hover,
.sj-lang-btn:focus-visible {
    color: #fff;
    outline: none;
}

.sj-lang-btn:focus-visible {
    box-shadow: inset 0 0 0 1px rgba(255,204,0,0.45);
}

.sj-lang-btn:active {
    transform: scale(0.96);
}

.sj-lang-code {
    font-family: Bungee, sans-serif;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0;
}

.sj-lang-name {
    font-size: 8px;
    line-height: 1.15;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sj-lang-btn.is-active {
    color: #ffcc00;
}

.sj-lang-btn.is-active .sj-lang-name {
    opacity: 1;
    font-weight: 700;
}

.sj-lang-switcher.is-busy {
    pointer-events: none;
}

.sj-lang-btn.is-switching .sj-lang-code {
    opacity: 0;
}

.sj-lang-btn.is-switching::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border: 2px solid rgba(255,204,0,0.25);
    border-top-color: #ffcc00;
    border-radius: 50%;
    animation: sj-lang-spin 0.6s linear infinite;
}

@keyframes sj-lang-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .sj-lang-indicator,
    .sj-lang-btn,
    .sj-lang-btn.is-switching::after {
        transition: none;
        animation: none;
    }
}

/* Home Weekly Blaze / Blaze+ announcement banner */
.home-wb-banner {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 0;
    margin-bottom: 0.2rem;
    padding: 0.65rem 0.75rem 0.65rem 0.75rem;
    text-decoration: none !important;
    color: #fff !important;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 193, 7, 0.28), transparent 36%),
        linear-gradient(118deg, #12202e 0%, #1b2838 48%, #b45309 100%);
    border: 1px solid rgba(255, 204, 0, 0.28);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.home-wb-banner::after {
    content: '\f06d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0.15rem;
    bottom: -0.35rem;
    font-size: 2.2rem;
    color: rgba(255, 213, 79, 0.12);
    pointer-events: none;
}
.home-wb-banner:hover {
    color: #fff !important;
    filter: brightness(1.08);
}
.home-wb-banner.has-join {
    padding: 0.65rem 0.75rem 0.7rem;
}
.home-wb-link {
    display: block;
    position: relative;
    color: inherit !important;
    text-decoration: none !important;
    padding-right: 0;
}
.home-wb-link:hover {
    color: inherit !important;
}
.home-wb-join {
    position: relative;
    z-index: 2;
    margin-top: 0.55rem;
}
.home-wb-join .wb-snap-actions {
    margin-top: 0;
}
.home-wb-join-btn,
.home-wb-join .wb-snap-btn {
    width: 100%;
    font-weight: 800;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    padding: 0.42rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.home-wb-join .wb-snap-status {
    text-align: center;
    font-weight: 700;
}
.home-wb-join .wb-snap-sub,
.home-wb-join-fee {
    text-align: center;
    margin-top: 0.28rem;
    font-size: 0.68rem;
    color: rgba(255, 213, 79, 0.9);
}
/* Two-line Join button: main label on top, entry fee below it, same button. */
.home-wb-join .home-wb-join-btn.has-fee,
.home-wb-join .wb-snap-btn.has-fee {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    line-height: 1.3;
}
.home-wb-join .home-wb-join-btn .home-wb-join-fee,
.home-wb-join .wb-snap-btn .home-wb-join-fee {
    display: block;
    margin: 0;
    font-size: 0.64rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.72);
    opacity: 1;
}
.home-wb-top,
.home-wb-bottom {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    z-index: 1;
}
.home-wb-top { min-width: 0; }
.home-wb-bottom { margin-top: 0.38rem; justify-content: space-between; }
.home-wb-kicker {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.28rem;
    align-items: center;
    margin: 0;
    flex-shrink: 0;
}
.home-wb-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.1rem 0.38rem;
    border-radius: 999px;
    line-height: 1.3;
}
.home-wb-badge.is-live { background: #4caf50; color: #fff; }
.home-wb-badge.is-soon { background: #fbc02d; color: #111; }
.home-wb-badge.is-plus { background: #ffc107; color: #111; }
.home-wb-title {
    font-family: Bungee, "Be Vietnam Pro", sans-serif;
    font-size: 0.88rem;
    line-height: 1.25;
    margin: 0;
    color: #fff;
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-wb-meta {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.82);
    min-width: 0;
    flex: 1;
}
.home-wb-meta strong { color: #ffd54f; }
.home-wb-dot { margin: 0 0.28rem; opacity: 0.7; }
.home-wb-cd {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    margin: 0;
}
.home-wb-cd.is-expired { display: none; }
.home-wb-cd-label {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 213, 79, 0.9);
    margin: 0;
    white-space: nowrap;
}
.home-wb-cd-grid {
    display: flex;
    gap: 3px;
}
.home-wb-cd-cell {
    min-width: 1.7rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 193, 7, 0.26);
    border-radius: 6px;
    padding: 0.16rem 0.12rem 0.12rem;
    text-align: center;
}
.home-wb-cd-cell span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffc107;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.home-wb-cd-cell small {
    display: block;
    margin-top: 1px;
    font-size: 0.48rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}
@media (max-width: 420px) {
    .home-wb-cd-label { display: none; }
}

/* Games list: Favorites rail + Top grid */
.games-section-title {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.7rem;
	letter-spacing: 0.02em;
}
.games-section-title i {
	margin-right: 0.4rem;
}
.games-favorites .games-section-title i {
	color: #ff6b8a;
}
.games-recent .games-section-title i {
	color: #8fd3ff;
}
.games-simplejoy .games-section-title i {
	color: #ffd54f;
}
.games-opensource .games-section-title i {
	color: #81c784;
}
.games-fav-scroller {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.65rem;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	overscroll-behavior-x: contain;
	padding: 0 0 0.35rem;
	margin: 0 -0.25rem;
	scrollbar-width: none;
}
.games-fav-scroller::-webkit-scrollbar {
	display: none;
}
.games-fav-item {
	flex: 0 0 148px;
	width: 148px;
	min-width: 148px;
	max-width: 148px;
	scroll-snap-align: start;
}
.games-fav-card {
	height: 100%;
}
.game-thumbnail-sm {
	height: 86px;
}

.sj-avatar-edit-btn {
	position: relative;
	display: inline-block;
	padding: 0;
	border: 0;
	background: transparent;
	flex-shrink: 0;
	line-height: 0;
}
.sj-avatar-edit-btn img:not(.user-avatar-large) {
	width: 60px;
	height: 60px;
	border: solid 2px #ffc107 !important;
	object-fit: cover;
}
.sj-avatar-edit-badge {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffc107;
	color: #171d25;
	font-size: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #171d25;
}
.sj-avatar-edit-btn[aria-expanded="true"] .sj-avatar-edit-badge {
	background: #fff;
}
/* Profile page uses the large avatar: keep its own size, bigger pen badge. */
.sj-avatar-edit-btn:has(.user-avatar-large) .sj-avatar-edit-badge {
	width: 30px;
	height: 30px;
	font-size: 13px;
	right: 2px;
	bottom: 2px;
}
/* Profile toggle: single button for everyone, badge only for the owner. */
#sjProfileAvatarToggle {
	cursor: default;
}
#sjProfileAvatarToggle .sj-avatar-edit-badge {
	display: none;
}
#sjProfileAvatarToggle.is-owner {
	cursor: pointer;
}
#sjProfileAvatarToggle.is-owner .sj-avatar-edit-badge {
	display: flex;
}
.sj-avatar-picker {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(255,255,255,0.08);
}
.sj-avatar-picker-label {
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.55);
	margin-bottom: 8px;
}
.sj-avatar-picker-scroller {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 2px 8px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.sj-avatar-choice {
	flex: 0 0 52px;
	width: 52px;
	padding: 4px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.1);
	background: rgba(0, 0, 0, 0.25);
	line-height: 0;
}
.sj-avatar-choice.is-current {
	border-color: #ffc107;
	background: rgba(255, 204, 0, 0.12);
}
.sj-avatar-choice img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	object-fit: cover;
}
.sj-avatar-picker.is-saving {
	opacity: 0.65;
	pointer-events: none;
}

/* Game detail scoreboard period filters */
.sj-gs-periods {
	display: flex;
	gap: 6px;
	margin: 0 0 12px;
}
#gameScoreMyStats:empty {
	display: none;
}
.sj-gs-mystats {
	margin: 0 0 10px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(23, 29, 37, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.sj-gs-mystats-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 0.78rem;
	opacity: 0.8;
}
.sj-gs-mystats-scope {
	font-size: 0.68rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.7;
}
.sj-gs-mystats-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.sj-gs-mystats-k {
	display: block;
	font-size: 0.68rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	opacity: 0.62;
	margin-bottom: 2px;
}
.sj-gs-mystats-val {
	line-height: 1.2;
}
.sj-gs-mystats-val strong {
	font-size: 1.05rem;
}
.sj-gs-mystats-meta {
	font-size: 0.75rem;
	opacity: 0.7;
	margin-top: 2px;
}
.sj-gs-mystats-dot {
	margin: 0 0.2rem;
	opacity: 0.5;
}
.sj-gs-chip {
	flex: 1 1 0;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(23, 29, 37, 0.45);
	color: #f8f9fa;
	border-radius: 999px;
	padding: 6px 8px;
	font-size: 0.75rem;
	line-height: 1.2;
	white-space: nowrap;
}
.sj-gs-chip.is-active {
	background: #ffc107;
	border-color: #ffc107;
	color: #202d39;
	font-weight: 600;
}
.sj-gs-leader-label {
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.7;
	text-align: center;
	margin-bottom: 8px;
}
.sj-gs-myrank {
	background: rgba(255, 193, 7, 0.12);
	border: 1px solid rgba(255, 193, 7, 0.28);
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 12px;
}
.sj-gs-myrank.is-unranked {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.1);
}
.sj-gs-myrank-title {
	font-weight: 600;
	font-size: 0.92rem;
	margin-bottom: 8px;
}
.sj-gs-myrank-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.sj-gs-myrank-k {
	display: block;
	font-size: 0.68rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	opacity: 0.62;
	margin-bottom: 2px;
}
.sj-gs-myrank-val {
	line-height: 1.2;
	font-size: 0.9rem;
}
.sj-gs-myrank-val strong {
	font-size: 1.05rem;
}
.sj-gs-empty {
	text-align: center;
	padding: 18px 12px 8px;
	opacity: 0.9;
}
.sj-gs-is-me td {
	background: rgba(255, 193, 7, 0.12) !important;
}

.sj-skel-block {
	display: block;
	border-radius: 8px;
	background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.16) 50%, rgba(255,255,255,0.05) 100%);
	background-size: 220% 100%;
	animation: sj-skel-shimmer 1.15s ease-in-out infinite;
}
@keyframes sj-skel-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.sj-skel-block { animation: none; }
}
.sj-skel-thumb { height: 120px; border-radius: 0; }
.sj-skel-btn { height: 31px; width: 74px; margin: 0 auto; border-radius: 6px; }
.sj-skel-heading { height: 16px; width: 38%; margin: 0 0 12px; }
.sj-skel-heading-center { width: 46%; height: 26px; margin: 0 auto 20px; }
.sj-skel-line { height: 12px; width: 68%; margin-top: 10px; }
.sj-skel-line-lg { height: 18px; width: 52%; margin-top: 0; }
.sj-skel-line-sm { width: 96px; height: 12px; margin-top: 0; }
.sj-skel-avatar { width: 36px; height: 36px; border-radius: 50%; flex: 0 0 36px; }
.sj-skel-pill { width: 74px; height: 24px; border-radius: 12px; flex: 0 0 74px; }
.sj-skel-snap { min-height: 78px; }
.sj-skel-card { background: #18364d; }

.sj-hm-card {
	background: linear-gradient(180deg, rgba(255, 193, 7, 0.08) 0%, rgba(23, 29, 37, 0.55) 42%, #171d25 100%);
	border: 1px solid rgba(255, 193, 7, 0.28);
	border-radius: 14px;
	padding: 14px 14px 13px;
	text-align: left;
	color: #fff8e6;
}
.sj-hm-card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.sj-hm-icon {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at 30% 25%, #ffe27a 0%, #ffc107 55%, #e69500 100%);
	color: #2a1a00;
	font-size: 1.05rem;
	box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.16);
}
.sj-hm-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.sj-hm-date {
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	color: rgba(255, 248, 230, 0.7);
}
.sj-hm-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 193, 7, 0.16);
	color: #ffc107;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.sj-hm-lead {
	margin: 0 0 8px;
	font-size: 0.95rem;
	line-height: 1.45;
	font-weight: 500;
}
.sj-hm-lead strong {
	color: #ffc107;
}
.sj-hm-thanks {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.4;
	color: rgba(255, 248, 230, 0.72);
}
.sj-hm-thanks .fa-heart {
	color: #ff6b7a;
	margin-left: 2px;
}

/* In-play HUD lives only in the fullscreen black bar, under the title. */
.sj-play-hud {
	display: none;
	align-items: center;
	gap: 0.38rem;
	margin: 0;
	padding: 0.1rem 0.42rem;
	border: 1px solid rgba(255, 193, 7, 0.24);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 0.66rem;
	line-height: 1;
}
body.sj-game-fs #fullscreen-header .sj-play-hud:not([hidden]) {
	display: inline-flex;
}
.sj-play-hud[hidden] { display: none !important; }
.sj-play-hud-item {
	display: inline-flex;
	align-items: center;
	gap: 0.18rem;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.88);
}
.sj-play-hud-item i { font-size: 0.58rem; color: #ffc107; }
.sj-play-hud-item b {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #fff;
}
@media (max-width: 360px) {
	.sj-play-hud-item i { display: none; }
}
body.sj-game-fs .sj-joy-ticker {
	top: 68px;
}
.sj-play-sheet {
	position: fixed;
	inset: 0;
	z-index: 10060;
}
.sj-play-sheet[hidden] { display: none !important; }
.sj-play-sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.46);
	opacity: 0;
	transition: opacity 0.18s ease;
}
.sj-play-sheet.is-open .sj-play-sheet-backdrop { opacity: 1; }
.sj-play-sheet-panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: min(72vh, 520px);
	padding: 0.55rem 0.9rem calc(1rem + env(safe-area-inset-bottom, 0px));
	border-radius: 16px 16px 0 0;
	background: #171d25;
	border-top: 1px solid rgba(255, 193, 7, 0.28);
	transform: translateY(110%);
	transition: transform 0.2s ease;
	overflow: auto;
}
.sj-play-sheet.is-open .sj-play-sheet-panel { transform: translateY(0); }
.sj-play-sheet-handle {
	width: 36px;
	height: 4px;
	margin: 0 auto 0.65rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
}
.sj-play-sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	margin-bottom: 0.55rem;
}
.sj-play-sheet-head h6 {
	margin: 0;
	font-size: 0.92rem;
	color: #ffc107;
}
.sj-play-sheet-x {
	border: 0;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	line-height: 1;
}
.sj-play-sheet-me {
	margin: 0 0 0.55rem;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.82);
}
.sj-play-sheet-list {
	list-style: none;
	margin: 0 0 0.85rem;
	padding: 0;
}
.sj-play-sheet-row,
.sj-play-sheet-empty {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.38rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 0.8rem;
}
.sj-play-sheet-row.is-me { color: #ffc107; }
.sj-play-sheet-rank {
	flex: 0 0 2rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.sj-play-sheet-row img,
.sj-play-sheet-ph {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
	background: #2A475E;
	flex: 0 0 26px;
}
.sj-play-sheet-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sj-play-sheet-score {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.sj-play-sheet-empty {
	color: rgba(255, 255, 255, 0.62);
	border-bottom: 0;
}
.sj-play-sheet-shop {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	padding: 0.55rem 0.8rem;
	border-radius: 10px;
	background: #ffc107;
	color: #111 !important;
	font-weight: 700;
	text-decoration: none !important;
}
.sj-play-sheet-shop i { font-size: 0.72rem; }

.sj-spend-modal {
	background: #171d25;
	color: #fff;
	border: 1px solid rgba(255, 193, 7, 0.28);
}
.sj-spend-modal #sjSpendText {
	font-size: 0.95rem;
	margin-bottom: 0.35rem;
}
/* Above in-page fullscreen iframe (9999) and header (10000). */
#sjSpendModal {
	z-index: 10120;
}
.modal-backdrop.sj-spend-backdrop {
	z-index: 10110;
}
/* Spend/challenge toasts must sit above the fullscreen iframe and header. */
body.sj-game-fs .toast-container {
	z-index: 10130;
	top: 88px;
	margin-top: 0 !important;
}

/* Contact page form */
.sj-contact-form {
	margin-top: 1.25rem;
}
.sj-contact-field {
	display: block;
	margin-bottom: 0.85rem;
}
.sj-contact-field span {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.82);
}
.sj-contact-field input,
.sj-contact-field textarea,
.sj-contact-field select {
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(8, 18, 28, 0.55);
	color: #fff;
	border-radius: 8px;
	padding: 0.55rem 0.7rem;
	font: inherit;
}
.sj-contact-field textarea {
	min-height: 140px;
	resize: vertical;
}
.sj-contact-field input:focus,
.sj-contact-field textarea:focus,
.sj-contact-field select:focus {
	outline: none;
	border-color: rgba(255, 193, 7, 0.7);
	box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}
.sj-contact-field input.is-locked,
.sj-contact-field input[readonly] {
	opacity: 0.72;
	cursor: not-allowed;
}
.sj-contact-hint {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.62);
	margin: 0 0 0.85rem;
}
.sj-contact-submit {
	font-weight: 700;
	min-width: 160px;
}
.sj-contact-status {
	margin-top: 0.75rem;
	font-size: 0.88rem;
}
.sj-contact-status.is-ok { color: #7ee0a5; }
.sj-contact-status.is-err { color: #ffb14a; }
.sj-contact-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
