/* Avroramu theme - Profiles */

/* GUILD PROFILES */
.profiles_guild_card {
	width: 100%;
	background: #0f0a1f url('../img/profiles/guild.jpg') no-repeat center;
	background-size: cover;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid rgba(157, 77, 255, 0.45);
	box-shadow: 0 10px 30px rgba(15, 10, 31, 0.55), 0 0 24px rgba(157, 77, 255, 0.25);
	padding: 28px;
	color: #e6dcff;
	position: relative;
}

.profiles_guild_card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(12, 8, 25, 0.84) 0%, rgba(24, 14, 44, 0.74) 58%, rgba(44, 18, 72, 0.58) 100%);
	pointer-events: none;
}

.profiles_guild_card > * {
	position: relative;
	z-index: 1;
}

.profiles_guild_card .guild_logo img {
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.profiles_guild_card .guild_name,
.profiles_guild_card .guild_members {
	font-family: 'Orbitron', sans-serif;
	font-size: 24px;
	color: #f0ebff;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.profiles_guild_card hr {
	border-top: 1px solid rgba(157, 77, 255, 0.35);
	margin-top: 20px;
	margin-bottom: 20px;
}

.profiles_guild_card .guild_members_list {
	margin-top: 16px;
}

/* Guild profile rework (guild page only) */
.profiles_guild_card_rework {
	padding: 24px;
}

.profiles_guild_card_rework .guild-top-grid {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 20px;
	align-items: center;
}

.profiles_guild_card_rework .guild-logo-wrap {
	text-align: center;
}

.profiles_guild_card_rework .guild_logo img {
	border-radius: 14px;
	border: 1px solid rgba(157, 77, 255, 0.5);
	box-shadow: 0 0 18px rgba(157, 77, 255, 0.35), 0 8px 22px rgba(0, 0, 0, 0.45);
}

.profiles_guild_card_rework .guild_name {
	margin-bottom: 10px;
	text-align: left;
}

.profiles_guild_card_rework .guild-meta-items {
	display: grid;
	grid-template-columns: repeat(4, minmax(120px, 1fr));
	gap: 10px;
}

.profiles_guild_card_rework .guild-meta-item {
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(17, 11, 34, 0.72);
	border: 1px solid rgba(157, 77, 255, 0.28);
}

.profiles_guild_card_rework .guild-meta-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(222, 208, 246, 0.82);
	margin-bottom: 4px;
}

.profiles_guild_card_rework .guild-meta-value {
	display: block;
	font-family: 'Orbitron', sans-serif;
	font-size: 14px;
	color: #f2ecff;
}

.profiles_guild_card_rework .guild-members-panel {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(157, 77, 255, 0.35);
}

.profiles_guild_card_rework .guild_members {
	display: block;
	font-size: 18px;
	margin-bottom: 12px;
	text-align: left;
}

.profiles_guild_card_rework .guild-members-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.profiles_guild_card_rework .guild-member-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 10px;
	background: rgba(18, 11, 36, 0.72);
	border: 1px solid rgba(157, 77, 255, 0.22);
}

.profiles_guild_card_rework .guild-member-master {
	border-color: rgba(255, 204, 41, 0.55);
	box-shadow: 0 0 14px rgba(255, 204, 41, 0.18);
}

.profiles_guild_card_rework .guild-member-assistant {
	border-color: rgba(95, 214, 255, 0.55);
	box-shadow: 0 0 14px rgba(95, 214, 255, 0.2);
}

.profiles_guild_card_rework .guild-member-battle {
	border-color: rgba(255, 128, 96, 0.55);
	box-shadow: 0 0 14px rgba(255, 128, 96, 0.2);
}

.profiles_guild_card_rework .guild-member-avatar .guild-member-avatar-img {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(157, 77, 255, 0.5);
}

.profiles_guild_card_rework .guild-member-body {
	min-width: 0;
	flex: 1;
}

