/****************************************************************************/

/* Chat refresh advanced: override finale senza overlay */
div.chat_box {
    right: 0;
    bottom: 136px;
    left: 8px;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid #1b0d05;
    border-image: none;
    background:
        radial-gradient(circle at 20% 15%, rgba(207, 169, 127, .11), transparent 32%),
        radial-gradient(circle at 82% 78%, rgba(117, 74, 43, .14), transparent 35%),
        linear-gradient(145deg, rgba(20, 19, 18, .98), rgba(9, 9, 8, .97) 58%, rgba(24, 18, 14, .98));
    box-shadow:
        inset 0 0 0 1px rgba(255, 227, 151, .22),
        inset 0 18px 42px rgba(255, 236, 199, .035),
        inset 0 -34px 70px rgba(0, 0, 0, .42),
        0 0 0 1px rgba(0, 0, 0, .42);
}

div.pagina_frame_chat div.page_body div.panels_box {
    right: 0;
    left: 8px;
    min-height: 116px;
    box-sizing: border-box;
    padding: 10px 14px 12px;
    border: 1px solid #1b0d05;
    border-image: none;
    background:
        linear-gradient(180deg, rgba(40, 32, 26, .96), rgba(18, 16, 14, .98)),
        radial-gradient(circle at 18% 12%, rgba(222, 184, 135, .10), transparent 30%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 227, 151, .24),
        inset 0 1px 0 rgba(255, 236, 199, .08),
        inset 0 -24px 52px rgba(0, 0, 0, .35),
        0 0 0 1px rgba(0, 0, 0, .42);
}

div.page_title_chat {
    height: auto;
    min-height: 16px;
    margin: 0 0 8px 0;
    padding: 0;
    background: none;
    color: #f2dcc0;
    font: 700 12px/1.25 'Lato', Arial, sans-serif;
    letter-spacing: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .75);
}

div.popups_chat {
    width: auto;
    margin: 6px 10px 0 0;
}

div.popups_chat_img {
    margin: 0 6px 0 0;
}

div.popups_chat_img img {
    width: 30px;
    height: 30px;
    padding: 2px;
    border: 1px solid rgba(222, 184, 135, .34);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(20, 18, 16, .96), rgba(8, 8, 8, .96));
    box-shadow: inset 0 1px 0 rgba(255, 236, 199, .08);
}

div.form_chat {
    width: auto;
    height: auto;
}

div.form_row {
    height: auto;
}

div.contenitore_tipo_tag {
    width: 150px;
    margin: 0 10px 0 0;
}

div.casella_chat_type {
    width: 150px;
}

span.casella_info {
    color: #c8ad87;
    font-size: 11px;
}

select#type,
select#pin,
input#tag {
    box-sizing: border-box;
    width: 104px;
    height: 30px;
    border: 1px solid rgba(222, 184, 135, .42);
    border-radius: 8px;
    background: rgba(12, 11, 10, .82);
    color: #f1dfc8;
    font-size: 12px;
}

button.chat_auto_scroll_toggle {
    height: 24px;
    margin: 0 5px;
    padding: 2px 8px;
    border: 1px solid #deb887;
    border-radius: 8px;
    background: rgba(12, 11, 10, .82);
    color: #deb887;
    font-family: 'Lato';
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
}

button.chat_auto_scroll_toggle.is_off {
    border-color: #deb887;
    color: #deb887;
}

input#tag {
    height: 30px;
}

div.casella_chat_message {
    width: calc(100% - 360px);
    min-width: 280px;
    margin: 0 10px 0 0;
}

textarea#message {
    box-sizing: border-box;
    width: 100%;
    height: 84px;
    margin: 0;
    padding: 10px 14px 22px;
    border: 1px solid rgba(222, 184, 135, .42);
    border-radius: 8px;
    background: rgba(12, 11, 10, .82);
    color: #f1dfc8;
    font-size: 14px;
    line-height: 1.45;
}

textarea#message::placeholder {
    color: rgba(214, 199, 181, .58);
}

span.chat_num {
    color: rgba(214, 199, 181, .72);
    font-size: 10px;
}

div.casella_chat {
    margin: 0;
}

