/*
	lobby v2: the redesigned main page (pages/index-v2.php).
	every rule is scoped to body[data-lobby="v2"], so game screens and the old lobby (pages/index.php) are untouched.
	switch: $conf['lobby'] in config.php, per-user cookie "lobby-ui" (?ui=v1 / ?ui=v2).
*/

body[data-lobby="v2"] {
	--v2-gold: #f0c555;
	--v2-gold-2: #ffe29a;
	--v2-green: #1fbf5f;
	--v2-green-2: #12994a;
	--v2-muted: #98a9c2;
	--v2-glass: rgba(255, 255, 255, 0.07);
	--v2-glass-2: rgba(255, 255, 255, 0.12);
	--v2-stroke: rgba(255, 255, 255, 0.13);
	--v2-ease: cubic-bezier(0.22, 0.8, 0.24, 1);

	-webkit-font-smoothing: antialiased;
}
/* light text only for the lobby itself; dialogs, toasts and menus are appended to body and keep their own colours */
body[data-lobby="v2"] .main-area {
	color: #f3f6fb;
	font-size: 14px;
}
/* dialogs: the small black label icons (sign in, profile, settings, transfer...) become soft rounded badges */
body[data-lobby="v2"] .big-dialog:not([item-style="dark"]) .edit-item-title img,
body[data-lobby="v2"] .big-dialog:not([item-style="dark"]) .settings-item-title img,
body[data-lobby="v2"] .big-dialog:not([item-style="dark"]) .big-dialog-content img[src*="icon-password"] {
	width: 30px !important;
	height: 30px !important;
	padding: 6px;
	box-sizing: border-box;
	margin-right: 8px !important;
	vertical-align: middle;
	background-color: rgba(37, 211, 102, 0.12);
	-webkit-border-radius: 9px;
	border-radius: 9px;
}
/* only the monochrome (black) icons are tinted to the brand green; coloured ones (coin, gift) keep their colours */
body[data-lobby="v2"] .big-dialog:not([item-style="dark"]) .edit-item-title img:not([src*="coin.png"]):not([src*="icon-box"]),
body[data-lobby="v2"] .big-dialog:not([item-style="dark"]) .settings-item-title img:not([src*="coin.png"]):not([src*="icon-box"]),
body[data-lobby="v2"] .big-dialog:not([item-style="dark"]) .big-dialog-content img[src*="icon-password"] {
	-webkit-filter: invert(42%) sepia(72%) saturate(560%) hue-rotate(96deg) brightness(92%) contrast(92%);
	filter: invert(42%) sepia(72%) saturate(560%) hue-rotate(96deg) brightness(92%) contrast(92%);
}
body[data-lobby="v2"] .big-dialog:not([item-style="dark"]) .edit-item-title,
body[data-lobby="v2"] .big-dialog:not([item-style="dark"]) .settings-item-title {
	font-size: 17px;
	font-weight: 600;
	color: #16213a;
}
body[data-lobby="v2"] .big-dialog:not([item-style="dark"]) .signin-recovery { font-weight: 600; color: #16213a !important; }

/* calmer, darker background on top of the player's chosen photo */
body[data-lobby="v2"] .content {
	position: relative;
	height: auto;
	min-height: 100%;
}
body[data-lobby="v2"] .content::before {
	content: "";
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background:
		radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%),
		linear-gradient(rgba(6, 13, 28, 0.42), rgba(5, 10, 22, 0.7));
	pointer-events: none;
	z-index: 0;
}
body[data-lobby="v2"] .main-area {
	position: relative;
	z-index: 1;
	height: auto;
	min-height: 100%;
	max-width: 1180px;
	margin: 0 auto;
}
/* logged: one centered column (top bar, side icons, content, chat) */
body[data-lobby="v2"][data-logged] .main-area { max-width: 600px; }

/* one short entrance for everything */
body[data-lobby="v2"] .v2-reveal {
	-webkit-animation: v2-rise 0.5s var(--v2-ease) backwards;
	animation: v2-rise 0.5s var(--v2-ease) backwards;
	-webkit-animation-delay: calc(var(--i, 0) * 50ms + 60ms);
	animation-delay: calc(var(--i, 0) * 50ms + 60ms);
}
@-webkit-keyframes v2-rise { from { opacity: 0; -webkit-transform: translateY(10px); } }
@keyframes v2-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes v2-float { from { transform: translateY(-2px); } to { transform: translateY(3px); } }
@keyframes v2-pop-in { from { opacity: 0; transform: scale(0.4); } 70% { transform: scale(1.08); } to { opacity: 0.92; } }
@keyframes v2-pulse { to { background: rgba(255, 255, 255, 0.12); } }

/* ============================================================
   top bar (logged)
   ============================================================ */
body[data-lobby="v2"] .user-menu {
	padding-top: 16px;
	padding-bottom: 16px;
	height: 44px;
}
body[data-lobby="v2"] .user-menu-icon {
	position: absolute;
	left: 16px;
	top: 16px;
	width: 44px;
	height: 44px;
	margin: 0 !important;
	box-sizing: border-box;
	padding: 11px 12px;
	background: rgba(31, 191, 95, 0.16);
	border: 1px solid rgba(31, 191, 95, 0.5);
	-webkit-border-radius: 12px;
	border-radius: 12px;
	-webkit-transition: background 0.2s, -webkit-transform 0.2s;
	transition: background 0.2s, transform 0.2s;
}
body[data-lobby="v2"] .user-menu-icon:hover { background: rgba(31, 191, 95, 0.26); }
body[data-lobby="v2"] .user-menu-icon:active { -webkit-transform: scale(0.94); transform: scale(0.94); }
body[data-lobby="v2"] .user-menu-icon:after,
body[data-lobby="v2"] .user-menu-icon:before,
body[data-lobby="v2"] .user-menu-icon div {
	height: 3px;
	background-color: #4fe488;
}
body[data-lobby="v2"] .user-menu-icon:after { margin-top: 5px; }
body[data-lobby="v2"] .user-menu-icon:before { margin-bottom: 5px; }
body[data-lobby="v2"] .user-menu-container[is-open="yes"] .user-menu-icon:before { -webkit-transform: translateY(8px) rotate(135deg); transform: translateY(8px) rotate(135deg); }
body[data-lobby="v2"] .user-menu-container[is-open="yes"] .user-menu-icon:after { -webkit-transform: translateY(-8px) rotate(-135deg); transform: translateY(-8px) rotate(-135deg); }

/* current game: tap to open the chooser (no carousel) */
body[data-lobby="v2"] .switch-games {
	top: 8px;
	left: 50%;
	width: auto;
	margin-left: 0;
	overflow: visible;
	padding: 4px 14px 3px;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	-webkit-border-radius: 14px;
	border-radius: 14px;
	-webkit-mask-box-image: none;
	mask-box-image: none;
	-webkit-mask-image: none;
	mask-image: none;
	-webkit-transition: background 0.2s;
	transition: background 0.2s;
}
body[data-lobby="v2"] .switch-games:hover { background: rgba(255, 255, 255, 0.08); }
body[data-lobby="v2"] .switch-games:active { background: rgba(255, 255, 255, 0.14); }
body[data-lobby="v2"] .switch-game {
	width: auto;
	-webkit-transition: none;
	transition: none;
}
body[data-lobby="v2"] .switch-game-logo,
body[data-lobby="v2"] .switch-game[item-selected="yes"] .switch-game-logo {
	width: 46px;
	height: 46px;
	border: 2px solid var(--v2-gold);
	background-size: cover;
	-webkit-border-radius: 13px;
	border-radius: 13px;
	-webkit-box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
body[data-lobby="v2"] .switch-game-title {
	margin-top: 3px;
	font-size: 13px;
	color: var(--v2-gold-2);
	white-space: nowrap;
}
body[data-lobby="v2"] .switch-game-title::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 0 3px 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	opacity: 0.8;
}

/* fb group button */
body[data-lobby="v2"] .v2-fbg { position: absolute; top: 16px !important; right: 16px !important; width: 44px; height: 44px; }
body[data-lobby="v2"] .v2-fbg .fb-group-icon {
	width: 44px;
	height: 44px;
	margin: 0;
	-webkit-border-radius: 12px;
	border-radius: 12px;
	-webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	-webkit-transition: -webkit-transform 0.2s;
	transition: transform 0.2s;
}
body[data-lobby="v2"] .v2-fbg:hover .fb-group-icon { -webkit-transform: scale(1.05); transform: scale(1.05); }

/* side icons: round glass buttons */
body[data-lobby="v2"] .sound-control,
body[data-lobby="v2"] .boxes-icon[icon-position="top"],
body[data-lobby="v2"] .notifications-icon,
body[data-lobby="v2"] .promo-icon {
	width: 44px;
	height: 44px;
	border: 1px solid var(--v2-stroke);
	background-color: rgba(255, 255, 255, 0.09);
	box-sizing: border-box;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	-webkit-transition: background-color 0.2s, border-color 0.2s, -webkit-transform 0.2s;
	transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
body[data-lobby="v2"] .sound-control:hover,
body[data-lobby="v2"] .boxes-icon[icon-position="top"]:hover,
body[data-lobby="v2"] .notifications-icon:hover { background-color: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); }
body[data-lobby="v2"] .sound-control:active,
body[data-lobby="v2"] .boxes-icon[icon-position="top"]:active,
body[data-lobby="v2"] .notifications-icon:active,
body[data-lobby="v2"] .promo-icon:active { -webkit-transform: scale(0.94); transform: scale(0.94); }
body[data-lobby="v2"] .sound-control { left: 15px; top: 92px; }
body[data-lobby="v2"] .boxes-icon[icon-position="top"] { left: 15px; top: 152px; }
body[data-lobby="v2"] .boxes-icon[icon-position="top"]::after { display: none; }
body[data-lobby="v2"] .boxes-icon span {
	margin-bottom: -4px;
	margin-right: -4px;
	min-width: 10px;
	padding: 3px 5px;
	font-size: 11px;
	font-weight: bold;
	background-color: #ff4040;
	border: 2px solid #14213a;
}
body[data-lobby="v2"] .notifications-icon { right: 15px; top: 92px; }
body[data-lobby="v2"] .notifications-icon img { width: 22px; height: 22px; }
body[data-lobby="v2"] .notifications-icon[item-notifications]::before {
	top: 4px;
	right: 4px;
	left: auto;
	margin: 0;
	width: 11px !important;
	height: 11px !important;
	border: 2px solid #14213a;
	-webkit-animation: none;
	animation: none;
	background-color: #ff4040;
	-webkit-transform: none !important;
	transform: none !important;
}
body[data-lobby="v2"] .promo-icon {
	right: 15px;
	top: 152px;
	border-color: rgba(240, 197, 85, 0.5);
	background-color: rgba(240, 197, 85, 0.14);
	-webkit-animation: none;
	animation: none;
}