.profiles_guild_card_rework .guild-member-name {
	font-family: 'Orbitron', sans-serif;
	font-size: 14px;
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.profiles_guild_card_rework .guild-member-name a {
	color: #f2ecff !important;
}

.profiles_guild_card_rework .guild-member-name.guild-member-name-assistant a {
	color: #8ee6ff !important;
	text-shadow: 0 0 10px rgba(95, 214, 255, 0.65);
}

.profiles_guild_card_rework .guild-member-name.guild-member-name-battle a {
	color: #ffb199 !important;
	text-shadow: 0 0 10px rgba(255, 128, 96, 0.65);
}

.profiles_guild_card_rework .guild-member-stats {
	margin-top: 4px;
	display: flex;
	gap: 10px;
	font-size: 11px;
	color: rgba(226, 211, 248, 0.84);
}

.profiles_guild_card_rework .guild-master-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 10px;
	line-height: 1;
	vertical-align: middle;
	background: rgba(255, 204, 41, 0.2);
	border: 1px solid rgba(255, 204, 41, 0.48);
	color: #ffd664;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.profiles_guild_card_rework .guild-role-badge-assistant {
	background: rgba(95, 214, 255, 0.22);
	border-color: rgba(95, 214, 255, 0.52);
	color: #8ee6ff;
}

.profiles_guild_card_rework .guild-role-badge-battle {
	background: rgba(255, 128, 96, 0.22);
	border-color: rgba(255, 128, 96, 0.52);
	color: #ffb199;
}


/* PLAYER PROFILES */
.profiles_player_card {
	width: 100%;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid rgba(157, 77, 255, 0.45);
	box-shadow: 0 12px 34px rgba(15, 10, 31, 0.6), 0 0 26px rgba(157, 77, 255, 0.25);
	padding: 24px;
	position: relative;
	min-height: 360px;
}

.profiles_player_card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(102deg, rgba(10, 7, 22, 0.74) 0%, rgba(16, 10, 30, 0.66) 46%, rgba(20, 12, 40, 0.88) 70%, rgba(24, 14, 44, 0.95) 100%);
	pointer-events: none;
}

.DW.profiles_player_card, .SM.profiles_player_card, .GM.profiles_player_card, .SW.profiles_player_card, .DSW.profiles_player_card { background: url('../img/profiles/wiz.jpg') no-repeat center; background-size: cover; }
.DK.profiles_player_card, .BK.profiles_player_card, .BM.profiles_player_card, .DGK.profiles_player_card, .IGK.profiles_player_card { background: url('../img/profiles/knight.jpg') no-repeat center; background-size: cover; }
.ELF.profiles_player_card, .ME.profiles_player_card, .HE.profiles_player_card, .NE.profiles_player_card, .RYE.profiles_player_card { background: url('../img/profiles/elf.jpg') no-repeat center; background-size: cover; }
.MG.profiles_player_card, .DM.profiles_player_card, .MK.profiles_player_card, .DPK.profiles_player_card { background: url('../img/profiles/mg.jpg') no-repeat center; background-size: cover; }
.DL.profiles_player_card, .LE.profiles_player_card, .EL.profiles_player_card, .FCE.profiles_player_card { background: url('../img/profiles/dl.jpg') no-repeat center; background-size: cover; }
.SUM.profiles_player_card, .BS.profiles_player_card, .DSM.profiles_player_card, .DS.profiles_player_card, .ESUM.profiles_player_card { background: url('../img/profiles/sum.jpg') no-repeat center; background-size: cover; }
.RF.profiles_player_card, .FM.profiles_player_card, .FB.profiles_player_card, .BF.profiles_player_card { background: url('../img/profiles/rf.jpg') no-repeat center; background-size: cover; }
.GL.profiles_player_card, .ML.profiles_player_card, .SL.profiles_player_card, .AL.profiles_player_card { background: url('../img/profiles/gl.jpg') no-repeat center; background-size: cover; }
.RW.profiles_player_card, .RSM.profiles_player_card, .GRM.profiles_player_card, .MRW.profiles_player_card, .IRW.profiles_player_card { background: url('../img/profiles/rw.jpg') no-repeat center; background-size: cover; }
.SLR.profiles_player_card, .SLRR.profiles_player_card, .MSLR.profiles_player_card, .SLTR.profiles_player_card, .RS.profiles_player_card { background: url('../img/profiles/sl.jpg') no-repeat center; background-size: cover; }
.GC.profiles_player_card, .GB.profiles_player_card, .MGB.profiles_player_card, .HGC.profiles_player_card, .MGC.profiles_player_card { background: url('../img/profiles/gc.jpg') no-repeat center; background-size: cover; }
.LIW.profiles_player_card, .LIM.profiles_player_card, .SHW.profiles_player_card, .LUW.profiles_player_card, .GLW.profiles_player_card { background: url('../img/profiles/liw.jpg') no-repeat center; background-size: cover; }
.LEM.profiles_player_card, .WAM.profiles_player_card, .ARM.profiles_player_card, .MYM.profiles_player_card, .BAM.profiles_player_card { background: url('../img/profiles/lem.jpg') no-repeat center; background-size: cover; }
.IK.profiles_player_card, .MIK.profiles_player_card, .IM.profiles_player_card, .MYK.profiles_player_card, .PPK.profiles_player_card { background: url('../img/profiles/ik.jpg') no-repeat center; background-size: cover; }
.ALC.profiles_player_card, .ALMN.profiles_player_card, .ALMTR.profiles_player_card, .ALFC.profiles_player_card, .CRE.profiles_player_card { background: url('../img/profiles/alc.jpg') no-repeat center; background-size: cover; }