input.invia_azione {
    width: 84px;
    height: 84px;
    margin: 0;
    border: 1px solid rgba(222, 184, 135, .42);
    border-radius: 8px;
    background: linear-gradient(180deg, #3b2d21, #171412);
    color: #f5dfbd;
    font-size: 11px;
    font-weight: 700;
}

input.invia_azione:hover,
input.invia_azione:focus {
    border-color: rgba(245, 223, 189, .75);
    background: linear-gradient(180deg, #4a3828, #1d1713);
}

/* Chat refresh advanced: estetica e struttura senza overlay */
div.chat_box {
    right: 0;
    bottom: 136px;
    left: 8px;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid #1b0d05;
    border-image: none;
    background:
        radial-gradient(circle at 20% 15%, rgba(207, 169, 127, .11), transparent 32%),
        radial-gradient(circle at 82% 78%, rgba(117, 74, 43, .14), transparent 35%),
        linear-gradient(145deg, rgba(20, 19, 18, .98), rgba(9, 9, 8, .97) 58%, rgba(24, 18, 14, .98));
    box-shadow:
        inset 0 0 0 1px rgba(255, 227, 151, .22),
        inset 0 18px 42px rgba(255, 236, 199, .035),
        inset 0 -34px 70px rgba(0, 0, 0, .42),
        0 0 0 1px rgba(0, 0, 0, .42);
}

div.pagina_frame_chat div.page_body div.panels_box {
    right: 0;
    left: 8px;
    min-height: 116px;
    box-sizing: border-box;
    padding: 10px 14px 12px;
    border: 1px solid #1b0d05;
    border-image: none;
    background:
        linear-gradient(180deg, rgba(40, 32, 26, .96), rgba(18, 16, 14, .98)),
        radial-gradient(circle at 18% 12%, rgba(222, 184, 135, .10), transparent 30%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 227, 151, .24),
        inset 0 1px 0 rgba(255, 236, 199, .08),
        inset 0 -24px 52px rgba(0, 0, 0, .35),
        0 0 0 1px rgba(0, 0, 0, .42);
}

div.page_title_chat {
    height: auto;
    min-height: 16px;
    margin: 0 0 8px 0;
    padding: 0;
    background: none;
    color: #f2dcc0;
    font: 700 12px/1.25 'Lato', Arial, sans-serif;
    letter-spacing: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .75);
}

div.popups_chat {
    width: auto;
    margin: 6px 10px 0 0;
}

div.popups_chat_img {
    margin: 0 6px 0 0;
}

div.popups_chat_img img {
    width: 30px;
    height: 30px;
    padding: 2px;
    border: 1px solid rgba(222, 184, 135, .34);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(20, 18, 16, .96), rgba(8, 8, 8, .96));
    box-shadow: inset 0 1px 0 rgba(255, 236, 199, .08);
}

div.form_chat {
    width: auto;
    height: auto;
}

div.form_row {
    height: auto;
}

div.contenitore_tipo_tag {
    width: 150px;
    margin: 0 10px 0 0;
}

div.casella_chat_type {
    width: 150px;
}

span.casella_info {
    color: #c8ad87;
    font-size: 11px;
}

select#type,
select#pin,
input#tag {
    box-sizing: border-box;
    width: 104px;
    height: 30px;
    border: 1px solid rgba(222, 184, 135, .42);
    border-radius: 8px;
    background: rgba(12, 11, 10, .82);
    color: #f1dfc8;
    font-size: 12px;
}

input#tag {
    height: 30px;
}

div.casella_chat_message {
    width: calc(100% - 360px);
    min-width: 280px;
    margin: 0 10px 0 0;
}

textarea#message {
    box-sizing: border-box;
    width: 100%;
    height: 84px;
    margin: 0;
    padding: 10px 14px 22px;
    border: 1px solid rgba(222, 184, 135, .42);
    border-radius: 8px;
    background: rgba(12, 11, 10, .82);
    color: #f1dfc8;
    font-size: 14px;
    line-height: 1.45;
}

textarea#message::placeholder {
    color: rgba(214, 199, 181, .58);
}

span.chat_num {
    color: rgba(214, 199, 181, .72);
    font-size: 10px;
}

div.casella_chat {
    margin: 0;
}

