body {
	background: url('dark/bg.webp') no-repeat fixed 50% 0px #000;
	background-color: #000000;
	max-width: 420px;
    height: 100%;
	margin: auto;
	font-size: 14px;
	font-family: Tahoma, Arial, Helvetica;
    overflow-x: hidden;
}

.page{
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
}

img {
	vertical-align: middle;
	border-style: none;
}
a {
	color: #E0E0E0;
	text-decoration: none;
}
.ln {
	color: #818182;
}
a.st {
	color: #818182;
	text-decoration: none;
	border-bottom: 1px solid #818182;
	line-height: 14px;
}
a.st:hover {
	color: #0cb5e2;
	border-bottom: 1px solid #0cb5e2;
}
.title1 {
	font-size: 14px;
    color: #FFF;
	border-bottom: 1px solid #b1b1b1;
	margin-bottom: 5px;
	line-height: 22px;
}
.txt {
	font-size: 15px;
	color: #b1b1b1;
	text-align: justify;
}
.a {
	font-size: 13px;
	background: linear-gradient(to bottom,#353545,#202030);
	border-bottom: 1px solid #404050;
	color: #F1F1F1;
	padding: 1px;
}
.a_table-common {
    font-size: 11px;
    color: #e0e0e0;
    margin: 0px;
	border: 1px solid #404050;
}
.a_table {
    border-collapse: collapse;
    font-size: 14px;
}

.sticky_header{
    position: -webkit-sticky;
    position: sticky;
    z-index: 9999;
    top: 0;
    left: 0;
}

.a_table-common td {
    padding: 1px 4px;
    border-width: 1px;
    border-color: #404050;
    border-style: solid;
}

.a_table-common tr:nth-child(odd) {
    background: linear-gradient(to bottom,#353545,#202030);
}

.a_table-common .row-odd {
    background: linear-gradient(to bottom,#353545,#202030);
}

.a_table-common .row-even {
    background: #151525;
}

.a_table-common tr {
    background: #151525;
}
.body{
    flex: 1 0 auto;
}
.b {
	background-color: #101020;
    border-left: 1px solid #303040;
    border-right: 1px solid #303040;
    border-bottom: 1px solid #303040;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-bottom: 1px;
	color: #b1b1b1;
	padding: 5px;
}
.b_inside {
    background-color: #101020;
    border-left: 1px solid #303040;
    border-right: 1px solid #303040;
    color: #b1b1b1;
    padding: 1px;
}
.b_foot {
    flex: 0 0 auto;
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    left: 0;
    background-color: #101020;
    border: 1px solid #303040;
    border-radius: 5px;
    color: #b1b1b1;
    padding: 5px;
    z-index: 9999;
}
.b_profile {
	background-color: #090914;
	color: #b1b1b1;
	padding: 5px;
	padding-top: 10px;
	border-top: 1px solid #303040;
}
.b_large {
	background-color: #090914;
	color: #b1b1b1;
	padding: 15px;
}
.foot {
	color: #818182;
	margin-top: 5px;
	text-decoration: none;
	font-size: 13px;
}
a.ft {
	color: #818182;
	text-decoration: none;
	border-bottom: 1px solid #818182;
	font-size: 13px;
	line-height: 14px;
}
a.ft:hover {
	color: #FFDF8C;
}
a.link {
border-top: 1px solid #303040;
border-bottom: 1px solid #000010;
display: block;
padding: 12px 5px 5px 5px;
min-height: 24px;
background: linear-gradient(#151525,#101020);
color: #FFDF8C;
}
a.link:hover{
border-top: 1px solid #101020;
border-bottom: 1px solid #101020;
display: block;
padding: 12px 5px 5px 5px;
min-height: 24px;
background: #101020;
color: #FFDF8C;
}
a.dark_link {
border-top: 1px solid #303030;
border-bottom: 1px solid #000000;
display: block;
padding: 12px 5px 5px 5px;
min-height: 25px;
background: linear-gradient(#151515,#101010);
color: #B1B1B1;
}
a.foot_link {
border-top: 1px solid #505060;
border-bottom: 1px solid #050520;
display: block;
padding: 10px 5px 5px 5px;
min-height: 24px;
background: linear-gradient(#303040,#242434);
color: #FFDF8C;
}
a.foot_link:hover{
border-top: 1px solid #505060;
border-bottom: 1px solid #050520;
display: block;
padding: 10px 5px 5px 5px;
min-height: 24px;
background: #353545;
color: #FFDF8C;
}
.line {
	background: #101020 url('dark/line.png') no-repeat center;
	height: 18px;
}
.foot_line {
	background: #101020 url('dark/foot.png') no-repeat center;
    border-left: 1px solid #303040;
    border-right: 1px solid #303040;
	height: 38px;
}
.only_line {
	background: transparent url('dark/line.png') no-repeat center;
	height: 18px;
}
.text_line {
    background: transparent url('dark/line.png') no-repeat center;
    height: 10px;
}
.example {
    display:inline-block;
    position:relative;
}
.example .example_text{
display:block;
position:absolute;
left:0;
bottom:0;
width:100%;
box-sizing:border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
color:#fff;
padding-bottom: 3px;
padding-top: 3px;
background-color:rgba(0,0,0,.5);
}
.sep-stone {
padding: 10px;
background: url('dark/sep-stone-right.png') repeat-y scroll 0px 0px, url('dark/sep-stone-left.png') repeat-y scroll 100% 0px, url('dark/sep-stone-bottom.png') repeat-x scroll 0px 100%, url('dark/sep-stone-top.png') repeat-x scroll 0px 0px transparent;
}
.blue {
padding: 8px 3px ;
background: url('dark/blue-bg.png') #242428;
color: #A8A8A8;
}

.green {
padding: 8px 3px ;
background: url('dark/green-bg.png') #242824;
color: #A8A8A8;
}

.red {
padding: 8px 3px ;
background: url('dark/red-bg.png') #282424;
color: #A8A8A8;
}

.button_blue{
	border-width: 1px;
	border-style: solid;
	color: #FFF;
	text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.25);
	background-color: #0F3556;
	background-image: linear-gradient(to bottom, #407998, #2E4054);
	background-repeat: repeat-x;
	border: 1px solid;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	padding: 8px 14px;
	font-size: 13px;
    border-radius: 3px;
	display: inline-block;
	margin-top: 5px;
	margin-bottom: 5px;
}

.button_pressed{
	border-width: 1px;
	border-style: solid;s
	color: #B1B1B1;
	text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.25);
	background-color: #090914;
	border-color: #303040;
	padding: 7px 13px;
    font-size: 12px;
    border-radius: 3px;
	display:  inline-block;
	line-height: 16px;
}

.hp{
	padding-left: 2px;
	margin-top: 1px;
	margin-bottom: 1px;
	height:12px;
	background: #070717 url(/images/bars/hp.png) no-repeat;
	border: 1px solid #070717;
}
.hp_small{
    margin: 0px;
    height: 2px;
    background: #070717 url(/images/bars/hp.png) no-repeat;
    border: 1px solid #070717;
    width: 70%;
    display: inline-block;
}
.mp{
	padding-left: 2px;
	margin-top: 1px;
	margin-bottom: 1px;
	height:12px;
	background: #070717 url(/images/bars/mp.png) no-repeat;
	border: 1px solid #070717;
}
.mp_small{
    margin-top: 1px;
    margin-bottom: 0px;
    height: 2px;
    background: #070717 url(/images/bars/mp.png) no-repeat;
    border: 1px solid #070717;
    width: 70%;
    display: inline-block;
}
.exp{
	padding-left: 2px;
	margin-top: 1px;
	margin-bottom: 1px;
	height:12px;
	background: #070717 url(/images/bars/exp.png) no-repeat;
	border: 1px solid #070717;
}
.clan_exp{
    padding-left: 2px;
    margin-top: 2px;
    margin-bottom: 2px;
    height:12px;
    background: #000010 url(/images/bars/exp.png) no-repeat;
    border: 1px solid #000010;
}

.hp_opp{height:2px; margin-top: 4px; background: black}
.hp_opp_in{height:2px;}

/* FORM */
form {
    display: block;
    margin-top: 0em;
    margin-block-end: 0em;
}
input[type~="text"],
input[type~="password"], textarea, select{
	background-color: #FFF;
	border: 1px solid #505060;
	color: black;
	padding: 10px;
	margin-top: 5px;
	margin-bottom: 5px;
	width: 60%;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}
input[type="submit"]{
    cursor: pointer;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 10px;
    margin: 3px;
    font-size: 14px;
    background-image: linear-gradient(to bottom, #303040, #202030);
    text-shadow: black 0 1px 0;
    color: #e0e0e0;
}
input[type="submit"]:hover{
    cursor: pointer;
    border: 1px solid #505060;
    border-radius: 3px;
    padding: 10px;
    margin: 3px;
    font-size: 14px;
    background-image: linear-gradient(to bottom, #404050, #303040);
    text-shadow: black 0 1px 0;
    color: #e0e0e0;
}
input[type="submit"].green{
    position: relative;
    height: auto;
    border: 1px solid #098203;
    border-radius: 3px;
    padding: 10px;
    margin: 1px;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    background-image: linear-gradient(to bottom, #01A70D, #044807);
    box-sizing: border-box;
    color: #e0e0e0;
}
input[type="submit"].green:hover{
    background: #FFCA77 none repeat scroll 0% 0%;
    background-image: linear-gradient(to bottom, #62E06B, #2D7530);
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: 0% 0%;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    border: 1px solid #2ECA2F;
    border-image-source: none;
    border-image-slice: 100% 100% 100% 100%;
    border-image-width: 1 1 1 1;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    box-shadow: 0px 0px 0px 1px #101020;
}
.btn_small {
    position: relative;
    height: auto;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 7px;
    margin-top: 5px;
    font-size: 14px;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    background-image: linear-gradient(to bottom, #303040, #202030);
    box-sizing: border-box;
    text-shadow: black 0 1px 0;
    color: #e0e0e0;
}
.btn_small:hover{
    background: #FFCA77 none repeat scroll 0% 0%;
    background-image: linear-gradient(to bottom, #404050, #303040);
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: 0% 0%;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    border: 1px solid #505060;
    border-image-source: none;
    border-image-slice: 100% 100% 100% 100%;
    border-image-width: 1 1 1 1;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    box-shadow: 0px 0px 0px 1px #101020;
}
.btn_smallest {
    position: relative;
    height: auto;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 1px;
    margin: 1px;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    background-image: linear-gradient(to bottom, #303040, #202030);
    box-sizing: border-box;
    color: #e0e0e0;
}
.btn_smallest:hover{
    background: #FFCA77 none repeat scroll 0% 0%;
    background-image: linear-gradient(to bottom, #404050, #303040);
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: 0% 0%;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    border: 1px solid #505060;
    border-image-source: none;
    border-image-slice: 100% 100% 100% 100%;
    border-image-width: 1 1 1 1;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    box-shadow: 0px 0px 0px 1px #101020;
}
.btn_smallest_green {
    position: relative;
    height: auto;
    border: 1px solid #098203;
    border-radius: 3px;
    padding: 1px;
    margin: 1px;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    background-image: linear-gradient(to bottom, #01A70D, #044807);
    box-sizing: border-box;
    color: #e0e0e0;
}
.btn_smallest_green:hover{
    background: #FFCA77 none repeat scroll 0% 0%;
    background-image: linear-gradient(to bottom, #62E06B, #2D7530);
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: 0% 0%;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    border: 1px solid #2ECA2F;
    border-image-source: none;
    border-image-slice: 100% 100% 100% 100%;
    border-image-width: 1 1 1 1;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    box-shadow: 0px 0px 0px 1px #101020;
}
.btn_mini{
    position: relative;
    height: auto;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 3px;
    margin: 1px;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    background-image: linear-gradient(to bottom, #303040, #202030);
    box-sizing: border-box;
    color: #e0e0e0;
    font-size: 12px;
}
.btn_mini:hover{
    background: #FFCA77 none repeat scroll 0% 0%;
    background-image: linear-gradient(to bottom, #404050, #303040);
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: 0% 0%;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    border: 1px solid #505060;
    border-image-source: none;
    border-image-slice: 100% 100% 100% 100%;
    border-image-width: 1 1 1 1;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    box-shadow: 0px 0px 0px 1px #101020;
}
/* OTHER */
.bottom {
	border-bottom: 1px solid #4d75a3;
}
.top {
	border-top: 1px solid #4d75a3;
}
.center {
	text-align: center;
}
.left {
	text-align: left !important;
}
.bradius {
	border-radius: 0px 0px 0px 0px;
}
.sup {
	color: #DD6666;
}
.mod {
	color: #FF6600;
}
.adm {
	color: #00D0FF;
}
/* LINE */
.lines {
    background-color: #eee;
	border-radius: 5px;
    padding: 1px;
	margin-top: 4px;
    color: #000;
}
.lines, .line_color{
    overflow: hidden;
    height: 100%;
    font-size: 10px;
}
.line_text{ position: absolute; color: #000; padding: 0 0 0 6px}
.lines { height: 15px; }
.hp .line_color {
    background-color: #FF0000;
	border-radius: 5px;
}
.eng .line_color {
    background-color: #49AFCD;
	border-radius: 5px;
}

/*!!!NEW!!!*/

.big_btn {
    position: relative;
    height: auto;
    font-family: "PT Serif", "Tahoma", sans-serif;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 10px;
    margin: 1px;
    font-size: 12px;
    display: block;
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    background-image: linear-gradient(to bottom, #303040, #202030);
    box-sizing: border-box;
	text-shadow: black 0 1px 0;
	color: #e0e0e0;
}
.big_btn:hover{
    background: #FFCA77 none repeat scroll 0% 0%;
	background-image: linear-gradient(to bottom, #404050, #303040);
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: 0% 0%;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    border: 1px solid #505060;
    border-image-source: none;
    border-image-slice: 100% 100% 100% 100%;
    border-image-width: 1 1 1 1;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    box-shadow: 0px 0px 0px 1px #101020;
	color: white;
}
.foot_btn {
    position: relative;
    height: auto;
    font-family: "PT Serif", "Tahoma", sans-serif;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 1px;
    margin: 1px;
    display: block;
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    background-image: linear-gradient(to bottom, #303040, #202030);
    box-sizing: border-box;
    text-shadow: black 0 1px 0;
    color: #e0e0e0;
    font-size: 11px;
}
.foot_btn:hover{
    background: #FFCA77 none repeat scroll 0% 0%;
    background-image: linear-gradient(to bottom, #404050, #303040);
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: 0% 0%;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    border: 1px solid #505060;
    border-image-source: none;
    border-image-slice: 100% 100% 100% 100%;
    border-image-width: 1 1 1 1;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    box-shadow: 0px 0px 0px 1px #101020;
    color: white;
}
.foot_btn_off{
    position: relative;
    height: auto;
    font-family: "PT Serif", "Tahoma", sans-serif;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 1px;
    margin: 1px;
    display: block;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    background: #101020;
    //background-image: linear-gradient(to bottom, #383838, #1F1F1F);
    box-sizing: border-box;
    text-shadow: black 0 1px 0;
    color: grey;
    font-size: 11px;
}
.btn {
    position: relative;
    height: auto;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 5px;
	margin-top: 5px;
    margin-bottom: 4px;
    font-size: 14px;
    display: block;
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    background-image: linear-gradient(to bottom, #303040, #202030);
    box-sizing: border-box;
	text-shadow: black 0 1px 0;
	color: #e0e0e0;
}
.btn:hover{
    background: #FFCA77 none repeat scroll 0% 0%;
	background-image: linear-gradient(to bottom, #404050, #303040);
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: 0% 0%;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    border: 1px solid #505060;
    border-image-source: none;
    border-image-slice: 100% 100% 100% 100%;
    border-image-width: 1 1 1 1;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    box-shadow: 0px 0px 0px 1px #101020;
}
.btn_pressed{
    position: relative;
    height: auto;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 4px;
    font-size: 14px;
    display: block;
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    box-sizing: border-box;
    text-shadow: black 0 1px 0;
    color: #e0e0e0;
}
.btn_table {
    position: relative;
    height: auto;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 5px;
    font-size: 14px;
    display: block;
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    background-image: linear-gradient(to bottom, #303040, #202030);
    box-sizing: border-box;
    text-shadow: black 0 1px 0;
    color: #e0e0e0;
}
.btn_table:hover{
    background: #FFCA77 none repeat scroll 0% 0%;
    background-image: linear-gradient(to bottom, #404050, #303040);
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: 0% 0%;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    border: 1px solid #505060;
    border-image-source: none;
    border-image-slice: 100% 100% 100% 100%;
    border-image-width: 1 1 1 1;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    box-shadow: 0px 0px 0px 1px #101020;
}
.btn_small {
    position: relative;
    height: auto;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 7px;
	margin-top: 5px;
    font-size: 14px;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    background-image: linear-gradient(to bottom, #303040, #202030);
    box-sizing: border-box;
	text-shadow: black 0 1px 0;
	color: #e0e0e0;
}
.btn_small:hover{
    background: #FFCA77 none repeat scroll 0% 0%;
	background-image: linear-gradient(to bottom, #404050, #303040);
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: 0% 0%;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    border: 1px solid #505060;
    border-image-source: none;
    border-image-slice: 100% 100% 100% 100%;
    border-image-width: 1 1 1 1;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    box-shadow: 0px 0px 0px 1px #101020;
}
.btn_small_pressed {
    position: relative;
    height: auto;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 7px;
	margin-top: 5px;
    font-size: 14px;
    display: inline-block;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
	text-shadow: black 0 1px 0;
	color: #e0e0e0;
}
.btn_navigation {
    position: relative;
    height: auto;
    border: 1px solid #404050;
    border-radius: 3px;
    padding: 1px;
	margin: 3px;
    font-size: 14px;
    display: inline-block;
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);
    -moz-user-select: none;
    background-image: linear-gradient(to bottom, #303040, #202030);
    box-sizing: border-box;
	text-shadow: black 0 1px 0;
	color: #e0e0e0;
}
.btn_navigation:hover{
    background: #FFCA77 none repeat scroll 0% 0%;
	background-image: linear-gradient(to bottom, #404050, #303040);
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: 0% 0%;
    background-clip: border-box;
    background-origin: padding-box;
    background-size: auto auto;
    border: 1px solid #505060;
    border-image-source: none;
    border-image-slice: 100% 100% 100% 100%;
    border-image-width: 1 1 1 1;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    box-shadow: 0px 0px 0px 1px #101020;
}
.event_info {
    box-sizing: border-box;
    margin: 5px;
	display: block;
    padding: 1px;
    border: 1px solid #202030;
    border-radius: 4px;
	background: #101020;
    box-shadow: 0px 0px 0px 1px #050515;
    color: #b1b1b1;
    text-align: left;
	font-size: 13px;
}
.event {
    margin: 5px;
    padding: 3px 3px;
    border: 1px solid #252535;
    border-radius: 4px;
	background: #151525;
    box-shadow: 0px 0px 0px 1px #050515;
    color: #e0e0e0;
    text-align: left;
	font-size: 14px;
	text-shadow: black 0 1px 0;
	color: #e0e0e0;
}
.event_item {
    margin: 5px;
    padding: 5px;
    border: 1px solid #252535;
    border-radius: 4px;
	background: #151525;
    box-shadow: 0px 0px 0px 1px #050515;
    color: #b1b1b1;
    text-align: left;
	font-size: 14px;
	display: block;
	text-shadow: black 0 1px 0;
	color: #e0e0e0;
}
.event_table {
    margin: 5px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    min-height: 50px;
    border: 1px solid #202030;
    border-radius: 4px;
	background: #101020;
    box-shadow: 0px 0px 0px 1px #050515;
    color: #b1b1b1;
    text-align: left;
	font-size: 14px;
	display: block;
	text-shadow: black 0 1px 0;
	color: #e0e0e0;
}
.event_start {
    box-sizing: border-box;
    margin: 5px;
    padding: 8px;
    min-height: 50px;
    border: 1px solid #202030;
    border-radius: 4px;
    background: #101020 none repeat scroll 0% 0%;
    box-shadow: 0px 0px 0px 1px #050515;
    color: #b1b1b1;
    text-align: left;
	font-size: 13px;
}
.avatar{
	background: #353545;
	border: 1px solid #505060;
}
.border{
    //display:inline-block;
    box-sizing: border-box;
    width: 100%;
    max-width: 344px;
	border: 4px solid red;
	border-image: url(/images/border/border3.png) 4;
	margin: 0 auto;
}
.title{
	background: url(/css/dark/title.png) no-repeat center;
	height: 30px;
	margin: 3px;
	padding-top: 8px;
	text-align: center;
	text-shadow: black 0 1px 0;
	font-weight: bold;
	color: #e0e0e0;
}

.table-common {
    font-size: 11px;
    color: #e0e0e0;
    margin: 0 auto;
    border: 1px solid #404050;
}
.table {
    border-collapse: collapse;
    border-spacing: 0;
    text-align: left;
    font-size: 14px;
    width: 95%;
}
.table-common td {
    padding: 3px 2px;
    border-width: 1px;
    border-color: #404050;
    border-style: solid dashed;
}

.table-common tr:nth-child(odd) {
    background: #202030;
}

.table-common .row-odd {
    background: #202030;
}

.table-common .row-even {
    background: #151525;
}

.table-common tr {
    background: #151525;
}

.skill{
    width: 28px;
    height: 28px;
    float: left;
    margin: 1px;
    text-align: center;
}

.potion{
    width: 28px;
    height: 28px;
    float: left;
    margin: 1px;
    text-align: center;
}

.underline:hover{
    text-decoration: underline;
}

.fast_log{
    background-color: rgba(0,0,0, 0.6);
    padding: 3px 0px;
    border-radius: 5px;
}

.chat_log {
    overflow-x: hidden;
}

.chat_message_row,
.chat_message_text {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.chat_message_row {
    margin-bottom: 3px;
}

.anim_border {
    position: relative;
    z-index: 0;
    width: 44px;
    height: 44px;
    overflow: hidden;
    margin-right: 0px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.anim_border::before {
    content: '';
    position: absolute;
    z-index: -2;
    width: 200%;
    height: 200%;
    background-color: #BFE2FF;
    background-repeat: no-repeat;
    background-size: 50% 50%, 50% 50%;
    background-position: 0 0, 100% 0, 100% 100%, 0 100%;
    background-image: linear-gradient(lime, lime), linear-gradient(green, green), linear-gradient(lime, lime), linear-gradient(green, green);
    animation: anim_anim_border 3s linear infinite;
}
.anim_border::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: calc(100% - 5px);
    height: calc(100% - 5px);
    background: white;
}
@keyframes anim_anim_border {
    100% {
        transform: rotate(1turn);
    }
}
/* === Fantasy redesign: home screen, header and footer === */
html, body {
    min-height: 100%;
}

body {
    max-width: 430px;
    color: #d8d8e6;
    background:
        radial-gradient(circle at 50% 0%, rgba(72, 118, 255, 0.16), transparent 30%),
        radial-gradient(circle at 50% 22%, rgba(172, 89, 255, 0.10), transparent 38%),
        linear-gradient(180deg, #060912 0%, #07101f 18%, #0b1530 42%, #08101d 70%, #05070d 100%);
}

.page {
    padding: 3px;
    box-sizing: border-box;
}

.b,
.b_inside,
.b_foot,
.game_head_outer {
    border: 1px solid rgba(214, 173, 92, 0.28);
    background:
        linear-gradient(180deg, rgba(20, 27, 51, 0.96) 0%, rgba(9, 14, 28, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(255, 208, 112, 0.05),
        0 16px 32px rgba(0, 0, 0, 0.28);
}

.b,
.b_inside {
    border-radius: 18px;
    padding: 8px;
}

.game_head_outer,
.b_foot {
    border-radius: 18px;
}

.sticky_header {
    top: 3px;
    z-index: 90;
}

.fantasy_topbar {
    display: flex;
    align-items: stretch;
    gap: 7px;
    padding: 7px;
}

.fantasy_topbar__stats {
    flex: 1 1 auto;
    min-width: 0;
}

.fantasy_topbar__actions {
    width: 76px;
    flex: 0 0 76px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.fantasy_progress {
    margin-bottom: 4px;
}

.fantasy_progress:last-child {
    margin-bottom: 0;
}

.fantasy_progress__track {
    position: relative;
    height: 20px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(2, 5, 14, 0.96);
    border: 1px solid rgba(255, 226, 165, 0.18);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.fantasy_progress__fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    min-width: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 12px rgba(255, 255, 255, 0.16);
}

.fantasy_progress__content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 8px;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.fantasy_progress__left {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.fantasy_progress__badge {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 14px;
}

.fantasy_progress__badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fantasy_progress__label {
    color: #f8df96;
    font-size: 11px;
    letter-spacing: 0.03em;
    flex: 0 0 auto;
}

.fantasy_progress__text,
.fantasy_progress__right {
    flex: 0 0 auto;
    color: #f0cf75;
    font-weight: 700;
    padding-left: 4px;
    line-height: 1;
    font-size: 10px;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.fantasy_progress__text {
    min-width: 0;
}

.fantasy_progress__right {
    flex: 0 0 auto;
    color: #f0cf75;
    font-weight: bold;
    padding-left: 4px;
}

.fantasy_progress--exp .fantasy_progress__fill {
    background: linear-gradient(90deg, #8d5f13 0%, #e2b451 55%, #f3d280 100%);
}

.fantasy_progress--hp .fantasy_progress__label {
    color: #ff8a8e;
}

.fantasy_progress--hp .fantasy_progress__fill {
    background: linear-gradient(90deg, #8f0f1f 0%, #d62e38 48%, #ff7884 100%);
}

.fantasy_progress--mp .fantasy_progress__label {
    color: #7ed2ff;
}

.fantasy_progress--mp .fantasy_progress__fill {
    background: linear-gradient(90deg, #0e4097 0%, #1582dc 50%, #6fd2ff 100%);
}

.fantasy_icon_button {
    position: relative;
    min-height: 58px;
    border-radius: 14px;
    border: 1px solid rgba(214, 173, 92, 0.26);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(16, 22, 42, 0.95), rgba(9, 13, 25, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 16px rgba(0, 0, 0, 0.24);
}

.fantasy_icon_button img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.fantasy_icon_button.has-notify::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f04d42;
    border: 2px solid #ffe4b3;
    box-shadow: 0 0 10px rgba(240, 77, 66, 0.65);
}

@media (max-width: 380px) {
    .fantasy_topbar {
        gap: 6px;
        padding: 6px;
    }

    .fantasy_topbar__actions {
        width: 72px;
        flex-basis: 72px;
    }

    .fantasy_progress__track {
        height: 18px;
    }

    .fantasy_progress__content {
        padding: 0 7px;
        gap: 5px;
    }

    .fantasy_progress__label {
        font-size: 10px;
    }

    .fantasy_progress__text,
    .fantasy_progress__right {
        font-size: 9px;
    }

    .fantasy_icon_button {
        min-height: 54px;
    }

    .fantasy_icon_button img {
        width: 28px;
        height: 28px;
    }
}

.game_head_resources_bar {
    margin-top: 4px;
}

.resource_pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.resource_pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 4px 7px;
    border-radius: 14px;
    border: 1px solid rgba(214, 173, 92, 0.22);
    background: linear-gradient(180deg, rgba(14, 19, 36, 0.95), rgba(7, 11, 22, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 14px rgba(0,0,0,0.2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
}

.resource_pill__icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.resource_pill__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    vertical-align: middle;
}

.resource_pill__value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f7f2e8;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.resource_pill--gold .resource_pill__value { color: #f0cd67; }
.resource_pill--gem .resource_pill__value { color: #e28cff; }
.resource_pill--event .resource_pill__value { color: #8ce8ff; }

.home_screen {
    margin-top: 6px;
    padding: 9px;
    background:
        radial-gradient(circle at 50% 18%, rgba(89, 128, 255, 0.14), transparent 28%),
        radial-gradient(circle at 50% 12%, rgba(197, 136, 255, 0.09), transparent 40%),
        linear-gradient(180deg, rgba(16, 22, 45, 0.97) 0%, rgba(8, 12, 24, 0.98) 100%);
}

.home_hero {
    position: relative;
    overflow: hidden;
    padding: 16px 14px 18px;
    margin-bottom: 10px;
    border-radius: 22px;
    border: 1px solid rgba(214, 173, 92, 0.24);
    background:
        radial-gradient(circle at 50% 15%, rgba(119, 144, 255, 0.22), transparent 45%),
        radial-gradient(circle at 50% 65%, rgba(147, 76, 255, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(15, 22, 48, 0.98), rgba(8, 11, 24, 1));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 30px rgba(0,0,0,0.22);
    text-align: center;
}

.home_hero::before,
.home_hero::after {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(255, 214, 129, 0.06);
    border-radius: 18px;
    pointer-events: none;
}

.avalor-logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 60px;
    font-weight: bold;
    line-height: 0.9;
    letter-spacing: 0.03em;
    color: #f3cf72;
    text-shadow:
        0 1px 0 #fff0b3,
        0 2px 0 #c7952b,
        0 10px 25px rgba(0, 0, 0, 0.45);
}

.avalor-sublogo {
    margin-top: 6px;
    color: #b9c8ef;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.event_banner {
    margin-bottom: 10px;
    padding: 11px;
    border-radius: 18px;
    border: 1px solid rgba(113, 223, 159, 0.25);
    background: linear-gradient(180deg, rgba(22, 47, 36, 0.92), rgba(11, 23, 18, 0.97));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 14px 24px rgba(0,0,0,0.2);
    text-align: center;
}

.event_banner__head {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9df2ad;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.event_banner__title {
    margin-top: 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    color: #fff4cb;
}

.event_banner__time {
    margin-top: 6px;
    color: #d7e5d7;
}

.event_banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 9px;
    padding: 8px 14px;
    min-width: 170px;
    border-radius: 999px;
    border: 1px solid rgba(176, 232, 191, 0.34);
    background: linear-gradient(180deg, #315f48, #224031);
    color: #f4fff5;
    font-weight: bold;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 16px rgba(0,0,0,0.18);
}

.fantasy_section_title {
    position: relative;
    margin: 0 0 10px;
    text-align: center;
}

.fantasy_section_title::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 204, 117, 0.7), transparent);
}

.fantasy_section_title span {
    position: relative;
    display: inline-block;
    padding: 8px 18px;
    min-width: 160px;
    border-radius: 999px;
    border: 1px solid rgba(214, 173, 92, 0.28);
    background: linear-gradient(180deg, #0f2147, #0a1428);
    color: #f4e2a8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 20px rgba(0,0,0,0.18);
}

.home_menu_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.menu-card {
    --accent-color: #f0cb65;
    position: relative;
    min-height: 114px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 7px;
    border-radius: 18px;
    border: 1px solid rgba(214, 173, 92, 0.18);
    background:
        linear-gradient(180deg, rgba(18, 26, 52, 0.98), rgba(9, 13, 26, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 14px 22px rgba(0,0,0,0.22);
    text-align: center;
    overflow: hidden;
}

.menu-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.10), transparent 58%);
    opacity: 0.9;
    pointer-events: none;
}

.menu-card::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.85;
}

.menu-card--gold { --accent-color: #f1cf73; }
.menu-card--azure { --accent-color: #73d8ff; }
.menu-card--lime { --accent-color: #88ef9b; }
.menu-card--amber { --accent-color: #ffcc79; }
.menu-card--violet { --accent-color: #cf83ff; }
.menu-card--red { --accent-color: #ff817d; }
.menu-card--emerald { --accent-color: #74f7b1; }

.menu-card__icon {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,0.32));
}

.menu-card__label,
.menu-card__meta {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0,0,0,0.75);
}

.menu-card__label {
    color: #f4ebd2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.05;
}

.menu-card__meta {
    color: var(--accent-color);
    font-size: 12px;
}


.menu-card__label--small {
    font-size: 14px;
    line-height: 1.05;
}

.home_cta_stack {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.home_cta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 12px;
    border-radius: 18px;
    border: 1px solid rgba(214, 173, 92, 0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 28px rgba(0,0,0,0.22);
}

.home_cta--crystals {
    background: linear-gradient(180deg, rgba(91, 30, 126, 0.98), rgba(54, 17, 79, 0.98));
}

.home_cta--admin {
    background: linear-gradient(180deg, rgba(16, 53, 100, 0.98), rgba(11, 30, 61, 0.98));
}

.home_cta__icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
}

.home_cta__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home_cta__text {
    flex: 1 1 auto;
    color: #f4ebd2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
}

.home_cta__arrow {
    color: #f6e8ca;
    font-size: 26px;
    line-height: 1;
}

.b_foot {
    margin-top: 6px;
    padding: 9px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(16, 22, 43, 0.98), rgba(8, 12, 24, 0.99));
}

.fantasy_footer_shell {
    position: relative;
}

.b_foot #ajax_head_resources {
    margin-bottom: 8px;
}

.b_foot #ajax_head_resources .game_head_resources_bar {
    margin-top: 0;
}

.b_foot #ajax_head_resources .resource_pills {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 7px;
}

.b_foot #ajax_head_resources .resource_pill {
    position: relative;
    justify-content: flex-start;
    min-height: 40px;
    padding: 0 10px 0 9px;
    border-radius: 16px;
    border: 1px solid rgba(214, 173, 92, 0.24);
    background: linear-gradient(180deg, rgba(18, 26, 52, 0.98), rgba(8, 12, 24, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 18px rgba(0,0,0,0.22);
    overflow: hidden;
}

.b_foot #ajax_head_resources .resource_pill::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 999px;
    opacity: 0.95;
}

.b_foot #ajax_head_resources .resource_pill--silver::before { background: linear-gradient(180deg, #cfd9eb, #8c9ab4); }
.b_foot #ajax_head_resources .resource_pill--gold::before { background: linear-gradient(180deg, #ffe08b, #c88e2d); }
.b_foot #ajax_head_resources .resource_pill--gem::before { background: linear-gradient(180deg, #ffa1ff, #9f4af0); }
.b_foot #ajax_head_resources .resource_pill--event::before { background: linear-gradient(180deg, #86f6ff, #1aa5d8); }

.b_foot #ajax_head_resources .resource_pill__icon {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex: 0 0 18px;
    margin-left: 3px;
}

.b_foot #ajax_head_resources .resource_pill__icon img {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
}

.b_foot #ajax_head_resources .resource_pill__value {
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.01em;
}

.fantasy_bottom_nav {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    padding: 6px;
    border-radius: 20px;
    border: 1px solid rgba(214, 173, 92, 0.18);
    background: linear-gradient(180deg, rgba(10, 16, 34, 0.96), rgba(6, 10, 20, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 14px 22px rgba(0,0,0,0.18);
}

.foot_nav_item {
    position: relative;
    min-height: 72px;
    padding: 7px 3px 6px;
    border-radius: 17px;
    border: 1px solid rgba(214, 173, 92, 0.14);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    background: linear-gradient(180deg, rgba(17, 25, 50, 0.98), rgba(9, 13, 26, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 14px rgba(0,0,0,0.18);
    box-sizing: border-box;
    overflow: hidden;
}

.foot_nav_item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 18%, rgba(255,255,255,0.10), transparent 56%);
    opacity: 0.75;
    pointer-events: none;
}

.foot_nav_item::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(239, 202, 106, 0.78), transparent);
    opacity: 0.85;
}

.foot_nav_item--active {
    background: linear-gradient(180deg, rgba(19, 61, 129, 0.98), rgba(9, 33, 72, 0.98));
    border-color: rgba(112, 176, 255, 0.22);
}

.foot_nav_item--save {
    background: linear-gradient(180deg, rgba(22, 86, 114, 0.98), rgba(11, 49, 72, 0.98));
    border-color: rgba(114, 216, 255, 0.22);
}

.foot_nav_item--refresh {
    background: linear-gradient(180deg, rgba(18, 91, 48, 0.98), rgba(10, 49, 25, 0.98));
    border-color: rgba(113, 233, 135, 0.22);
}

.foot_nav_item--profile {
    background: linear-gradient(180deg, rgba(49, 31, 76, 0.98), rgba(21, 16, 37, 0.98));
    border-color: rgba(214, 173, 92, 0.22);
}

.foot_nav_item.is-disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(0.15);
}

.foot_nav_item__icon {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.foot_nav_item__icon img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    object-fit: contain;
}

.foot_nav_item__icon--avatar img {
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

.foot_nav_item__label {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    color: #f4ebd2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    line-height: 1.02;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 1px;
}

.foot_nav_item__label--accent {
    color: #89f09e;
}

@media (max-width: 380px) {
    .menu-card__label--small {
        font-size: 13px;
    }

    .avalor-logo {
        font-size: 52px;
    }

    .menu-card {
        min-height: 108px;
        padding: 8px 5px;
    }

    .menu-card__label {
        font-size: 15px;
    }

    .b_foot {
        padding: 8px;
    }

    .b_foot #ajax_head_resources .resource_pills {
        gap: 6px;
    }

    .b_foot #ajax_head_resources .resource_pill {
        min-height: 38px;
        padding: 0 8px;
    }

    .b_foot #ajax_head_resources .resource_pill__value {
        font-size: 14px;
    }

    .fantasy_bottom_nav {
        gap: 6px;
        padding: 5px;
    }

    .foot_nav_item {
        min-height: 68px;
        border-radius: 15px;
    }

    .foot_nav_item__label {
        font-size: 11px;
    }
}

/* === Hotfix: fixed dimensions if old rules/cache interfere === */
.fantasy_progress__badge,
.fantasy_progress__badge img {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
}

.resource_pill__icon,
.resource_pill__icon img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

.fantasy_icon_button img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

.menu-card__icon,
.menu-card__icon img {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
}

.home_cta__icon,
.home_cta__icon img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

.foot_nav_item__icon,
.foot_nav_item__icon img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

.foot_nav_item__icon--avatar img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}


/* === Second pass polish: footer resources + bottom dock === */
.b_foot {
    padding: 8px 8px 9px;
    border-radius: 21px;
    border-color: rgba(229, 187, 91, 0.32);
    background:
        radial-gradient(circle at 50% 0%, rgba(85, 128, 255, 0.12), transparent 45%),
        linear-gradient(180deg, rgba(14, 20, 42, 0.98), rgba(6, 10, 22, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 0 0 1px rgba(255, 223, 145, 0.04),
        0 -10px 26px rgba(0, 0, 0, 0.30);
}

.b_foot #ajax_head_resources {
    margin: 0 0 7px;
}

.b_foot #ajax_head_resources .resource_pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 6px;
}

.b_foot #ajax_head_resources .resource_pill {
    min-width: 0;
    min-height: 34px;
    padding: 0 9px 0 8px;
    gap: 5px;
    border-radius: 999px;
    border-color: rgba(240, 205, 115, 0.24);
    background:
        linear-gradient(180deg, rgba(20, 30, 58, 0.98), rgba(8, 13, 28, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(255, 226, 145, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.20);
}

.b_foot #ajax_head_resources .resource_pill::before {
    top: 9px;
    bottom: 9px;
    width: 2px;
    left: 5px;
}

.b_foot #ajax_head_resources .resource_pill__icon,
.b_foot #ajax_head_resources .resource_pill__icon img {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

.b_foot #ajax_head_resources .resource_pill__value {
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
}

.fantasy_bottom_nav {
    gap: 5px;
    padding: 5px;
    border-radius: 19px;
    border-color: rgba(240, 205, 115, 0.20);
    background:
        linear-gradient(180deg, rgba(10, 16, 35, 0.98), rgba(5, 8, 18, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        inset 0 0 0 1px rgba(255, 226, 145, 0.03);
}

.foot_nav_item {
    min-height: 66px;
    padding: 6px 2px 5px;
    gap: 3px;
    border-radius: 15px;
    border-color: rgba(229, 187, 91, 0.14);
    background:
        radial-gradient(circle at 50% 8%, rgba(255,255,255,0.09), transparent 48%),
        linear-gradient(180deg, rgba(18, 27, 54, 0.98), rgba(8, 12, 26, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        0 6px 12px rgba(0,0,0,0.18);
}

.foot_nav_item::before {
    opacity: 0.45;
}

.foot_nav_item::after {
    left: 13px;
    right: 13px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(236, 200, 101, 0.72), transparent);
}

.foot_nav_item--active {
    background:
        radial-gradient(circle at 50% 4%, rgba(119, 185, 255, 0.22), transparent 54%),
        linear-gradient(180deg, rgba(18, 63, 134, 0.98), rgba(8, 29, 68, 0.99));
    border-color: rgba(121, 183, 255, 0.28);
}

.foot_nav_item--active::after {
    background: linear-gradient(90deg, transparent, rgba(120, 203, 255, 0.95), transparent);
}

.foot_nav_item--profile {
    background:
        radial-gradient(circle at 50% 4%, rgba(222, 162, 255, 0.18), transparent 56%),
        linear-gradient(180deg, rgba(48, 31, 76, 0.98), rgba(18, 14, 35, 0.99));
}

.foot_nav_item--refresh::after {
    background: linear-gradient(90deg, transparent, rgba(115, 239, 133, 0.88), transparent);
}

.foot_nav_item__icon,
.foot_nav_item__icon img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}

.foot_nav_item__icon--avatar img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}

.foot_nav_item__label {
    font-size: 11px;
    letter-spacing: -0.01em;
}

@media (max-width: 380px) {
    .b_foot {
        padding: 7px;
    }

    .b_foot #ajax_head_resources .resource_pills {
        gap: 5px;
    }

    .b_foot #ajax_head_resources .resource_pill {
        min-height: 32px;
        padding: 0 7px;
    }

    .b_foot #ajax_head_resources .resource_pill__value {
        font-size: 14px;
    }

    .fantasy_bottom_nav {
        gap: 4px;
        padding: 4px;
    }

    .foot_nav_item {
        min-height: 62px;
        border-radius: 14px;
    }

    .foot_nav_item__icon,
    .foot_nav_item__icon img,
    .foot_nav_item__icon--avatar img {
        width: 26px !important;
        height: 26px !important;
        max-width: 26px !important;
        max-height: 26px !important;
    }

    .foot_nav_item__label {
        font-size: 10px;
    }
}

/* === Second pass polish: main menu + LORIX hero === */
.home_screen {
    padding: 8px;
    margin-top: 5px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 8%, rgba(94, 138, 255, 0.16), transparent 30%),
        radial-gradient(circle at 50% 38%, rgba(171, 89, 255, 0.07), transparent 42%),
        linear-gradient(180deg, rgba(14, 20, 42, 0.98) 0%, rgba(7, 11, 24, 0.99) 100%);
}

.home_hero {
    padding: 11px 12px 12px;
    margin-bottom: 8px;
    border-radius: 18px;
    border-color: rgba(236, 199, 107, 0.26);
    background:
        radial-gradient(circle at 50% -12%, rgba(128, 161, 255, 0.24), transparent 48%),
        linear-gradient(180deg, rgba(16, 25, 53, 0.98), rgba(8, 12, 26, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 0 0 1px rgba(255, 223, 145, 0.04),
        0 12px 22px rgba(0,0,0,0.20);
}

.home_hero::before {
    inset: 7px;
    border-radius: 14px;
    border-color: rgba(255, 224, 148, 0.07);
}

.home_hero::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 5px;
    height: 2px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(240, 203, 111, 0.75), transparent);
    pointer-events: none;
}

.avalor-logo {
    font-size: 48px;
    line-height: 0.88;
    letter-spacing: 0.07em;
    color: #f2cf73;
    text-shadow:
        0 1px 0 #fff1ba,
        0 2px 0 #b88524,
        0 8px 18px rgba(0, 0, 0, 0.44),
        0 0 20px rgba(122, 161, 255, 0.18);
}

.avalor-sublogo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 3px 12px 4px;
    border-radius: 999px;
    border: 1px solid rgba(240, 203, 111, 0.18);
    background: rgba(4, 8, 18, 0.42);
    color: #aebde4;
    font-size: 10px;
    letter-spacing: 0.18em;
    line-height: 1;
}

.event_banner {
    margin-bottom: 8px;
    padding: 9px 10px;
    border-radius: 16px;
}

.event_banner__head {
    font-size: 10px;
}

.event_banner__title {
    font-size: 17px;
}

.event_banner__time {
    margin-top: 4px;
    font-size: 12px;
}

.event_banner__button {
    margin-top: 8px;
    padding: 7px 13px;
    min-width: 160px;
}

.fantasy_section_title {
    margin-bottom: 8px;
}

.fantasy_section_title span {
    min-width: 136px;
    padding: 6px 16px;
    font-size: 15px;
    letter-spacing: 0.10em;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 8px 15px rgba(0,0,0,0.16);
}

.home_menu_grid {
    gap: 7px;
}

.menu-card {
    min-height: 96px;
    gap: 3px;
    padding: 8px 5px 7px;
    border-radius: 16px;
    border-color: rgba(229, 187, 91, 0.16);
    background:
        radial-gradient(circle at 50% 7%, rgba(255,255,255,0.07), transparent 48%),
        linear-gradient(180deg, rgba(18, 27, 54, 0.98), rgba(8, 12, 26, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        0 8px 15px rgba(0,0,0,0.18);
}

.menu-card::before {
    opacity: 0.52;
}

.menu-card::after {
    left: 12px;
    right: 12px;
    height: 2px;
    opacity: 0.82;
}

.menu-card__icon,
.menu-card__icon img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
}

.menu-card__icon img {
    filter: drop-shadow(0 7px 10px rgba(0,0,0,0.30));
}

.menu-card__label {
    font-size: 15px;
    line-height: 1.0;
    letter-spacing: -0.01em;
}

.menu-card__label--small {
    font-size: 12px;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.menu-card__meta {
    margin-top: 1px;
    font-size: 10px;
    line-height: 1;
}

.home_cta_stack {
    margin-top: 8px;
    gap: 7px;
}

.home_cta {
    min-height: 48px;
    gap: 9px;
    padding: 0 10px;
    border-radius: 16px;
    border-color: rgba(229, 187, 91, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.055),
        0 8px 15px rgba(0,0,0,0.18);
}

.home_cta__icon,
.home_cta__icon img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}

.home_cta__icon {
    flex-basis: 28px;
}

.home_cta__text {
    font-size: 16px;
}

.home_cta__arrow {
    font-size: 22px;
}

@media (max-width: 380px) {
    .home_screen {
        padding: 7px;
    }

    .home_hero {
        padding: 10px 10px 11px;
    }

    .avalor-logo {
        font-size: 42px;
    }

    .avalor-sublogo {
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    .home_menu_grid {
        gap: 6px;
    }

    .menu-card {
        min-height: 90px;
        padding: 7px 4px 6px;
        border-radius: 15px;
    }

    .menu-card__icon,
    .menu-card__icon img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    .menu-card__label {
        font-size: 14px;
    }

    .menu-card__label--small {
        font-size: 11px;
    }

    .home_cta {
        min-height: 46px;
    }
}

/* === LORIX second pass: /user/ profile page === */
.user_page {
    padding: 9px;
    background:
        radial-gradient(circle at 50% 10%, rgba(84, 130, 255, 0.11), transparent 34%),
        linear-gradient(180deg, rgba(15, 22, 45, 0.98), rgba(8, 12, 24, 0.99));
}

.user_profile_root {
    width: 100% !important;
    max-width: 386px;
    margin: 0 auto;
}

.user_page .title {
    position: relative;
    margin: 9px 0 7px;
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid rgba(214, 173, 92, 0.24);
    background: linear-gradient(180deg, rgba(18, 31, 66, 0.96), rgba(8, 15, 32, 0.98));
    color: #f4e2a8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 18px rgba(0,0,0,0.18);
}

.user_page .title::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(239, 202, 106, 0.78), transparent);
}

.user_nameplate {
    margin-top: 0 !important;
    padding: 10px 14px !important;
    font-size: 18px !important;
    color: #fff1bf !important;
    text-shadow: 0 1px 1px #000, 0 0 14px rgba(239, 202, 106, 0.22);
}

.user_status,
.user_page .event,
.user_page .event_item {
    border-radius: 16px;
    border: 1px solid rgba(214, 173, 92, 0.18);
    background: linear-gradient(180deg, rgba(17, 25, 50, 0.94), rgba(8, 12, 25, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 16px rgba(0,0,0,0.16);
    color: #d9e1f5;
}

.user_status {
    margin-bottom: 8px;
    padding: 8px 10px;
    color: #b9c8ef;
}

.user_equipment_frame {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(214, 173, 92, 0.25) !important;
    background: linear-gradient(180deg, rgba(12, 18, 37, 0.98), rgba(5, 8, 18, 0.99));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 16px 28px rgba(0,0,0,0.22);
}

.user_equipment_scene {
    min-height: 238px;
    padding: 10px 6px;
    background-size: cover !important;
    box-shadow: inset 0 -90px 110px rgba(3, 6, 15, 0.48), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.user_equipment_table {
    width: 100%;
    max-width: 350px;
    border-collapse: separate;
    border-spacing: 4px;
}

.user_equipment_col {
    width: 56px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.user_equipment_col > div {
    min-height: 48px;
    margin-bottom: 4px;
    padding: 3px !important;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(8, 14, 29, 0.78), rgba(3, 6, 14, 0.82));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 16px rgba(0,0,0,0.22);
}

.user_equipment_col img,
.user_slots_table img {
    image-rendering: auto;
}

.user_equipment_col img[src="/images/empty.png"] {
    border-radius: 11px;
    border-color: rgba(214, 173, 92, 0.20) !important;
    opacity: 0.72;
}

.user_character_cell {
    width: auto;
    padding: 0 4px !important;
    vertical-align: middle;
}

.user_character_cell font {
    display: inline-block;
    margin-bottom: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255,255,255,0.10);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: bold;
}

.user_character_cell img {
    max-width: 118px;
    max-height: 156px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,0.45));
}

.user_slots_table {
    width: 100% !important;
    max-width: 350px !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 6px 0 !important;
    margin-top: 8px;
}

.user_slot_panel {
    padding: 8px 4px !important;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

.user_slot_panel a.potion,
.user_slot_panel a.skill {
    float: none !important;
    display: inline-block !important;
    width: 42px !important;
    height: 42px !important;
    margin: 2px !important;
    box-sizing: border-box;
    vertical-align: top;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(18, 26, 52, 0.95), rgba(8, 12, 24, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 14px rgba(0,0,0,0.20);
    overflow: hidden;
}

.user_slot_panel a.potion > div,
.user_slot_panel a.skill > div {
    width: 40px !important;
    height: 40px !important;
}

.user_info_table,
.user_stats_table,
.user_page .table-common {
    width: 100%;
    overflow: hidden;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 16px;
    border: 1px solid rgba(214, 173, 92, 0.16) !important;
    background: rgba(8, 12, 24, 0.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 16px rgba(0,0,0,0.14);
}

.user_page .table-common td {
    padding: 7px 8px;
    border-color: rgba(214, 173, 92, 0.10) !important;
}

.user_page .table-common tr:nth-child(odd),
.user_page .table-common .row-odd {
    background: rgba(23, 33, 63, 0.56);
}

.user_page .table-common tr:nth-child(even),
.user_page .table-common .row-even {
    background: rgba(10, 16, 33, 0.46);
}

.user_page .table-common img {
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
}

.user_info_table td:first-child img {
    max-width: 82px;
    max-height: 112px;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,0.35));
}

.user_pet_card {
    padding: 9px;
    text-align: left;
}

.user_pet_card table {
    width: 100%;
}

.user_pet_card img {
    border-radius: 12px;
    background: rgba(0,0,0,0.22);
    box-shadow: 0 8px 14px rgba(0,0,0,0.18);
}

.user_page .btn,
.user_page .btn_small,
.user_page .btn_mini {
    border-radius: 15px;
    border: 1px solid rgba(214, 173, 92, 0.18);
    background: linear-gradient(180deg, rgba(18, 26, 52, 0.98), rgba(9, 13, 26, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 14px rgba(0,0,0,0.18);
    color: #f4ebd2;
}

.user_page .btn {
    display: block;
    margin: 5px 3px;
    padding: 9px 10px;
    text-align: left;
}

.user_page .btn img {
    max-width: 24px;
    max-height: 24px;
    margin-right: 5px;
}

.user_action_grid {
    border-collapse: separate;
    border-spacing: 5px 0;
    margin-top: 7px;
}

.user_action_grid td {
    padding: 0;
    vertical-align: top;
}

.user_page input[type~="text"],
.user_page input[type~="password"],
.user_page textarea,
.user_page select {
    width: 86%;
    max-width: 300px;
    border-radius: 14px;
    border: 1px solid rgba(214, 173, 92, 0.26);
    background: #eef3ff;
}

@media (max-width: 380px) {
    .user_page {
        padding: 8px;
    }

    .user_equipment_scene {
        min-height: 224px;
        padding: 8px 4px;
    }

    .user_equipment_table {
        border-spacing: 3px;
    }

    .user_equipment_col {
        width: 50px;
    }

    .user_equipment_col > div {
        min-height: 45px;
    }

    .user_character_cell img {
        max-width: 104px;
        max-height: 146px;
    }

    .user_page .table-common td {
        padding: 6px 5px;
        font-size: 11px;
    }

    .user_action_grid {
        border-spacing: 3px 0;
    }

    .user_page .btn {
        font-size: 12px;
        padding: 8px 8px;
    }
}

/* === LORIX pass: /inventory/ page === */
.inventory_page {
    padding: 9px;
    background:
        radial-gradient(circle at 50% 0%, rgba(82, 126, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(16, 22, 45, 0.98), rgba(8, 12, 24, 0.99));
}

.inventory_page .title {
    position: relative;
    margin: 0 0 10px;
    padding: 10px 16px;
    border-radius: 18px;
    border: 1px solid rgba(214, 173, 92, 0.24);
    background: linear-gradient(180deg, rgba(15, 31, 68, 0.98), rgba(8, 17, 36, 0.99));
    color: #f4e2a8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 20px rgba(0,0,0,0.18);
}

.inventory_page .line {
    height: 8px;
    margin: 8px 0;
    background: linear-gradient(90deg, transparent, rgba(240, 204, 117, 0.45), transparent);
    border: 0;
}

.inventory_tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 7px 0;
}

.inventory_tabs--main {
    padding: 5px;
    border-radius: 18px;
    border: 1px solid rgba(214, 173, 92, 0.16);
    background: linear-gradient(180deg, rgba(10, 16, 34, 0.75), rgba(6, 10, 20, 0.86));
}

.inventory_tabs--main .btn_small,
.inventory_tabs--main .btn_small_pressed {
    flex: 1 1 132px;
    text-align: center;
}

.inventory_tabs--types {
    justify-content: flex-start;
}

.inventory_page .btn_small,
.inventory_page .btn_small_pressed {
    min-height: 34px;
    margin: 0;
    padding: 8px 11px;
    border-radius: 14px;
    border: 1px solid rgba(214, 173, 92, 0.18);
    background: linear-gradient(180deg, rgba(18, 26, 52, 0.98), rgba(9, 13, 26, 0.98));
    color: #f4ebd2;
    font-size: 13px;
    line-height: 1.1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 14px rgba(0,0,0,0.18);
}

.inventory_page .btn_small:hover {
    border-color: rgba(126, 198, 255, 0.34);
    background: linear-gradient(180deg, rgba(21, 41, 83, 0.98), rgba(11, 24, 50, 0.98));
    color: #ffffff;
}

.inventory_page .btn_small_pressed {
    border-color: rgba(240, 204, 117, 0.38);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 218, 118, 0.22), transparent 62%),
        linear-gradient(180deg, rgba(38, 48, 86, 0.98), rgba(18, 23, 45, 0.99));
    color: #ffe7a5;
}

.inventory_page .btn_small small,
.inventory_page .btn_small_pressed small {
    font-size: 12px;
}

.inventory_list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.inventory_page .event_item {
    position: relative;
    margin: 0;
    padding: 9px;
    border-radius: 18px;
    border: 1px solid rgba(214, 173, 92, 0.18);
    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.08), transparent 32%),
        linear-gradient(180deg, rgba(17, 25, 50, 0.98), rgba(9, 13, 26, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 18px rgba(0,0,0,0.2);
    overflow: hidden;
}

.inventory_page .event_item::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(239, 202, 106, 0.55), transparent);
}

.inventory_page .event_item table {
    width: 100%;
    border-collapse: collapse;
}

.inventory_page .event_item td {
    vertical-align: top;
}

.inventory_page .event_item td:first-child {
    width: 58px;
}

.inventory_page .event_item td[style*="padding-left"] {
    padding-left: 9px !important;
}

.inventory_page .event_item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.14), rgba(0,0,0,0.32));
    box-shadow: 0 8px 14px rgba(0,0,0,0.26);
}

.inventory_page .event_item a:not(.btn_small) {
    color: #f4ebd2;
    font-weight: bold;
}

.inventory_page .event_item small {
    color: #b9c8ef;
    line-height: 1.35;
}

.inventory_page .event_item .btn_small {
    min-height: 30px;
    margin: 7px 4px 0 0;
    padding: 7px 9px;
    border-radius: 13px;
    font-size: 12px;
}

.inventory_empty {
    margin: 8px 0 2px;
    padding: 18px 12px;
    border-radius: 18px;
    border: 1px solid rgba(214, 173, 92, 0.16);
    background: linear-gradient(180deg, rgba(10, 16, 34, 0.72), rgba(6, 10, 20, 0.84));
    color: #b9c8ef;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
}

.inventory_page > .btn,
.inventory_page .btn[href^="javascript:history"] {
    display: block;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(214, 173, 92, 0.18);
    background: linear-gradient(180deg, rgba(18, 26, 52, 0.98), rgba(9, 13, 26, 0.98));
    color: #f4ebd2;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 14px rgba(0,0,0,0.18);
}

.inventory_page .btn[href^="javascript:history"] img {
    max-width: 22px;
    max-height: 22px;
    margin-right: 5px;
}

@media (max-width: 380px) {
    .inventory_page {
        padding: 8px;
    }

    .inventory_tabs {
        gap: 6px;
    }

    .inventory_page .btn_small,
    .inventory_page .btn_small_pressed {
        padding: 7px 9px;
        font-size: 12px;
    }

    .inventory_tabs--main .btn_small,
    .inventory_tabs--main .btn_small_pressed {
        flex-basis: 118px;
    }

    .inventory_page .event_item {
        padding: 8px;
    }

    .inventory_page .event_item td:first-child {
        width: 52px;
    }

    .inventory_page .event_item img {
        width: 44px;
        height: 44px;
    }
}

/* === LORIX hero banner image === */
.home_hero {
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 24px;
}

.home_hero::before,
.home_hero::after {
    display: none;
}

.home_hero__banner {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(214, 173, 92, 0.22);
    background: linear-gradient(180deg, rgba(10, 16, 34, 0.94), rgba(6, 9, 18, 0.98));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 18px 32px rgba(0,0,0,0.24);
}

.home_hero__banner img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 380px) {
    .home_hero {
        padding: 8px;
        margin-bottom: 10px;
    }

    .home_hero__banner {
        border-radius: 18px;
    }
}

/* === Dynamic header notification buttons === */
.fantasy_topbar__actions {
    width: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 6px;
}

.fantasy_icon_button {
    width: 42px;
    min-width: 42px;
    min-height: 100%;
    border-radius: 14px;
}

.fantasy_icon_button img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
}

@media (max-width: 380px) {
    .fantasy_topbar__actions {
        width: auto;
        flex-basis: auto;
        gap: 5px;
    }

    .fantasy_icon_button {
        width: 38px;
        min-width: 38px;
    }

    .fantasy_icon_button img {
        width: 27px !important;
        height: 27px !important;
        max-width: 27px !important;
        max-height: 27px !important;
    }
}

/* === Hero frame cleanup: remove outer extra frame around main banner === */
.home_screen .home_hero {
    padding: 0 !important;
    margin-bottom: 12px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.home_screen .home_hero__banner {
    border-radius: 22px;
}

@media (max-width: 380px) {
    .home_screen .home_hero {
        padding: 0 !important;
        margin-bottom: 10px;
    }
}

/* === Main menu redesign: list rows instead of 3x4 tiles === */
.home_menu_grid {
    display: none !important;
}

.home_menu_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-list-card {
    --accent-color: #f0cb65;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    /* min-height: 62px; */
    /* padding: 8px 18px 8px 14px; */
    border-radius: 18px;
    border: 1px solid rgba(214, 173, 92, 0.22);
    background:
        radial-gradient(circle at 50% 50%, rgba(50, 93, 181, 0.10), transparent 58%),
        linear-gradient(180deg, rgba(14, 22, 48, 0.98), rgba(6, 10, 22, 0.99));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 14px 22px rgba(0,0,0,0.20);
    overflow: hidden;
}

.menu-list-card::before,
.menu-list-card::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 14px;
    opacity: 0.6;
    pointer-events: none;
}

.menu-list-card::before {
    left: 7px;
    border-top: 1px solid rgba(214, 173, 92, 0.42);
    border-left: 1px solid rgba(214, 173, 92, 0.42);
    border-bottom: 1px solid rgba(214, 173, 92, 0.42);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.menu-list-card::after {
    right: 7px;
    border-top: 1px solid rgba(214, 173, 92, 0.42);
    border-right: 1px solid rgba(214, 173, 92, 0.42);
    border-bottom: 1px solid rgba(214, 173, 92, 0.42);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.menu-list-card--gold { --accent-color: #f1cf73; }
.menu-list-card--azure { --accent-color: #73d8ff; }
.menu-list-card--lime { --accent-color: #88ef9b; }
.menu-list-card--amber { --accent-color: #ffcc79; }
.menu-list-card--violet { --accent-color: #cf83ff; }
.menu-list-card--red { --accent-color: #ff817d; }
.menu-list-card--emerald { --accent-color: #74f7b1; }

.menu-list-card__icon {
    position: relative;
    z-index: 1;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-list-card__icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.35));
}

.menu-list-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.menu-list-card__titleline {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.menu-list-card__label {
    color: #f4ebd2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0,0,0,0.75);
}

.menu-list-card__label--small {
    font-size: 17px;
}

.menu-list-card__meta {
    color: var(--accent-color);
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0,0,0,0.75);
    white-space: nowrap;
}

.menu-list-card__arrow {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    color: #e5b852;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(255,255,255,0.18), 0 4px 10px rgba(0,0,0,0.35);
}

@media (max-width: 380px) {
    .home_menu_list {
        gap: 7px;
    }

    .menu-list-card {
        min-height: 58px;
        padding: 7px 15px 7px 12px;
        gap: 10px;
        border-radius: 16px;
    }

    .menu-list-card__icon,
    .menu-list-card__icon img {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .menu-list-card__label {
        font-size: 18px;
    }

    .menu-list-card__label--small {
        font-size: 16px;
    }

    .menu-list-card__arrow {
        font-size: 30px;
    }
}

/* === Footer nav safety: keep dock horizontal even on malformed/content-heavy pages === */
.b_foot .fantasy_bottom_nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: column;
    align-items: stretch;
}

.b_foot .fantasy_bottom_nav .foot_nav_item {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}


/* === Tutorial cursor layer fix === */
.training_cursor {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 0 !important;
    overflow: visible !important;
    z-index: 2147483000 !important;
}
.training_cursor img {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    max-width: none !important;
    max-height: none !important;
    position: relative !important;
    z-index: 2147483000 !important;
}
.foot_nav_item,
.inventory_page .event_item,
.user_slot_panel a.potion,
.user_slot_panel a.skill {
    overflow: visible !important;
}