.profiles_player_content {
	float: right;
	width: 48%;
	color: #f3eeff;
	position: relative;
	z-index: 1;
	padding: 14px 14px 10px;
	background: rgba(20, 12, 42, 0.74);
	border: 1px solid rgba(157, 77, 255, 0.34);
	border-radius: 10px;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.profiles_player_table {
	width: 100%;
}

.profiles_player_table .cname {
	font-family: 'Orbitron', sans-serif;
	text-align: center;
	font-size: 28px;
	color: #f0ebff;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-shadow: 0 0 18px rgba(157, 77, 255, 0.5);
	padding-bottom: 2px;
}

.profiles_player_table .cclass {
	text-align: center;
	font-size: 12px;
	color: rgba(230, 220, 255, 0.9);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding-bottom: 8px;
}

.profiles_player_table_info {
	table-layout: fixed;
	margin-top: 10px;
	border-collapse: separate;
	border-spacing: 0 5px;
}

.profiles_player_table_info tr td {
	padding: 7px 10px;
	background: rgba(255, 255, 255, 0.03);
}

.profiles_player_table_info tr td:first-child {
	text-align: right;
	color: rgba(230, 220, 255, 0.88);
	font-weight: 600;
	border-radius: 6px 0 0 6px;
}

.profiles_player_table_info tr td:last-child {
	text-align: left;
	color: var(--glow-purple);
	font-family: 'Orbitron', sans-serif;
	font-weight: 600;
	border-radius: 0 6px 6px 0;
}

.profiles_player_table .isoffline {
	color: #ff7a7a !important;
}

.profiles_player_table .isonline {
	color: #2de6a8 !important;
	text-shadow: 0 0 10px rgba(157, 77, 255, 0.45);
}

.profiles-player-maininfo-table .isonline,
.profiles-player-detail-table .isonline {
	color: #2de6a8 !important;
}

.profiles-player-maininfo-table .isoffline,
.profiles-player-detail-table .isoffline {
	color: #ff7a7a !important;
}

.profiles-player-sheet {
	position: relative;
	z-index: 1;
}

.profiles-player-top-grid {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 16px;
	align-items: stretch;
}

.profiles-player-portrait-col {
	background: rgba(20, 12, 42, 0.74);
	border: 1px solid rgba(157, 77, 255, 0.34);
	border-radius: 10px;
	padding: 12px;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.profiles-player-portrait {
	width: 124px;
	height: 168px;
	border: 2px solid rgba(230, 220, 255, 0.72);
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

.profiles-player-portrait .profiles-player-avatar-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profiles-player-maininfo-col {
	background: rgba(20, 12, 42, 0.74);
	border: 1px solid rgba(157, 77, 255, 0.34);
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
}

.profiles-player-maininfo-table,
.profiles-player-detail-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.profiles-player-maininfo-table tr td,
.profiles-player-detail-table tr td {
	padding: 10px 12px;
	font-size: 18px;
	color: #72bdff;
}

.profiles-player-maininfo-table tr td:first-child,
.profiles-player-detail-table tr td:nth-child(odd) {
	width: 28%;
	color: rgba(230, 220, 255, 0.88);
	font-weight: 600;
}

.profiles-player-maininfo-table tr td:last-child,
.profiles-player-detail-table tr td:nth-child(even) {
	color: var(--glow-purple);
	font-family: 'Orbitron', sans-serif;
	font-weight: 600;
}

.profiles-player-maininfo-table tr:nth-child(even) td,
.profiles-player-detail-table tr:nth-child(even) td {
	background: rgba(255, 255, 255, 0.03);
}

.profiles-player-maininfo-table tr:nth-child(odd) td,
.profiles-player-detail-table tr:nth-child(odd) td {
	background: transparent;
}

.profiles-player-detail-table {
	margin-top: 10px;
	background: rgba(20, 12, 42, 0.74);
	border: 1px solid rgba(157, 77, 255, 0.34);
	border-radius: 10px;
	overflow: hidden;
}

.profiles-player-detail-table td {
	word-break: break-word;
}

.profiles-player-flag {
	width: 18px;
	height: auto;
	margin-right: 6px;
	vertical-align: -2px;
	border-radius: 2px;
}

/* Responsive */
@media (max-width: 991px) {
	.profiles_guild_card_rework .guild-top-grid {
		grid-template-columns: 1fr;
	}

	.profiles_guild_card_rework .guild_name {
		text-align: center;
	}

	.profiles_guild_card_rework .guild-meta-items {
		grid-template-columns: 1fr;
	}

	.profiles_guild_card_rework .guild-members-grid {
		grid-template-columns: 1fr;
	}


	.profiles_player_card {
		min-height: 0;
		padding: 16px;
		background-position: center top;
	}

	.profiles_player_card::before {
		background: linear-gradient(180deg, rgba(10, 7, 22, 0.64) 0%, rgba(16, 10, 30, 0.74) 40%, rgba(20, 12, 40, 0.95) 100%);
	}

	.profiles_player_content {
		float: none;
		width: 100%;
		margin-top: 130px;
		padding: 12px;
	}

	.profiles_player_table .cname {
		font-size: 24px;
	}

	.profiles-player-top-grid {
		grid-template-columns: 1fr;
	}

	.profiles-player-portrait-col {
		justify-content: flex-start;
	}

	.profiles-player-maininfo-table tr td,
	.profiles-player-detail-table tr td {
		font-size: 14px;
		padding: 8px 10px;
	}
}

/* ========== Character Inventory – structured paper-doll ========== */
.av-inventory-section {
	--cell: 58px;
	--gap: 10px;
	margin-top: 24px;
	padding: 20px;
	background: linear-gradient(160deg, rgba(28, 16, 52, 0.88) 0%, rgba(18, 10, 36, 0.92) 100%);
	border: 1px solid rgba(160, 0, 255, 0.45);
	box-shadow: 0 0 24px rgba(157, 77, 255, 0.2), inset 0 1px 0 rgba(157, 77, 255, 0.08);
	border-radius: 14px;
	color: #e6dcff;
}

.av-inventory-title {
	font-family: var(--font-heading, 'Orbitron', sans-serif);
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: var(--text-heading, #f0ebff);
	text-shadow: 0 0 20px rgba(157, 77, 255, 0.45);
	letter-spacing: 0.02em;
}

.av-inv-grid {
	display: grid;
	grid-template-columns: repeat(10, var(--cell));
	grid-auto-rows: var(--cell);
	gap: var(--gap);
	width: fit-content;
	margin: 0 auto;
	align-items: start;
}

.av-slot {
	--offset-x: 0px;
	--offset-y: 0px;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	background: linear-gradient(145deg, rgba(52, 28, 88, 0.7) 0%, rgba(36, 18, 62, 0.85) 100%);
	border: 1px solid rgba(160, 0, 255, 0.45);
	box-shadow: inset 0 0 18px rgba(106, 0, 255, 0.15), 0 0 12px rgba(157, 77, 255, 0.12);
	border-radius: 8px;
	font-size: 10px;
	text-align: center;
	line-height: 1.2;
	padding: 4px;
	word-break: break-word;
	transform: translate(var(--offset-x), var(--offset-y));
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.av-slot:hover {
	transform: translate(var(--offset-x), var(--offset-y)) scale(1.05);
	box-shadow: inset 0 0 18px rgba(106, 0, 255, 0.2), 0 0 20px rgba(157, 77, 255, 0.35);
}

.av-slot-label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(230, 220, 255, 0.92);
}

/* 10×8 map – positioned to match classic MU paper-doll */
.av-slot[data-slot="pet"]     { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.av-slot[data-slot="helm"]    { grid-column: 4 / span 3; grid-row: 1 / span 2; width: calc(var(--cell) * 2 + var(--gap)); justify-self: center; }
.av-slot[data-slot="wings"]   { grid-column: 7 / span 3; grid-row: 1 / span 2; }
.av-slot[data-slot="weapon"]  { grid-column: 1 / span 2; grid-row: 3 / span 4; }
.av-slot[data-slot="pentagram"] { grid-column: 3 / span 1; grid-row: 1 / span 1; }
.av-slot[data-slot="pendant"] { grid-column: 3 / span 1; grid-row: 3 / span 1; }
.av-slot[data-slot="earring1"] { grid-column: 3 / span 1; grid-row: 5 / span 1; }
.av-slot[data-slot="earring2"] { grid-column: 7 / span 1; grid-row: 5 / span 1; }
.av-slot[data-slot="armor"]   { grid-column: 4 / span 3; grid-row: 3 / span 4; }
.av-slot[data-slot="shield"]  { grid-column: 8 / span 2; grid-row: 3 / span 4; }
.av-slot[data-slot="ring1"]   { grid-column: 3 / span 1; grid-row: 7 / span 1; }
.av-slot[data-slot="ring2"]   { grid-column: 7 / span 1; grid-row: 7 / span 1; }
.av-slot[data-slot="pet1"]    { grid-column: 3 / span 1; grid-row: 8 / span 1; }
.av-slot[data-slot="pet2"]    { grid-column: 7 / span 1; grid-row: 8 / span 1; }
.av-slot[data-slot="gloves"]  { grid-column: 1 / span 2; grid-row: 7 / span 2; }
.av-slot[data-slot="pants"]   { grid-column: 4 / span 3; grid-row: 7 / span 2; }
.av-slot[data-slot="boots"]   { grid-column: 8 / span 2; grid-row: 7 / span 2; }

/* Fine pixel positioning per slot (optional) */
.av-slot[data-slot="pentagram"] { --offset-x: 2px; --offset-y: 10px; }
.av-slot[data-slot="pendant"]   { --offset-x: 0px; --offset-y: 20px; }
.av-slot[data-slot="earring1"]  { --offset-x: 0px; --offset-y: 0px; }
.av-slot[data-slot="earring2"]  { --offset-x: 0px; --offset-y: 0px; }

/* Compact sizing for main equipment blocks */
.av-slot[data-slot="weapon"],
.av-slot[data-slot="pet"],
.av-slot[data-slot="gloves"],
.av-slot[data-slot="wings"],
.av-slot[data-slot="armor"],
.av-slot[data-slot="pants"],
.av-slot[data-slot="boots"],
.av-slot[data-slot="shield"] {
	width: 86%;
	height: 86%;
	justify-self: center;
	align-self: center;
}

.av-slot[data-slot="helm"] {
	width: calc((var(--cell) * 2 + var(--gap)) * 0.86);
	height: 86%;
	align-self: center;
}

.av-slot[data-slot="ring1"],
.av-slot[data-slot="ring2"],
.av-slot[data-slot="pet1"],
.av-slot[data-slot="pet2"],
.av-slot[data-slot="earring1"],
.av-slot[data-slot="earring2"],
.av-slot[data-slot="pentagram"],
.av-slot[data-slot="pendant"] {
	border-radius: 999px;
}

@media (max-width: 520px) {
	.av-inventory-section {
		--cell: 44px;
		--gap: 6px;
		padding: 14px;
	}
	.av-inventory-title { font-size: 1.35rem; }
	.av-slot { font-size: 8px; }
}

/* Green/gold consistency overrides */
.profiles_guild_card,
.profiles_guild_card_rework,
.profiles_player_card,
.profiles-player-side-card,
.profiles-player-panel,
.profiles-player-hero,
.profiles-player-extra-card,
.av-inventory-section {
	border-color: rgba(0, 255, 156, 0.22) !important;
	box-shadow: 0 16px 28px rgba(0, 0, 0, 0.3), 0 0 18px rgba(0, 255, 156, 0.08) !important;
}

.profiles-player-hero-name,
.profiles-player-hero-class,
.guild_name {
	color: #fff1bf !important;
	text-shadow: 0 0 14px rgba(255, 215, 0, 0.14) !important;
}

.profiles-player-hero-status,
.guild_members,
.av-slot-label {
	color: #d8ebc8 !important;
	text-shadow: none !important;
}

.av-slot {
	background: linear-gradient(145deg, rgba(24, 48, 27, 0.78) 0%, rgba(13, 27, 16, 0.9) 100%) !important;
	border: 1px solid rgba(0, 255, 156, 0.28) !important;
	box-shadow: inset 0 0 18px rgba(0, 255, 156, 0.08), 0 0 12px rgba(0, 255, 156, 0.08) !important;
}

.av-slot:hover {
	box-shadow: inset 0 0 18px rgba(0, 255, 156, 0.12), 0 0 16px rgba(255, 215, 0, 0.18) !important;
}

/* Player profile: keep the old wide paper-doll layout, but in the green/gold theme. */
body.profile-player-focus-mode .profiles_player_card {
	padding: 20px 22px 22px !important;
	border-radius: 16px !important;
	border-color: rgba(240, 200, 75, 0.2) !important;
	background-position: center top !important;
	box-shadow: inset 0 1px 0 rgba(255, 243, 191, 0.045), 0 18px 38px rgba(0, 0, 0, 0.4), 0 0 20px rgba(240, 200, 75, 0.08) !important;
}

body.profile-player-focus-mode .profiles_player_card::before {
	background:
		radial-gradient(circle at 78% 10%, rgba(240, 200, 75, 0.1), transparent 28%),
		linear-gradient(90deg, rgba(2, 5, 4, 0.9) 0%, rgba(5, 10, 7, 0.74) 34%, rgba(5, 10, 7, 0.86) 100%) !important;
}

body.profile-player-focus-mode .profiles-player-sheet {
	position: relative !important;
	z-index: 1 !important;
}

body.profile-player-focus-mode .profiles-player-layout {
	display: grid !important;
	grid-template-columns: 150px minmax(560px, 1fr) 130px;
	gap: 12px !important;
	align-items: stretch !important;
	padding: 14px !important;
	border-radius: 14px !important;
	background:
		radial-gradient(circle at top right, rgba(240, 200, 75, 0.055), transparent 26%),
		linear-gradient(180deg, rgba(5, 10, 7, 0.72), rgba(2, 5, 4, 0.82)) !important;
	border: 1px solid rgba(240, 200, 75, 0.16) !important;
	box-shadow: inset 0 1px 0 rgba(255, 243, 191, 0.04), 0 12px 26px rgba(0, 0, 0, 0.3) !important;
}

body.profile-player-focus-mode .profiles-player-portrait-col,
body.profile-player-focus-mode .profiles-player-guild-card {
	background: rgba(5, 9, 6, 0.68) !important;
	border: 1px solid rgba(240, 200, 75, 0.15) !important;
	border-radius: 12px !important;
	box-shadow: inset 0 1px 0 rgba(255, 243, 191, 0.035) !important;
}

body.profile-player-focus-mode .profiles-player-portrait-col {
	padding: 10px !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 10px !important;
	min-height: 0 !important;
}

body.profile-player-focus-mode .profiles-player-portrait {
	width: 102px !important;
	height: 138px !important;
	border: 2px solid rgba(255, 241, 167, 0.52) !important;
	border-radius: 4px !important;
	background: rgba(0, 0, 0, 0.32) !important;
	box-shadow: 0 0 14px rgba(240, 200, 75, 0.12), 0 8px 18px rgba(0, 0, 0, 0.34) !important;
}

body.profile-player-focus-mode .profiles-player-portrait-name {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	width: 100% !important;
	color: #fff4bf !important;
	font-family: var(--font-heading, 'Orbitron', sans-serif) !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-align: center !important;
	text-shadow: 0 0 10px rgba(240, 200, 75, 0.14) !important;
	word-break: break-word !important;
}

body.profile-player-focus-mode .profiles-player-inventory-col {
	min-width: 0 !important;
	display: flex !important;
}

body.profile-player-focus-mode .profiles-player-inventory-col .av-inventory-section {
	--cell: 52px !important;
	--gap: 8px !important;
	width: 100% !important;
	min-height: 356px !important;
	margin: 0 !important;
	padding: 14px 16px 16px !important;
	border-radius: 12px !important;
	background: rgba(5, 9, 6, 0.62) !important;
	border: 1px solid rgba(240, 200, 75, 0.14) !important;
	box-shadow: inset 0 1px 0 rgba(255, 243, 191, 0.035) !important;
	color: #edf3dd !important;
}

body.profile-player-focus-mode .profiles-player-inventory-col .av-inventory-title {
	margin: 0 0 10px !important;
	color: #fff4bf !important;
	font-family: var(--font-heading, 'Orbitron', sans-serif) !important;
	font-size: 18px !important;
	text-shadow: 0 0 12px rgba(240, 200, 75, 0.12) !important;
}

body.profile-player-focus-mode .profiles-player-inventory-col .av-inv-grid {
	margin: 0 auto !important;
}

body.profile-player-focus-mode .profiles-player-inventory-col .av-slot {
	background: linear-gradient(180deg, rgba(18, 45, 28, 0.78), rgba(8, 22, 14, 0.88)) !important;
	border-color: rgba(67, 198, 160, 0.24) !important;
	box-shadow: inset 0 1px 0 rgba(255, 243, 191, 0.035), 0 0 12px rgba(67, 198, 160, 0.07) !important;
}

body.profile-player-focus-mode .profiles-player-inventory-col .av-slot:hover {
	border-color: rgba(240, 200, 75, 0.38) !important;
	box-shadow: inset 0 1px 0 rgba(255, 243, 191, 0.05), 0 0 16px rgba(240, 200, 75, 0.14) !important;
}

body.profile-player-focus-mode .profiles-player-inventory-col .av-slot-label {
	color: rgba(226, 218, 177, 0.82) !important;
	text-shadow: none !important;
}

body.profile-player-focus-mode .profiles-player-guild-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 10px !important;
	padding: 12px 10px !important;
	text-align: center !important;
}

body.profile-player-focus-mode .profiles-player-guild-card-title {
	color: rgba(226, 218, 177, 0.84) !important;
	font-family: var(--font-heading, 'Orbitron', sans-serif) !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
}

body.profile-player-focus-mode .profiles-player-guild-card-logo {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 56px !important;
}

body.profile-player-focus-mode .profiles-player-guild-card-logo img {
	max-width: 56px !important;
	max-height: 56px !important;
	border-radius: 6px !important;
	box-shadow: 0 0 12px rgba(240, 200, 75, 0.12) !important;
}

body.profile-player-focus-mode .profiles-player-guild-card-name,
body.profile-player-focus-mode .profiles-player-guild-card-name a {
	color: #fff4bf !important;
	font-family: var(--font-heading, 'Orbitron', sans-serif) !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	text-shadow: 0 0 10px rgba(240, 200, 75, 0.14) !important;
}

body.profile-player-focus-mode .profiles-player-summary-panel,
body.profile-player-focus-mode .profiles-player-achievements-panel {
	margin-top: 12px !important;
	border-radius: 12px !important;
	background: rgba(5, 9, 6, 0.68) !important;
	border: 1px solid rgba(240, 200, 75, 0.14) !important;
	box-shadow: inset 0 1px 0 rgba(255, 243, 191, 0.035), 0 10px 22px rgba(0, 0, 0, 0.24) !important;
	overflow: hidden !important;
}

body.profile-player-focus-mode .profiles-player-achievements-panel {
	padding: 14px !important;
}

body.profile-player-focus-mode .profiles-player-achievements-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	margin-bottom: 12px !important;
	padding-bottom: 10px !important;
	border-bottom: 1px solid rgba(240, 200, 75, 0.12) !important;
}

body.profile-player-focus-mode .profiles-player-achievements-title {
	color: #fff4bf !important;
	font-family: var(--font-heading, 'Orbitron', sans-serif) !important;
	font-size: 18px !important;
	font-weight: 900 !important;
	letter-spacing: 0.03em !important;
	text-shadow: 0 0 12px rgba(240, 200, 75, 0.12) !important;
}

body.profile-player-focus-mode .profiles-player-achievements-points {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 28px !important;
	padding: 5px 10px !important;
	border-radius: 999px !important;
	border: 1px solid rgba(240, 200, 75, 0.24) !important;
	background: rgba(5, 9, 6, 0.72) !important;
	color: #ffd95a !important;
	font-family: var(--font-heading, 'Orbitron', sans-serif) !important;
	font-size: 12px !important;
	font-weight: 900 !important;
	box-shadow: inset 0 1px 0 rgba(255, 243, 191, 0.04), 0 8px 16px rgba(0, 0, 0, 0.22) !important;
}

body.profile-player-focus-mode .profiles-player-achievements-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
	gap: 10px !important;
	width: 100% !important;
}

body.profile-player-focus-mode .profiles-player-achievement-item {
	display: grid !important;
	grid-template-columns: 58px minmax(0, 1fr) !important;
	grid-template-areas: "icon label" !important;
	align-items: center !important;
	gap: 10px !important;
	min-height: 74px !important;
	padding: 9px 10px !important;
	border-radius: 12px !important;
	border: 1px solid rgba(240, 200, 75, 0.12) !important;
	background:
		radial-gradient(circle at top right, rgba(240, 200, 75, 0.045), transparent 38%),
		linear-gradient(180deg, rgba(10, 18, 12, 0.78), rgba(4, 8, 6, 0.88)) !important;
	box-shadow: inset 0 1px 0 rgba(255, 243, 191, 0.03) !important;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

body.profile-player-focus-mode .profiles-player-achievement-item:hover {
	transform: translateY(-2px);
	border-color: rgba(240, 200, 75, 0.28) !important;
	background:
		radial-gradient(circle at top right, rgba(240, 200, 75, 0.075), transparent 40%),
		linear-gradient(180deg, rgba(13, 24, 15, 0.84), rgba(5, 10, 7, 0.92)) !important;
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22) !important;
}

body.profile-player-focus-mode .profiles-player-achievement-icon {
	grid-area: icon;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 54px !important;
	height: 54px !important;
	border-radius: 10px !important;
	border: 1px solid rgba(67, 198, 160, 0.22) !important;
	background: rgba(5, 9, 6, 0.72) !important;
	box-shadow: inset 0 1px 0 rgba(255, 243, 191, 0.035), 0 6px 12px rgba(0, 0, 0, 0.22) !important;
}

body.profile-player-focus-mode .profiles-player-achievement-icon img {
	max-width: 46px !important;
	max-height: 46px !important;
	object-fit: contain !important;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.34));
}