input.invia_azione {
    width: 84px;
    height: 84px;
    margin: 0;
    border: 1px solid rgba(222, 184, 135, .42);
    border-radius: 8px;
    background: linear-gradient(180deg, #3b2d21, #171412);
    color: #f5dfbd;
    font-size: 11px;
    font-weight: 700;
}

input.invia_azione:hover,
input.invia_azione:focus {
    border-color: rgba(245, 223, 189, .75);
    background: linear-gradient(180deg, #4a3828, #1d1713);
}
/* STILE DELLA CHAT E DEI PANNELLI */

/* HELP: Da qui è possibile modificare:
- I font ed i colori della chat
- Le dimensioni e la posizione della chat
- Lo sfondo della chat*/

iframe.iframe_chat {
    border: none;
    width: 1px;
    height: 1px;
    margin: 0px;
}

div.chat_window {
    text-align: center;
}

div.page_title_chat {
    font-family: 'Lato';
    padding: 3px 5px 5px 5px;
    background: url('imgs/chat/titolochat.png') no-repeat;
    text-align: left;
    height: 12px;
    font-size: 12px;
    text-transform: uppercase;
}

/**	* Fix per layout elastico
	* @author Blancks
*/
div.chat_box {
    position: absolute;
    top: 0;
    bottom: 170px;
    left: 10px;
    right: 10px;
    overflow: auto;
    font-size: 16px;
    text-align: left;
    border: solid 10px transparent;
    border-image: url('imgs/menu/bordinoriga.png') 10 round;
    background: url('imgs/menu/sfondocolonne.png');
    background-size: cover;
}

div.pagina_frame_chat div.page_body div.panels_box {
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 10px;
    background: url('imgs/chat/sfondopanel.png');
    background-size: cover;
    border: solid 10px transparent;
    border-image: url('imgs/menu/bordinoriga.png') 10 round;
}

div.form_chat {
    height: 120px;
    width: 80%;
    float: left;
}

div.form_chatoff {
    height: 100px;
    width: 80%;
    float: left;
}

div.popups_chat_img {
    float: right;
    margin: 5px 5px 0 0;
}

div.popups_chat_img img {
    width: 35px;
    height: 35px;
}

/** PANNELLO COMANDI CHAT **/

div.box_contenitore_form_lanci {
   width: 600px;
   height:610px;
   float: left;  
}

div.box_contenitore_form_lanci input, div.box_contenitore_form_lanci select {
   border: solid 1px #e5ce7d;
   color: #e5ce7d;
   background: black;
}

div.titolo_lancio {
    font-family: 'Lato';
    text-transform: uppercase;
    color: #e5ce7d;
    font-size: 11px;
    padding-bottom: 3px;
    float: left;
    width: 150px;
}

div.titolo_lancio_dx {
    font-family: 'Lato';
    text-transform: uppercase;
    color: #DEB887;
    font-size: 11px;
    padding-bottom: 3px;
    float: left;
    width: 150px;   
}

div.descrizione_lancio {
    clear: both;
    color: #e5ce7d;
    font-family: 'Lato';
    font-size: 10px;
}

div.casella_chat_lancio {
    float: left;
    width: 265px;
    margin: 5px 5px;
    padding: 10px;
    border: solid 1px #e5ce7d;
    box-shadow: 1px 1px #e5ce7d;
    background: #282424;
}

div.casella_chat_lancio_dx {
    float: right;
    width: 265px;
    margin: 5px 5px;
    padding: 10px 10px 20px 10px;
    border: solid 1px #e5ce7d;
    box-shadow: 1px 1px #e5ce7d;
    background: #282424;
}

div.casella_chat_lancio_dx_resistenza {
    float: right;
    width: 265px;
    height: 100px;
    margin: 5px 5px;
    padding: 60px 10px 20px 10px;
    border: solid 1px rgb(222, 184, 135, 0.5);
}

div.casella_chat_lancio_dx_resistenza input {
    float: right;
    height: 30px;
    margin-top: 15px;
    margin-bottom: 0;
}

select.selettore_dx {
    float: left;
    width: 150px;
    height: 30px;
}

div.casella_chat_lancio_dx input {
    float: right;
    height: 30px;
    margin-top: 15px;
    margin-bottom: 0;
}

div.lanci_dx_one {
    width: 150px;
    height: 50px;
    float: left;
}

div.lanci_sx_one {
    width: 150px;
    height: 50px;
    float: left;
}

div.lanci_sx_two {
    width: 150px;
    height: 50px;
    float: left;
}

select.selettore_sx {
    float: left;
    width: 150px;
    height: 30px;
}

select.pf_select {
    float: left;
    width: 150px;
    height: 30px;
}

div.casella_chat_lancio input {
    float: right;
    height: 30px;
    margin-top: 15px;
}

div.chat_msg_des {
    font-size: 13px;
    padding-top: 5px;
}

span.chat_num {
    font-size: 10px;
    text-transform: uppercase;
}

/**	* Fine fix */

/** * Avatar di chat
	* @author Blancks
*/
img.chat_avatar {
    margin: 8px;
    display: block;
    float: left;
    position: relative;
    border-radius: 100%;
    border: solid 1px rgb(222, 184, 135, 0.5);
}

/***** testo della chat *****/

/* Tipi messaggio: (A azione, P parlato, N PNG, M Master, I Immagine, S sussurro, D dado, C skill check, O uso oggetto) */

div.chat_row_O {
    margin: 5px 5px 0 5px;
}

div.chat_row_A {
    margin: 5px 5px 0 5px;
}

div.chat_row_A span.color2 {
    margin-top: 3px;
    color: #000;
    font-weight: bolder;
}

div.chat_row_P {
    min-height: 80px;
    margin: 5px 5px 0 5px;
    background: rgb(0, 0, 0, 0.6);
    border: solid 1px rgb(222, 184, 135, 0.5);
    color: #DEB887;
    padding: 10px;
    text-align: justify;
    font-family: var(--chat-action-font-family, 'Lato'), Arial, sans-serif;
}

div.chat_row_P.chat_pin_dimmed {
    min-height: 0;
    padding: 5px 8px;
    margin-top: 3px;
}

div.chat_row_P.chat_pin_dimmed span.chat_msg,
div.chat_row_P.chat_pin_dimmed span.chat_name,
div.chat_row_P.chat_pin_dimmed span.chat_name a,
div.chat_row_P.chat_pin_dimmed span.chat_time,
div.chat_row_P.chat_pin_dimmed span.chat_tag,
div.chat_row_P.chat_pin_dimmed span.chat_tag a {
    font-size: 10px !important;
}

div.chat_row_P.chat_pin_dimmed img.chat_avatar {
    width: 35px !important;
    height: 35px !important;
    margin: 4px;
}

span.chat_msg {
    color:#847565;
    font-size: 15px;
}

div.chat_row_P span.chat_msg {
    color: var(--chat-action-text-color, #847565);
    font-size: var(--chat-action-font-size, 15px);
}

div.chat_row_P span.color2 {
    margin-top: 3px;
    color: var(--chat-action-dialogue-color, #c1ae9f);
}

div.chat_row_P span.color3 {
    margin-top: 3px;
    color: var(--chat-action-tag-color, #e5ce7d);
}

div.chat_time_master {
    text-align: center;
    margin:-10px auto 0 auto;
    width:50px;
    background: rgb(0, 0, 0);
}

div.chat_row_M {
    min-height: 80px;
    margin: 15px 5px 10px 5px;
    background: rgb(0, 0, 0, 0.6);
    border: solid 1px rgb(222, 184, 135, 0.5);
    color: #DEB887;
    padding: 0 10px 10px 10px;
    text-align: justify;
    font-family: 'Lato';
}

div.chat_row_M span.color2 {
    color: #847565;
}

div.chat_master_off {

    
}

div.chat_row_N {
    min-height: 50px;
    margin: 15px 5px 10px 5px;
    background: rgb(0, 0, 0, 0.6);
    border: solid 1px #918984;
    color: #918984;
    padding: 0 10px 10px 10px;
    text-align: justify;
    font-family: 'Lato';
}

div.chat_row_N span.color2 {
    color: #847565;
}

div.chat_row_N span.color3 {
    color:#FAEBD7;
}

div.chat_name_off {
     text-align: center;
     color: #CECECE;
     padding-bottom: 5px;
}

div.chat_row_I {
    margin-top: 3px;
    text-align: center;
}

img.chat_img{
	width:500px;
}

div.chat_row_S {
    margin: 5px 5px 0 5px;
    padding: 10px;
    background: rgb(0, 0, 0, 0.6);
    border: solid 1px rgb(222, 184, 135, 0.5);
    border-radius: 10px;
}

div.chat_row_S.chat_cammino_reminder {
    border-color: #d03d3d;
    color: #d03d3d;
}

div.chat_row_S.chat_cammino_reminder span.chat_name,
div.chat_row_S.chat_cammino_reminder span.chat_msg {
    color: #d03d3d;
}

div.chat_row_D {
    margin: 5px 5px 0 5px;
    background: rgb(0, 0, 0, 0.6);
    border: solid 1px rgb(222, 184, 135, 0.5);
    color: #DEB887;
    padding: 10px;
    text-align: justify;
    line-height: 1.3;
    font-family: 'Lato';
}

div.chat_row_C {
    margin: 5px 5px 0 5px;
    background: rgb(0, 0, 0, 0.6);
    border: solid 1px rgb(222, 184, 135, 0.5);
    color: #DEB887;
    padding: 10px;
    text-align: justify;
    line-height: 1.3;
    font-family: 'Lato';
}

div.chat_row_W {
    margin: 5px 5px 0 5px;
    background: rgb(0, 0, 0, 0.6);
    border: solid 1px rgb(222, 184, 135, 0.5);
    color: #DEB887;
    padding: 10px;
    text-align: justify;
    line-height: 1.3;
    font-family: 'Lato';
}

div.chat_row_W span.color3 {
    margin-top: 3px;
    color:#FAEBD7;
}

div.chat_row_B {
    min-height: 50px;
    margin: 15px 5px 10px 5px;
    background: rgb(0, 0, 0, 0.6);
    border: solid 1px #918984;
    color: #918984;
    padding: 10px;
    text-align: justify;
    font-family: 'Lato';
}

div.chat_row_B span.color3 {
    color:#FAEBD7;
}

div.chat_name_firma {
    margin-top: 5px;
    text-transform: uppercase;
    font-size: 11px;
    color: #869ed5;
}

div.chat_row_B span.color2 {
    color:#c1ae9f;
}

span.chat_msg_win {
    color: #96b688;
}

div.chat_row_L {
    margin: 5px 5px 0 5px;
    background: rgb(0, 0, 0, 0.6);
    border: solid 1px rgb(222, 184, 135, 0.5);
    color: #DEB887;
    padding: 10px;
    text-align: justify;
    line-height: 1.3;
    font-family: 'Lato';
}

span.chat_msg_lose {
    color: #da7676;
}

span.chat_time {
    font-size: 15px;
    font-weight: bolder;
    margin-right: 3px;
}

span.chat_name {
    font-weight: bolder;
    font-size: 15px;
    color: #DEB887;
}

span.chat_name a {
    font-weight: bolder;
    font-size: 15px;
    color: #FAEBD7;
}

span.chat_name a:hover {
    font-weight: bolder;
    font-size: 15px;
    color: #DEB887;
}

span.chat_master {
}

span.chat_me {
    text-decoration: underline;
    color:  #DEB887;
}

span.chat_me_master {
    text-decoration: underline;
    color:  #c1ae9f;
}

/***PANNELLINO ***/

div.contenitore_tipo_tag {
    width: 145px;
    float: left;
    margin-top: 5px;
    text-align: left;
    margin-left: 5px;
}

div.casella_chat_type {
    float: left;
    width: 144px;
}

span.casella_info {
    font-size: 12px;
    text-transform: uppercase;
    width: 30px;
    text-align: left;
}

select#type {
    width: 95px;
    height: 28px;
    padding: 6px 10px 6px 3px;
    margin: 0 6px 5px 5px;
    font-size: 14px;
}

select#pin {
    width: 95px;
    height: 28px;
    padding: 6px 10px 6px 3px;
    margin: 1px 6px 5px 12px;
    font-size: 14px;
}

input#tag {
    width: 83px;
    height: 13px;
    margin: 1px 5px 5px 9px;
    font-size: 14px;
}

div.casella_chat_message {
    float: left;
    min-width: 45%;
    margin: 0 15px 0 0;
}

textarea#message {
    width: 99%;
    height: 81px;
    margin: 5px 5px 0 0;
    font-size: 14px;
}

textarea#messages {
    width: 99%;
    height: 60px;
    margin: 5px 5px 0 0;
    font-size: 14px;
}