/* slide-down menu */
body[data-lobby="v2"] .user-menu-container { height: 76px; }
body[data-lobby="v2"] .user-menu-container[is-open="yes"] {
	position: fixed;
	height: 100%;
	background-color: rgba(3, 8, 18, 0.6);
	-webkit-box-shadow: none;
	box-shadow: none;
}
body[data-lobby="v2"] .user-menu-content {
	padding-top: 84px;
	padding-left: 18px;
	padding-right: 18px;
	padding-bottom: 22px;
	box-sizing: border-box;
	max-height: 100%;
	overflow-y: auto;
	background: #101c33;
	color: #ffffff;
	-webkit-border-radius: 0 0 22px 22px;
	border-radius: 0 0 22px 22px;
	-webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
/* skin.css turns the menu into a tile grid (phones) / left drawer (desktop); v2 uses one dark list that slides in from the left side everywhere */
body[data-lobby="v2"] .user-menu-container[is-open="yes"] .user-menu-content {
	display: block;
	top: 0;
	left: 0;
	width: 340px;
	max-width: 88vw;
	height: 100%;
	max-height: 100%;
	padding: 84px 18px 22px;
	background: #101c33;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	-webkit-border-radius: 0 22px 22px 0;
	border-radius: 0 22px 22px 0;
	-webkit-box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
	box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
	-webkit-animation: v2-drawer-in 0.4s cubic-bezier(0.22, 0.9, 0.3, 1) backwards;
	animation: v2-drawer-in 0.4s cubic-bezier(0.22, 0.9, 0.3, 1) backwards;
}
/* main.css animates every property of the menu (transition: all .1s), so the panel grew in height while opening: transitions off, one clean slide */
body[data-lobby="v2"] .user-menu-container,
body[data-lobby="v2"] .user-menu-container[is-open="yes"] {
	-webkit-transition: none;
	transition: none;
}
body[data-lobby="v2"] .user-menu-container[is-open="yes"] {
	-webkit-animation: v2-menu-fade 0.3s ease backwards;
	animation: v2-menu-fade 0.3s ease backwards;
}
body[data-lobby="v2"] .user-menu-content,
body[data-lobby="v2"] .user-menu-container[is-open="yes"] .user-menu-content {
	-webkit-transition: none;
	transition: none;
	overflow-x: hidden;
	will-change: transform;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
@-webkit-keyframes v2-menu-fade { from { background-color: rgba(3, 8, 18, 0); } }
@keyframes v2-menu-fade { from { background-color: rgba(3, 8, 18, 0); } }
body[data-lobby="v2"] .user-menu-inner { max-width: 420px; margin: 0 auto; }
body[data-lobby="v2"] .user-menu-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	min-height: 0;
	margin-top: 2px;
	padding: 8px 10px;
	font-size: 16px;
	color: #ffffff;
	text-align: left;
	background-color: transparent;
	border: 0;
	-webkit-border-radius: 12px;
	border-radius: 12px;
	-webkit-transition: background-color 0.15s;
	transition: background-color 0.15s;
}
body[data-lobby="v2"] .user-menu-item:hover { background-color: rgba(255, 255, 255, 0.07); border-color: transparent; }
body[data-lobby="v2"] .user-menu-item:active { background-color: rgba(255, 255, 255, 0.11); -webkit-transform: none; transform: none; }
body[data-lobby="v2"] .user-menu-item-photo {
	display: block;
	flex: none;
	width: 38px;
	height: 38px;
	background-size: 21px 21px;
	background-color: var(--v2-glass);
	-webkit-border-radius: 11px;
	border-radius: 11px;
	-webkit-box-shadow: none;
	box-shadow: none;
	-webkit-filter: brightness(0) invert(1);
	filter: brightness(0) invert(1);
	opacity: 0.9;
}
body[data-lobby="v2"] .user-menu-item[item-id="switch"] .user-menu-item-photo {
	background-size: cover;
	-webkit-filter: none;
	filter: none;
	opacity: 1;
}
body[data-lobby="v2"] .user-menu-item[item-id="manage"] .user-menu-item-photo { background-color: rgba(240, 197, 85, 0.16); }
body[data-lobby="v2"] .user-menu-item-name { display: block; margin: 0; font-size: 16px; line-height: 1.3; color: #ffffff; }
body[data-lobby="v2"] .user-menu-item[item-id="logout"] { margin-top: 8px; color: #ff9a9a; }
body[data-lobby="v2"] .user-menu-item[item-id="logout"]:hover { background-color: rgba(255, 80, 80, 0.08); }
body[data-lobby="v2"] .user-menu-item[item-id="logout"] .user-menu-item-name { color: #ff9a9a; }
body[data-lobby="v2"] .user-menu-item[item-id="logout"] .user-menu-item-photo { background-color: rgba(255, 80, 80, 0.12); }
body[data-lobby="v2"] .user-menu-item:not([item-id]) { display: block; min-height: 0; padding: 4px 10px 8px; }
body[data-lobby="v2"] .user-menu-item:not([item-id]):hover { background-color: transparent; }
body[data-lobby="v2"] .user-menu-item:not([item-id]) .login-creditial {
	display: inline-block;
	min-width: 0;
	padding: 6px 12px;
	font-size: 13px;
	background-color: rgba(255, 255, 255, 0.08) !important;
	color: var(--v2-muted);
	-webkit-border-radius: 999px !important;
	border-radius: 999px !important;
}
body[data-lobby="v2"] .user-menu-profile {
	padding: 10px;
	margin: 0 0 8px;
	background-color: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	-webkit-border-radius: 12px;
	border-radius: 12px;
}
body[data-lobby="v2"] .user-menu-profile:empty { display: none; }
body[data-lobby="v2"] .user-menu-profile img.round {
	width: 42px !important;
	-webkit-box-shadow: 0 0 0 2px rgba(240, 197, 85, 0.7);
	box-shadow: 0 0 0 2px rgba(240, 197, 85, 0.7);
}
body[data-lobby="v2"] .user-menu-profile span[style*="font-size: 18px"] { font-size: 17px !important; }
body[data-lobby="v2"] .user-menu-profile span[style*="color: #39a03d"] { color: #44d983 !important; font-size: 13px !important; }
body[data-lobby="v2"] .v2-menu-foot {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.4);
}
body[data-lobby="v2"] .v2-menu-foot a { color: rgba(255, 255, 255, 0.5); cursor: pointer; }
body[data-lobby="v2"] .v2-menu-foot a:hover { color: var(--v2-gold-2); }

/* ============================================================
   home (logged)
   ============================================================ */
body[data-lobby="v2"] .user-container {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	-webkit-transform: none !important;
	transform: none !important;
	padding: 12px 20px 100px !important;
	box-sizing: border-box;
	text-align: center;
}
body[data-lobby="v2"] .v2-uid { font-size: 14px; color: var(--v2-muted); cursor: pointer; margin-bottom: 10px; }
body[data-lobby="v2"] .v2-uid b { color: #ffffff; }
body[data-lobby="v2"] .v2-avatar { position: relative; width: 92px; height: 92px; margin: 0 auto; }
body[data-lobby="v2"] .v2-avatar .user-photo {
	width: 92px;
	height: 92px;
	border: 3px solid rgba(240, 197, 85, 0.85);
	box-sizing: border-box;
	-webkit-box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45) !important;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45) !important;
	-webkit-transition: -webkit-transform 0.2s;
	transition: transform 0.2s;
}
body[data-lobby="v2"] .v2-avatar .user-photo:hover { -webkit-transform: scale(1.03); transform: scale(1.03); }
body[data-lobby="v2"] .v2-avatar .user-photo-upload {
	position: absolute;
	left: -4px;
	bottom: 0;
	width: 34px;
	height: 34px;
	margin: 0 !important;
	background-color: #ffffff;
	background-image: url(../images/icon-camera.svg);
	background-size: 18px 18px;
	background-position: center center;
	background-repeat: no-repeat;
	border: 2px solid #0e1a33;
	box-sizing: border-box;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
	-webkit-transition: -webkit-transform 0.2s;
	transition: transform 0.2s;
}
body[data-lobby="v2"] .v2-avatar .user-photo-upload:hover { -webkit-transform: scale(1.08); transform: scale(1.08); }
body[data-lobby="v2"] .v2-avatar .v2-online {
	position: absolute;
	right: 4px;
	bottom: 4px;
	width: 16px;
	height: 16px;
	background: #25d366;
	border: 3px solid #0e1a33;
	-webkit-border-radius: 50%;
	border-radius: 50%;
}
body[data-lobby="v2"] .user-container .coins-counter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding: 6px 18px 6px 8px;
	background-color: rgba(0, 0, 0, 0.38);
	border: 1px solid rgba(240, 197, 85, 0.3);
	cursor: pointer;
	font-size: 21px;
	-webkit-border-radius: 999px;
	border-radius: 999px;
	-webkit-transition: border-color 0.2s, background-color 0.2s;
	transition: border-color 0.2s, background-color 0.2s;
}
body[data-lobby="v2"] .user-container .coins-counter:hover { border-color: var(--v2-gold); background-color: rgba(0, 0, 0, 0.5); }
body[data-lobby="v2"] .user-container .coins-counter img[item-id="coin-icon"] { width: 28px; margin: 0; }
body[data-lobby="v2"] .user-container .coins-counter span[item-id="coin-count"] { margin: 0; color: var(--v2-gold-2) !important; font-variant-numeric: tabular-nums; text-shadow: none; }
body[data-lobby="v2"] .user-container .user-name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 18px;
	color: #ffffff;
	cursor: pointer;
}
body[data-lobby="v2"] .user-container .user-name span[item-id="name"] { font-weight: bold; margin-left: 0 !important; }
body[data-lobby="v2"] .user-container .user-name-edit {
	width: 30px;
	height: 30px;
	margin: 0;
	background-color: var(--v2-glass-2);
	background-size: 14px 14px;
	-webkit-filter: brightness(0) invert(1);
	filter: brightness(0) invert(1);
	-webkit-border-radius: 50%;
	border-radius: 50%;
	vertical-align: middle;
}
body[data-lobby="v2"] .user-container .user-name-edit:hover { background-color: rgba(255, 255, 255, 0.22); }
body[data-lobby="v2"] .v2-play { margin-top: 20px; }
body[data-lobby="v2"] .play-button-wrap { padding: 0; }
body[data-lobby="v2"] .play-button-wrap::before { display: none; }
body[data-lobby="v2"] .play-button {
	width: 280px;
	max-width: 100%;
	height: 56px;
	padding: 0 20px 0 52px;
	background-color: transparent;
	background-image: url(../images/icon-joystick.svg), linear-gradient(180deg, #2bd070, #14a04e);
	background-position: 18px center, 0 0;
	background-size: 28px 28px, 100% 100%;
	background-repeat: no-repeat;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	-webkit-border-radius: 30px;
	border-radius: 30px;
	-webkit-box-shadow: 0 8px 22px rgba(21, 160, 79, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	box-shadow: 0 8px 22px rgba(21, 160, 79, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	-webkit-animation: none;
	animation: none;
}
body[data-lobby="v2"] .play-button::before { display: none; }
body[data-lobby="v2"] .play-button:hover {
	background-color: transparent;
	-webkit-transform: translateY(-2px);
	transform: translateY(-2px);
	-webkit-filter: brightness(1.06);
	filter: brightness(1.06);
	-webkit-box-shadow: 0 12px 28px rgba(21, 160, 79, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	box-shadow: 0 12px 28px rgba(21, 160, 79, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
body[data-lobby="v2"] .play-button:active { -webkit-transform: scale(0.97); transform: scale(0.97); }

/* ratings (logged, rendered by users.js) */
body[data-lobby="v2"] .v2-ratings { margin-top: 28px; }
body[data-lobby="v2"] .users-ratings { width: 100%; max-width: 320px; }
body[data-lobby="v2"] .users-ratings-title {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 0 10px;
	margin-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	font-size: 17px;
}
body[data-lobby="v2"] .users-ratings-title img { width: 24px; margin: 0 !important; }
body[data-lobby="v2"] .v2-trophy { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: -5px; -webkit-filter: drop-shadow(0 2px 4px rgba(240, 197, 85, 0.35)); filter: drop-shadow(0 2px 4px rgba(240, 197, 85, 0.35)); }
body[data-lobby="v2"] .v2-sec-head h2 { display: inline-flex; align-items: center; gap: 8px; }
body[data-lobby="v2"] .users-ratings-title span { margin: 0 !important; padding: 0 !important; border: 0 !important; }
body[data-lobby="v2"] .v2-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
body[data-lobby="v2"] .v2-tabs .users-ratings-switch,
body[data-lobby="v2"] .users-ratings[item-style="light"] .v2-tabs .users-ratings-switch {
	display: inline-block;
	margin: 0;
	padding: 7px 14px;
	font-size: 14px;
	color: #d6e0f0;
	background-color: var(--v2-glass);
	border: 1px solid var(--v2-stroke);
	-webkit-border-radius: 999px;
	border-radius: 999px;
	-webkit-transition: background-color 0.2s, color 0.2s;
	transition: background-color 0.2s, color 0.2s;
}
body[data-lobby="v2"] .v2-tabs .users-ratings-switch:hover { background-color: var(--v2-glass-2); }
body[data-lobby="v2"] .users-ratings .v2-tabs .users-ratings-switch[item-selected="yes"] {
	padding: 7px 14px;
	border: 1px solid transparent;
	color: #1b1403 !important;
	font-weight: bold;
	background-color: var(--v2-gold);
	-webkit-box-shadow: none;
	box-shadow: none;
}
body[data-lobby="v2"] .v2-list { margin-top: 14px; min-height: 200px; text-align: center; }
body[data-lobby="v2"] .v2-list .users-ratings-listing { display: flex; flex-direction: column; gap: 10px; }
body[data-lobby="v2"] .v2-list .users-ratings-listing > img { margin: 20px auto !important; }
body[data-lobby="v2"] .users-ratings[item-style="light"] .users-ratings-item {
	margin: 0;
	padding: 10px 14px 10px 10px;
	background-color: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.08);
	-webkit-border-radius: 16px;
	border-radius: 16px;
	-webkit-animation: v2-rise 0.4s var(--v2-ease) backwards;
	animation: v2-rise 0.4s var(--v2-ease) backwards;
}
body[data-lobby="v2"] .users-ratings[item-style="light"] .users-ratings-item:nth-child(2) { animation-delay: 50ms; }
body[data-lobby="v2"] .users-ratings[item-style="light"] .users-ratings-item:nth-child(3) { animation-delay: 100ms; }
body[data-lobby="v2"] .users-ratings[item-style="light"] .users-ratings-item:hover { background-color: rgba(0, 0, 0, 0.42); border-color: rgba(255, 255, 255, 0.2); }
body[data-lobby="v2"] .users-ratings-item-photo { width: 44px; height: 44px; }
body[data-lobby="v2"] .users-ratings[item-style="light"] .users-ratings-item-photo { -webkit-box-shadow: none; box-shadow: none; }
body[data-lobby="v2"] .users-ratings-item[item-user-online="online"] .users-ratings-item-photo::before,
body[data-lobby="v2"] .users-ratings-item[item-user-online="playing"] .users-ratings-item-photo::before {
	content: "";
	position: absolute;
	right: -1px;
	bottom: -1px;
	z-index: 1;
	width: 12px;
	height: 12px;
	background: #25d366 linear-gradient(180deg, #4ff094, #1fbf5f);
	border: 2px solid #17223a;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-animation: status-online 2.4s ease-out infinite;
	animation: status-online 2.4s ease-out infinite;
	-webkit-animation-delay: var(--status-delay, 0s);
	animation-delay: var(--status-delay, 0s);
}
body[data-lobby="v2"] .users-ratings-item[item-user-online="playing"] .users-ratings-item-photo::before {
	background: #f0c555 linear-gradient(180deg, #ffdc7c, #e7ae35);
	-webkit-animation: none;
	animation: none;
}
body[data-lobby="v2"] .users-ratings-item[item-user-online="playing"] .users-ratings-item-photo::after {
	content: "";
	position: absolute;
	top: -4px;
	right: -4px;
	bottom: -4px;
	left: -4px;
	pointer-events: none;
	background: conic-gradient(rgba(240, 197, 85, 0.14) 0deg, rgba(240, 197, 85, 0.14) 110deg, #f0c555 310deg, #fff3c4 350deg, rgba(240, 197, 85, 0.14) 351deg);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000000 calc(100% - 2px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000000 calc(100% - 2px));
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-animation: spinner 2.2s linear infinite;
	animation: spinner 2.2s linear infinite;
	-webkit-animation-delay: var(--status-delay, 0s);
	animation-delay: var(--status-delay, 0s);
}
body[data-lobby="v2"] .users-ratings[item-style="dark"] .users-ratings-item[item-user-online] .users-ratings-item-photo::before { border-color: #ffffff; }
body[data-lobby="v2"] .users-ratings-item-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 4px 0 0 8px;
	font-size: 12px;
	color: #8fe8b2;
	white-space: nowrap;
	vertical-align: middle;
}
body[data-lobby="v2"] .users-ratings-item-status::before { content: ""; width: 6px; height: 6px; background: currentColor; -webkit-border-radius: 50%; border-radius: 50%; }
body[data-lobby="v2"] .users-ratings-item-status[item-status="playing"] { color: var(--v2-gold-2); }
body[data-lobby="v2"] .users-ratings[item-style="dark"] .users-ratings-item-status { color: #1f9d55; }
body[data-lobby="v2"] .users-ratings[item-style="dark"] .users-ratings-item-status[item-status="playing"] { color: #b7860b; }
body[data-lobby="v2"] .users-ratings-item-name { font-size: 15px; }
body[data-lobby="v2"] .users-ratings-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 10px 16px !important;
	cursor: pointer;
	-webkit-border-radius: 999px;
	border-radius: 999px;
	-webkit-transition: background-color 0.2s;
	transition: background-color 0.2s;
}
body[data-lobby="v2"] .users-ratings-more:hover { background-color: var(--v2-glass-2); }
body[data-lobby="v2"] .users-ratings-more img { margin: 0 !important; -webkit-filter: brightness(0) invert(1); filter: brightness(0) invert(1); }

/* floating chat */
body[data-lobby="v2"] .chat-float {
	right: 14px;
	bottom: 14px;
	background-color: rgba(16, 28, 51, 0.92);
	background-size: 26px 26px;
	border: 1px solid rgba(37, 211, 102, 0.55);
	box-sizing: border-box;
	-webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
	-webkit-transition: -webkit-transform 0.2s, background-color 0.2s;
	transition: transform 0.2s, background-color 0.2s;
	z-index: 30;
}
body[data-lobby="v2"] .chat-float:hover { background-color: rgba(16, 28, 51, 1); border-color: rgba(37, 211, 102, 0.9); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
body[data-lobby="v2"] .chat-float:active { -webkit-transform: scale(0.94); transform: scale(0.94); }

/* play-by-link float (app only): same glass style as the chat button; z-index keeps it above .main-area */
body[data-lobby="v2"] .game-play-float {
	left: 14px;
	bottom: 14px;
	background-color: rgba(16, 28, 51, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.18);
	box-sizing: border-box;
	-webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
	-webkit-transition: -webkit-transform 0.2s, background-color 0.2s;
	transition: transform 0.2s, background-color 0.2s;
	z-index: 30;
}
body[data-lobby="v2"] .game-play-float:hover { background-color: rgba(16, 28, 51, 1); border-color: rgba(255, 255, 255, 0.35); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
body[data-lobby="v2"] .game-play-float:active { -webkit-transform: scale(0.94); transform: scale(0.94); }
body[data-lobby="v2"] .chat-float[item-conversations]::after {
	bottom: auto;
	top: -3px;
	right: -3px;
	width: 14px;
	height: 14px;
	background-color: #ff4040;
	border: 2px solid #0e1a33;
	-webkit-animation: none;
	animation: none;
}

/* ============================================================
   logged-out page
   ============================================================ */
body[data-lobby="v2"] .login-container {
	position: relative;
	top: auto;
	left: auto;
	width: 100%;
	box-sizing: border-box;
	padding: 0 18px;
	text-align: center;
	-webkit-transform: none;
	transform: none;
}
/* the hidden top bar wrapper above is 122px tall; pull the logged-out page up under the language pill */
body[data-lobby="v2"]:not([data-logged]) .login-container { margin-top: -122px; }
body[data-lobby="v2"] .v2-hero {
	min-height: 92vh;
	min-height: 92svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 70px 0 18px;
	box-sizing: border-box;
}

/* game picker: big current logo + up to 6 small round logos in an orbit */
body[data-lobby="v2"] .v2-picker { position: relative; width: 320px; height: 250px; margin: 0 auto; }
body[data-lobby="v2"] .v2-picker::before {
	content: "";
	position: absolute;
	left: 62px;
	top: 27px;
	width: 196px;
	height: 196px;
	border: 1px dashed rgba(255, 255, 255, 0.13);
	-webkit-border-radius: 50%;
	border-radius: 50%;
	pointer-events: none;
}
body[data-lobby="v2"] .v2-center {
	position: absolute;
	left: 114px;
	top: 79px;
	width: 92px;
	height: 92px;
	background: center / cover no-repeat;
	cursor: pointer;
	-webkit-border-radius: 22px;
	border-radius: 22px;
	-webkit-box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
	-webkit-transition: -webkit-transform 0.2s;
	transition: transform 0.2s;
}
body[data-lobby="v2"] .v2-center:hover { -webkit-transform: scale(1.03); transform: scale(1.03); }
body[data-lobby="v2"] .v2-center:active { -webkit-transform: scale(0.97); transform: scale(0.97); }
body[data-lobby="v2"] .v2-center .v2-chev {
	position: absolute;
	right: -7px;
	bottom: -7px;
	width: 28px;
	height: 28px;
	background: var(--v2-gold);
	border: 2px solid #0e1a33;
	box-sizing: border-box;
	-webkit-border-radius: 50%;
	border-radius: 50%;
}
body[data-lobby="v2"] .v2-center .v2-chev::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 6px;
	width: 7px;
	height: 7px;
	border-right: 2.5px solid #1a1202;
	border-bottom: 2.5px solid #1a1202;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}
body[data-lobby="v2"] .v2-sat {
	position: absolute;
	width: 44px;
	height: 44px;
	-webkit-animation: v2-float var(--fd, 6s) ease-in-out var(--fdelay, 0s) infinite alternate;
	animation: v2-float var(--fd, 6s) ease-in-out var(--fdelay, 0s) infinite alternate;
}
body[data-lobby="v2"] .v2-sat i {
	display: block;
	width: 44px;
	height: 44px;
	background: center / 118% no-repeat;
	border: 2px solid rgba(255, 255, 255, 0.22);
	box-sizing: border-box;
	cursor: pointer;
	opacity: 0.92;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
	-webkit-animation: v2-pop-in 0.5s var(--v2-ease) backwards;
	animation: v2-pop-in 0.5s var(--v2-ease) backwards;
	-webkit-animation-delay: calc(var(--n) * 70ms + 250ms);
	animation-delay: calc(var(--n) * 70ms + 250ms);
	-webkit-transition: -webkit-transform 0.2s var(--v2-ease), opacity 0.2s, border-color 0.2s;
	transition: transform 0.2s var(--v2-ease), opacity 0.2s, border-color 0.2s;
}
body[data-lobby="v2"] .v2-sat i:hover { -webkit-transform: scale(1.12); transform: scale(1.12); opacity: 1; border-color: rgba(240, 197, 85, 0.8); }
body[data-lobby="v2"] .v2-sat i:active { -webkit-transform: scale(0.94); transform: scale(0.94); }
/* .v2-sat left/top are computed in pages/index-v2.php (even spread on the orbit) */

body[data-lobby="v2"] .v2-title { margin-top: 16px; font-size: 23px; font-weight: bold; color: #ffffff; }
body[data-lobby="v2"] .v2-sub { margin-top: 8px; font-size: 15px; color: var(--v2-muted); }

/* auth buttons: same elements and classes the auth js shows/binds, new look */
body[data-lobby="v2"] .v2-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 300px; margin: 28px auto 0; }
body[data-lobby="v2"] .v2-actions .fb-login-btn,
body[data-lobby="v2"] .v2-actions .login-button,
body[data-lobby="v2"] .v2-actions .signup-button {
	width: 100%;
	height: 50px;
	line-height: 50px;
	margin: 0;
	box-sizing: border-box;
	font-size: 16px;
	font-weight: bold;
	color: #ffffff;
	background-position: 22px center;
	background-size: 22px 22px;
	-webkit-border-radius: 26px;
	border-radius: 26px;
	-webkit-transition: -webkit-transform 0.2s var(--v2-ease), -webkit-filter 0.2s;
	transition: transform 0.2s var(--v2-ease), filter 0.2s;
}
body[data-lobby="v2"] .v2-actions .fb-login-btn:hover,
body[data-lobby="v2"] .v2-actions .login-button:hover,
body[data-lobby="v2"] .v2-actions .signup-button:hover { -webkit-transform: translateY(-1px); transform: translateY(-1px); -webkit-filter: brightness(1.07); filter: brightness(1.07); }
body[data-lobby="v2"] .v2-actions .fb-login-btn:active,
body[data-lobby="v2"] .v2-actions .login-button:active,
body[data-lobby="v2"] .v2-actions .signup-button:active { -webkit-transform: scale(0.98); transform: scale(0.98); }
body[data-lobby="v2"] .v2-actions .fb-login-btn {
	background: #3b5fae url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M13.5 22v-8.2h2.8l.5-3.4h-3.3V8.2c0-1 .3-1.7 1.7-1.7H17V3.5c-.3 0-1.3-.1-2.5-.1-2.5 0-4.2 1.5-4.2 4.3v2.7H7.5v3.4h2.8V22h3.2z'/%3E%3C/svg%3E") 20px center / 22px 22px no-repeat;
	-webkit-box-shadow: 0 6px 16px rgba(30, 55, 120, 0.4);
	box-shadow: 0 6px 16px rgba(30, 55, 120, 0.4);
}
body[data-lobby="v2"] .v2-actions .login-button {
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpath d='M10 17l5-5-5-5'/%3E%3Cpath d='M15 12H3'/%3E%3C/svg%3E"), linear-gradient(180deg, #25c868, #15a04f);
	background-repeat: no-repeat, no-repeat;
	background-position: 22px center, 0 0;
	background-size: 22px 22px, 100% 100%;
	-webkit-box-shadow: 0 6px 16px rgba(21, 160, 79, 0.35);
	box-shadow: 0 6px 16px rgba(21, 160, 79, 0.35);
}
body[data-lobby="v2"] .v2-actions .signup-button {
	background-color: rgba(255, 255, 255, 0.06);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffe29a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M20 8v6M23 11h-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	color: var(--v2-gold-2);
	-webkit-box-shadow: inset 0 0 0 1.5px rgba(240, 197, 85, 0.6);
	box-shadow: inset 0 0 0 1.5px rgba(240, 197, 85, 0.6);
	-webkit-filter: none;
	filter: none;
}
body[data-lobby="v2"] .v2-actions .signup-button:hover { background-color: rgba(240, 197, 85, 0.1); }

/* store badges */
body[data-lobby="v2"] .v2-badges { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 24px; }
body[data-lobby="v2"] .v2-badges .app-store-badge,
body[data-lobby="v2"] .v2-badges .play-store-badge { display: none; }
body[data-lobby="v2"] .v2-badges a { display: block; -webkit-transition: opacity 0.2s; transition: opacity 0.2s; }
body[data-lobby="v2"] .v2-badges a:hover { opacity: 0.85; }
body[data-lobby="v2"] .v2-badges img { height: 40px; width: auto !important; display: block; }
/* the Google Play PNG carries ~16% transparent padding; trim it so both badges render at the same visible size */
body[data-lobby="v2"] .v2-badges .app-store-badge a { overflow: hidden; -webkit-border-radius: 7px; border-radius: 7px; }
body[data-lobby="v2"] .v2-badges .app-store-badge img { height: 59.5px; margin: -9.75px; }

/* public ratings */
body[data-lobby="v2"] .v2-side { padding-top: 6px; text-align: left; }
body[data-lobby="v2"] .v2-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
body[data-lobby="v2"] .v2-sec-head h2 { margin: 0; font-size: 17px; font-weight: bold; color: #ffffff; }
body[data-lobby="v2"] .v2-sec-head span { font-size: 13px; color: var(--v2-muted); white-space: nowrap; }
body[data-lobby="v2"] .v2-panel {
	padding: 14px 12px 12px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.09);
	-webkit-border-radius: 20px;
	border-radius: 20px;
}
body[data-lobby="v2"] .v2-ptabs { display: flex; gap: 6px; padding: 4px; background: rgba(0, 0, 0, 0.25); -webkit-border-radius: 999px; border-radius: 999px; }
body[data-lobby="v2"] .v2-ptabs span {
	flex: 1;
	text-align: center;
	padding: 8px 0;
	font-size: 14px;
	color: #cfd9ea;
	cursor: pointer;
	-webkit-border-radius: 999px;
	border-radius: 999px;
	-webkit-transition: background-color 0.2s, color 0.2s;
	transition: background-color 0.2s, color 0.2s;
}
body[data-lobby="v2"] .v2-ptabs span:hover { color: #ffffff; }
body[data-lobby="v2"] .v2-ptabs span.on { color: #1b1403; font-weight: bold; background: var(--v2-gold); }
body[data-lobby="v2"] .v2-plist { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 196px; }
body[data-lobby="v2"] .v2-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 12px 9px 9px;
	background: rgba(255, 255, 255, 0.05);
	text-align: left;
	-webkit-border-radius: 14px;
	border-radius: 14px;
	-webkit-animation: v2-rise 0.4s var(--v2-ease) backwards;
	animation: v2-rise 0.4s var(--v2-ease) backwards;
	-webkit-animation-delay: calc(var(--k) * 50ms);
	animation-delay: calc(var(--k) * 50ms);
	-webkit-transition: background-color 0.2s;
	transition: background-color 0.2s;
}
body[data-lobby="v2"] .v2-row:hover { background: rgba(255, 255, 255, 0.09); }
body[data-lobby="v2"] .v2-row:nth-child(n+4) { display: none; } /* phones: top 3 */
body[data-lobby="v2"] .v2-row .ph {
	position: relative;
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	background: #2b3b5c center / cover no-repeat;
	-webkit-border-radius: 50%;
	border-radius: 50%;
}
body[data-lobby="v2"] .v2-row .ph .st {
	position: absolute;
	right: -1px;
	bottom: -1px;
	z-index: 1;
	width: 12px;
	height: 12px;
	background: #25d366 linear-gradient(180deg, #4ff094, #1fbf5f);
	border: 2px solid #172238;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-animation: status-online 2.4s ease-out infinite;
	animation: status-online 2.4s ease-out infinite;
	-webkit-animation-delay: calc(var(--k, 0) * -0.8s);
	animation-delay: calc(var(--k, 0) * -0.8s);
}
body[data-lobby="v2"] .v2-row .ph .st.play {
	background: #f0c555 linear-gradient(180deg, #ffdc7c, #e7ae35);
	-webkit-animation: none;
	animation: none;
}
body[data-lobby="v2"] .v2-row .ph:has(.st.play)::after {
	content: "";
	position: absolute;
	top: -4px;
	right: -4px;
	bottom: -4px;
	left: -4px;
	pointer-events: none;
	background: conic-gradient(rgba(240, 197, 85, 0.14) 0deg, rgba(240, 197, 85, 0.14) 110deg, #f0c555 310deg, #fff3c4 350deg, rgba(240, 197, 85, 0.14) 351deg);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000000 calc(100% - 2px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000000 calc(100% - 2px));
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-animation: spinner 2.2s linear infinite;
	animation: spinner 2.2s linear infinite;
	-webkit-animation-delay: calc(var(--k, 0) * -0.53s);
	animation-delay: calc(var(--k, 0) * -0.53s);
}
@media (prefers-reduced-motion: reduce) {
	body[data-lobby="v2"] .v2-row .ph .st,
	body[data-lobby="v2"] .v2-row .ph::after {
		-webkit-animation: none !important;
		animation: none !important;
	}
}
body[data-lobby="v2"] .v2-row .nm { flex: 1; min-width: 0; }
body[data-lobby="v2"] .v2-row .nm b { display: block; font-size: 15px; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-lobby="v2"] .v2-row .nm small { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 13px; color: #44d983; }
body[data-lobby="v2"] .v2-row .nm small em { font-style: normal; font-size: 15px; font-weight: bold; }
body[data-lobby="v2"] .v2-row .status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #8fe8b2; }
body[data-lobby="v2"] .v2-row .status::before { content: ""; width: 6px; height: 6px; background: currentColor; -webkit-border-radius: 50%; border-radius: 50%; }
body[data-lobby="v2"] .v2-row .status.play { color: var(--v2-gold-2); }
body[data-lobby="v2"] .v2-row .medal { font-size: 22px; flex: 0 0 auto; }
body[data-lobby="v2"] .v2-row .rank { width: 22px; text-align: center; font-size: 14px; font-weight: bold; color: var(--v2-muted); flex: 0 0 auto; }
body[data-lobby="v2"] .v2-skel { height: 60px; background: rgba(255, 255, 255, 0.06); -webkit-border-radius: 14px; border-radius: 14px; -webkit-animation: v2-pulse 1s ease-in-out infinite alternate; animation: v2-pulse 1s ease-in-out infinite alternate; }
body[data-lobby="v2"] .v2-empty { padding: 40px 10px; text-align: center; font-size: 14px; color: var(--v2-muted); }
body[data-lobby="v2"] .v2-card-foot { margin-top: 12px; text-align: center; font-size: 13px; color: var(--v2-muted); }
body[data-lobby="v2"] .v2-card-foot a { color: var(--v2-gold-2); font-weight: bold; cursor: pointer; }
body[data-lobby="v2"] .v2-card-foot a:hover { text-decoration: underline; }

/* footer */
body[data-lobby="v2"] .v2-foot { padding: 28px 0 84px; text-align: center; }
body[data-lobby="v2"] .v2-foot .v2-line { height: 1px; margin-bottom: 20px; background: rgba(255, 255, 255, 0.1); }
body[data-lobby="v2"] .v2-games-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-bottom: 14px; padding: 0 16px; font-size: 13px; line-height: 2; color: rgba(255, 255, 255, 0.28); }
body[data-lobby="v2"] .v2-games-links a { color: rgba(255, 255, 255, 0.6); text-decoration: none; white-space: nowrap; }
body[data-lobby="v2"] .v2-games-links a:hover { color: var(--v2-gold-2); }
body[data-lobby="v2"] .v2-games-links a[item-current="yes"] { color: var(--v2-gold-2); }
body[data-lobby="v2"] .v2-games-links i { font-style: normal; margin: 0 9px; }
body[data-lobby="v2"] .v2-foot .by { margin: 0; font-size: 14px; color: #ffffff; }
body[data-lobby="v2"] .v2-foot .by span { color: #7d8ea8; font-size: 14px; }
body[data-lobby="v2"] .v2-foot .by a { margin-left: 14px; color: rgba(255, 255, 255, 0.6); }
body[data-lobby="v2"] .v2-foot .by a:hover { color: var(--v2-gold-2); }
body[data-lobby="v2"] .v2-foot .by a.v2-switch { color: rgba(255, 255, 255, 0.32); font-size: 12px; }

/* language switch: pill with flag + code + chevron, small dropdown */
body[data-lobby="v2"] .lang-icon {
	top: 14px;
	right: 14px;
	width: auto;
	padding: 0;
	background: none;
	z-index: 40;
}
body[data-lobby="v2"] .v2-lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 38px;
	padding: 0 12px 0 8px;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid var(--v2-stroke);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	-webkit-border-radius: 999px;
	border-radius: 999px;
	cursor: pointer;
	-webkit-transition: background-color 0.2s, border-color 0.2s;
	transition: background-color 0.2s, border-color 0.2s;
}
body[data-lobby="v2"] .v2-lang-btn:hover,
body[data-lobby="v2"] .lang-icon[item-open="yes"] .v2-lang-btn { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); }
body[data-lobby="v2"] .v2-lang-btn img { width: 22px !important; height: 22px; -webkit-border-radius: 50%; border-radius: 50%; object-fit: cover; }
body[data-lobby="v2"] .v2-lang-btn b { font-size: 12px; letter-spacing: 0.6px; color: #ffffff; }
body[data-lobby="v2"] .v2-lang-btn::after {
	content: "";
	width: 5px;
	height: 5px;
	margin: -3px 0 0 1px;
	border-right: 1.5px solid rgba(255, 255, 255, 0.7);
	border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
	-webkit-transition: -webkit-transform 0.2s;
	transition: transform 0.2s;
}
body[data-lobby="v2"] .lang-icon[item-open="yes"] .v2-lang-btn::after { -webkit-transform: rotate(-135deg) translate(-2px, -2px); transform: rotate(-135deg) translate(-2px, -2px); }
body[data-lobby="v2"] .v2-lang-pop {
	display: none;
	position: absolute;
	right: 0;
	top: 46px;
	min-width: 172px;
	padding: 6px;
	background: #101c33;
	border: 1px solid rgba(255, 255, 255, 0.1);
	-webkit-border-radius: 14px;
	border-radius: 14px;
	-webkit-box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
	text-align: left;
}
body[data-lobby="v2"] .lang-icon[item-open="yes"] .v2-lang-pop {
	display: block;
	-webkit-animation: v2-rise 0.2s var(--v2-ease) backwards;
	animation: v2-rise 0.2s var(--v2-ease) backwards;
}
body[data-lobby="v2"] .v2-lang-pop .v2-lang-head { padding: 6px 10px 4px; font-size: 11px; letter-spacing: 0.4px; color: var(--v2-muted); text-transform: uppercase; }
body[data-lobby="v2"] .v2-lang-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	font-size: 14px;
	color: #ffffff;
	cursor: pointer;
	-webkit-border-radius: 10px;
	border-radius: 10px;
	-webkit-transition: background-color 0.15s;
	transition: background-color 0.15s;
}
body[data-lobby="v2"] .v2-lang-opt:hover { background: rgba(255, 255, 255, 0.07); }
body[data-lobby="v2"] .v2-lang-opt img { width: 22px !important; height: 22px; -webkit-border-radius: 50%; border-radius: 50%; object-fit: cover; }
body[data-lobby="v2"] .v2-lang-btn .v2-lang-globe,
body[data-lobby="v2"] .v2-lang-opt .v2-lang-globe { width: 22px; height: 22px; background: rgba(255, 255, 255, 0.1) url(../images/icon-language.svg) center / 14px no-repeat; -webkit-filter: brightness(0) invert(1); filter: brightness(0) invert(1); -webkit-border-radius: 50%; border-radius: 50%; }
body[data-lobby="v2"] .v2-lang-opt small { margin-left: auto; font-size: 11px; color: var(--v2-muted); letter-spacing: 0.5px; }
body[data-lobby="v2"] .v2-lang-opt[item-current="yes"] { background: rgba(31, 191, 95, 0.14); }
body[data-lobby="v2"] .v2-lang-opt[item-current="yes"]::after {
	content: "";
	width: 5px;
	height: 9px;
	margin: -3px 2px 0 0;
	border-right: 2px solid #4fe488;
	border-bottom: 2px solid #4fe488;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}
body[data-lobby="v2"] .v2-lang-opt[item-current="yes"] small { margin-left: auto; }

/* scroll reveal of the ratings block on phones */
body[data-lobby="v2"] .v2-sr { opacity: 0; -webkit-transform: translateY(14px); transform: translateY(14px); -webkit-transition: opacity 0.5s var(--v2-ease), -webkit-transform 0.5s var(--v2-ease); transition: opacity 0.5s var(--v2-ease), transform 0.5s var(--v2-ease); }
body[data-lobby="v2"] .v2-sr.in { opacity: 1; -webkit-transform: none; transform: none; }

/* small phones */
@media (max-width: 359px) {
	body[data-lobby="v2"] .v2-picker { -webkit-transform: scale(0.88); transform: scale(0.88); -webkit-transform-origin: top center; transform-origin: top center; margin-bottom: -30px; }
}

/* ============================================================
   desktop
   ============================================================ */
@media (min-width: 960px) {
	/* the whole screen is used: content runs from the left edge to the right edge */
	body[data-lobby="v2"] .main-area,
	body[data-lobby="v2"][data-logged] .main-area { max-width: none; }

	/* logged out: game card on the left, ratings fill the rest */
	body[data-lobby="v2"] .login-container { padding: 0 64px; }
	body[data-lobby="v2"] .v2-layout {
		display: grid;
		grid-template-columns: 440px minmax(0, 560px);
		justify-content: center;
		gap: 56px;
		align-items: stretch;
		align-content: center;
		min-height: calc(100vh - 130px);
		padding-top: 64px;
	}
	body[data-lobby="v2"] .v2-hero {
		min-height: 0;
		padding: 34px 32px 30px;
		background: rgba(0, 0, 0, 0.32);
		border: 1px solid rgba(255, 255, 255, 0.09);
		-webkit-border-radius: 26px;
		border-radius: 26px;
		-webkit-box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
		box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	}
	body[data-lobby="v2"] .v2-side { padding: 0; display: flex; flex-direction: column; justify-content: center; }
	body[data-lobby="v2"] .v2-sr { opacity: 1; -webkit-transform: none; transform: none; }
	body[data-lobby="v2"] .v2-row:nth-child(n+4) { display: flex; } /* desktop: top 5 */
	body[data-lobby="v2"] .v2-plist { min-height: 0; }
	body[data-lobby="v2"] .v2-ptabs { max-width: 420px; }
	body[data-lobby="v2"] .v2-foot { padding: 22px 0 64px; }

	/* menu: drawer from the left instead of the centered slide-down */
	body[data-lobby="v2"] .user-menu-container[is-open="yes"] .user-menu-content {
		top: 0;
		left: 0;
		width: 380px;
		height: 100%;
		max-height: 100%;
		padding: 84px 18px 22px;
		-webkit-border-radius: 0 22px 22px 0;
		border-radius: 0 22px 22px 0;
		-webkit-box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
		box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
		-webkit-animation-name: v2-drawer-in;
		animation-name: v2-drawer-in;
	}
	body[data-lobby="v2"] .user-menu-inner { max-width: none; }

	/* logged: profile card on the left, ratings fill the rest */
	body[data-lobby="v2"] .user-container {
		display: grid;
		grid-template-columns: 400px minmax(0, 660px);
		justify-content: center;
		gap: 48px;
		align-items: center;
		align-content: center;
		min-height: calc(100vh - 122px);
		padding: 10px 96px 60px !important;
	}
	body[data-lobby="v2"] .v2-profile {
		padding: 30px 32px 32px;
		background: rgba(0, 0, 0, 0.32);
		border: 1px solid rgba(255, 255, 255, 0.09);
		-webkit-border-radius: 26px;
		border-radius: 26px;
		-webkit-box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
		box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	}
	body[data-lobby="v2"] .v2-avatar,
	body[data-lobby="v2"] .v2-avatar .user-photo { width: 100px; height: 100px; }
	body[data-lobby="v2"] .v2-play { margin-top: 26px; }
	body[data-lobby="v2"] .v2-ratings { margin-top: 0; text-align: left; }
	body[data-lobby="v2"] .users-ratings { max-width: 100%; }
	/* cards keep a comfortable size on wide screens instead of stretching */
	body[data-lobby="v2"] .v2-ratings { max-width: 660px; }
	body[data-lobby="v2"] .v2-sr { max-width: 560px; }
	body[data-lobby="v2"] .v2-tabs { justify-content: flex-start; }
	body[data-lobby="v2"] .v2-list { min-height: 0; text-align: left; }
	/* top 4 as a 2 x 2 grid */
	body[data-lobby="v2"] .v2-list .users-ratings-listing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	body[data-lobby="v2"] .v2-list .users-ratings-item td[style*="width: 32px"] { display: none; }
	body[data-lobby="v2"] .users-ratings[item-style="light"] .users-ratings-item:nth-child(4) { animation-delay: 150ms; }
	body[data-lobby="v2"] .users-ratings[item-style="light"] .users-ratings-item:nth-child(5) { animation-delay: 200ms; }
	body[data-lobby="v2"] .users-ratings[item-style="light"] .users-ratings-item:nth-child(6) { animation-delay: 250ms; }
	body[data-lobby="v2"] .v2-list .users-ratings-listing > :not(.users-ratings-item) { grid-column: 1 / -1; }
}
@media (min-width: 960px) and (max-width: 1099px) {
	body[data-lobby="v2"] .login-container { padding: 0 40px; }
	body[data-lobby="v2"] .v2-layout { grid-template-columns: 400px minmax(0, 1fr); gap: 36px; }
	body[data-lobby="v2"] .user-container { grid-template-columns: 360px minmax(0, 1fr); gap: 32px; padding-left: 80px !important; padding-right: 80px !important; }
}
@media (min-width: 1200px) {
	body[data-lobby="v2"] .v2-layout { gap: 72px; }
}
@-webkit-keyframes v2-drawer-in { from { -webkit-transform: translateX(-100%); } }
@keyframes v2-drawer-in { from { transform: translateX(-100%); } }

/* ============================================================
   full ratings dialog ("more" on the lobby): dark glass, same family as the menu
   scoped to .v2-ratings-dialog, other dialogs keep their light look
   ============================================================ */
body[data-lobby="v2"] .big-dialog.v2-ratings-dialog {
	background-color: rgba(4, 9, 20, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
body[data-lobby="v2"][data-page="lobby"] .v2-ratings-dialog .big-dialog-inner {
	width: 420px;
	max-width: calc(100vw - 24px);
	min-width: 0;
	margin-left: 12px;
	margin-right: 12px;
	background: #111e37;
	border: 1px solid rgba(255, 255, 255, 0.1);
	-webkit-border-radius: 24px;
	border-radius: 24px;
	-webkit-box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-lobby="v2"][data-page="lobby"] .v2-ratings-dialog .big-dialog-header {
	height: auto;
	flex: 0 0 auto;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-lobby="v2"] .v2-ratings-dialog .big-dialog-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 62px;
	line-height: 1.2;
	font-size: 18px;
	font-weight: bold;
	color: #ffffff;
}
body[data-lobby="v2"] .v2-ratings-dialog .big-dialog-title .v2-trophy { vertical-align: 0; }
body[data-lobby="v2"] .v2-ratings-dialog .big-dialog-content {
	padding: 16px 16px 4px;
	color: #f3f6fb;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
body[data-lobby="v2"] .v2-ratings-dialog .big-dialog-content::-webkit-scrollbar { width: 6px; }
body[data-lobby="v2"] .v2-ratings-dialog .big-dialog-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); -webkit-border-radius: 3px; border-radius: 3px; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings { width: auto; max-width: none; }
body[data-lobby="v2"] .v2-ratings-dialog .v2-tabs { gap: 6px; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .v2-tabs .users-ratings-switch { padding: 6px 12px; font-size: 13px; color: #d6e0f0; background-color: var(--v2-glass); }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .v2-tabs .users-ratings-switch[item-selected="yes"] { padding: 6px 12px; color: #1b1403 !important; background-color: var(--v2-gold); -webkit-box-shadow: none; box-shadow: none; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings-listing { margin-top: 16px; text-align: center; }
body[data-lobby="v2"] .v2-ratings-dialog .v2-rd-loading { width: 44px; margin: 28px auto; }

/* rows */
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item {
	margin: 0 0 8px;
	padding: 8px 14px 8px 10px;
	background-color: #172238;
	border: 0;
	-webkit-border-radius: 16px;
	border-radius: 16px;
	-webkit-transition: background-color 0.2s;
	transition: background-color 0.2s;
}
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item:hover { background-color: #1c2943; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item:active { background-color: #22304c; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item-name { color: #ffffff; font-size: 15px; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item-wins { font-size: 13px; color: #44d983; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item-wins span { color: #44d983; font-size: 15px !important; font-weight: bold; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item td[style*="width: 32px"] { width: 30px !important; padding-right: 8px; text-align: center !important; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item td[style*="width: 32px"] b { color: var(--v2-muted) !important; font-size: 14px !important; font-weight: normal; }
/* place column: medal for the top 3, plain number (no dot) for the rest */
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item td[style*="width: 32px"] b[item-place] { font-size: 0 !important; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item td[style*="width: 32px"] b[item-place]::before { content: attr(item-place); font-size: 15px; font-weight: bold; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item td[style*="width: 32px"] b[item-place="1"]::before { content: "\1F947"; font-size: 22px; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item td[style*="width: 32px"] b[item-place="2"]::before { content: "\1F948"; font-size: 22px; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item td[style*="width: 32px"] b[item-place="3"]::before { content: "\1F949"; font-size: 22px; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item-medal { display: none; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item td[style*="width: 64px"] { width: 58px !important; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item-photo { -webkit-box-shadow: none; box-shadow: none; }
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item[item-user-online="online"] .users-ratings-item-photo::before,
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings[item-style="light"] .users-ratings-item[item-user-online="playing"] .users-ratings-item-photo::before {
	border-color: #172238;
}
/* divider under the "your position" row */
body[data-lobby="v2"] .v2-ratings-dialog .users-ratings-listing > div[style*="border-top"] {
	border-top: 1px dashed rgba(255, 255, 255, 0.18) !important;
	margin: 4px 0 12px !important;
}

/* footer button */
body[data-lobby="v2"][data-page="lobby"] .v2-ratings-dialog .big-dialog-footer { padding: 8px 16px 16px; }
body[data-lobby="v2"][data-page="lobby"] .v2-ratings-dialog .big-dialog-button[button-style="light"] {
	background-color: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #e6eefb !important;
	-webkit-box-shadow: none;
	box-shadow: none;
}
body[data-lobby="v2"][data-page="lobby"] .v2-ratings-dialog .big-dialog-button[button-style="light"]:hover { background-color: rgba(255, 255, 255, 0.14) !important; opacity: 1; }

/* ============================================================
   profile dialog (rating row / chat / friends): same dark glass as the ratings dialog
   scoped to .profile-dialog inside the v2 lobby only
   ============================================================ */
body[data-lobby="v2"] .big-dialog.profile-dialog {
	background-color: rgba(4, 9, 20, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
body[data-lobby="v2"][data-page="lobby"] .big-dialog.profile-dialog .big-dialog-inner {
	width: 360px;
	max-width: calc(100vw - 24px);
	min-width: 0;
	background: linear-gradient(180deg, #14213b 0%, #0f1a30 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	-webkit-border-radius: 24px;
	border-radius: 24px;
	-webkit-box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-lobby="v2"] .profile-dialog .big-dialog-content {
	background-color: transparent;
	color: #f3f6fb;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
body[data-lobby="v2"] .profile-dialog .big-dialog-content::-webkit-scrollbar { width: 6px; }
body[data-lobby="v2"] .profile-dialog .big-dialog-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); -webkit-border-radius: 3px; border-radius: 3px; }
body[data-lobby="v2"][data-page="lobby"] .profile-dialog .big-dialog-footer {
	padding: 10px 16px 16px;
	background-color: transparent;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-lobby="v2"][data-page="lobby"] .profile-dialog .big-dialog-button[button-style="light"] {
	background-color: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #e6eefb !important;
	-webkit-box-shadow: none;
	box-shadow: none;
}
body[data-lobby="v2"][data-page="lobby"] .profile-dialog .big-dialog-button[button-style="light"]:hover { background-color: rgba(255, 255, 255, 0.14) !important; opacity: 1; }

/* header: game + id chip, photo, coins, name */
body[data-lobby="v2"] .profile-dialog .profile-id {
	display: inline-flex;
	align-items: center;
	padding: 4px 14px 4px 5px;
	color: var(--v2-muted) !important;
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	-webkit-border-radius: 999px;
	border-radius: 999px;
}
body[data-lobby="v2"] .profile-dialog .profile-id img { width: 28px !important; height: 28px !important; margin-right: 8px !important; border-radius: 9px !important; }
body[data-lobby="v2"] .profile-dialog .profile-photo {
	-webkit-box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 12px 30px rgba(0, 0, 0, 0.45);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 12px 30px rgba(0, 0, 0, 0.45);
}
body[data-lobby="v2"] .profile-dialog .profile-coins .coins-counter {
	display: inline-flex !important;
	align-items: center;
	padding: 3px 12px 3px 6px !important;
	background-color: rgba(8, 14, 28, 0.9) !important;
	border: 1px solid rgba(240, 197, 85, 0.5);
	-webkit-border-radius: 999px !important;
	border-radius: 999px !important;
	-webkit-box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
body[data-lobby="v2"] .profile-dialog .profile-coins .coins-counter img { width: 20px; margin-right: 6px; }
body[data-lobby="v2"] .profile-dialog .profile-coins .coins-counter span { color: var(--v2-gold-2) !important; font-weight: bold; text-shadow: none; }
body[data-lobby="v2"] .profile-dialog .big-dialog-content > div > div:first-child > div:nth-child(3) { color: #ffffff; font-weight: bold; font-size: 20px !important; }

/* likes pill + action buttons */
body[data-lobby="v2"] .profile-dialog .user-likes {
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
body[data-lobby="v2"] .profile-dialog .user-likes span { color: #ffffff; }
body[data-lobby="v2"] .profile-dialog .user-actions-icon {
	background-color: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-sizing: border-box;
}
body[data-lobby="v2"] .profile-dialog .user-actions-icon:hover {
	background-color: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.28);
	-webkit-box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
body[data-lobby="v2"] .profile-dialog .unblock-button img { -webkit-filter: invert(1); filter: invert(1); }
body[data-lobby="v2"] .profile-dialog .user-actions div[style*="color: #838383"] { color: var(--v2-muted) !important; }

/* stats */
body[data-lobby="v2"] .profile-dialog .user-ratings { border-top-color: rgba(255, 255, 255, 0.1) !important; }
body[data-lobby="v2"] .profile-dialog .user-ratings span[style*="width: 24px"] { width: 0 !important; }
body[data-lobby="v2"] .profile-dialog .user-rating-switch {
	margin: 0 3px;
	padding: 7px 14px;
	font-size: 14px;
	color: #d6e0f0;
	background-color: var(--v2-glass);
	border: 1px solid var(--v2-stroke);
	-webkit-border-radius: 999px;
	border-radius: 999px;
}
body[data-lobby="v2"] .profile-dialog .user-rating-switch:hover { background-color: var(--v2-glass-2); color: #ffffff; -webkit-border-radius: 999px; border-radius: 999px; }
body[data-lobby="v2"] .profile-dialog .user-rating-switch[item-selected="yes"] {
	padding: 7px 14px;
	color: #1b1403;
	font-weight: bold;
	background-color: var(--v2-gold);
	border-color: transparent;
	-webkit-box-shadow: none;
	box-shadow: none;
}
body[data-lobby="v2"] .profile-dialog .user-rating-switch img { width: 18px !important; height: 18px; margin-right: 6px !important; }
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item) {
	display: flex;
	align-items: center;
	margin-top: 8px !important;
	padding: 6px 16px 6px 10px;
	font-size: 15px !important;
	color: #d6e0f0;
	background-color: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.07);
	-webkit-border-radius: 14px;
	border-radius: 14px;
}
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item):first-child { margin-top: 0 !important; }
body[data-lobby="v2"] .profile-dialog .user-rating-content .smile-item { flex: 0 0 auto; width: 36px; height: 36px; margin-right: 8px; background-size: 28px 28px; }
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item) b { margin-left: auto; font-size: 17px; color: #ffffff; }
/* head-to-head cards */
body[data-lobby="v2"] .profile-dialog .game-p2p-item {
	background-color: rgba(255, 255, 255, 0.045);
	-webkit-box-shadow: none;
	box-shadow: none;
	-webkit-border-radius: 14px;
	border-radius: 14px;
	color: #ffffff;
}
body[data-lobby="v2"] .profile-dialog .game-p2p-header { font-weight: bold; }

/* ---- profile dialog: refined details ---- */
body[data-lobby="v2"][data-page="lobby"] .big-dialog.profile-dialog .big-dialog-inner { max-height: calc(100% - 40px); }
body[data-lobby="v2"] .profile-dialog .big-dialog-content > div { padding-top: 16px !important; padding-bottom: 6px; }

/* gender accent: soft glow instead of a flat line */
body[data-lobby="v2"] .big-dialog.profile-dialog[data-gender] .big-dialog-content { border-top: 0; }
body[data-lobby="v2"] .big-dialog.profile-dialog[data-gender="female"] .big-dialog-content { background-image: radial-gradient(ellipse 75% 170px at 50% 0, rgba(255, 77, 166, 0.2), rgba(255, 77, 166, 0) 100%); }
body[data-lobby="v2"] .big-dialog.profile-dialog[data-gender="male"] .big-dialog-content { background-image: radial-gradient(ellipse 75% 170px at 50% 0, rgba(74, 144, 217, 0.24), rgba(74, 144, 217, 0) 100%); }

/* header */
body[data-lobby="v2"] .profile-dialog .profile-id { font-size: 13px; letter-spacing: 0.2px; -webkit-transition: background-color 0.2s ease; transition: background-color 0.2s ease; }
body[data-lobby="v2"] .profile-dialog .profile-id:hover { background-color: rgba(255, 255, 255, 0.12); }
body[data-lobby="v2"] .profile-dialog[data-gender="female"] .profile-id { border-color: #ff4da6; -webkit-box-shadow: 0 0 10px rgba(255, 77, 166, 0.35); box-shadow: 0 0 10px rgba(255, 77, 166, 0.35); }
body[data-lobby="v2"] .profile-dialog[data-gender="male"] .profile-id { border-color: #4a90d9; -webkit-box-shadow: 0 0 10px rgba(74, 144, 217, 0.35); box-shadow: 0 0 10px rgba(74, 144, 217, 0.35); }
body[data-lobby="v2"] .profile-dialog .big-dialog-content > div > div:first-child > div:nth-child(3) {
	margin-top: 12px !important;
	line-height: 1.25;
	letter-spacing: 0.2px;
}
/* status badge + name on one line, the stickers always on their own line below */
body[data-lobby="v2"] .profile-dialog .big-dialog-content > div > div:first-child > div:nth-child(3) > div:first-child {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
body[data-lobby="v2"] .profile-dialog .user-stickers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}
body[data-lobby="v2"] .profile-dialog .user-stickers:empty { display: none; }
body[data-lobby="v2"] .profile-dialog .user-sticker,
body[data-lobby="v2"] .profile-dialog .user-sticker:hover {
	width: 38px;
	height: 38px;
	background-size: 38px 38px;
	-webkit-transition: transform 0.15s ease;
	transition: transform 0.15s ease;
}
body[data-lobby="v2"] .profile-dialog .user-sticker:hover { -webkit-transform: scale(1.18); transform: scale(1.18); }
body[data-lobby="v2"] .profile-dialog .user-status { width: 30px; height: 30px; background-size: 30px 30px; margin-right: 0; -webkit-filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }

/* likes */
body[data-lobby="v2"] .profile-dialog .user-likes {
	width: auto;
	display: -webkit-flex;
	display: flex;
	margin-top: 12px;
	padding: 0;
	background: none;
	border: 0;
}
body[data-lobby="v2"] .profile-dialog .user-likes table { width: auto; margin: 0 auto; }
body[data-lobby="v2"] .profile-dialog .user-likes td {
	display: inline-flex;
	align-items: center;
	width: auto;
	padding: 5px 16px 5px 10px;
	background-color: rgba(0, 122, 222, 0.16);
	border: 1px solid rgba(109, 180, 255, 0.38);
	-webkit-border-radius: 999px;
	border-radius: 999px;
}
body[data-lobby="v2"] .profile-dialog .user-likes img { height: 22px; }
body[data-lobby="v2"] .profile-dialog .user-likes span { margin-left: 8px; font-size: 16px; }

/* action buttons: one icon family, tinted per action */
body[data-lobby="v2"] .profile-dialog .user-actions { margin-top: 16px; width: 270px; }
body[data-lobby="v2"] .profile-dialog .user-actions-icon {
	width: 48px;
	height: 48px;
	background-size: 22px 22px;
	-webkit-transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body[data-lobby="v2"] .profile-dialog .user-actions-icon[item-id="add-friend"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236db4ff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M1.5 21v-1a6 6 0 0 1 6-6h3a6 6 0 0 1 6 6v1'/%3E%3Cpath d='M19 8v6M16 11h6'/%3E%3C/svg%3E"); background-size: 22px 22px; background-color: rgba(109,180,255, 0.13); border-color: rgba(109,180,255, 0.38); }
body[data-lobby="v2"] .profile-dialog .user-actions-icon[item-id="add-friend"]:hover { background-color: rgba(109,180,255, 0.24); border-color: rgba(109,180,255, 0.7); -webkit-box-shadow: 0 8px 20px rgba(109,180,255, 0.25); box-shadow: 0 8px 20px rgba(109,180,255, 0.25); }
body[data-lobby="v2"] .profile-dialog .user-actions-icon[item-id="is-friend"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2341d98a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M1.5 21v-1a6 6 0 0 1 6-6h3a6 6 0 0 1 6 6v1'/%3E%3Cpath d='M16 11.5l2.2 2.2L22.5 9'/%3E%3C/svg%3E"); background-size: 22px 22px; background-color: rgba(65,217,138, 0.13); border-color: rgba(65,217,138, 0.38); }
body[data-lobby="v2"] .profile-dialog .user-actions-icon[item-id="is-friend"]:hover { background-color: rgba(65,217,138, 0.24); border-color: rgba(65,217,138, 0.7); -webkit-box-shadow: 0 8px 20px rgba(65,217,138, 0.25); box-shadow: 0 8px 20px rgba(65,217,138, 0.25); }
body[data-lobby="v2"] .profile-dialog .user-actions-icon[item-id="message"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335d572' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8.5 8.5 0 0 1-12.3 7.6L3 21l1.5-5.2A8.5 8.5 0 1 1 21 12z'/%3E%3Cpath d='M8.5 12h.01M12 12h.01M15.5 12h.01' stroke-width='2.6'/%3E%3C/svg%3E"); background-size: 22px 22px; background-color: rgba(53,213,114, 0.13); border-color: rgba(53,213,114, 0.38); }
body[data-lobby="v2"] .profile-dialog .user-actions-icon[item-id="message"]:hover { background-color: rgba(53,213,114, 0.24); border-color: rgba(53,213,114, 0.7); -webkit-box-shadow: 0 8px 20px rgba(53,213,114, 0.25); box-shadow: 0 8px 20px rgba(53,213,114, 0.25); }
body[data-lobby="v2"] .profile-dialog .user-actions-icon[item-id="send-coins"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0c555' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v9M14.6 9.6c-.5-.8-1.5-1.2-2.6-1.2-1.5 0-2.6.8-2.6 1.9 0 2.5 5.4 1.2 5.4 3.7 0 1.1-1.1 1.9-2.8 1.9-1.2 0-2.3-.5-2.8-1.4'/%3E%3C/svg%3E"); background-size: 22px 22px; background-color: rgba(240,197,85, 0.13); border-color: rgba(240,197,85, 0.38); }
body[data-lobby="v2"] .profile-dialog .user-actions-icon[item-id="send-coins"]:hover { background-color: rgba(240,197,85, 0.24); border-color: rgba(240,197,85, 0.7); -webkit-box-shadow: 0 8px 20px rgba(240,197,85, 0.25); box-shadow: 0 8px 20px rgba(240,197,85, 0.25); }
body[data-lobby="v2"] .profile-dialog .user-actions-icon[item-id="report"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a6b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 22V3.5'/%3E%3Cpath d='M5 4h13.5l-2.6 4.6 2.6 4.6H5'/%3E%3C/svg%3E"); background-size: 22px 22px; background-color: rgba(255,122,107, 0.13); border-color: rgba(255,122,107, 0.38); }
body[data-lobby="v2"] .profile-dialog .user-actions-icon[item-id="report"]:hover { background-color: rgba(255,122,107, 0.24); border-color: rgba(255,122,107, 0.7); -webkit-box-shadow: 0 8px 20px rgba(255,122,107, 0.25); box-shadow: 0 8px 20px rgba(255,122,107, 0.25); }

/* stats */
body[data-lobby="v2"] .profile-dialog .user-ratings { padding-top: 16px !important; margin-top: 16px !important; padding-bottom: 6px !important; }
body[data-lobby="v2"] .profile-dialog .user-rating-content .smile-item {
	width: 34px;
	height: 34px;
	background-size: 24px 24px;
	background-color: rgba(255, 255, 255, 0.07);
	-webkit-border-radius: 50%;
	border-radius: 50%;
}
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item) { padding: 5px 16px 5px 8px; }
body[data-lobby="v2"] .profile-dialog .game-p2p-header img { -webkit-filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }

/* ---- profile dialog: win / lose / left rows ---- */
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item) { font-weight: 500; letter-spacing: 0.2px; }
body[data-lobby="v2"] .profile-dialog .user-rating-content .smile-item {
	width: 36px;
	height: 36px;
	background-size: 20px 20px !important;
	background-repeat: no-repeat;
	background-position: center;
}
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item):nth-child(1) { background-image: linear-gradient(90deg, rgba(65,217,138, 0.13) 0%, rgba(65,217,138, 0.03) 55%, rgba(255, 255, 255, 0.03) 100%); border-color: rgba(65,217,138, 0.22); }
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item):nth-child(1) .smile-item { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2341d98a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0V4z'/%3E%3Cpath d='M7 6H4v1a3 3 0 0 0 3 3M17 6h3v1a3 3 0 0 1-3 3'/%3E%3C/svg%3E") !important; background-color: rgba(65,217,138, 0.16); -webkit-box-shadow: inset 0 0 0 1px rgba(65,217,138, 0.4); box-shadow: inset 0 0 0 1px rgba(65,217,138, 0.4); }
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item):nth-child(1) b { color: #41d98a; }
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item):nth-child(2) { background-image: linear-gradient(90deg, rgba(255,122,107, 0.13) 0%, rgba(255,122,107, 0.03) 55%, rgba(255, 255, 255, 0.03) 100%); border-color: rgba(255,122,107, 0.22); }
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item):nth-child(2) .smile-item { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a6b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l6 6 4-4 8 8'/%3E%3Cpath d='M15 17h6v-6'/%3E%3C/svg%3E") !important; background-color: rgba(255,122,107, 0.16); -webkit-box-shadow: inset 0 0 0 1px rgba(255,122,107, 0.4); box-shadow: inset 0 0 0 1px rgba(255,122,107, 0.4); }
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item):nth-child(2) b { color: #ff7a6b; }
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item):nth-child(3) { background-image: linear-gradient(90deg, rgba(240,197,85, 0.13) 0%, rgba(240,197,85, 0.03) 55%, rgba(255, 255, 255, 0.03) 100%); border-color: rgba(240,197,85, 0.22); }
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item):nth-child(3) .smile-item { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0c555' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") !important; background-color: rgba(240,197,85, 0.16); -webkit-box-shadow: inset 0 0 0 1px rgba(240,197,85, 0.4); box-shadow: inset 0 0 0 1px rgba(240,197,85, 0.4); }
body[data-lobby="v2"] .profile-dialog .user-rating-content > div > div:not(.game-p2p-item):nth-child(3) b { color: #f0c555; }

/* ============================================================
   choose game dialog: dark glass, same family as ratings / profile dialogs
   ============================================================ */
body[data-lobby="v2"] .big-dialog.games-dialog {
	background-color: rgba(4, 9, 20, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
body[data-lobby="v2"][data-page="lobby"] .big-dialog.games-dialog .big-dialog-inner {
	width: 380px;
	max-width: calc(100vw - 24px);
	min-width: 0;
	max-height: calc(100% - 40px);
	background: linear-gradient(180deg, #14213b 0%, #0f1a30 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	-webkit-border-radius: 24px;
	border-radius: 24px;
	-webkit-box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-lobby="v2"][data-page="lobby"] .games-dialog .big-dialog-header {
	height: auto;
	flex: 0 0 auto;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-lobby="v2"] .games-dialog .big-dialog-title {
	height: 62px;
	line-height: 62px;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 0.2px;
	color: #ffffff;
}
body[data-lobby="v2"] .games-dialog .big-dialog-content {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
body[data-lobby="v2"] .games-dialog .big-dialog-content::-webkit-scrollbar { width: 6px; }
body[data-lobby="v2"] .games-dialog .big-dialog-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); -webkit-border-radius: 3px; border-radius: 3px; }
body[data-lobby="v2"] .big-dialog.games-dialog .big-dialog-content > div:first-child { padding: 14px 14px 4px !important; }
body[data-lobby="v2"] .big-dialog.games-dialog .dialog-list > div { margin-bottom: 8px !important; }

body[data-lobby="v2"] .big-dialog.games-dialog .switch-game-button {
	min-height: 66px;
	font-size: 16px;
	font-weight: bold;
	letter-spacing: 0.2px;
	color: #ffffff !important;
	background-color: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.08);
	-webkit-border-radius: 18px;
	border-radius: 18px;
	-webkit-transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
body[data-lobby="v2"] .big-dialog.games-dialog .switch-game-button:hover {
	background-color: rgba(255, 255, 255, 0.1) !important;
	border-color: rgba(240, 197, 85, 0.55);
}
body[data-lobby="v2"] .big-dialog.games-dialog .switch-game-button:active { background-color: rgba(255, 255, 255, 0.14) !important; }
body[data-lobby="v2"] .big-dialog.games-dialog .switch-game-button img {
	background-color: transparent;
	-webkit-box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 6px 16px rgba(0, 0, 0, 0.4);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 6px 16px rgba(0, 0, 0, 0.4);
}
body[data-lobby="v2"] .big-dialog.games-dialog .switch-game-button::after {
	border-right-color: rgba(255, 255, 255, 0.4);
	border-bottom-color: rgba(255, 255, 255, 0.4);
	-webkit-transition: border-color 0.18s ease, right 0.18s ease;
	transition: border-color 0.18s ease, right 0.18s ease;
}
body[data-lobby="v2"] .big-dialog.games-dialog .switch-game-button:hover::after { right: 16px; border-right-color: var(--v2-gold); border-bottom-color: var(--v2-gold); }

/* facebook group card */
body[data-lobby="v2"] .big-dialog.games-dialog .big-dialog-content > div:nth-child(2) { padding: 6px 14px 16px !important; }
body[data-lobby="v2"] .big-dialog.games-dialog .big-dialog-content > div:nth-child(2) table {
	background-color: #1b6fd0 !important;
	background-image: linear-gradient(135deg, #2189f0 0%, #1459b8 100%);
	border: 1px solid rgba(255, 255, 255, 0.18);
	-webkit-border-radius: 18px !important;
	border-radius: 18px !important;
	-webkit-box-shadow: 0 8px 22px rgba(24, 119, 242, 0.3);
	box-shadow: 0 8px 22px rgba(24, 119, 242, 0.3);
}
body[data-lobby="v2"][data-page="lobby"] .games-dialog .big-dialog-footer {
	padding: 8px 16px 16px;
	background-color: transparent;
	border-top: 0;
}
body[data-lobby="v2"][data-page="lobby"] .games-dialog .big-dialog-footer:empty { display: none; }
body[data-lobby="v2"][data-page="lobby"] .games-dialog .big-dialog-button[button-style="light"] {
	background-color: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #e6eefb !important;
	-webkit-box-shadow: none;
	box-shadow: none;
}

/* ============================================================
   coin picker (before the opponent search) + joker "create table" dialog
   dark glass, scoped by the classes play.js / play4.js give these two dialogs
   ============================================================ */
body[data-lobby="v2"] .big-dialog.v2-coins-dialog,
body[data-lobby="v2"] .big-dialog.v2-table-dialog {
	background-color: rgba(4, 9, 20, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
body[data-lobby="v2"][data-page="lobby"] .big-dialog.v2-coins-dialog .big-dialog-inner,
body[data-lobby="v2"][data-page="lobby"] .big-dialog.v2-table-dialog .big-dialog-inner {
	width: 380px;
	max-width: calc(100vw - 24px);
	min-width: 0;
	max-height: calc(100% - 40px);
	background: linear-gradient(180deg, #14213b 0%, #0f1a30 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	-webkit-border-radius: 24px;
	border-radius: 24px;
	-webkit-box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-lobby="v2"][data-page="lobby"] .v2-coins-dialog .big-dialog-header,
body[data-lobby="v2"][data-page="lobby"] .v2-table-dialog .big-dialog-header {
	height: auto;
	flex: 0 0 auto;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-lobby="v2"] .v2-coins-dialog .big-dialog-title,
body[data-lobby="v2"] .v2-table-dialog .big-dialog-title {
	height: 62px;
	line-height: 62px;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 0.2px;
	color: #ffffff;
}
body[data-lobby="v2"] .v2-coins-dialog .big-dialog-content,
body[data-lobby="v2"] .v2-table-dialog .big-dialog-content {
	color: #e6eefb;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
body[data-lobby="v2"] .v2-coins-dialog .big-dialog-content::-webkit-scrollbar,
body[data-lobby="v2"] .v2-table-dialog .big-dialog-content::-webkit-scrollbar { width: 6px; }
body[data-lobby="v2"] .v2-coins-dialog .big-dialog-content::-webkit-scrollbar-thumb,
body[data-lobby="v2"] .v2-table-dialog .big-dialog-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); -webkit-border-radius: 3px; border-radius: 3px; }
body[data-lobby="v2"][data-page="lobby"] .v2-coins-dialog .big-dialog-footer,
body[data-lobby="v2"][data-page="lobby"] .v2-table-dialog .big-dialog-footer {
	padding: 10px 16px 16px;
	background-color: transparent;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-lobby="v2"][data-page="lobby"] .v2-coins-dialog .big-dialog-button[button-style="light"],
body[data-lobby="v2"][data-page="lobby"] .v2-table-dialog .big-dialog-button[button-style="light"] {
	background-color: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #e6eefb !important;
	-webkit-box-shadow: none;
	box-shadow: none;
}
body[data-lobby="v2"][data-page="lobby"] .v2-coins-dialog .big-dialog-button[button-style="light"]:hover,
body[data-lobby="v2"][data-page="lobby"] .v2-table-dialog .big-dialog-button[button-style="light"]:hover { background-color: rgba(255, 255, 255, 0.14) !important; opacity: 1; }

/* ---- coin picker ---- */
body[data-lobby="v2"] .v2-coins-dialog .big-dialog-content > div { padding: 16px 16px 6px !important; }
body[data-lobby="v2"] .v2-coins-dialog .big-dialog-content > div > div:first-child {
	margin-bottom: 14px !important;
	font-size: 14px !important;
	line-height: 1.4;
	text-align: center;
	color: var(--v2-muted);
}
body[data-lobby="v2"] .v2-coins-dialog .play-coins {
	position: relative;
	box-sizing: border-box;
	margin-bottom: 8px;
	padding: 14px 44px 14px 16px;
	font-size: 17px;
	font-weight: bold;
	letter-spacing: 0.2px;
	color: #ffffff;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.09);
	-webkit-border-radius: 18px;
	border-radius: 18px;
	-webkit-transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
body[data-lobby="v2"] .v2-coins-dialog .play-coins:hover { background-color: rgba(255, 255, 255, 0.1); border-color: rgba(240, 197, 85, 0.55); }
body[data-lobby="v2"] .v2-coins-dialog .play-coins:active { -webkit-transform: scale(0.985); transform: scale(0.985); background-color: rgba(255, 255, 255, 0.14); }
body[data-lobby="v2"] .v2-coins-dialog .play-coins > img { width: 22px !important; margin-right: 10px !important; vertical-align: -5px !important; -webkit-filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
body[data-lobby="v2"] .v2-coins-dialog .play-coins > div { margin-left: 32px !important; margin-top: 4px !important; font-size: 13px !important; font-weight: normal; color: var(--v2-muted); }
body[data-lobby="v2"][data-page="lobby"] .v2-coins-dialog .play-coins::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -5px;
	border-right: 2px solid rgba(255, 255, 255, 0.4);
	border-bottom: 2px solid rgba(255, 255, 255, 0.4);
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
	-webkit-transition: border-color 0.18s ease, right 0.18s ease;
	transition: border-color 0.18s ease, right 0.18s ease;
}
body[data-lobby="v2"][data-page="lobby"] .v2-coins-dialog .play-coins:hover::after { right: 16px; border-right-color: var(--v2-gold); border-bottom-color: var(--v2-gold); }
body[data-lobby="v2"][data-page="lobby"] .v2-coins-dialog .play-coins[item-disabled="yes"],
body[data-lobby="v2"][data-page="lobby"] .v2-coins-dialog .play-coins[item-disabled="yes"]:hover {
	background-color: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.4);
	opacity: 1;
	-webkit-filter: none;
	filter: none;
}
body[data-lobby="v2"][data-page="lobby"] .v2-coins-dialog .play-coins[item-disabled="yes"] > img { -webkit-filter: grayscale(1); filter: grayscale(1); opacity: 0.5; }
body[data-lobby="v2"][data-page="lobby"] .v2-coins-dialog .play-coins[item-disabled="yes"]::after { border-color: transparent; }
/* players waiting at this level right now (play.js random_coins) */
body[data-lobby="v2"] .v2-coins-dialog .play-coins > .play-coins-waiting { color: #5fe39a !important; }
body[data-lobby="v2"] .v2-coins-dialog .play-coins > .play-coins-waiting > span:first-child { background-color: #3ddc84 !important; -webkit-box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18); box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18); }
body[data-lobby="v2"][data-page="lobby"] .v2-coins-dialog .play-coins[item-disabled="yes"] > .play-coins-waiting { color: rgba(255, 255, 255, 0.4) !important; }
body[data-lobby="v2"][data-page="lobby"] .v2-coins-dialog .play-coins[item-disabled="yes"] > .play-coins-waiting > span:first-child { background-color: rgba(255, 255, 255, 0.35) !important; -webkit-box-shadow: none; box-shadow: none; }

/* ---- create table (joker) ---- */
body[data-lobby="v2"] .v2-table-dialog .big-dialog-content > div { padding: 16px 16px 8px !important; }
body[data-lobby="v2"] .v2-table-dialog .big-dialog-content > div > div > div[style*="font-size: 14px"] {
	margin-top: 18px !important;
	font-size: 12px !important;
	font-weight: bold;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--v2-muted);
}
body[data-lobby="v2"] .v2-table-dialog .big-dialog-content > div > div > div[style*="font-size: 14px"]:first-child { margin-top: 0 !important; }
body[data-lobby="v2"] .v2-table-dialog .big-dialog-content > div > div > div[style*="margin-top: 4px"] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px !important;
}
body[data-lobby="v2"] .v2-table-dialog .joker-radio-item {
	display: flex;
	align-items: center;
	flex: 1 1 0;
	min-width: 96px;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	-webkit-border-radius: 14px;
	border-radius: 14px;
	-webkit-transition: background-color 0.18s ease, border-color 0.18s ease;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}
body[data-lobby="v2"] .v2-table-dialog .joker-radio-item:hover { background-color: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.2); }
body[data-lobby="v2"] .v2-table-dialog .joker-radio-item:has(input:checked) { background-color: rgba(240, 197, 85, 0.14); border-color: rgba(240, 197, 85, 0.65); }
body[data-lobby="v2"] .v2-table-dialog .joker-radio-item input {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0 0 0 12px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	-webkit-border-radius: 50%;
	border-radius: 50%;
	background: transparent;
	outline: 0;
	-webkit-transition: border-color 0.18s ease;
	transition: border-color 0.18s ease;
}
body[data-lobby="v2"] .v2-table-dialog .joker-radio-item input:checked {
	border-color: var(--v2-gold);
	background: radial-gradient(circle, var(--v2-gold) 0, var(--v2-gold) 4px, transparent 5px);
}
body[data-lobby="v2"] .v2-table-dialog .joker-radio-item label {
	flex: 1 1 auto;
	padding: 12px 12px 12px 10px;
	font-size: 15px;
	font-weight: 500;
	color: #e6eefb;
}
body[data-lobby="v2"] .v2-table-dialog .app-select {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	padding: 13px 42px 13px 16px;
	font-size: 16px;
	font-weight: bold;
	color: #ffffff;
	background-color: rgba(255, 255, 255, 0.07);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9d6ea' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px 18px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	-webkit-border-radius: 14px;
	border-radius: 14px;
	-webkit-box-shadow: none;
	box-shadow: none;
}
body[data-lobby="v2"] .v2-table-dialog .app-select:focus { border-color: rgba(240, 197, 85, 0.65); }
body[data-lobby="v2"] .v2-table-dialog .app-select option { background-color: #14213b; color: #ffffff; }

/* ---------- notifications: bell panel + top popup (lobby only; in games they keep the old white look) ---------- */
body[data-lobby="v2"] .notifications-container::before {
	background-color: rgba(4, 9, 20, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
body[data-lobby="v2"] .notifications {
	width: 300px;
	max-width: calc(100vw - 30px);
	box-sizing: border-box;
	padding: 6px 10px 10px;
	color: #e6eefb;
	font-size: 12px;
	background: linear-gradient(180deg, #14213b 0%, #0f1a30 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	-webkit-border-radius: 20px;
	border-radius: 20px;
	-webkit-box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-lobby="v2"] .notifications::before { right: 14px; border-bottom-color: #14213b; }
body[data-lobby="v2"] .notifications-title {
	padding: 12px 10px 14px;
	margin-bottom: 10px;
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-lobby="v2"] .notifications-title img {
	-webkit-filter: invert(1);
	filter: invert(1);
	opacity: 0.85;
}
body[data-lobby="v2"] .notifications-content:empty {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a9c2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 17H2a3 3 0 0 0 3-3V9a7 7 0 0 1 14 0v5a3 3 0 0 0 3 3zm-8.27 4a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E");
	background-size: 52px 52px;
	opacity: 0.7;
}
body[data-lobby="v2"] .notifications-content[is-loading="yes"] {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' stroke='%23f0c555'%3E%3Cg fill='none' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
}
body[data-lobby="v2"] .notifications-item {
	box-sizing: border-box;
	padding-top: 12px;
	padding-bottom: 4px;
	margin-bottom: 8px;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	-webkit-border-radius: 16px;
	border-radius: 16px;
}
body[data-lobby="v2"] .notifications-item td { color: #c9d6ea; line-height: 1.35; }
body[data-lobby="v2"] .notifications-item td b { color: #ffffff; }
body[data-lobby="v2"] .notifications-item tr:nth-child(2) td > div { color: var(--v2-muted) !important; font-size: 12px !important; }
body[data-lobby="v2"] .notifications-item-icon {
	background-color: rgba(255, 255, 255, 0.9);
	-webkit-box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
body[data-lobby="v2"] .notifications-item[item-online="online"] .notifications-item-icon::before,
body[data-lobby="v2"] .notifications-item[item-online="playing"] .notifications-item-icon::before { border-color: #16233d; }
body[data-lobby="v2"] .notifications-item-close,
body[data-lobby="v2"] .notification-close {
	-webkit-filter: invert(1);
	filter: invert(1);
	opacity: 0.5;
	-webkit-transition: opacity 0.18s ease;
	transition: opacity 0.18s ease;
}
body[data-lobby="v2"] .notifications-item-close:hover,
body[data-lobby="v2"] .notification-close:hover { opacity: 0.9; }
body[data-lobby="v2"] .notifications-item-actions { margin: 6px 6px 6px; }
body[data-lobby="v2"] .notifications-item-action {
	box-sizing: border-box;
	padding: 9px 8px;
	margin: 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: #e6eefb;
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	-webkit-border-radius: 12px;
	border-radius: 12px;
	-webkit-transition: background-color 0.18s ease, border-color 0.18s ease;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}
body[data-lobby="v2"] .notifications-item-action:hover { background-color: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.24); }
body[data-lobby="v2"] .notifications-item-action:first-child {
	color: #8ff0b4;
	background-color: rgba(31, 191, 95, 0.16);
	border-color: rgba(31, 191, 95, 0.45);
}
body[data-lobby="v2"] .notifications-item-action:first-child:hover { background-color: rgba(31, 191, 95, 0.26); }
body[data-lobby="v2"] .notifications-item-action img {
	-webkit-filter: invert(1);
	filter: invert(1);
	opacity: 0.8;
}

body[data-lobby="v2"] .notification {
	overflow: hidden;
	color: #ffffff;
	background: linear-gradient(180deg, rgba(22, 35, 62, 0.97) 0%, rgba(15, 26, 48, 0.97) 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	-webkit-border-radius: 18px;
	border-radius: 18px;
	-webkit-box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
body[data-lobby="v2"] .notification tr:nth-child(2) td > div { color: #c9d6ea !important; line-height: 1.35; }
body[data-lobby="v2"] .notification-icon {
	background-color: rgba(255, 255, 255, 0.9);
	-webkit-box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
body[data-lobby="v2"] .notification-actions {
	background-color: rgba(255, 255, 255, 0.04);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-lobby="v2"] .notification-action {
	font-weight: 600;
	color: #6fe39b;
	-webkit-transition: background-color 0.18s ease;
	transition: background-color 0.18s ease;
}
body[data-lobby="v2"] .notification-action + .notification-action { border-left: 1px solid rgba(255, 255, 255, 0.08); }
body[data-lobby="v2"] .notification-action:hover { background-color: rgba(255, 255, 255, 0.06); }

/* ============================================================
   shared dark dialog: any dialog created with the "v2-dark" class (auth, phone saver, confirm, load error...)
   the class is harmless elsewhere, this file only loads on the v2 lobby
   ============================================================ */
body[data-lobby="v2"] .big-dialog.v2-dark:not([item-closing]) {
	background-color: rgba(4, 9, 20, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
body[data-lobby="v2"][data-page="lobby"] .big-dialog.v2-dark .big-dialog-inner {
	width: 360px;
	max-width: calc(100vw - 24px);
	min-width: 0;
	max-height: calc(100% - 40px);
	margin-left: 12px;
	margin-right: 12px;
	color: #e6eefb;
	background: linear-gradient(180deg, #14213b 0%, #0f1a30 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	-webkit-border-radius: 24px;
	border-radius: 24px;
	-webkit-box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body[data-lobby="v2"][data-page="lobby"] .v2-dark .big-dialog-header {
	height: auto;
	flex: 0 0 auto;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-lobby="v2"] .v2-dark .big-dialog-title {
	height: 62px;
	line-height: 62px;
	padding: 0 16px;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 0.2px;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
body[data-lobby="v2"] .v2-dark .big-dialog-title img.round {
	-webkit-box-shadow: 0 0 0 2px rgba(240, 197, 85, 0.6);
	box-shadow: 0 0 0 2px rgba(240, 197, 85, 0.6);
}
body[data-lobby="v2"] .v2-dark .big-dialog-back {
	-webkit-filter: invert(1);
	filter: invert(1);
	opacity: 0.75;
}
body[data-lobby="v2"] .v2-dark .big-dialog-content {
	color: #e6eefb;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
body[data-lobby="v2"] .v2-dark .big-dialog-content::-webkit-scrollbar { width: 6px; }
body[data-lobby="v2"] .v2-dark .big-dialog-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); -webkit-border-radius: 3px; border-radius: 3px; }
body[data-lobby="v2"] .v2-dark .big-dialog-content b { color: #ffffff; }
/* grey inline text colours meant for a white background */
body[data-lobby="v2"] .v2-dark .big-dialog-content [style*="color: #1d1d1d"],
body[data-lobby="v2"] .v2-dark .big-dialog-content [style*="color: #000000"],
body[data-lobby="v2"] .v2-dark .big-dialog-content [style*="color: #525252"],
body[data-lobby="v2"] .v2-dark .big-dialog-content [style*="color: #4f4f4f"] { color: #c9d6ea !important; }
body[data-lobby="v2"] .v2-dark .big-dialog-content [style*="color: #7c7c7c"],
body[data-lobby="v2"] .v2-dark .big-dialog-content [style*="color: #7a7a7a"] { color: var(--v2-muted) !important; }
/* form labels (inline 17px) */
body[data-lobby="v2"] .v2-dark .big-dialog-content div[style*="font-size: 17px"] {
	font-size: 14px !important;
	font-weight: 600;
	letter-spacing: 0.2px;
	color: #c9d6ea;
}
body[data-lobby="v2"][data-page="lobby"] .v2-dark .big-dialog-footer {
	padding: 12px 16px 16px;
	background-color: transparent;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-lobby="v2"][data-page="lobby"] .v2-dark .big-dialog-button[button-style="light"] {
	background-color: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #e6eefb !important;
	-webkit-box-shadow: none;
	box-shadow: none;
}
body[data-lobby="v2"][data-page="lobby"] .v2-dark .big-dialog-button[button-style="light"]:hover { background-color: rgba(255, 255, 255, 0.14) !important; opacity: 1; }
body[data-lobby="v2"][data-page="lobby"] .v2-dark .big-dialog-footer .app-button { min-height: 44px; font-weight: 600; -webkit-border-radius: 14px; border-radius: 14px; }
body[data-lobby="v2"] .big-dialog.v2-dark[item-loading="yes"] .big-dialog-inner:after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' stroke='%23f0c555'%3E%3Cg fill='none' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
}

/* inputs */
body[data-lobby="v2"][data-page="lobby"] .v2-dark .app-input {
	width: 100%;
	box-sizing: border-box;
	padding: 13px 14px;
	font-size: 16px;
	color: #ffffff;
	caret-color: var(--v2-gold);
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	-webkit-border-radius: 14px;
	border-radius: 14px;
	-webkit-transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
body[data-lobby="v2"][data-page="lobby"] .v2-dark .app-input:focus {
	background-color: rgba(255, 255, 255, 0.09);
	border-color: rgba(240, 197, 85, 0.65);
	-webkit-box-shadow: 0 0 0 3px rgba(240, 197, 85, 0.12);
	box-shadow: 0 0 0 3px rgba(240, 197, 85, 0.12);
}
body[data-lobby="v2"] .v2-dark .app-input::placeholder { color: rgba(201, 214, 234, 0.42); }
body[data-lobby="v2"] .v2-dark .app-input::-webkit-input-placeholder { color: rgba(201, 214, 234, 0.42); }
/* browser autofill paints inputs white/yellow; keep them dark */
body[data-lobby="v2"] .v2-dark .app-input:-webkit-autofill,
body[data-lobby="v2"] .v2-dark .app-input:-webkit-autofill:hover,
body[data-lobby="v2"] .v2-dark .app-input:-webkit-autofill:focus {
	-webkit-text-fill-color: #ffffff;
	-webkit-box-shadow: 0 0 0 1000px #1b2843 inset;
	box-shadow: 0 0 0 1000px #1b2843 inset;
	-webkit-transition: background-color 9999s ease 0s;
	transition: background-color 9999s ease 0s;
}
body[data-lobby="v2"][data-page="lobby"] .v2-dark .app-select {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	padding: 13px 42px 13px 14px;
	font-size: 16px;
	color: #ffffff;
	background-color: rgba(255, 255, 255, 0.06);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9d6ea' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px 18px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	-webkit-border-radius: 14px;
	border-radius: 14px;
	-webkit-box-shadow: none;
	box-shadow: none;
}
body[data-lobby="v2"][data-page="lobby"] .v2-dark .app-select:focus { border-color: rgba(240, 197, 85, 0.65); outline: 0; }
body[data-lobby="v2"] .v2-dark .app-select option { background-color: #14213b; color: #ffffff; }

/* titles used by settings / edit forms (tinted icon badges come from the rule at the top of this file) */
body[data-lobby="v2"][data-page="lobby"] .big-dialog.v2-dark .edit-item-title,
body[data-lobby="v2"][data-page="lobby"] .big-dialog.v2-dark .settings-item-title { color: #ffffff; }

/* ---- auth: sign in / recovery / sign up ---- */
body[data-lobby="v2"] .v2-auth-dialog .big-dialog-content > div { padding: 18px 18px 8px !important; }
body[data-lobby="v2"] .v2-auth-dialog .big-dialog-content div[style*="margin-top: 20px"] { margin-top: 16px !important; }
body[data-lobby="v2"] .v2-auth-dialog .big-dialog-content div[style*="margin-top: 5px"] { margin-top: 7px !important; }
body[data-lobby="v2"] .v2-auth-dialog .big-dialog-content div[style*="margin-top: 25px"] {
	display: -webkit-flex;
	display: flex;
	align-items: center;
	margin-top: 18px !important;
	margin-bottom: 6px;
}
body[data-lobby="v2"][data-page="lobby"] .big-dialog.v2-dark .signin-recovery {
	color: #c9d6ea !important;
	-webkit-transition: color 0.18s ease;
	transition: color 0.18s ease;
}
body[data-lobby="v2"][data-page="lobby"] .big-dialog.v2-dark .signin-recovery:hover { color: var(--v2-gold-2) !important; }
body[data-lobby="v2"] .v2-auth-dialog .table-default { width: 100%; }
body[data-lobby="v2"] .v2-auth-dialog .table-default td[style*="width: 80px"] { width: 96px !important; padding-left: 8px !important; }
body[data-lobby="v2"] .v2-auth-dialog .auth-otp-button {
	height: 48px;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.15;
	color: var(--v2-gold-2);
	background-color: rgba(240, 197, 85, 0.12);
	border: 1px solid rgba(240, 197, 85, 0.45);
	-webkit-border-radius: 14px;
	border-radius: 14px;
	-webkit-transition: background-color 0.18s ease;
	transition: background-color 0.18s ease;
}
body[data-lobby="v2"] .v2-auth-dialog .auth-otp-button:hover { opacity: 1; background-color: rgba(240, 197, 85, 0.22); }
body[data-lobby="v2"] .v2-auth-dialog .auth-otp-button:active { -webkit-transform: scale(0.97); transform: scale(0.97); }
body[data-lobby="v2"] .v2-auth-dialog .signup-upload {
	width: 84px;
	height: 84px;
	margin-top: 4px;
	margin-bottom: 6px;
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px dashed rgba(240, 197, 85, 0.55);
	-webkit-box-shadow: none;
	box-shadow: none;
	-webkit-transition: border-color 0.18s ease, background-color 0.18s ease;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}
body[data-lobby="v2"] .v2-auth-dialog .signup-upload:hover { background-color: rgba(255, 255, 255, 0.1); border-color: var(--v2-gold); }
body[data-lobby="v2"] .v2-auth-dialog .signup-upload:not([item-state="loading"]) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23c9d6ea' d='m17.629166,16.543055a1.629166,1.629166 0 1 1 -1.629166,-1.629166a1.630958,1.630958 0 0 1 1.629166,1.629166zm5.973609,-2.645277l0,5.833609a2.244828,2.244828 0 0 1 -2.242221,2.242221l-10.721107,0a2.244665,2.244665 0 0 1 -2.242221,-2.242221l0,-5.833609a2.244665,2.244665 0 0 1 2.242221,-2.242221l1.268523,0l1.086111,-1.629166l6.011623,0l1.086111,1.629166l1.268523,0a2.244828,2.244828 0 0 1 2.242438,2.242221zm-4.887498,2.645277a2.715277,2.715277 0 1 0 -2.715277,2.715277a2.718481,2.718481 0 0 0 2.715277,-2.715277z'/%3E%3C/svg%3E");
}

/* ---- v2-dark: shared bits used by the play flow dialogs ---- */
body[data-lobby="v2"] .v2-dark img[src*="puff-dark"] {
	-webkit-filter: brightness(0) invert(1);
	filter: brightness(0) invert(1);
	opacity: 0.7;
}
body[data-lobby="v2"] .v2-dark .big-dialog-title img[src*="three-dots"] {
	-webkit-filter: brightness(0) invert(1);
	filter: brightness(0) invert(1);
	opacity: 0.75;
}
body[data-lobby="v2"][data-page="lobby"] .v2-dark .big-dialog-content .app-button {
	min-height: 44px;
	font-weight: 600;
	-webkit-border-radius: 14px;
	border-radius: 14px;
}
body[data-lobby="v2"][data-page="lobby"] .v2-dark .big-dialog-content .app-button[button-style="light"] {
	background-color: rgba(255, 255, 255, 0.08) !important;
	color: #e6eefb !important;
	border: 1px solid rgba(255, 255, 255, 0.14);
	-webkit-box-shadow: none;
	box-shadow: none;
}
body[data-lobby="v2"][data-page="lobby"] .v2-dark .big-dialog-content .app-button[button-style="light"]:hover { background-color: rgba(255, 255, 255, 0.14) !important; opacity: 1; }
body[data-lobby="v2"] .v2-dark .big-dialog-content [style*="border-bottom: 1px solid rgba(0, 0, 0, 0.1)"] { border-bottom-color: rgba(255, 255, 255, 0.08) !important; }
body[data-lobby="v2"] .v2-dark .big-dialog-content .user-photo {
	-webkit-box-shadow: 0 0 0 2px rgba(240, 197, 85, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35);
	box-shadow: 0 0 0 2px rgba(240, 197, 85, 0.55), 0 8px 20px rgba(0, 0, 0, 0.35);
}
body[data-lobby="v2"] .v2-dark .big-dialog-content .user-name { color: #ffffff !important; }
body[data-lobby="v2"] .v2-dark .circle-icon {
	width: 48px;
	height: 48px;
	background-color: rgba(255, 255, 255, 0.08);
	-webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
	-webkit-transition: background-color 0.18s ease, -webkit-transform 0.12s ease;
	transition: background-color 0.18s ease, transform 0.12s ease;
}
body[data-lobby="v2"] .v2-dark .circle-icon:hover { opacity: 1; background-color: rgba(255, 255, 255, 0.14); }
body[data-lobby="v2"] .v2-dark .circle-icon:active { -webkit-transform: scale(0.94); transform: scale(0.94); }
body[data-lobby="v2"] .v2-dark .big-dialog-content input[onclick*="select"],
body[data-lobby="v2"] .v2-dark .big-dialog-content input[onClick*="select"] { font-size: 14px; color: var(--v2-gold-2); }

/* ---- search (random opponent): radar on dark ---- */
body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .random-container {
	background-color: #0c1628;
	background-image:
		radial-gradient(circle at 50% 50%, rgba(31, 191, 95, 0.3) 0, rgba(31, 191, 95, 0.3) 4px, transparent 5px),
		repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0, rgba(255, 255, 255, 0.07) 1px, transparent 1px, transparent 30px),
		linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
		linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
		radial-gradient(circle at 50% 50%, #12233d 0%, #0a1323 100%);
	-webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .random-container[item-type="connecting"] {
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' stroke='%23f0c555'%3E%3Cg fill='none' stroke-width='2'%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='0s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='0s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='22' cy='22' r='1'%3E%3Canimate attributeName='r' begin='-0.9s' dur='1.8s' values='1;20' calcMode='spline' keyTimes='0;1' keySplines='0.165,0.84,0.44,1' repeatCount='indefinite'/%3E%3Canimate attributeName='stroke-opacity' begin='-0.9s' dur='1.8s' values='1;0' calcMode='spline' keyTimes='0;1' keySplines='0.3,0.61,0.355,1' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E"),
		radial-gradient(circle at 50% 50%, #12233d 0%, #0a1323 100%);
	background-size: 120px 120px, 100% 100%;
	background-position: center, center;
}
body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .random-item {
	-webkit-box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(0, 0, 0, 0.45);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(0, 0, 0, 0.45);
}

/* ---- waiting / connecting ---- */
body[data-lobby="v2"] .v2-wait-dialog .user-name { margin-top: 12px; }

/* ---- play with a friend: friend list ---- */
body[data-lobby="v2"] .v2-friends-play-dialog .big-dialog-content > div:first-child { padding: 16px 16px 14px !important; }
body[data-lobby="v2"] .v2-friends-play-dialog form td[style*="padding-right: 20px"] { padding-right: 8px !important; }
body[data-lobby="v2"] .v2-friends-play-dialog form td[style*="width: 30px"] { width: 1% !important; }
body[data-lobby="v2"][data-page="lobby"] .v2-friends-play-dialog .search-friend {
	min-height: 48px;
	padding: 0 16px;
	white-space: nowrap;
}
body[data-lobby="v2"] .v2-friends-play-dialog .big-dialog-content > div[style*="border-bottom"] { margin-left: 16px !important; margin-right: 16px !important; }
body[data-lobby="v2"] .v2-friends-play-dialog .friends-list { padding: 12px 16px 8px; }
body[data-lobby="v2"] .v2-friends-play-dialog .friend-item {
	margin-bottom: 8px;
	padding: 10px 10px 10px 12px;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	-webkit-border-radius: 16px;
	border-radius: 16px;
	-webkit-transition: background-color 0.18s ease, border-color 0.18s ease;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}
body[data-lobby="v2"] .v2-friends-play-dialog .friend-item:hover { background-color: rgba(255, 255, 255, 0.085); border-color: rgba(255, 255, 255, 0.16); }
body[data-lobby="v2"] .v2-friends-play-dialog .friend-item-photo {
	-webkit-box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
body[data-lobby="v2"] .v2-friends-play-dialog .friend-item[item-online] .friend-item-photo::before { border-color: #16233d; }
body[data-lobby="v2"] .v2-friends-play-dialog .friend-item-name { color: #ffffff; }
body[data-lobby="v2"][data-page="lobby"] .v2-friends-play-dialog .friend-item-play {
	font-weight: 600;
	background: linear-gradient(180deg, var(--v2-green) 0%, var(--v2-green-2) 100%);
	-webkit-border-radius: 12px;
	border-radius: 12px;
	-webkit-box-shadow: 0 4px 12px rgba(31, 191, 95, 0.28);
	box-shadow: 0 4px 12px rgba(31, 191, 95, 0.28);
}
body[data-lobby="v2"][data-page="lobby"] .v2-friends-play-dialog .friend-item-delete {
	-webkit-filter: invert(1);
	filter: invert(1);
	opacity: 0.4;
}
body[data-lobby="v2"][data-page="lobby"] .v2-friends-play-dialog .friend-item-delete:hover { opacity: 0.85; background-color: rgba(0, 190, 210, 0.18); }

/* ---- invite link (play with a new friend) ---- */
body[data-lobby="v2"] .v2-link-dialog .big-dialog-content > div { padding: 18px !important; }
body[data-lobby="v2"] .v2-link-dialog .big-dialog-content div[style*="font-size: 15px"] {
	padding: 12px 14px;
	font-size: 14px !important;
	line-height: 1.45;
	color: #c9d6ea;
	background-color: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	-webkit-border-radius: 14px;
	border-radius: 14px;
}
body[data-lobby="v2"] .v2-link-dialog table td { padding: 0; }

/* ---- daily tournament ---- */
body[data-lobby="v2"] .v2-tournament-dialog .big-dialog-content > div { margin-top: 12px !important; padding: 0 16px 4px; }
body[data-lobby="v2"] .v2-tournament-dialog .users-ratings { width: auto; max-width: none; }
body[data-lobby="v2"][data-page="lobby"] .v2-tournament-dialog .users-ratings .users-ratings-item {
	margin: 0 0 8px;
	padding: 8px 14px 8px 10px;
	background-color: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.07);
	-webkit-border-radius: 16px;
	border-radius: 16px;
	-webkit-transition: background-color 0.2s, border-color 0.2s;
	transition: background-color 0.2s, border-color 0.2s;
}
body[data-lobby="v2"][data-page="lobby"] .v2-tournament-dialog .users-ratings .users-ratings-item:hover { background-color: rgba(255, 255, 255, 0.085); border-color: rgba(255, 255, 255, 0.16); }
body[data-lobby="v2"][data-page="lobby"] .v2-tournament-dialog .users-ratings .users-ratings-item-name { color: #ffffff; font-size: 15px; }
body[data-lobby="v2"][data-page="lobby"] .v2-tournament-dialog .users-ratings .users-ratings-item td > b { color: var(--v2-muted) !important; }
body[data-lobby="v2"][data-page="lobby"] .v2-tournament-dialog .users-ratings .users-ratings-item-wins { background-color: rgba(31, 191, 95, 0.16); color: #6fe39b; }
body[data-lobby="v2"][data-page="lobby"] .v2-tournament-dialog .users-ratings .users-ratings-item-wins span { color: #ffffff; }
body[data-lobby="v2"][data-page="lobby"] .v2-tournament-dialog .users-ratings .users-ratings-item-photo {
	-webkit-box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
body[data-lobby="v2"][data-page="lobby"] .v2-tournament-dialog .users-ratings .users-ratings-item[item-user-online] .users-ratings-item-photo::before { border-color: #14213b; }
body[data-lobby="v2"] .v2-tournament-dialog .users-ratings-listing > div[style*="border-top"] {
	border-top: 1px dashed rgba(255, 255, 255, 0.18) !important;
	margin: 4px 0 12px !important;
}

/* ---- joker tables: list / filter, join offer, waiting at a table ---- */
body[data-lobby="v2"] .v2-tables-dialog .big-dialog-content > div { padding: 16px 16px 8px !important; }
body[data-lobby="v2"] .v2-tables-dialog .big-dialog-content div[style*="font-size: 17px; text-align: center"] {
	margin-bottom: 10px !important;
	font-size: 12px !important;
	font-weight: bold;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--v2-muted);
}
body[data-lobby="v2"] .v2-tables-dialog .big-dialog-content div[style*="margin-bottom: 24px"] { margin-bottom: 20px !important; }
body[data-lobby="v2"] .v2-tables-dialog .big-dialog-content div[style*="margin-bottom: 24px"] > div[style*="margin-top: 2px"],
body[data-lobby="v2"] .v2-tables-dialog .big-dialog-content div[style*="margin-bottom: 24px"] > div[style*="margin-top: 4px"] {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px !important;
}
body[data-lobby="v2"] .v2-tables-dialog .big-dialog-content > div[style*="text-align: center"] { margin: 0 !important; padding: 4px 16px 14px; color: #c9d6ea; }
body[data-lobby="v2"] .v2-tables-dialog .big-dialog-content div[style*="font-size: 16px"] { font-size: 14px !important; font-weight: 600; color: #c9d6ea; }
body[data-lobby="v2"] .v2-tables-dialog .links > div:first-child { margin-top: 16px !important; }
body[data-lobby="v2"] .v2-tables-dialog .table4-item,
body[data-lobby="v2"] .v2-tables-dialog .table4-item[item-style="dark"] {
	margin-bottom: 10px;
	padding: 14px 10px 12px;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	-webkit-border-radius: 18px;
	border-radius: 18px;
	-webkit-transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
}
body[data-lobby="v2"] .v2-tables-dialog .table4-item[item-active="yes"] { cursor: pointer; }
body[data-lobby="v2"] .v2-tables-dialog .table4-item[item-active="yes"]:hover { background-color: rgba(255, 255, 255, 0.085); border-color: rgba(240, 197, 85, 0.55); }
body[data-lobby="v2"] .v2-tables-dialog .table4-item-title { font-size: 14px; color: #c9d6ea; }
body[data-lobby="v2"] .v2-tables-dialog .table4-item-title > div[style*="margin-top: 10px"] { margin-top: 8px !important; }
body[data-lobby="v2"] .v2-tables-dialog .table4-item-coins,
body[data-lobby="v2"] .v2-tables-dialog .table4-item[item-style="dark"] .table4-item-coins {
	display: inline-block;
	padding: 4px 12px;
	font-size: 15px;
	color: var(--v2-gold-2);
	background-color: rgba(240, 197, 85, 0.13);
	border: 1px solid rgba(240, 197, 85, 0.35);
	-webkit-border-radius: 999px;
	border-radius: 999px;
}
body[data-lobby="v2"] .v2-tables-dialog .table4-item-users { margin-top: 12px; }
body[data-lobby="v2"] .v2-tables-dialog .table4-item-users img {
	-webkit-box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}
body[data-lobby="v2"] .v2-tables-dialog .table4-item-empty {
	width: 40px;
	height: 40px;
	box-sizing: border-box;
	background-color: rgba(255, 255, 255, 0.04);
	border: 1px dashed rgba(255, 255, 255, 0.22);
}

/* ---- round close button (games dialog) ---- */
body[data-lobby="v2"] .v2-dialog-close {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 34px;
	height: 34px;
	margin-top: -17px;
	cursor: pointer;
	background-color: rgba(255, 255, 255, 0.08);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6eefb' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-transition: background-color 0.18s ease, border-color 0.18s ease, -webkit-transform 0.18s ease;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
body[data-lobby="v2"] .v2-dialog-close:hover { background-color: rgba(255, 255, 255, 0.16); border-color: rgba(240, 197, 85, 0.55); -webkit-transform: rotate(90deg); transform: rotate(90deg); }
body[data-lobby="v2"] .v2-dialog-close:active { -webkit-transform: rotate(90deg) scale(0.92); transform: rotate(90deg) scale(0.92); }
body[data-lobby="v2"] .games-dialog .big-dialog-title { padding: 0 56px; }

/* ---- search radar: blurred candidates float up like live reactions, the opponent pops up sharp ---- */
body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .v2-bubble {
	position: absolute;
	bottom: -36px;
	z-index: 1;
	opacity: 0;
	pointer-events: none;
	will-change: transform, opacity;

	-webkit-animation: v2-bubble-rise 2.8s cubic-bezier(0.33, 0.1, 0.6, 1) forwards;
	animation: v2-bubble-rise 2.8s cubic-bezier(0.33, 0.1, 0.6, 1) forwards;
}
body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .v2-bubble-face {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 3px 8px rgba(0, 0, 0, 0.4);
	box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 3px 8px rgba(0, 0, 0, 0.4);
	-webkit-transition: opacity 0.3s ease;
	transition: opacity 0.3s ease;

	-webkit-animation: v2-bubble-sway 0.9s ease-in-out infinite alternate;
	animation: v2-bubble-sway 0.9s ease-in-out infinite alternate;
}
body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .v2-bubble-face::before {
	content: "";
	position: absolute;
	top: -4px;
	right: -4px;
	bottom: -4px;
	left: -4px;
	background: inherit;
	-webkit-filter: blur(1.5px) saturate(0.8);
	filter: blur(1.5px) saturate(0.8);
}
body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .random-container.v2-found .v2-bubble,
body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .random-container.v2-found .v2-bubble-face {
	-webkit-animation-play-state: paused;
	animation-play-state: paused;
}
body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .random-container.v2-found .v2-bubble-face { opacity: 0; }

body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .v2-match {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 84px;
	height: 84px;
	margin: -42px 0 0 -42px;
	background-size: cover;
	background-position: center;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-box-shadow: 0 0 0 3px var(--v2-gold), 0 0 0 9px rgba(240, 197, 85, 0.18), 0 10px 26px rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 0 3px var(--v2-gold), 0 0 0 9px rgba(240, 197, 85, 0.18), 0 10px 26px rgba(0, 0, 0, 0.5);

	-webkit-animation: v2-match-pop 0.75s ease-out forwards;
	animation: v2-match-pop 0.75s ease-out forwards;
}
body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .v2-match::after {
	content: "";
	position: absolute;
	top: -3px;
	right: -3px;
	bottom: -3px;
	left: -3px;
	border: 2px solid var(--v2-gold);
	opacity: 0;
	-webkit-border-radius: 50%;
	border-radius: 50%;

	-webkit-animation: v2-match-burst 0.9s ease-out 0.3s forwards;
	animation: v2-match-burst 0.9s ease-out 0.3s forwards;
}

@-webkit-keyframes v2-bubble-rise {
	0% { opacity: 0; -webkit-transform: translate(0, 0) scale(0.4); }
	12% { opacity: 1; -webkit-transform: translate(calc(var(--x, 0px) * 0.2), -30px) scale(1); }
	75% { opacity: 1; }
	100% { opacity: 0; -webkit-transform: translate(var(--x, 0px), -250px) scale(0.85); }
}
@keyframes v2-bubble-rise {
	0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
	12% { opacity: 1; transform: translate(calc(var(--x, 0px) * 0.2), -30px) scale(1); }
	75% { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--x, 0px), -250px) scale(0.85); }
}
@-webkit-keyframes v2-bubble-sway {
	0% { -webkit-transform: translateX(calc(var(--a, 10px) * -1)) rotate(-8deg); }
	100% { -webkit-transform: translateX(var(--a, 10px)) rotate(8deg); }
}
@keyframes v2-bubble-sway {
	0% { transform: translateX(calc(var(--a, 10px) * -1)) rotate(-8deg); }
	100% { transform: translateX(var(--a, 10px)) rotate(8deg); }
}
@-webkit-keyframes v2-match-pop {
	0% { opacity: 0; -webkit-transform: scale(0.35); -webkit-filter: blur(6px); }
	45% { opacity: 1; -webkit-transform: scale(1.18); -webkit-filter: blur(0); }
	70% { -webkit-transform: scale(0.94); }
	100% { opacity: 1; -webkit-transform: scale(1); -webkit-filter: blur(0); }
}
@keyframes v2-match-pop {
	0% { opacity: 0; transform: scale(0.35); filter: blur(6px); }
	45% { opacity: 1; transform: scale(1.18); filter: blur(0); }
	70% { transform: scale(0.94); }
	100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@-webkit-keyframes v2-match-burst {
	0% { opacity: 0.9; -webkit-transform: scale(1); }
	100% { opacity: 0; -webkit-transform: scale(1.9); }
}
@keyframes v2-match-burst {
	0% { opacity: 0.9; transform: scale(1); }
	100% { opacity: 0; transform: scale(1.9); }
}
@media (prefers-reduced-motion: reduce) {
	body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .v2-bubble { display: none; }
	body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .v2-match,
	body[data-lobby="v2"] .big-dialog.search-dialog.v2-dark .v2-match::after {
		-webkit-animation: none;
		animation: none;
	}
}

/* ---- v2-dark: more grey inline colours, checkboxes, multi select, warnings ---- */
body[data-lobby="v2"] .v2-dark .big-dialog-content [style*="color: #4e4e4e"],
body[data-lobby="v2"] .v2-dark .big-dialog-content [style*="color: #4c4c4c"] { color: var(--v2-muted) !important; }
body[data-lobby="v2"] .v2-dark .app-checkbox-ui-label,
body[data-lobby="v2"] .v2-dark .app-checkbox-ui-label a { color: #c9d6ea; }
body[data-lobby="v2"] .v2-dark .app-checkbox-ui-box { -webkit-border-radius: 6px; border-radius: 6px; }
body[data-lobby="v2"][data-page="lobby"] .v2-dark select.app-select[multiple] {
	padding: 6px;
	background-image: none;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
body[data-lobby="v2"] .v2-dark select.app-select[multiple] option {
	padding: 9px 10px;
	margin-bottom: 2px;
	background-color: transparent;
	color: #e6eefb;
	-webkit-border-radius: 10px;
	border-radius: 10px;
}
body[data-lobby="v2"] .v2-dark select.app-select[multiple] option:disabled { color: var(--v2-muted); }
body[data-lobby="v2"] .v2-dark select.app-select[multiple] option:checked {
	color: #ffffff;
	background: linear-gradient(rgba(240, 197, 85, 0.32), rgba(240, 197, 85, 0.32));
}
body[data-lobby="v2"][data-page="lobby"] .v2-dark .edit-item-title,
body[data-lobby="v2"][data-page="lobby"] .v2-dark .settings-item-title { font-size: 16px; }
body[data-lobby="v2"] .v2-dark .user-warning {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 8px 10px;
	color: #ffffff;
	background-color: rgba(240, 197, 85, 0.1);
	border: 1px solid rgba(240, 197, 85, 0.35);
	-webkit-border-radius: 14px;
	border-radius: 14px;
}
body[data-lobby="v2"] .v2-dark .user-warning img { -webkit-border-radius: 50%; border-radius: 50%; }

/* ---- promo code / payment ---- */
body[data-lobby="v2"][data-page="lobby"] .v2-promo-dialog .app-input[readonly] {
	text-align: center;
	letter-spacing: 3px;
	color: var(--v2-gold-2);
	background-color: rgba(240, 197, 85, 0.1);
	border-color: rgba(240, 197, 85, 0.4);
}
body[data-lobby="v2"] .v2-promo-dialog .promo-code-text { color: #ffffff; }
body[data-lobby="v2"] .big-dialog.v2-dark.promo-dialog-hide { -webkit-backdrop-filter: none; backdrop-filter: none; }
body[data-lobby="v2"] .v2-pay-dialog .big-dialog-content div[style*="font-size: 17px"] { font-size: 16px !important; font-weight: normal; color: #c9d6ea; }
body[data-lobby="v2"] .v2-pay-dialog .big-dialog-content div[style*="font-size: 18px"] { font-size: 22px !important; color: var(--v2-gold-2); }

/* ---- free coins ---- */
body[data-lobby="v2"] .v2-free-dialog .big-dialog-content img[src*="icon-menu-friends"] { -webkit-filter: invert(1); filter: invert(1); opacity: 0.85; }
body[data-lobby="v2"] .v2-free-dialog .big-dialog-content div[style*="font-size: 17px"] { font-size: 16px !important; font-weight: bold; color: #ffffff; }
body[data-lobby="v2"] .v2-free-dialog .big-dialog-content div[style*="font-size: 16px"] { font-size: 14px !important; line-height: 1.45; }
body[data-lobby="v2"] .v2-free-dialog .big-dialog-content div[style*="margin-top: 32px"] {
	margin-top: 22px !important;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- settings ---- */
body[data-lobby="v2"] .v2-settings-dialog .settings-bg-item { border-color: rgba(255, 255, 255, 0.1); }
body[data-lobby="v2"] .v2-settings-dialog .settings-bg-item[item-selected="yes"] {
	border-color: var(--v2-gold);
	-webkit-box-shadow: 0 0 0 3px rgba(240, 197, 85, 0.18);
	box-shadow: 0 0 0 3px rgba(240, 197, 85, 0.18);
}
body[data-lobby="v2"] .v2-settings-dialog .settings-card-item { -webkit-border-radius: 10px; border-radius: 10px; }
body[data-lobby="v2"] .v2-settings-dialog .settings-card-item:hover { border-color: rgba(255, 255, 255, 0.25); }
body[data-lobby="v2"] .v2-settings-dialog .settings-card-item[item-selected="yes"] {
	border-color: var(--v2-gold);
	background-color: rgba(240, 197, 85, 0.1);
}

/* ---- transfers ---- */
body[data-lobby="v2"] .v2-assets-dialog .big-dialog-content > div { padding: 16px 0 6px !important; }
body[data-lobby="v2"][data-page="lobby"] .v2-assets-dialog .assets-icon {
	min-height: 52px;
	padding-left: 50px;
	text-align: left;
	font-weight: 600;
	color: #ffffff;
	background-color: rgba(255, 255, 255, 0.06);
	background-position: 16px center;
	border: 1px solid rgba(255, 255, 255, 0.12);
	-webkit-border-radius: 16px;
	border-radius: 16px;
	-webkit-box-shadow: none;
	box-shadow: none;
	-webkit-transition: background-color 0.18s ease, border-color 0.18s ease;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}
body[data-lobby="v2"][data-page="lobby"] .v2-assets-dialog .assets-icon:hover { opacity: 1; background-color: rgba(255, 255, 255, 0.1); border-color: rgba(240, 197, 85, 0.55); }
body[data-lobby="v2"] .v2-send-dialog .coins-warning,
body[data-lobby="v2"] .v2-send-dialog .boxes-warning { color: #c9d6ea; }
body[data-lobby="v2"] .v2-send-dialog .coins-warning b,
body[data-lobby="v2"] .v2-send-dialog .boxes-warning b { color: var(--v2-gold-2); }

/* ---- messenger friend list (bottom sheet) ---- */
body[data-lobby="v2"][data-page="lobby"] .big-dialog.v2-sheet .big-dialog-inner {
	width: 440px;
	max-width: calc(100vw - 20px);
	max-height: calc(100% - 100px);
	margin-left: 10px;
	margin-right: 10px;
	border-bottom: 0;
	-webkit-border-radius: 24px 24px 0 0;
	border-radius: 24px 24px 0 0;
}
body[data-lobby="v2"] .v2-sheet .friends-list { padding: 8px 14px 14px; }
body[data-lobby="v2"] .v2-sheet .friends-list::before { background-color: rgba(255, 255, 255, 0.2); -webkit-border-radius: 2px; border-radius: 2px; }
body[data-lobby="v2"] .v2-sheet .friend-item {
	margin-bottom: 8px;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	-webkit-border-radius: 16px;
	border-radius: 16px;
	-webkit-transition: background-color 0.18s ease, border-color 0.18s ease;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}
body[data-lobby="v2"] .v2-sheet .friend-item:hover { background-color: rgba(255, 255, 255, 0.085); border-color: rgba(255, 255, 255, 0.16); }
body[data-lobby="v2"] .v2-sheet .friend-item-photo {
	-webkit-box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
body[data-lobby="v2"] .v2-sheet .friend-item[item-online] .friend-item-photo::before { border-color: #16233d; }
body[data-lobby="v2"] .v2-sheet .friend-item-name { color: #ffffff; }
body[data-lobby="v2"] .v2-sheet .friend-item-message { color: var(--v2-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-lobby="v2"] .v2-sheet .friend-item[item-msg] { border-color: rgba(240, 197, 85, 0.45); }
body[data-lobby="v2"] .v2-sheet .friend-item[item-msg] .friend-item-message { color: #e6eefb; }
body[data-lobby="v2"] .v2-sheet .friend-item[item-msg]::after { right: 14px; background-color: var(--v2-gold); -webkit-box-shadow: 0 0 0 3px rgba(240, 197, 85, 0.2); box-shadow: 0 0 0 3px rgba(240, 197, 85, 0.2); }

/* ---- games / coins history (styles injected by users.js history_styles) ---- */
body[data-lobby="v2"][data-page="lobby"] .big-dialog.mg-dialog.v2-dark .big-dialog-inner { width: 400px; }
body[data-lobby="v2"] .mg-dialog.v2-dark .big-dialog-title small { color: var(--v2-muted); }
body[data-lobby="v2"] .mg-dialog.v2-dark .big-dialog-content { background-color: transparent; }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-stat {
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	-webkit-box-shadow: none;
	box-shadow: none;
}
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-stat-v { color: #ffffff; }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-stat-l,
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-legend,
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-day,
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-sub,
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-empty,
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-amt small { color: var(--v2-muted); }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-plus { color: #5fe08f !important; }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-minus { color: #ff7a72 !important; }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-zero { color: var(--v2-muted) !important; }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-tab {
	color: #d6e0f0;
	background-color: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.1);
	-webkit-transition: background-color 0.18s ease;
	transition: background-color 0.18s ease;
}
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-tab:hover { background-color: rgba(255, 255, 255, 0.12); }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-tab[item-active="yes"] { color: #1b1403; background-color: var(--v2-gold); border-color: var(--v2-gold); }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-tab[item-active="yes"] b { color: #1b1403; }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-row,
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-game {
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.07);
	-webkit-box-shadow: none;
	box-shadow: none;
	-webkit-transition: background-color 0.18s ease, border-color 0.18s ease;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-row[item-user-id]:hover { background-color: rgba(255, 255, 255, 0.085); border-color: rgba(255, 255, 255, 0.16); }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-title { color: #ffffff; }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-sub b { color: #c9d6ea; }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-ico { background-color: rgba(255, 255, 255, 0.07); }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-ico.mg-plus,
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-res.mg-plus { background-color: rgba(31, 191, 95, 0.16); }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-ico.mg-minus,
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-res.mg-minus { background-color: rgba(255, 90, 80, 0.15); }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-res.mg-zero { background-color: rgba(255, 255, 255, 0.07); }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-avatar img { background-color: rgba(255, 255, 255, 0.08); }
body[data-lobby="v2"] .mg-dialog.v2-dark .mg-avatar i { border-color: #16233d; }

/* ---- messenger chat (lobby only; the in-game chat has no item-source="chat") ---- */
body[data-lobby="v2"] .chat-container[item-source="chat"] {
	background-color: rgba(4, 9, 20, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat {
	background-color: #0f1a30;
	background-image: linear-gradient(180deg, #14213b 0%, #0f1a30 100%);
	-webkit-box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
	box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}
@media only screen and (min-width: 600px) {
	body[data-lobby="v2"] .chat-container[item-source="chat"] .chat {
		width: 440px;
		height: 580px;
		max-height: calc(100% - 40px);
		margin-left: -220px;
		border: 1px solid rgba(255, 255, 255, 0.08);
		border-bottom: none;
		-webkit-border-radius: 24px 24px 0 0;
		border-radius: 24px 24px 0 0;
	}
	body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-close { display: block; }
}

/* header: friend photo + name, play and close buttons on the right */
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-head {
	-webkit-box-flex: 0;
	flex: none;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 64px;
	padding: 0 104px 0 16px;
	box-sizing: border-box;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-head-photo {
	flex: none;
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.08);
	background-size: cover;
	background-position: center;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-box-shadow: 0 0 0 2px rgba(240, 197, 85, 0.85);
	box-shadow: 0 0 0 2px rgba(240, 197, 85, 0.85);
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-head-name {
	min-width: 0;
	overflow: hidden;
	font-size: 16px;
	font-weight: bold;
	color: #ffffff;
	white-space: nowrap;
	text-overflow: ellipsis;
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-close,
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-game {
	top: 15px;
	z-index: 2;
	width: 34px;
	height: 34px;
	box-sizing: border-box;
	background-repeat: no-repeat;
	background-position: center;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-transition: background-color 0.18s ease, border-color 0.18s ease, -webkit-transform 0.18s ease;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-close {
	right: 14px;
	opacity: 1;
	background-color: rgba(255, 255, 255, 0.08);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6eefb' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
	background-size: 16px 16px;
	border: 1px solid rgba(255, 255, 255, 0.14);
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-close:hover { background-color: rgba(255, 255, 255, 0.16); border-color: rgba(240, 197, 85, 0.55); -webkit-transform: rotate(90deg); transform: rotate(90deg); }
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-game {
	left: auto;
	right: 58px;
	margin-left: 0;
	background-color: rgba(31, 191, 95, 0.16);
	background-size: 18px 18px;
	border: 1px solid rgba(31, 191, 95, 0.45);
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-game:hover { background-color: rgba(31, 191, 95, 0.28); -webkit-transform: translateY(-1px); transform: translateY(-1px); }

/* messages */
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-conversation {
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000000 18px);
	mask-image: linear-gradient(to bottom, transparent 0, #000000 18px);
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-conversation messages { padding: 14px 14px 10px; }
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-conversation::-webkit-scrollbar { width: 4px; background: transparent; }
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-conversation::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); -webkit-border-radius: 2px; border-radius: 2px; }
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-user-icon {
	width: 28px;
	height: 28px;
	margin-top: 12px;
	-webkit-box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-msg-text {
	margin-top: 4px;
	padding: 9px 14px;
	font-size: 15px !important;
	-webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	-webkit-animation: v2-msg-in 0.22s ease-out;
	animation: v2-msg-in 0.22s ease-out;
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-msg[item-sender="me"] .chat-msg-text {
	background-color: #1fbf5f;
	background-image: linear-gradient(135deg, #25cc6a 0%, #12994a 100%);
	color: #ffffff;
	-webkit-transform-origin: right bottom;
	transform-origin: right bottom;
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-msg[item-sender="it"] .chat-msg-text {
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #e6eefb;
	-webkit-transform-origin: left bottom;
	transform-origin: left bottom;
}
@-webkit-keyframes v2-msg-in {
	0% { opacity: 0; -webkit-transform: translateY(6px) scale(0.96); }
	100% { opacity: 1; -webkit-transform: none; }
}
@keyframes v2-msg-in {
	0% { opacity: 0; transform: translateY(6px) scale(0.96); }
	100% { opacity: 1; transform: none; }
}

/* input bar */
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-input-container {
	width: auto;
	padding: 10px 12px;
	background-color: rgba(8, 14, 28, 0.55);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-input {
	background-color: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #ffffff;
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-input:focus {
	background-color: rgba(255, 255, 255, 0.09);
	border-color: rgba(240, 197, 85, 0.65);
	-webkit-box-shadow: 0 0 0 3px rgba(240, 197, 85, 0.12);
	box-shadow: 0 0 0 3px rgba(240, 197, 85, 0.12);
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-input::placeholder { color: rgba(201, 214, 234, 0.45); }
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-input::-webkit-input-placeholder { color: rgba(201, 214, 234, 0.45); }
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-input[item-disabled] { background-image: url(../images/chat/icon-chat-preloader.svg); background-size: 28px 28px; }
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-send {
	top: 15px;
	right: 17px;
	width: 34px;
	height: 34px;
	background-color: #1fbf5f;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5.5 11.5L12 5l6.5 6.5'/%3E%3C/svg%3E"), linear-gradient(135deg, #25cc6a 0%, #12994a 100%);
	background-size: 18px 18px, 100% 100%;
	background-position: center, center;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	-webkit-box-shadow: 0 4px 12px rgba(31, 191, 95, 0.35);
	box-shadow: 0 4px 12px rgba(31, 191, 95, 0.35);
	-webkit-transition: -webkit-transform 0.15s ease;
	transition: transform 0.15s ease;
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-send:hover { opacity: 1; -webkit-transform: scale(1.06); transform: scale(1.06); }
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-input-container .boxes-icon {
	margin-top: 2px;
	background-color: rgba(240, 197, 85, 0.12);
	-webkit-box-shadow: inset 0 0 0 1px rgba(240, 197, 85, 0.35);
	box-shadow: inset 0 0 0 1px rgba(240, 197, 85, 0.35);
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-new-msg span {
	background-color: var(--v2-gold);
	background-image: linear-gradient(135deg, var(--v2-gold-2) 0%, var(--v2-gold) 100%);
	color: #1b1403;
	font-size: 14px;
	font-weight: 600;
	-webkit-box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-new-msg:after { border-color: var(--v2-gold) transparent transparent transparent; }
@media (prefers-reduced-motion: reduce) {
	body[data-lobby="v2"] .chat-container[item-source="chat"] .chat-msg-text {
		-webkit-animation: none;
		animation: none;
	}
}