body.profile-player-focus-mode .profiles-player-achievement-label {
	grid-area: label;
	min-width: 0;
	color: #edf3dd !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	word-break: break-word !important;
}

body.profile-player-focus-mode .profiles-player-achievement-label span {
	display: block;
	margin-top: 3px;
	color: #ffd95a !important;
	font-family: var(--font-heading, 'Orbitron', sans-serif) !important;
	font-size: 11px !important;
	font-weight: 900 !important;
	text-shadow: 0 0 8px rgba(240, 200, 75, 0.12) !important;
}

body.profile-player-focus-mode .profiles-player-achievements-empty {
	padding: 14px !important;
	border-radius: 10px !important;
	border: 1px solid rgba(240, 200, 75, 0.12) !important;
	background: rgba(5, 9, 6, 0.58) !important;
	color: rgba(226, 218, 177, 0.82) !important;
	font-weight: 800 !important;
}

body.profile-player-focus-mode .profiles-player-summary-grid td,
body.profile-player-focus-mode .profiles-player-maininfo-table td {
	border-color: rgba(240, 200, 75, 0.08) !important;
	color: #edf3dd !important;
}

body.profile-player-focus-mode .profiles-player-summary-grid td:nth-child(odd) {
	color: rgba(226, 218, 177, 0.82) !important;
	font-weight: 800 !important;
}

body.profile-player-focus-mode .profiles-player-summary-grid td:nth-child(even) {
	color: #ffd95a !important;
	font-family: var(--font-heading, 'Orbitron', sans-serif) !important;
	font-weight: 800 !important;
}

@media (max-width: 1180px) {
	body.profile-player-focus-mode .profiles-player-layout {
		grid-template-columns: 140px minmax(0, 1fr);
	}

	body.profile-player-focus-mode .profiles-player-guild-card {
		grid-column: 1 / -1;
		flex-direction: row !important;
		justify-content: center !important;
	}
}

@media (max-width: 820px) {
	body.profile-player-focus-mode .profiles-player-layout {
		grid-template-columns: 1fr;
	}

	body.profile-player-focus-mode .profiles-player-portrait-col,
	body.profile-player-focus-mode .profiles-player-guild-card {
		max-width: none !important;
	}

	body.profile-player-focus-mode .profiles-player-inventory-col {
		overflow-x: auto !important;
	}

	body.profile-player-focus-mode .profiles-player-inventory-col .av-inventory-section {
		min-width: 600px !important;
	}
}