textarea#online {
    width: 99%;
    height: 60px;
    margin: 5px 5px 0 0;
    font-size: 14px;
}

textarea#messagess {
    width: 99%;
    height: 60px;
    margin: 5px 5px 0 0;
    font-size: 14px;
}

textarea#aios {
    width: 99%;
    height: 60px;
    margin: 5px 5px 0 0;
    font-size: 14px;
}

input.invia_azione {
    width: 75px;
    height: 95px;
    text-transform: uppercase;
    font-size: 12px;
    white-space: normal;
    cursor: pointer;
}

div.casella_chat {
    float: left;
    margin-bottom: 6px;
    margin-left: 5px;
}

div.popups_chat {
    float: left;
    width: 35px;
    margin: 10px 0 0 10px;
}

/***** form inserimento *****/

div.form_row {
    clear: both;
    height: 20px;
}

div.casella_chat {
    float: left;
    margin-bottom: 6px;
}

/*Casella Tag*/

/*Casella Messaggio*/
input#message {
    width: 280px;
}

div.chat_row_M span.color3 {
    color: #CFB53B;
}


/*** COLORI SKIRMISH ***/

div.chat_row_WC {
  margin: 5px 5px 0 5px;
  background: rgb(0, 0, 0, 0.6);
  border: solid 1px rgb(222, 184, 135, 0.5);
  color: #d34141;
  padding: 10px;
  text-align: justify;
  line-height: 1.3;
  font-family: 'Lato';
}

div.chat_row_LC {
  margin: 5px 5px 0 5px;
  background: rgb(0, 0, 0, 0.6);
  border: solid 1px rgb(222, 184, 135, 0.5);
  color: #d34141;
  padding: 10px;
  text-align: justify;
  line-height: 1.3;
  font-family: 'Lato';
}

div.chat_row_WJ {
  margin: 5px 5px 0 5px;
  background: rgb(0, 0, 0, 0.6);
  border: solid 1px rgb(222, 184, 135, 0.5);
  color: #5894dd;
  padding: 10px;
  text-align: justify;
  line-height: 1.3;
  font-family: 'Lato'; 
}

div.chat_row_LJ {
  margin: 5px 5px 0 5px;
  background: rgb(0, 0, 0, 0.6);
  border: solid 1px rgb(222, 184, 135, 0.5);
  color: #5894dd;
  padding: 10px;
  text-align: justify;
  line-height: 1.3;
  font-family: 'Lato'; 
}

div.chat_row_WV {
  margin: 5px 5px 0 5px;
  background: rgb(0, 0, 0, 0.6);
  border: solid 1px rgb(222, 184, 135, 0.5);
  color: #cdbe58;
  padding: 10px;
  text-align: justify;
  line-height: 1.3;
  font-family: 'Lato';
}

div.chat_row_LV {
  margin: 5px 5px 0 5px;
  background: rgb(0, 0, 0, 0.6);
  border: solid 1px rgb(222, 184, 135, 0.5);
  color: #cdbe58;
  padding: 10px;
  text-align: justify;
  line-height: 1.3;
  font-family: 'Lato';
}

div.chat_row_WW {
  margin: 5px 5px 0 5px;
  background: rgb(0, 0, 0, 0.6);
  border: solid 1px rgb(222, 184, 135, 0.5);
  color: #3ed368;
  padding: 10px;
  text-align: justify;
  line-height: 1.3;
  font-family: 'Lato';
}

div.chat_row_LW {
  margin: 5px 5px 0 5px;
  background: rgb(0, 0, 0, 0.6);
  border: solid 1px rgb(222, 184, 135, 0.5);
  color: #3ed368;
  padding: 10px;
  text-align: justify;
  line-height: 1.3;
  font-family: 'Lato';
}

div.chat_row_WS {
  margin: 5px 5px 0 5px;
  background: rgb(0, 0, 0, 0.6);
  border: solid 1px rgb(222, 184, 135, 0.5);
  color: #8a6faa;
  padding: 10px;
  text-align: justify;
  line-height: 1.3;
  font-family: 'Lato';
}

div.chat_row_LS {
  margin: 5px 5px 0 5px;
  background: rgb(0, 0, 0, 0.6);
  border: solid 1px rgb(222, 184, 135, 0.5);
  color: #8a6faa;
  padding: 10px;
  text-align: justify;
  line-height: 1.3;
  font-family: 'Lato';
}

div.chat_row_WY {
  margin: 5px 5px 0 5px;
  background: rgb(0, 0, 0, 0.6);
  border: solid 1px rgb(222, 184, 135, 0.5);
  color: #d78d69;
  padding: 10px;
  text-align: justify;
  line-height: 1.3;
  font-family: 'Lato';
}

div.chat_row_LY {
  margin: 5px 5px 0 5px;
  background: rgb(0, 0, 0, 0.6);
  border: solid 1px rgb(222, 184, 135, 0.5);
  color: #d78d69;
  padding: 10px;
  text-align: justify;
  line-height: 1.3;
  font-family: 'Lato';
}


/****************************************************************************/


/* Chat refresh advanced: override reale finale senza overlay */
div.chat_box {
    right: 0;
    bottom: 136px;
    left: 8px;
    box-sizing: border-box;
    padding: 16px 18px;
    border: 1px solid #1b0d05;
    border-image: none;
    background: radial-gradient(circle at 20% 15%, rgba(207, 169, 127, .11), transparent 32%), radial-gradient(circle at 82% 78%, rgba(117, 74, 43, .14), transparent 35%), linear-gradient(145deg, rgba(20, 19, 18, .98), rgba(9, 9, 8, .97) 58%, rgba(24, 18, 14, .98));
    box-shadow: inset 0 0 0 1px rgba(255, 227, 151, .22), inset 0 18px 42px rgba(255, 236, 199, .035), inset 0 -34px 70px rgba(0, 0, 0, .42), 0 0 0 1px rgba(0, 0, 0, .42);
}

div.pagina_frame_chat div.page_body div.panels_box {
    right: 0;
    left: 8px;
    bottom: 0;
    min-height: 116px;
    box-sizing: border-box;
    padding: 10px 14px 12px;
    border: 1px solid #1b0d05;
    border-image: none;
    background: linear-gradient(180deg, rgba(40, 32, 26, .96), rgba(18, 16, 14, .98)), radial-gradient(circle at 18% 12%, rgba(222, 184, 135, .10), transparent 30%);
    box-shadow: inset 0 0 0 1px rgba(255, 227, 151, .24), inset 0 1px 0 rgba(255, 236, 199, .08), inset 0 -24px 52px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .42);
}

div.page_title_chat {
    height: auto;
    min-height: 16px;
    margin: 0 0 8px 0;
    padding: 0;
    background: none;
    color: #f2dcc0;
    font: 700 12px/1.25 'Lato', Arial, sans-serif;
    letter-spacing: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .75);
}

div.popups_chat {
    width: auto;
    margin: 6px 10px 0 0;
}

div.popups_chat_img {
    margin: 0 6px 0 0;
}

div.popups_chat_img img {
    width: 30px;
    height: 30px;
    padding: 2px;
    border: 1px solid rgba(222, 184, 135, .34);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(20, 18, 16, .96), rgba(8, 8, 8, .96));
    box-shadow: inset 0 1px 0 rgba(255, 236, 199, .08);
}

div.form_chat {
    width: auto;
    height: auto;
}

div.form_row {
    height: auto;
}

div.contenitore_tipo_tag {
    width: 150px;
    margin: 0 10px 0 0;
}

div.casella_chat_type {
    width: 150px;
}

span.casella_info {
    color: #c8ad87;
    font-size: 11px;
}

select#type,
select#pin,
input#tag {
    box-sizing: border-box;
    width: 104px;
    height: 30px;
    border: 1px solid rgba(222, 184, 135, .42);
    border-radius: 8px;
    background: rgba(12, 11, 10, .82);
    color: #f1dfc8;
    font-size: 12px;
}

input#tag {
    height: 30px;
}

div.casella_chat_message {
    width: calc(100% - 360px);
    min-width: 280px;
    margin: 0 10px 0 0;
}

textarea#message {
    box-sizing: border-box;
    width: 100%;
    height: 84px;
    margin: 0;
    padding: 10px 14px 22px;
    border: 1px solid rgba(222, 184, 135, .42);
    border-radius: 8px;
    background: rgba(12, 11, 10, .82);
    color: #f1dfc8;
    font-size: 14px;
    line-height: 1.45;
}

textarea#message::placeholder {
    color: rgba(214, 199, 181, .58);
}

span.chat_num {
    color: rgba(214, 199, 181, .72);
    font-size: 10px;
}

div.casella_chat {
    margin: 0;
}

input.invia_azione {
    width: 84px;
    height: 84px;
    margin: 0;
    border: 1px solid rgba(222, 184, 135, .42);
    border-radius: 8px;
    background: linear-gradient(180deg, #3b2d21, #171412);
    color: #f5dfbd;
    font-size: 11px;
    font-weight: 700;
}

input.invia_azione:hover,
input.invia_azione:focus {
    border-color: rgba(245, 223, 189, .75);
    background: linear-gradient(180deg, #4a3828, #1d1713);
}

/* Restyle chat 2026: vignetta, strumenti e composer in evidenza */
div.chat_box {
    bottom: 205px;
    background:
        radial-gradient(ellipse at center, rgba(32, 27, 23, .78) 0%, rgba(16, 14, 12, .98) 52%, #050505 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 227, 151, .16),
        inset 0 0 120px rgba(0, 0, 0, .96),
        inset 0 0 260px rgba(0, 0, 0, .74),
        0 0 0 1px rgba(0, 0, 0, .52);
}

div.pagina_frame_chat div.page_body div.panels_box {
    height: 200px;
    min-height: 0;
    border-color: rgba(222, 184, 135, .36);
    background:
        radial-gradient(ellipse at 58% 42%, rgba(66, 50, 38, .9) 0%, rgba(33, 27, 23, .98) 46%, rgba(8, 8, 7, .99) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 227, 151, .26),
        inset 0 0 72px rgba(0, 0, 0, .72),
        inset 0 1px 0 rgba(255, 236, 199, .11),
        0 -10px 34px rgba(0, 0, 0, .62);
    overflow: hidden;
}

div.chat_panel_header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 6px;
}

div.chat_panel_actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

div.chat_panel_header div.page_title_chat {
    margin: 0;
    min-height: 0;
    color: #f5dfbd;
    font-size: 12px;
}

div.ultimi_ingressi_chat {
    position: static;
    max-width: none;
    height: 18px;
    margin: 0 0 8px;
    overflow: hidden;
    color: rgba(236, 216, 187, .74);
    font-size: 10px;
    line-height: 18px;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

div.ultimi_ingressi_chat a {
    color: rgba(236, 216, 187, .74);
    font-size: 10px;
    font-weight: bolder;
}

a.chat_location_info_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px 0 6px;
    box-sizing: border-box;
    border: 1px solid rgba(222, 184, 135, .5);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(65, 48, 33, .98), rgba(15, 13, 11, .98));
    color: #f5dfbd;
    font: 700 11px/1 'Lato', Arial, sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 199, .12),
        0 0 18px rgba(222, 184, 135, .12);
}

a.chat_location_info_button img {
    display: block;
    width: 26px;
    height: 26px;
}

a.chat_location_info_button:hover,
a.chat_location_info_button:focus {
    border-color: rgba(245, 223, 189, .82);
    color: #fff1d4;
}

div.chat_panel_body {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

div.chat_tools_grid {
    display: grid;
    grid-template-columns: repeat(2, 36px);
    gap: 7px 8px;
    align-content: start;
}

div.chat_tools_grid div.popups_chat_img {
    width: 36px;
    height: 36px;
    margin: 0;
}

div.chat_tools_grid div.popups_chat_img img {
    width: 30px;
    height: 30px;
    padding: 2px;
}

div.form_chat form#chat_form_messages {
    display: grid;
    grid-template-columns: minmax(138px, 180px) minmax(0, 1fr) 106px;
    gap: 12px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

div.form_chat,
div.form_row,
div.contenitore_tipo_tag,
div.casella_chat_message,
div.casella_chat {
    min-width: 0;
}

div.form_chat,
div.form_row {
    width: 100%;
}

div.casella_chat_message {
    position: relative;
    width: auto;
    min-width: 0;
    margin: 0;
}

div.casella_chat {
    justify-self: end;
    width: 106px;
    margin: 0;
}

textarea#message,
textarea#messages,
textarea#online,
textarea#messagess,
textarea#aios {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 92px;
    height: 92px;
    margin: 0;
    border-color: rgba(222, 184, 135, .52);
    background: rgba(8, 8, 7, .9);
}

input.invia_azione {
    width: 106px;
    height: 92px;
    border-color: rgba(245, 223, 189, .58);
    background:
        linear-gradient(180deg, rgba(83, 60, 38, .98), rgba(28, 22, 17, .98));
    color: #fff1d4;
    font-size: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 236, 199, .16),
        0 0 20px rgba(222, 184, 135, .14);
}

a.chat_clean_link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid rgba(222, 184, 135, .38);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(31, 24, 18, .98), rgba(9, 8, 7, .98));
    color: #f0c782;
    font: 700 9px/1 'Lato', Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(0, 0, 0, .9);
    text-transform: uppercase;
}

a.chat_style_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-height: 28px;
    box-sizing: border-box;
    border: 1px solid rgba(222, 184, 135, .5);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(31, 24, 18, .98), rgba(9, 8, 7, .98));
    color: #f0c782;
    font: 700 13px/1 Georgia, 'Times New Roman', serif;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(0, 0, 0, .9);
}

a.chat_style_button:hover,
a.chat_style_button:focus {
    border-color: rgba(245, 223, 189, .72);
    color: #fff1d4;
}

div.pagina_chat_preferences {
    box-sizing: border-box;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100%;
    padding: 18px 20px;
    background:
        linear-gradient(180deg, rgba(12, 9, 7, .36), rgba(8, 7, 6, .72)),
        url('imgs/decor/board-wood.png') center center / cover;
}

div.chat_preferences_title {
    margin: 0 0 14px;
    padding: 8px 12px;
    border: 1px solid rgba(222, 184, 135, .45);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(31, 24, 18, .95), rgba(9, 8, 7, .95));
    color: #f0c782;
    font: 700 13px/1 'Lato', Arial, sans-serif;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 0, 0, .9);
}

form.chat_preferences_form {
    display: grid;
    gap: 12px;
}

div.chat_preferences_fields {
    display: grid;
    gap: 12px;
}

div.chat_preferences_fields_top {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
}

div.chat_preferences_fields_colors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

div.chat_preferences_row {
    display: grid;
    gap: 6px;
    align-items: start;
}

div.chat_preferences_row label {
    color: #f0c782;
    font: 700 10px/1.2 'Lato', Arial, sans-serif;
    text-transform: uppercase;
}

div.chat_preferences_row input,
div.chat_preferences_row select {
    box-sizing: border-box;
    width: 100%;
    height: 34px;
    min-height: 34px;
    border-color: rgba(222, 184, 135, .62);
    background-color: rgba(10, 8, 7, .82);
    color: #f5dfbd;
}

div.chat_preferences_row input[type="color"] {
    padding: 4px;
    cursor: pointer;
}

div.chat_preferences_preview {
    margin-top: 2px;
    padding: 10px 14px;
    border: 1px solid rgba(222, 184, 135, .42);
    border-radius: 8px;
    background: rgba(0, 0, 0, .68);
    line-height: 1.55;
}

div.chat_preferences_preview span {
    display: block;
}

.pagina_chat_preferences div.chat_preferences_presets {
    display: grid;
    gap: 8px;
    width: 100%;
}

.pagina_chat_preferences div.chat_preferences_section_label {
    display: block;
    color: #f0c782;
    font: 700 10px/1.2 'Lato', Arial, sans-serif;
    text-transform: uppercase;
    text-shadow: 0 0 7px rgba(0, 0, 0, .95);
}

.pagina_chat_preferences div.chat_preferences_preset_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.pagina_chat_preferences div.chat_preferences_preset {
    display: block;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(222, 184, 135, .42);
    border-radius: 7px;
    background: rgba(0, 0, 0, .5);
}

.pagina_chat_preferences div.chat_preferences_preset_title {
    display: block;
    color: #f5dfbd;
    font: 700 10px/1.2 'Lato', Arial, sans-serif;
    text-transform: uppercase;
    text-shadow: 0 0 7px rgba(0, 0, 0, .95);
}

.pagina_chat_preferences div.chat_preferences_preset_status {
    display: block;
    margin-top: 3px;
    color: #cdb28c;
    font: 700 9px/1.2 'Lato', Arial, sans-serif;
    text-transform: uppercase;
    text-shadow: 0 0 7px rgba(0, 0, 0, .95);
}

.pagina_chat_preferences div.chat_preferences_preset_actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

div.chat_preferences_submit {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    text-align: right;
}

.pagina_chat_preferences div.chat_preferences_submit button.chat_preferences_reset,
.pagina_chat_preferences div.chat_preferences_submit button.chat_preferences_save,
.pagina_chat_preferences div.chat_preferences_preset_actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-height: 34px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid rgba(222, 184, 135, .38);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(31, 24, 18, .98), rgba(9, 8, 7, .98));
    color: #f0c782;
    font: 700 10px/1 'Lato', Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(0, 0, 0, .9);
    text-transform: uppercase;
    appearance: none;
    -webkit-appearance: none;
}

.pagina_chat_preferences div.chat_preferences_submit button.chat_preferences_reset,
.pagina_chat_preferences div.chat_preferences_submit button.chat_preferences_save {
    height: 38px;
    min-height: 38px;
}

.pagina_chat_preferences div.chat_preferences_preset_actions button {
    flex: 1 1 0;
    padding: 0 8px;
    font-size: 9px;
}

.pagina_chat_preferences div.chat_preferences_submit button.chat_preferences_reset:hover,
.pagina_chat_preferences div.chat_preferences_submit button.chat_preferences_reset:focus,
.pagina_chat_preferences div.chat_preferences_submit button.chat_preferences_save:hover,
.pagina_chat_preferences div.chat_preferences_submit button.chat_preferences_save:focus,
.pagina_chat_preferences div.chat_preferences_preset_actions button:hover,
.pagina_chat_preferences div.chat_preferences_preset_actions button:focus {
    border-color: rgba(245, 223, 189, .72);
    color: #fff1d4;
}

.pagina_chat_preferences div.chat_preferences_preset_actions button:disabled {
    opacity: .45;
    cursor: default;
}

span.chat_num {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 0;
    transform: translateX(-50%);
}

a.chat_clean_link:hover,
a.chat_clean_link:focus {
    border-color: rgba(245, 223, 189, .72);
    color: #fff1d4;
}

@media (max-width: 900px) {
    div.chat_box {
        bottom: 300px;
    }

    div.pagina_frame_chat div.page_body div.panels_box {
        height: 288px;
        min-height: 0;
    }

    div.chat_panel_body {
        grid-template-columns: 1fr;
    }

    div.chat_tools_grid {
        grid-template-columns: repeat(4, 36px);
    }

    div.form_chat form#chat_form_messages {
        grid-template-columns: 1fr 106px;
    }

    div.contenitore_tipo_tag {
        grid-column: 1 / -1;
    }
}


/* Fati automatici delle Creature dell'Oltremondo: il modificatore viene
 * applicato soltanto alle righe riconosciute dal marker strutturale PvE. */
div.chat_row_M.chat_row_pve_creature {
    min-height: 80px;
    background: linear-gradient(
        135deg,
        rgba(11, 22, 23, .94),
        rgba(22, 19, 21, .94)
    );
    border: 1px solid rgba(107, 151, 151, .62);
    color: #a9bebc;
    box-shadow: inset 0 0 0 1px rgba(141, 188, 185, .07);
}

div.chat_row_M.chat_row_pve_creature .chat_time_master {
    background: #0d1617;
    color: #96b9b6;
}

div.chat_row_M.chat_row_pve_creature .chat_master {
    color: #a9bebc;
}

div.chat_row_M.chat_row_pve_creature .chat_me_master {
    color: #d2b9a2;
}

div.chat_row_M.chat_row_pve_creature img.pve_creature_avatar {
    display: block;
    float: left;
    width: 68px;
    height: 68px;
    margin: 4px 12px 6px 2px;
    border: 1px solid rgba(125, 168, 166, .72);
    border-radius: 100%;
    object-fit: cover;
}
