/****************************************************************************/
/* STILE DELLA SCHEDA DEL PERSONAGGIO */

/* HELP: Da qui è possibile modificare:
- I font ed i colori della scheda del personaggio
- Le dimensioni, l'aspetto e la posizione degli elementi della scheda
- Lo sfondo della scheda */

@font-face {
	font-family: 'Onderneming';
	src: url('fonts/Onderneming.eot');
	src: local('â˜º'), url('fonts/Onderneming.woff') format('woff'), url('fonts/Onderneming.ttf') format('truetype'), url('fonts/Onderneming.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Agressive_Winter';
	src: url('fonts/aAgressiveWinter.eot');
	src: local('â˜º'), url('fonts/aAgressiveWinter.woff') format('woff'), url('fonts/aAgressiveWinter.ttf') format('truetype'), url('fonts/aAgressiveWinter.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Biko';
	src: url('fonts/Biko.eot');
	src: local('â˜º'), url('fonts/Biko.woff') format('woff'), url('fonts/Biko.ttf') format('truetype'), url('fonts/Biko.svg') format('svg');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'Hello_Almeida';
	src: url('fonts/Hello_Almeida.ttf');
	src: local('â˜º'), url('fonts/Hello_Almeida.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}



@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Regular.eot');
    src: url('fonts/Lato-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/Lato-Regular.woff2') format('woff2'),
        url('fonts/Lato-Regular.woff') format('woff'),
        url('fonts/Lato-Regular.ttf') format('truetype'),
        url('fonts/Lato-Regular.svg#Lato-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sigmar One';
    src: url('fonts/SigmarOne-Regular.eot');
    src: url('fonts/SigmarOne-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/SigmarOne-Regular.woff2') format('woff2'),
        url('fonts/SigmarOne-Regular.woff') format('woff'),
        url('fonts/SigmarOne-Regular.ttf') format('truetype'),
        url('fonts/SigmarOne-Regular.svg#Sigmar-One') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

::-webkit-scrollbar{	height:3px;	width:5px; background-color: transparent; }
::-webkit-scrollbar-corner{	background-color: rgb(40,36,36);	}
::-webkit-scrollbar-track:vertical, ::-webkit-scrollbar-track:horizontal, ::-webkit-scrollbar-thumb:vertical, ::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-track:vertical, ::-webkit-scrollbar-track:horizontal, ::-webkit-scrollbar-thumb:vertical, ::-webkit-scrollbar-thumb:horizontal{border-style:solid;	border-color:transparent;	}
::-webkit-scrollbar-thumb:vertical{	border-width:0;	border-left-width:1px;	}
::-webkit-scrollbar-thumb:horizontal{	border-width:0;	border-top-width:1px;	}
::-webkit-scrollbar-thumb{	border-radius: 10px;	background: rgb(222, 184, 135);	-webkit-box-shadow:inset 0 0 6px rgba(170,131,66,.7);	}
::-webkit-scrollbar-thumb:hover, 
::-webkit-scrollbar-thumb:active{	background: rgb(40,36,36);	-webkit-box-shadow:inset 0 0 6px rgba(170,131,66,.9);	}
::-webkit-scrollbar-track{	border-radius: 10px;	}
::-webkit-scrollbar-track:hover, 
::-webkit-scrollbar-track:active{	-webkit-box-shadow:inset 0 0 10px rgba(0,0,0,0.7);	border: 1px solid rgba(0,0,0,0);	}

div.warning_ban {
    width: 430px;
    max-height: 300px;
    margin: 20px auto;
    padding: 10px;
    color: #282424;
    font-family: 'Lato';
    border: dashed 2px #282424;
}

div.pagina_scheda {
    margin-left: 0;
    margin-right: auto;
    background: url('imgs/scheda/scheda.png') top left no-repeat transparent;
    width: 950px;
    height:626px;
    position: relative;
}

div.pagina_scheda_png {
    margin-left: auto;
    margin-right: auto;
    background: url(imgs/scheda/scheda.png) top left no-repeat transparent;
    width: 950px;
    height: 630px;
    position: relative;
}

div.profilo_png {
	width:480px;
    height: 200px;
    overflow: auto;
    float: left;
    color: #282424;
    padding: 10px;
    font-size: 16px;
    text-align: justify;
}

div.profilo_png a, div.profilo_png a:visited {
    color: #282424;
	font-weight: bolder;
    font-size: 16px;
}

div.profilo_png a:hover {
    color: #282424;
    font-weight: normal;
    font-size: 16px;
}

div.contenitore_story_png{
  height:255px;
  position:absolute;
  bottom:0; 
  right:0;
}

div.pagina_scheda_png div.profilo_png_scheda {
    height: 510px;
    overflow: hidden;
    position: relative;
}

div.pagina_scheda_png div.png_scheda_pannello {
    width: 500px;
    height: 510px;
    overflow-x: hidden;
    overflow-y: auto;
}

div.pagina_scheda_png div.png_scheda_pannello[hidden] {
    display: none;
}

div.pagina_scheda_png div.png_scheda_descrizione_contenuto {
    box-sizing: border-box;
    clear: both;
    float: none;
    width: 500px;
    height: calc(100% - 40px);
}

button.png_scheda_toggle {
    position: absolute;
    bottom: 3px;
    right: 100px;
    z-index: 10;
    width: 262px;
    height: 42px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-family: 'Lato';
    font-size: 13px;
    text-align: center;
}

button.png_scheda_toggle:hover,
button.png_scheda_toggle:focus {
    font-weight: bold;
}

div.pagina_scheda div.pagebody {
}

div.pagina_scheda a {
    /*font-weight: normal;*/
     color: #282424;
}

div.pagina_scheda div.form_info {
    font-style: italic;
}

/*Titoli dei box*/
div.pagina_scheda div.titolo_box {
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 6px;
    color: #282424;
}

/*Box nome,ritratto,iscritto da, ultimo ingresso, scrivi a*/
div.ritratto {
	position:relative;
    margin: 32px 0 20px 25px;
    float: left;
    font-size: 12px;
    width: 387px;
    height: 540px;
    text-align: center;
}

/*Nome PG*/
div.ritratto div.ritratto_nome {
    /*margin: 5px 0 0 0;*/
    font-size: 14px;
    color: #282424;
    padding-bottom: 2px;
}

/*Immagine*/
div.ritratto_avatar {
    position:absolute;
    width: 380px;
    height: 539px;
    background:url('imgs/scheda/corniceavatar.png') top left no-repeat transparent;
    margin: 0 7px 0 7px;
    z-index:2;
}

div.posizione_foto {
	position:absolute;
    width: 350px;
    height: 500px;
    top:25px;
    left: 25px;
    z-index:1; 
}

div.ritratto_avatar img {
	position:absolute;
    max-width: 350px;
    max-height: 500px;

}
img.ritratto_avatar_immagine{
	max-width: 350px;
    max-height: 500px;
}

div.ritratto_nome {
    position: absolute;
    bottom: 13px;
    left: 71px;
    z-index: 3;
    font-family: 'Lato';
    width: 266px;
    font-weight: normal;
    text-align: center;
}

div.avviso_assenza {
    position: absolute;
    top: 240px;
    left: 0;
    width: 1050px;
    height: 30px;
    background: rgb(40,36,36,0.8);
    text-transform: uppercase;
    z-index: 999;
    text-align: center;
    padding-top: 20px;
    color: #DEB887;
    text-shadow: 2px 2px 2px bla
}

/*Link invia messaggio*/
div.ritratto div.ritratto_invia_messaggio {
    margin: 5px 0 0 0;
}

/*Box punteggi, razza, gilda, ruolo off*/
div.profilo {
    margin: 60px 30px 20px 0;
    float: right;
    font-size: 12px;
    width: 505px;
}

div.profilo_voce {
    text-align: justify;
    clear: both;
    height: 20px;
}

div.profilo_voce_note_master {
    width: 480px;
    height: 95px;
    padding: 5px;
    font-family: 'Lato';
    font-size: 12px;
    text-align: justify;
    overflow: auto;
}

/*Nome campo*/

div.titolo_scheda{
    width: 480px;
    float: left;
    padding: 5px;
    margin-top: 5px;
    text-transform: uppercase;
    text-align: center;
    border-top: dashed 1px #CFB53B;
    border-bottom: dashed 1px #CFB53B;
    background: #282424;
    color: #DEB887;
    font-family: 'Lato';
    font-size: 13px;
}

div.titolo_scheda_profilo{
    width: 460px;
    float: left;
    padding: 5px;
    margin-top: 5px;
    text-transform: uppercase;
    text-align: center;
    border-top: dashed 1px #CFB53B;
    border-bottom: dashed 1px #CFB53B;
    background: #282424;
    color: #DEB887;
    font-family: 'Lato';
    font-size: 13px;
}

div.profilo_voce_label {
    width: 40%;
    min-height: 15px;
    float: left;
    margin-left: 5px;
    color: #282424;
    font-family: 'Lato';
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: dotted 1px #282424;
    padding-top: 5px;
}

div.profilo_voce_label a {
     color: #282424;
     text-decoration: none;
     font-weight: normal;
}

div.profilo_voce_label_left {
    width: 20%;
    min-height: 15px;
    float: left;
    margin-left: 5px;
    color: #282424;
    font-family: 'Lato';
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: dotted 1px #282424;
    padding-top: 5px;
}

div.profilo_voce_valore_left {
    text-align: right;
    width: 18%;
    min-height: 15px;
    float: left;
    margin-right: 5px;
    margin-left: 10px;
    color: #282424;
    font-family: 'Lato';
    font-size: 13px;
    border-bottom: dotted 1px #282424;
    padding-top: 5px;
}

div.profilo_voce_label_right {
    width: 23%;
    min-height: 15px;
    float: right;
    margin-left: 5px;
    margin-right: 10px;
    color: #282424;
    font-family: 'Lato';
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: dotted 1px #282424;
    padding-top: 5px;
}

div.profilo_voce_valore_right {
    text-align: right;
    width: 25%;
    min-height: 15px;
    float: right;
    margin-right: 5px;
    color: #282424;
    font-family: 'Lato';
    font-size: 13px;
    border-bottom: dotted 1px #282424;
    padding-top: 5px;
}


/*Valore campo*/
div.profilo_voce_valore {
    text-align: right;
    width: 50%;
    min-height: 15px;
    float: right;
    margin-right: 5px;
    color: #282424;
    font-family: 'Lato';
    font-size: 13px;
    border-bottom: dotted 1px #282424;
    padding-top: 5px;
}

div.big_box_scheda {
    width: 880px;
    height: 510px;
    margin: 72px 0 10px 33px;
    float: left;
    overflow: auto;
    color: #282424;
}

/*Icone gilda*/
img.profilo_img_gilda {
    height: 15px;
    width: 15px;
}

/*Box status*/
div.profilo_status {
    margin: 5px 5px 5px 5px;
    clear: both;
    height: 100px;
    text-align: justify;
}

/*Casella PF nei controlli master*/
div.form_field input.healt_input {
    width: 28px;
}

/*Box storia pg, box affetti*/
div.background {
    margin: 10px 3px 5px 3px;
    clear: both;
    overflow: hidden;
    width: 510px;
}

div.background img {
    max-width: 500px;
}

div.story_box{
	width: 460px;
    float: left;
    padding: 5px;
    word-wrap: break-word;
    margin-left: 5px;
}

/*Menu' interno scheda*/
div.menu_scheda {
    position: relative;
    margin: 0 3px 5px 5px;
    float: left;
    text-align: center;
    font-size: 12px;
    width: 940px;
    height: 0;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

div.id_link {
    position: absolute;
    bottom: 535px;
    right: -73px;
    width: 100px;
    height: 33px;
    border: none;
}

div.id_link:hover {
  animation: shake 0.3s ease-in-out;
}

div.profilo_link {
    position: absolute;
    bottom: 497px;
    right: -74px;
    width: 100px;
    height: 33px;
    border: none;
}

div.profilo_link:hover {
  animation: shake 0.3s ease-in-out;
}

div.storia_link {
    position: absolute;
    bottom: 460px;
    right: -76px;
    width: 100px;
    height: 33px;
    border: none;
}

div.storia_link:hover {
  animation: shake 0.3s ease-in-out;
}

div.attributi_link {
    position: absolute;
    bottom: 412px;
    right: -72px;
    width: 100px;
    height: 33px;
    border: none;
}

div.attributi_link:hover {
  animation: shake 0.3s ease-in-out;
}

div.abilita_link {
    position: absolute;
    bottom: 375px;
    right: -74px;
    width: 100px;
    height: 33px;
    border: none;
}

div.abilita_link:hover {
  animation: shake 0.3s ease-in-out;
}

div.poteri_link {
    position: absolute;
    bottom: 338px;
    right: -75px;
    width: 100px;
    height: 33px;
    border: none;
}

div.poteri_link:hover {
  animation: shake 0.3s ease-in-out;
}

div.attivapg_link {
    position: absolute;
    bottom: 288px;
    right: -68px;
    width: 100px;
    height: 33px;
    border: none;
}

div.attivapg_link:hover {
  animation: shake 0.3s ease-in-out;
}

div.cerchie_link {
    position: absolute;
    bottom: 235px;
    right: -79px;
    width: 100px;
    height: 33px;
    border: none;
}

div.cerchie_link:hover {
  animation: shake 0.3s ease-in-out;
}

div.cammino_link {
    position: absolute;
    bottom: 198px;
    right: -79px;
    width: 100px;
    height: 33px;
    border: none;
}

div.cammino_link:hover {
  animation: shake 0.3s ease-in-out;
}

div.role_link {
    position: absolute;
    bottom: 161px;
    right: -79px;
    width: 100px;
    height: 33px;
    border: none;
}

div.role_link:hover {
  animation: shake 0.3s ease-in-out;
}
/* Una linguetta sotto Corsi/Carriera, con lo stesso passo di 37px. */
div.patrocini_link {
    position: absolute;
    bottom: 119px;
    right: -79px;
    width: 100px;
    height: 33px;
    border: none;
}

div.patrocini_link:hover {
    animation: shake 0.3s ease-in-out;
}

div.borsa_link {
    position: absolute;
    bottom: 48px;
    right: -66px;
    width: 100px;
    height: 33px;
    border: none;
}

div.borsa_link:hover {
  animation: shake 0.3s ease-in-out;
}

input.linguette {
    width: 100px;
    height: 33px;
    border: none;
    background: transparent;
}

img.linguette {
    margin-top: 5px;
    margin-left: 5px;
}

div.link_modifica{
    position: absolute;
    top: -24px;
    left: 54px;
    font-familY: 'Lato';
    background: url('imgs/scheda/sfondomodifica.png');
    width: 81px;
    height: 24px;
    padding-top: 5px;
}

div.link_roles{
    position: absolute;
    top: -24px;
    left: 178px;
    width: 81px;
    height: 24px;
    padding-top: 5px;
    background: url(imgs/scheda/sfondorole.png) top left no-repeat transparent;
    font-familY: 'Lato';
    padding-top:4px;
}

div.link_salvachat{
    position: absolute;
    top: -24px;
    left: 278px;
    width: 95px;
    height: 24px;
    background: url(imgs/scheda/sfondorole.png) top left no-repeat transparent;
    font-familY: 'Lato';
    padding-top:4px;
}

div.link_xp {
    position: absolute;
    top: -31px;
    left: 520px;
    font-familY: 'Lato';
    background: url(imgs/scheda/sfondomodifica.png) top left no-repeat transparent;
    width: 81px;
    height: 24px;
    padding-top: 2px;
}

div.link_gst {
    position: absolute;
    top: -33px;
    left: 680px;
    font-familY: 'Lato';
    background: url(imgs/scheda/sfondoadmin.png) top left no-repeat transparent;
    width: 81px;
    height: 24px;
    padding-top: 5px;
}

div.link_log {
    position: absolute;
    top: -33px;
    left: 768px;
    font-familY: 'Lato';
    background: url(imgs/scheda/sfondolog.png) top left no-repeat transparent;
    width: 81px;
    height: 24px;
    padding-top: 5px;
}

div.ritratto_invia_messaggio {
    position: absolute;
    bottom: 0px;
    right: -71px;
}

div.ritratto_invia_messaggio:hover {
  animation: shake 0.3s ease-in-out;
}

div.center_bottom_profilo{
    position: absolute;
    top: -50px;
    right: 50px;
    width: 115px;
    height: 30px;
}

button.m04 {
    width: 21px;
    height: 28px;
    background: url(imgs/scheda/playv-.png) center no-repeat transparent;
    border: none;
    margin: 0 0 0 0;
    cursor: pointer;
}

button.m03 {
    width: 21px;
    height: 28px;
    background: url(imgs/scheda/playv_.png) center no-repeat transparent;
    border: none;
    margin: 0 0 0 0;
    cursor: pointer;
}

button.m02 {
    width: 30px;
    height: 28px;
    background: url(imgs/scheda/pause.png) center no-repeat transparent;
    border: none;
    margin: 0 0 0 0;
    cursor: pointer;
}

button.m01 {
    width: 30px;
    height: 28px;
    background: url(imgs/scheda/play.png) center no-repeat transparent;
    border: none;
    margin: 0 0 0 0;
    cursor: pointer;
}

/*Box abilità*/
div.elenco_abilita {
    margin: 10px auto 5px auto;
    clear: both;
}

div.elenco_abilita table {
    margin: 2px auto 5px auto;
}

div.elenco_abilita td {
    vertical-align: top;
}

div.abilita_scheda_nome {
    width: 150px;
    font-size: 12px;
}

div.abilita_scheda_car {
    font-size: 12px;
}

div.abilita_scheda_tank {
    width: 20px;
    font-size: 12px;
}

div.abilita_scheda_sub {
    width: 35px;
    font-size: 12px;
}

div.abilita_scheda_sub a {
    text-decoration: none;
}

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

/****************************************************************************/
/* STILE DELLA PAGINA DI MODIFICA SCHEDA */

div.modifica_scheda {
    margin: 10px;
}

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

/****************************************************************************/
/* STILE DELLA PAGINA DI EQUIPAGGIAMENTO */

div.omino_bianco_box {
    margin-left: auto;
    margin-right: auto;
    width: 450px;
    height: 300px;
    text-align: center;
}

img.omino_bianco_img {
    margin-top: 40px;
    width: 300px;
    height: 226px;
}

div.omino_bianco_armdx {
    width: 49px;
    height: 36px;
    border: 1px dotted white;
    margin-top: 5px;
}

div.omino_bianco_armdx img {
    width: 48px;
    height: 35px;
}

div.omino_bianco_armsx {
    width: 49px;
    height: 36px;
    border: 1px dotted white;
    margin-top: 5px;
    margin-right: 0px;
}

div.omino_bianco_armsx img {
    width: 48px;
    height: 35px;
}

div.omino_bianco_chest {
    width: 75px;
    height: 50px;
    border: 1px dotted white;
    margin-top: 5px;
    margin-right: 0px;
}

div.omino_bianco_chest img {
    width: 74px;
    height: 49px;
}

div.omino_bianco_legs {
    width: 75px;
    height: 50px;
    border: 1px dotted white;
    margin-top: 5px;
}

div.omino_bianco_legs img {
    width: 74px;
    height: 49px;
    margin-right: 0px;
}

div.omino_bianco_feet {
    width: 63px;
    height: 46px;
    border: 1px dotted white;
    margin-top: 5px;
}

div.omino_bianco_feet img {
    width: 62px;
    height: 45px;
}

div.omino_bianco_head {
    width: 63px;
    height: 46px;
    border: 1px dotted white;
    margin-top: 5px;
}

div.omino_bianco_head img {
    width: 62px;
    height: 45px;
}

div.omino_bianco_neck {
    width: 49px;
    height: 36px;
    border: 1px dotted white;
    margin-top: 5px;
}

div.omino_bianco_neck img {
    width: 48px;
    height: 35px;
}

div.omino_bianco_ring {
    width: 30px;
    height: 20px;
    border: 1px dotted white;
    margin-top: 5px;
}

div.omino_bianco_ring img {
    width: 29px;
    height: 19px;
}

/*Inventario*/
div.pagina_scheda_equip {
}

div.pagina_scheda_oggetti {
}

div.pagina_scheda_oggetti td.casella_elemento,
div.pagina_scheda_equip td.casella_elemento {
    font-size: 12px;

    padding: 3px;
}

div.pagina_scheda_oggetti div.inventario_img img,
div.pagina_scheda_equip div.inventario_img img {
    height: 120px;
    width: 120px;
}

div.pagina_scheda_oggetti div.inventario_img,
div.pagina_scheda_equip div.inventario_img {
    width: 122px;
}

div.pagina_oggetti_equip div.inventario_nome,
div.pagina_scheda_equip div.inventario_nome {
    width: 122px;
}

div.pagina_scheda_oggetti div.inventario_quantita,
div.pagina_scheda_equip div.inventario_quantita {
    width: 122px;
}

div.pagina_scheda_oggetti div.inventario_nome,
div.pagina_scheda_equip div.inventario_nome {
    font-size: 12px;
    text-transform: uppercase;
}

div.pagina_scheda_oggetti div.form_label,
div.pagina_scheda_equip div.form_label {
    font-size: 12px;
    margin: 0;
}

div.pagina_scheda_oggetti input,
div.pagina_scheda_equip input {
    font-size: 12px;
    margin: 0;
}

div.inventario_riga_proprieta {
    width: 80px;
}

div.pagina_scheda_equip form,
div.pagina_scheda_oggetti form {
    text-align: center;
    margin: 0 0 4px 0;
}

.skill_incr.active,
.skill_decr.active {
    visibility:visible;
}
.skill_incr.inactive,
.skill_decr.inactive {
    visibility:hidden;
}



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

/** DIARIO **/

.pagina_scheda_diario{
    width: 100%;
}

.pagina_scheda_diario .fake-table{
    width: 100%;
    margin: 20px auto;
}

.pagina_scheda_diario .fake-table .footer,
.pagina_scheda_diario .fake-table .header{
    background: #23272a !important;
    border-radius: 5px 5px 0 0;
    color: #ccc !important;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.pagina_scheda_diario .fake-table.view-table .footer{
    border-radius: 0 0 5px 5px;
}

.pagina_scheda_diario .fake-table.view-table .header .td,
.pagina_scheda_diario .fake-table.view-table .footer .td{
    width: 49%;
}

.pagina_scheda_diario .fake-table .td{
    width: 120px;
    border-right: 1px solid #4d5259;
}

.pagina_scheda_diario .fake-table .td button{
    color: #ccc;
    text-decoration: none;
}

.pagina_scheda_diario .fake-table .td button:hover{
    color: #fff;
}

.pagina_scheda_diario .fake-table .tr {
    background: #7289da;
    margin: 0 auto;
    width: 650px;
    color: #23272a;
    border: solid black;
    border-width: 0 1px 1px 1px;
}

.pagina_scheda_diario .fake-table .tr:nth-child(2){
    border-top:none;
}

.pagina_scheda_diario .fake-table .td:last-child{
    border-right: none;
}

/*** MODIFICA SCHEDA ***/

div.big_box_scheda div.form_label {
    color: #282424;
}

div.colonnasx_modscheda {
    width: 420px;
    min-height: 100px;
    float: left;
    border-right: dashed 2px #282424;
    margin-left: 10px;
    margin-bottom: 10px;
}

div.colonnadx_modscheda {
    width: 420px;
    float: right;
    margin-bottom: 10px;
}

select.select_modificascheda {
    width: 75px;
}

select.select_modificascheda_assenza {
    width: 75px;
}

div.colonnacenter_modscheda {
     width: 850px;
     float: left;
     margin-bottom: 10px;
     text-align: center;
}

div.form_prestavolto {
     width: 830px;
     float: left;
     margin-bottom: 10px;
     text-align: center;
     border: dashed 2px #282424;
     padding: 10px;
}

div.prestavolto_voce_nome {
     width: 400px;
     float: left;
     margin: 10px 0 0 10px;
}

div.prestavolto_voce_cognome {
     width: 400px;
     float: right;
     margin: 10px 10px 0 0;
}

div.alertmodscheda {
     width: 603px;
     height: 450px;
     background: url('imgs/scheda/alertmodscheda.png') no-repeat;
     float: left;
     margin-left: 100px;
}

div.alertapprovascheda {
     width: 603px;
     height: 450px;
     background: url('imgs/scheda/alertapprovascheda.png') no-repeat;
     float: left;
     margin-left: 170px;
     margin-top: 100px;

}

div.box_checkassenza_modificascheda {
    width: 350px;
    float: right;
    text-align: center;
    margin-right: 80px;
}

div.form_label_modificascheda_bloccoaudio {
    text-transform: uppercase;
}

div.colonnasx_modscheda_suoni {
    width: 420px;
    min-height: 100px;
    float: left;
    border-right: dashed 2px #282424;
    margin-left: 10px;
    margin-bottom: 10px;
    text-align: center;
}

/*** ATTIVA IL PG ***/

div.pagina_attivazione {
    background: url('imgs/scheda/scheda.png') top left no-repeat transparent;
    width: 950px;
    height:640px;
    position: relative;
}

div.avanzamento_attivazione {
    width: 950px;
    height: 20px;
    float: left;
    margin: 70px auto 0 auto;
    color: #282424;
    padding: 10px 0;
    text-align: center
}

span.illuminati_step {
    text-transform: uppercase;
    color: #282424;
    background: #e5ce7d;
    padding: 10px;
    border-right: solid 1px #282424;
    border-bottom: solid 1px #282424;
    border-radius: 10px;
}

div.valori_attivazione {
    width: 450px;
    height: 440px;
    float: left;
    margin: 5px 0 0 50px;
    border: solid 1px black;
    color: #282424;
    box-shadow: 1px 1px black;
    background: url('imgs/scheda/sfondovalori.png') no-repeat;
    
}

div.contenitoretabelline {
    width: 450px;
    height: 375px;
    padding-top: 5px;
    overflow: auto;
}

div.descrizione_attivazione {
    width: 360px;
    height: 420px;
    float: right;
    margin: 5px 50px 0 0;
    border: solid 1px black;
    color: #282424;
    box-shadow: 1px 1px black;
    padding: 10px;
    text-align: justify;
    background: #e5ce7d;
    overflow: auto;
}

div.punti_attivazione {
    width: 600px;
    height: 20px;
    padding-top: 5px;
    padding-left: 10px;
    float: left;
    margin: 5px 0 0 50px;
    color: #282424;
    font-size: 14px;
    text-transform: uppercase;
}

div.form_label_attivazione {
     padding: 10px;
     font-family: 'Sigmar One';
     font-size: 18px;
}

div.form_field_attivazione {
      margin-top: 10px;
      margin-left: 15px;
}

div.form_submit_attivazione {
      margin-top: 10px;
      text-align: center;
}

div.form_submit_attivazione input {
      width: 250px;
      height: 40px;
      background: #282424;
      padding: 5px;
      border: solid 1px #282424;
      color: #282424;
      cursor: pointer;
}

select.select_attivazionedata {
    width: 100px;
    height: 30px;
    background: transparent;
    margin: 0 0 2px 0;
    border: solid 1px #e5ce7d;
    cursor: pointer;
    box-shadow: none;
    font-family: 'Lato';
    font-size: 14px;
    text-shadow: 2px 2px 2px black;
    box-shadow: 2px 2px 2px black;
    background: #282424;
    text-align: center;
}

div.allert_eta{
	margin-top: 100px;
	text-align:center;
    background:#e5ce7d;
    border-top: solid 1px #282424;
    border-bottom: solid 1px #282424;
    font-family: 'Lato';
    font-size: 18px;
    padding: 10px;
}

/* CARATTERISTICHE */

div.valori_attivazione_caratteristiche {
    width: 450px;
    height: 440px;
    float: left;
    margin: 5px 0 0 50px;
    border: solid 1px black;
    color: #282424;
    box-shadow: 1px 1px black;
    background: url(imgs/scheda/sfondocaratteristiche.png) no-repeat;
    
}

div.valori_attivazione_caratteristiche table {
    width: 400px;
    float: left;
    margin: 20px 0 0 16px;
    padding: 10px 10px 20px 10px;
    font-size: 16px;
    text-transform: uppercase;
    background: rgb(229,206,125,0.8);
    border: solid 1px #282424;
    box-shadow: 1px 1px black;
}

div.valori_attivazione_caratteristiche table a{
    color: #282424;
    font-size: 16px;
}

div.livello_arcana_left {
    font-size: 18px;
}

div.profilo_voce_label_attributi {
    padding: 10px 0;
}

div.profilo_voce_valore_attributi {
    padding: 10px 0;
}

td.celle_attributi {
    border-bottom: solid 1px #282424;
    padding-left: 10px;
}

/* VANTAGGI E SVANTAGGI */

div.valori_attivazione table {
    width: 425px;
    float: left;
    margin: 5px 0 0 5px;
    padding: 5px 5px 10px 5px;
    background: rgb(229,206,125,0.8);
    border: solid 1px #282424;
    box-shadow: 1px 1px black;
}

div.descrizione_attivazione table {
    width: 350px;
    float: left;
    margin: 5px 0 5px 5px;
    padding: 10px;
    background: rgb(229,206,125,0.8);
    border: solid 1px #282424;
    box-shadow: 1px 1px black;
}

form.opzioni_elenco_record_gestione input {
     width: 15px;
     height: 15px;
     background: transparent;
     border: none;
     
}

div.riempitivo_spunta{
    width: 15px;
    height: 15px;
    padding: 5px;
    margin-bottom: 10px;
}

div.contenitore_pulsanti_vasva {
     width: 20px;
     height: 15px;
     display: inline-block;
     float: right;
}

/* FAMIGLIA */

div.valori_attivazione select {
     width: 300px;
     height: 40px;
     margin: 0;
     color: #e5ce7d;
     border: solid 1px #e5ce7d;
     box-shadow: 1px 1px black;
     
}

/* ABILITA' E POTERI */

div.abilita_scheda_sub a {
     color: #282424;
}

div.abilita_scheda_nome a {
     color: #282424;
     text-decoration: none;
     font-weight: bold;
}

div.form_submit_attivazione input {
    width: 150px;
    height: 40px;
    float: left;
    margin: 5px 0 0 14px;
    background: #282424;
    padding: 5px;
    border: solid 1px #e5ce7d;
    color: #e5ce7d;
    cursor: pointer;
    box-shadow: 2px 2px 2px black;
}

/*** RIEPILOGO FINALE ***/

div.recap_contenitore {
   width: 850px;
   height: 450px;
   float: left;
   margin-left: 55px;
}

div.recap_attivazione {
    width: 395px;
    height: 420px;
    float: left;
    margin: 5px 0 0 5px;
    border: solid 1px black;
    color: #282424;
    background: #e5ce7d;
    padding: 10px;
    overflow: auto;
}

div.recap_attivazionedest {
    width: 380px;
    height: 420px;
    float: left;
    margin: 5px 0 0 5px;
    border: solid 1px black;
    border-radius: 10px;
    color: #282424;
    background: #e5ce7d;
    padding: 10px;
}

div.recap_attivazione table {
    width: 365px;
    float: left;
    margin-top: 5px;
    padding: 5px 5px 10px 5px;
    background: #e5ce7d;
    border: solid 1px #282424;
    box-shadow: 1px 1px black;
}

div.recap_attivazione input {
    width: 110px;
  height: 40px;
  float: left;
  margin: 5px 0 0 14px;
  background: #282424;
  padding: 5px;
  border: solid 1px #e5ce7d;
  color: #e5ce7d;
  cursor: pointer;
  box-shadow: 2px 2px 2px black;
  font-size: 11px;
}

div.recap_label {
    width: 355px;
    float: left;
    padding: 5px;
    margin-top: 5px;
    text-transform: uppercase;
    text-align: left;
    border-top: dashed 1px #CFB53B;
    border-bottom: dashed 1px #CFB53B;
    background: #282424;
    color: #DEB887;
    font-size: 13px;
}

div.recap_sx {
    float: left;
    padding: 10px 5px 5px 5px;
    margin-top: 5px;
    margin-left: 15px;
    width: 150px;
    text-transform: uppercase;
    text-align: center;
    border-top: dashed 1px #282424;
    border-bottom: dashed 1px #282424;
    color: #282424;
}

div.recap_dx {
    float: right;
    padding: 10px 5px 5px 5px;
    margin-top: 5px;
    margin-right: 40px;
    width: 150px;
    text-transform: uppercase;
    text-align: center;
    border-top: dashed 1px #282424;
    border-bottom: dashed 1px #282424;
    color: #282424;
}

/*** CAMMINO ***/

div.pagina_schedacammino {
    background: url(imgs/scheda/schedacammino.png) top left no-repeat transparent;
    width: 950px;
    height: 640px;
    position: relative;
    z-index: 1;
}

div.cammino_ascensium {
    float: left;
    width: 210px;
    height: 550px;
    margin: 70px 0 0 50px;

}

div.cammino_descendium {
    float: right;
    width: 210px;
    height: 500px;
    margin: 70px 50px 0 0;
}

@keyframes pulsazione_3x_lenta {
  0%   { transform: scale(1); }
  16%  { transform: scale(1.1); }
  33%  { transform: scale(1); }
  50%  { transform: scale(1.1); }
  66%  { transform: scale(1); }
  83%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

input.iudex {
    width: 205px;
    height: 210px;
    border: none;
    background: transparent;
    float: left;
    margin-bottom: 0;
    transition: transform 0.3s ease-in-out;
}

input.eureka {
    width: 205px;
    height: 210px;
    border: none;
    background: transparent;
    float: right;
    margin-bottom: 0;
    transition: transform 0.3s ease-in-out;
}

input.kaos {
    width: 205px;
    height: 210px;
    border: none;
    background: transparent;
    margin: 15px 0 0 0;
    padding: 0;
    transition: transform 0.3s ease-in-out;
}

input.principatus {
    width: 205px;
    height: 210px;
    border: none;
    background: transparent;
    float: right;
    margin: 15px 0 0 0;
    padding: 0;
    transition: transform 0.3s ease-in-out;
}

input.iudex:hover, input.eureka:hover, input.kaos:hover, input.principatus:hover {
    animation: pulsazione_3x_lenta 2.4s ease-in-out;
}

div.percentuale_cammino {
    float: left;
    width: 210px;
    height: 20px;
    padding-left: 10px;
    text-align: center;
    color: #282424;
    font-size: 25px;
    font-family: 'Lato';
}

div.torna_id {
    position: absolute;
    bottom: 510px;
    left: 915px;
    width: 59px;
    height: 91px;
    border: none;
}

div.messaggio_no_voto {
    width: 893px;
  height: 345px;
  background: url('imgs/scheda/bussolacancellata.png') no-repeat;
  float: left;
  margin: 58px 0 0 34px;
  color: #282424;
  text-align: center;
  padding-top: 250px;
  font-family: 'Sigmar One';
  font-size: 15px;
  padding-right: 53px;

}

div.non_puoi_votarti {
    width: 410px;
    height: 290px;
    background: url(imgs/scheda/bussolaautovoto.png) no-repeat;
    color: #282424;
    text-align: center;
    padding-top: 43px;
    font-family: 'Lato';
    font-size: 20px;
    position: absolute;
    top: 254px;
    left: 268px;
    z-index: 9999;
}

div.cammini_solstizio {
    background: url(imgs/scheda/solstizi/sfondosolstizi.png) top left no-repeat transparent;
    width: 950px;
    height: 640px;
    position: relative;
    z-index: 1;
}

div.form_p_a{
	width:300px;
    height:200px;
    margin: 0 auto 0 auto;
    padding-top:220px;
    padding-left:50px;
}

div.mess_oper{
	position: absolute;
    top: 272px;
    left:0;
	width: 950px;
    height: 20px;
    text-align:center;
    color: #DEB887;
    text-transform: uppercase;
    background: #282424;
    padding-top: 5px;
}

div.p_a_recap{
	width: 140px;
    height: 50px;
    text-align:center;
    color: #282424;
    margin: -35px auto 0 auto;
}

div.img_lancette_cammini {
    width: 396px;
    height: 232px;
    position: absolute;
    bottom: 205px;
    left: 280px;

}

/*** BONUS SOLSTIZI***/

div.vai_punti {
    position: absolute;
    bottom: 460px;
    left: 911px;
    width: 59px;
    height: 91px;
    border: none;
}

input.punti_iudex {
    width: 70px;
    float: left;
    border-radius: 20px;
    text-align: center;
    margin-left: 40px;
    margin-top: 20px;
    color: #282424;
    border: solid 2px #282424;
    background: #bcb653;
}

input.punti_eureka {
    width: 70px;
    float: right;
    border-radius: 20px;
    text-align: center;
    margin-right: 90px;
    margin-top: 20px;
    color: #282424;
    border: solid 2px #282424;
    background: #bc7653;
}

input.punti_kaos {
    width: 70px;
    float: left;
    border-radius: 20px;
    text-align: center;
    margin-left: 40px;
    margin-top: 20px;
    color: #282424;
    border: solid 2px #282424;
    background: #c86a8b;
}

input.punti_principatus {
    width: 70px;
    float: right;
    border-radius: 20px;
    text-align: center;
    margin-right: 90px;
    margin-top: 20px;
    color: #282424;
    border: solid 2px #282424;
    background: #6a6ac8;
}

input#dominio {
    width: 205px;
    border-radius: 20px;
    text-align: center;
}

input#dominio_bonus {
    width: 150px;
    border-radius: 20px;
    text-align: center;
    margin-left: 55px;
    margin-top: 5px;
    background: #e5ce7d;
    border: solid 1px #282424;
    color: #282424;
}

/*** SCHEDA ABILITA' ***/

div.contenitore_scheda_abilita {
    width: 480px;
    height: 420px;
    overflow: auto;
}

table.scheda_abilita {
    width: 450px;
    font-family: 'Lato';
    margin: 5px 0 0 10px;
    
}

tr.scheda_abilita {
    height: 30px;
    background: #e5ce7d;
}

td.celle_attributi_scheda {
    background: #e5ce7d;
    padding-left: 10px;
    font-size: 13px;
}

td.celle_attributi_scheda_nosfum {
    text-align: left;
}

div.abilita_scheda_nome, div.abilita_scheda_car, div.abilita_scheda_tank, div.abilita_scheda_sub {
    font-size: 14px;
}

div.scomparsa_descrizione{
    display:none; 
    width:420px; 
    padding: 10px; 
    text-align:justify; 
    font-size:12px; 
    border: dashed 1px #282424; 
    border-radius: 0 10px 10px 10px; 
    background: rgb(250,235,215,0.6)
}

/*** CERCHIE ***/

div.pagina_affetti {
    width: 470px;
    height: 340px;
    overflow: auto;
    float: left;
    margin: 10px 0 0 0;
}

div.titolo_conoscenze_sx {
    width: 150px;
    height: 12px;
    font-family: 'Lato';
    font-size: 12px;
    text-transform: uppercase;
    float: left;
    text-align: center;
    color: #282424;
    margin-top: 5px;
    padding: 5px;
    background: #e5ce7d;
    border: solid 1px #282424;
}

div.titolo_conoscenze_sx a{
    font-family: 'Lato';
    font-size: 12px;
    text-transform: uppercase;
    text-align:left;
    color: #282424;
    margin-top: 5px;
    
}

div.titolo_conoscenze_dx {
    width: 150px;
    height: 12px;
    font-family: 'Lato';
    font-size: 16px;
    text-transform: uppercase;
    float: right;
    text-align: center;
    color: #282424;
    margin-top: 5px;
    border: solid 1px #282424;
    padding: 5px;
    background: #e5ce7d;
}

div.titolo_conoscenze_dx a{

    font-family: 'Lato';
    font-size: 12px;
    text-transform: uppercase;
    text-align:left;
    color: #282424;
    margin-top: 5px;

}

div.titolo_conoscenze_ct {
    width: 160px;
    height: 16px;
    font-family: 'Sigmar One';
    font-size: 12px;
    text-transform: uppercase;
    float: left;
    text-align: center;
    color: #282424;
    margin-top: 5px;

}

table.tabella_indice_affetti {
    font-family: 'Lato';
    text-transform: uppercase;
    font-size: 10px;
    width: 190px;
}

div.affetto_box_form {
    width: 15px;
    margin: 0;
    display: inline-block;
}

div.affetto_box_form img{
	width: 15px;
    height: 15px;
}

td.tastini_gestione_affetti {
    width: 40px;
}

input.affetto_indice {
    width: 15px;
    height: 15px;
}

input.affetto_indice img {
    width: 15px;
    height: 15px;
}

div.link_affetto input {
    background: transparent;
    border: none;
    font-weight: bold;
    font-family: 'Lato';
    margin: 0;
}

form.lista_dicono {
    margin-bottom: 2px;
    border-bottom: dotted 1px #282424;
    width: 190px;
}

div.testo_affetto {
    width: 280px;
    height: 420px;
    float: right;
    overflow: auto;
}

div.voce_cerchia{
	width:385px;
    height:180px;
    margin:50px auto 0 auto;
    border: solid 1px #282424;
    padding:20px;
    background: #e5ce7d;
    border: solid 1px #282424;
    box-shadow: 5px 7px black;
    font-family: 'Lato';
}

div.box_avatar_affetti{
    margin-top:-60px;
    margin-left:-40px;
}

img.avatar_affetti{
	width:70px;
    height:70px;
	border-radius: 50%;
    border: solid 1px #282424;
}

div.titolo_paragrafo_affetto{
	margin-top: -61px;
  margin-left: 42px;
  font-family: 'Sigmar One';
  font-size: 19px;
}

div.titolo_paragrafo_affetto a{
	color: #282424;
    text-decoration: none;
}

div.affetto_tipo{
	float:left;
    text-align:right;
    width:400px;
    text-transform: uppercase;
    font-size: 11px;
}

div.paragrafo_affetto{
	width:390px;
    height:160px;
    text-align:justify;
    overflow:auto;
    margin-top:35px;
    padding-right: 10px;
}

div.link_affetti {
     text-align: center;
     padding-top: 40px;
     margin-bottom:10px;
}

span.tasti_aggiungi_affetti {
     font-family: 'Lato';
     padding: 5px;
     color: #282424;
     border: solid 2px #282424;
     border-radius: 20px;
     background: #e5ce7d;
     text-transform: uppercase;
     font-size: 13px;
     margin: 5px;
     box-shadow: 1px 1px #282424;
}

span.tasti_aggiungi_affetti a{
     color: #282424;
     text-decoration: none;
     
}

div.comandi_affetti {
     float: left;
     margin-bottom: -25px;
     width: 200px;
     height: 20px;
}

div.affetto_box_form input[type='image']{
	width:15px;
}

/* AGGIUNGI PG ALLE CERCHIE */

div.titolo_aggiungi_conoscenze {
    width: 480px;
    height: 15px;
    font-family: 'Lato';
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    color: #282424;
    margin-top: 5px;
    padding-top: 5px;
    float: left;
}

div.box_new_affetto {
    width: 464px;
    height: 315px;
    float: left;
    margin-left: 2px;
    margin-top: 20px;
    font-family: 'Lato';
    border: dashed 2px #282424;
    background: #DEB887;
    padding: 10px;
}

div.cerchie_left_add{
	width:220px;
    float:left;
}

div.cerchie_right_add{
	width:220px;
    float:right;
}

div.box_new_affetto select{
    width: 200px;    
    border: dotted 1px #282424;
    border-radius: 10px;
    background: #DEB887;
    color: #282424;
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 10px;

}

div.cerchie_textarea{
	height: 100px;
}

div.box_new_affetto textarea {
    width: 350px;
    height: 60px;
    float: left;
    border: dashed 1px #282424;
    border-radius: 20px;
    padding: 10px;
    background: #DEB887;
    color: #282424;
    font-family: 'Lato';
}

div.box_new_affetto input {
    font-family: 'Lato';
    padding: 10px;
    color: #282424;
    border: solid 2px #282424;
    border-radius: 20px;
    background: #DEB887;
    margin: 10px 10px;
}

div.riquadro_nuova_conoscenza {
    width: 460px;
    height: 45px;
    float: left;
    border: dashed 2px #282424;
    text-align: center;
    padding: 10px;
    background: #DEB887;
    margin-top: 5px;
}

div.form_label_conosc {
     font-family: 'Lato';
     text-transform: uppercase;
     font-size: 12px;
}

select.selettore_conosc {
    width: 250px;    
    border: dotted 1px #282424;
    border-radius: 10px;
    background: transparent;
    color: #282424;
    padding: 5px;
    margin-top: 5px;
}

div.nuova_conosc_sx {
    width: 210px;
    float: left;
    border: dashed 2px #282424;
    padding: 5px;
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
    background: #DEB887;    
}

div.nuova_conosc_dx {
    width: 210px;
    float: right;
    border: dashed 2px #282424;
    padding: 5px;
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
    background: #DEB887;
}

div.descrizione_conoscenza {
    width: 460px;
    float: left;
    border: dashed 2px #282424;
    text-align: center;
    padding: 10px;
    background: #DEB887;
    margin-top: 5px;
}

textarea.form_textarea_cerchie {
    width: 350px;
    height: 60px;
    float: left;
    border: dashed 1px #282424;
    border-radius: 20px;
    padding: 10px;
    background: #DEB887;
    color: #282424;
    font-family: 'Lato';
    margin-left: 60px;
}

input.aggiungi_affetto {
    font-family: 'Lato';
    padding: 10px;
    color: #282424;
    border: solid 2px #282424;
    border-radius: 20px;
    background: #DEB887;
    margin-top: 10px;
}

div.link_back_tornaallecerchie {
    font-family: 'Lato';
    padding: 10px;
    color: #282424;
    border: solid 2px #282424;
    border-radius: 20px;
    background: #DEB887;
    margin-top: 15px;
    margin-left: 170px;
    float: left;
}

div.link_back_tornaallecerchie a{
    color: #282424;
    text-decoration: none;
}

/* MODIFICA CONOSCENZA */

div.riquadro_nome_conoscenza {
    width: 460px;
    height: 10px;
    float: left;
    border: dashed 2px #282424;
    text-align: center;
    padding: 5px 10px 10px 10px;
    background: #DEB887;
    margin-top: 5px;
    font-family: 'Lato';
}

/* ROLE */

div.header_role{
	color: #282424; 
    text-transform: uppercase; 
    text-align: center; 
    border: solid 2px #282424; 
    margin: 10px 0; 
    padding:5px;
}

div.contenitore_roles {
    width: 850px;
    height: 500px;
    float: left;
    margin: 70px 0 0 50px;
    overflow: auto;
}

div.luogo_azione_scheda {
    color: #282424;
    text-transform: uppercase;
    text-align: center;
    border-bottom: solid 1px #282424;
    margin: 10px 0;
}

div.azione_scheda_dispari {
    background: #282424;
    color: #e5ce7d;
    padding: 10px;
    border: solid 1px #e5ce7d;
    margin-bottom: 5px;
    text-align: justify;
    font-family: 'Lato';
}

div.azione_scheda_dispari a{
    color: #e5ce7d;
}

div.azione_scheda_pari {
    background: #e5ce7d;
    color: #282424;
    padding: 10px;
    border: solid 1px #282424;
    margin-bottom: 5px;
    text-align: justify;
    font-family: 'Lato';
}

div.azione_scheda_pari a{
    color: #282424;
}


/** EXP E PUNTI ANCESTRALE **/

div.pagina_scheda_px {
    background: url(imgs/scheda/scheda.png) top left no-repeat transparent;
    width: 950px;
    height: 640px;
    position: relative;
    color: #282424;
}

div.contenitore_tabella_left{
	float:left;
    width:430px;
    height:510px;
    margin: 72px 0 10px 40px;
    overflow: auto;
}

div.contenitore_tabella_right{
	float:right;
    width:430px;
    height:510px;
    margin: 72px 40px 10px 0;
    overflow: auto;
}

div.page_title_punti{
    padding: 5px;
    margin-top: 5px;
    text-transform: uppercase;
    text-align: center;
    border-top: solid 1px #e5ce7d;
    border-bottom: solid 1px #e5ce7d;
    background: #282424;
    color: #e5ce7d;
    font-family: 'Lato';
    font-size: 13px;
    height: 15px;
    padding-top: 5px;
}

div.contenitore_tabella_left div.form_field input, div.contenitore_tabella_left div.form_submit input  {
    background: #e5ce7d;
    border: solid 1px #282424;
    color: #282424;
}

div.contenitore_tabella_right div.form_field input, div.contenitore_tabella_right div.form_submit input  {
    background: #e5ce7d;
    border: solid 1px #282424;
    color: #282424;
}

div.contenitore_tabella_right div.form_field select  {
    background: #e5ce7d;
    border: solid 1px #282424;
    color: #282424;
}

input.go_table {
    font-family: 'Lato';
    color: #282425;
    background: transparent;
    border: none;
    font-size: 16px;
}

div.link_xp_punti {
    position: absolute;
    top: 594px;
    right: 564px;
    font-familY: 'Lato';
    color: #282424;
    background: transparent;
    border: none;
    font-size: 16px;
}

div.form_label_exp {
    font-size: 13px;
    font-weight: bolder;
    margin-top: 5px;
    margin-bottom: 2px;
    text-transform: uppercase;
    color: #282424;
}

div.elementi_elenco_px {
    height: 15px;
    padding-top: 5px;
    font-size: 16px;
}

table.fine_voce_esperienza {
    width: 800px;
}

div.tab_punti_left {
     float: left;
     margin-top: -15px;
     margin-left: 20px;
}

div.tab_punti_right {
     float: right;
     margin-top: -15px;
     margin-right: 20px;
}

input.input_tab_punti {
     font-family: 'Lato';
     padding: 5px 10px 10px 10px;
     color: #282424;
     border: solid 2px #282424;
     background: #e5ce7d;
     text-transform: uppercase;

}

div.label_corso {
    font-size: 13px;
    font-weight: bolder;
    padding-top: 5px;
    margin-top: 5px;
    margin-bottom: 2px;
    text-transform: uppercase;
    font-family: 'Lato';
    float: left;
}

select.select_corso {
    width: 400px;
    border: dotted 1px #282424;
    border-radius: 10px;
    background: #DEB887;
    color: #282424;
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 10px;
}

input.invia_corso {
    width: 200px;
    height: 30px;
    border-radius: 20px;
    margin-left: 150px;
    background: #e5ce7d;
    color: #282424;
    text-transform: uppercase;
}

div.invia_corso {
    width: 250px;
    height: 20px;
    padding-top: 2px;
    border-radius: 20px;
    margin-left: 120px;
    background: #e5ce7d;
    color: #282424;
    text-align: center;
    margin-top: 10px;
    border: solid 1px #282424;
}

div.invia_corso a {
    color: #282424;
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Lato';
}

div.corso {
    padding: 3px 0 2px 0;
    text-transform: uppercase;
    font-size: 12px;
}

div.corso a {
    text-decoration: none;
    padding-left: 5px;
    color: #282424;
    text-transform: uppercase;
    font-size: 12px;
}

tr.corso1 {
    background: #ddd274;
}

tr.corso2 {
    background: #85dd74;
}

tr.corso3 {
    background: #dd7474;
}

tr.corso_scelta {
    background: #DEB887;
}

div.titolo_corso {
    text-transform: uppercase;
    margin: 5px auto;
    width: 400px;
    border-bottom: dashed 2px #282424;
    text-align: center;
}

div.corso_imgs {
    width: 20px;
    height: 20px;
    float: right;
}

input.corso_input {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

div.classi_righe_master {
    padding-left: 5px;
    text-align: left;
    color: #DEB887;

}

div.classi_righe_master a{
    color: #2d1a0b;
    font-size: 10px;
    text-transform: uppercase;
}

/*** OGGETTI ***/

table.bag_table{
     width: 840px;
     margin: 0 auto;
}

div.inventario_nome {
    text-align: center;
    text-transform: uppercase;
    font-size: 13px;
    padding-top: 5px;
    font-weight: bold;
}

div.inventario_quantita, div.inventario_img {
    text-align: center;
    text-transform: uppercase;
    font-size: 13px;
}

div.inventario_riga_descrizione {
    height: 75px;
    width: 400px;
    color: #282424;
    background: #e5ce7d;
    border: solid 1px #282424;
    padding: 10px;
    overflow: auto;
    font-size: 12px;
    text-align: justify;
    margin-top: 10px;
    margin-bottom: 5px;
    
}

div.inventario_riga_commento{
	width: 400px;
	word-wrap: break-word;
    font-size: 14px;
}

textarea.commenta {
    height: 20px;
    width: 300px;
    color: #282424;
    background: #e5ce7d;
    border: solid 1px #282424;
    float: left;
}

input.commenta{
    height: 30px;
    width: 100px;
    color: #282424;
    background: #e5ce7d;
    border: solid 1px #282424;   
    border-radius: 20px;
    float: left;
    margin-top: -1px;
    margin-left: 5px;
}

input.abbandona {
    width: 280px;
    height: 30px;
    color: #282424;
    background: #e5ce7d;
    border: solid 1px #282424;  
    border-radius: 20px;
    margin-left: 10px;
    font-size: 10px;
    margin-bottom: 10px;
}

input.cedi {
    height: 30px;
    width: 130px;
    color: #282424;
    background: #e5ce7d;
    border: solid 1px #282424;  
    border-radius: 20px;
    float: left;
    margin-top: -7px;
    margin-left: 10px;
    margin-bottom: 0;
    font-size: 10px;
}

select.cedi {
    height: 30px;
    width: 145px;
    color: #282424;
    background: #e5ce7d;
    border: solid 1px #282424; 
    border-radius: 20px;
    float: right;
    margin-top: -7px;
    margin-right: 5px;
    margin-bottom: 0;
    font-size: 10px;   
    text-transform: uppercase;
}

input.nr_cariche {
    height: 19px;
    width: 30px;
    color: #282424;
    background: #e5ce7d;
    border: solid 1px #282424;
    border-radius: 20px;
    float: left;
    margin-top: 1px;
    margin-bottom: 0;
    margin-left: 10px;
}

input.cariche {
    height: 30px;
    width: 235px;
    color: #282424;
    background: #e5ce7d;
    border: solid 1px #282424;
    border-radius: 20px;
    float: left;
    margin-top: 2px;
    margin-bottom: 0;
    font-size: 10px;
}

input.passa {
    height: 30px;
    width: 85px;
    color: #282424;
    background: #e5ce7d;
    border: solid 1px #282424;
    border-radius: 20px;
    float: left;
    margin-top: 2px;
    margin-bottom: 0;  
    font-size: 10px;
}

select.passa {
    height: 30px;
    width: 145px;
    color: #282424;
    background: #e5ce7d;
    border: solid 1px #282424;
    border-radius: 20px;
    float: right;
    margin-top: 2px;
    margin-right: 5px;
    margin-bottom: 0; 
    text-transform: uppercase;
    font-size: 10px;
}

/*** POP ***/

div.pop {
    width: 150px;
    position: absolute;
    bottom: 110px;
    right: 200px;
    color: #282424;
}

/*** FORM SIMPATIA ***/

div.box_new_simpatia{
	width: 464px;
    height: 420px;
    float: left;
    margin-left: 2px;
    margin-top: 20px;
    font-family: 'Lato';
    border: dashed 2px #282424;
    background: #DEB887;
    padding: 10px;
}

div.box_new_simpatia select {
    width: 200px;
    border: dotted 1px #282424;
    border-radius: 10px;
    background: #DEB887;
    color: #282424;
    padding: 5px;
    margin-top: 5px;
    margin-bottom: 10px;
}

div.box_new_simpatia input {
    font-family: 'Lato';
    padding: 6px;
    color: #282424;
    border: solid 2px #282424;
    border-radius: 20px;
    background: #DEB887;
    margin: 0;
}

div.simpatia_voce{
	width:474px;
    height:30px;
    margin:0;
}

div.simpatia_voce_label{
	float:left; 
    width:30px;
    margin:0;
}

div.simpatia_voce_valore{
	float:right; 
    width:430px; 
    margin: 3px;
    color: #282424; 
    text-transform: none;
    font-size: 14px;
}

/*** RIASSUNTO SCHEDA SIMPATIE PROF ***/

div.contenitore_simpa {
    width: 137px; 
    height: 190px; 
    display: inline-block;
    float: left;
    margin: 0 5px 0 10px;
}

div.contenitore_simpa img {
    width: 100px; 
    height: 100px; 
    border: solid 2px #282424; 
    border-radius: 100%;
}

div.descrizione_simpa {
    height:65px; 
    background: #e5ce7d; 
    border: solid 2px #282424; 
    box-shadow: 3px 5px black; 
    font-family: 'Lato'; 
    font-size:13px; 
    margin-top:-10px;
    padding-bottom: 15px;
}

/*LOOK*/

div.box_look{
    text-align:center;
    width: 400px; 
    height:520px; 
    margin:5px auto; 
    overflow:auto; 
    padding: 8px 10px; 
    border: solid 1px #deb887; 
    background: #282424; 
    color: #deb887;
}

div.box_look a {
    color: #deb887;
    font-weight: bolder;
} 

div.box_look img{
	width: 400px;
}

div.ritratto_look {
    position: absolute; 
    bottom: -48px; 
    right: 48px; 
    z-index: 3;
}

/*PV*/
div.ritratto_nome_pv{
	position: absolute; 
    bottom: -44px; 
    left: 21px; 
    z-index: 3; 
    font-family: 'Lato'; 
    color: #282424;
}
/* Switch sincronizzato avatar / miniavatar */
div.ritratto_forme {
    position: absolute;
    bottom: -57px;
    left: 498px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 320px;
    height: 42px;
}

div.ritratto_forme form.forma_avatar_form {
    display: block;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
}

button.forma_avatar_button {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

button.forma_avatar_button span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.1;
    text-transform: uppercase;
    box-sizing: border-box;
}

button.forma_avatar_button img {
    position: absolute;
    inset: 3px;
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.48;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

button.forma_avatar_button img[src$="/umana.png"] {
    inset: auto;
    top: 5px;
    left: 7px;
    width: 24px;
    height: 24px;
}

button.forma_avatar_button.forma_avatar_attiva {
    border: 0;
    box-shadow: none;
    transform: none;
}

button.forma_avatar_button.forma_avatar_attiva img {
    opacity: 1;
}

button.forma_avatar_button:not(.forma_avatar_attiva):not(:disabled):hover img,
button.forma_avatar_button:not(.forma_avatar_attiva):not(:disabled):focus img {
    opacity: 0.75;
    transform: scale(1.06);
}

button.forma_avatar_button:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
}

button.forma_avatar_button:disabled img {
    opacity: 0.2;
}

/** CARRIERE **/

.form_label_job {
    font-family: 'Lato';
    text-transform: uppercase;
    font-size: 14px;
    margin: 5px;
}

.textarea_lavoro {
    width: 100%;
    min-height: 250px;
    padding: 10px;
    border: 1px solid #999;
    border-radius: 4px;
    background: #deb887;
    color: black;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
}

.jobbino {
  width: 250px;
  height: 30px;
  border-radius: 20px;
  margin-left: 120px;
  background: #deb887;
  color: #1f312a;
  text-align: center;
  margin-top: 10px;
  border: solid 1px #1f312a;
  text-transform: uppercase;
  padding: 5px 0;
}
/***************************************************************************
 * Halloween 2026 — character sheet, internal frame and connected panels.
 * Keep the existing PHP actions, permissions and player-authored content.
 ***************************************************************************/
@font-face {
    font-family: 'Cinzel';
    src: url('fonts/Cinzel-Regular.woff2') format('woff2');
    font-display: swap;
}
:root {
    --hs-ink: #2f1c12;
    --hs-muted: #62432e;
    --hs-paper: #c7aa80;
    --hs-line: #8b603c;
    --hs-copper: #b9793b;
    --hs-gold: #f4ca8c;
    --hs-night: #1c1511;
    --hs-panel: linear-gradient(145deg, #34241d, #171210);
}

/* The internal frame loads scheda.css alone; other popup pages load main.css.
   This scope keeps its defaults from affecting unrelated popups. */
html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css'])) body {
    margin: 0;
    padding: 8px;
    box-sizing: border-box;
    background: transparent;
    color: var(--hs-ink);
    font: 13px/1.5 'Lato', Verdana, sans-serif;
    overflow-wrap: anywhere;
}
html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css'])) body > * { max-width: 100%; box-sizing: border-box; }

body div:is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px, .pagina_schedacammino, .cammini_solstizio) {
    display: flow-root;
    position: relative;
    width: min(1050px, 100%);
    height: auto;
    min-height: 640px;
    margin: 0 auto;
    padding: 38px 34px 40px;
    box-sizing: border-box;
    background: none;
    border: 0 solid transparent;
    border-image: url('imgs/scheda/grimorio-halloween.png') 180 180 200 200 fill / 70px 70px 80px 80px / 0 stretch;
    color: var(--hs-ink);
    font: 13px/1.5 'Lato', Verdana, sans-serif;
    isolation: isolate;
}
body div:is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px, .pagina_schedacammino, .cammini_solstizio)::before {
    content: '';
    position: absolute;
    inset: 24px;
    border-radius: 7px;
    background: linear-gradient(#38231588, transparent 45%), radial-gradient(ellipse at center, transparent 40%, #38231533);
    /* Fade the veil before it covers the skull and upper-right flourishes. */
    -webkit-mask-image: radial-gradient(ellipse 75px 85px at top right, transparent 35%, #000 100%);
    mask-image: radial-gradient(ellipse 75px 85px at top right, transparent 35%, #000 100%);
    pointer-events: none;
    z-index: -1;
}
body div:is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px, .pagina_schedacammino, .cammini_solstizio) a,
:where(html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css']))) a {
    color: #713807;
    font-family: 'Lato', Verdana, sans-serif;
    text-shadow: none;
}
body div:is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px, .pagina_schedacammino, .cammini_solstizio) a:hover,
:where(html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css']))) a:hover { color: #452105; text-decoration: underline; }
body div:is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px, .pagina_schedacammino, .cammini_solstizio) :focus-visible,
html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css'])) :focus-visible { outline: 2px solid #a04912; outline-offset: 3px; }

/* Portrait and flexible, scrollable page of the folio. */
body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) > .page_body > .page_body {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr) 106px;
    gap: 16px;
    align-items: start;
}
body div:is(.pagina_scheda, .pagina_scheda_png) div.ritratto {
    display: grid;
    grid-auto-flow: row dense;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 6px;
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    color: var(--hs-ink);
}
body div.ritratto > div { grid-column: 1 / -1; }
body div.ritratto > a { display: block; min-width: 0; text-decoration: none; }
body div.ritratto > a > :is(.link_modifica, .link_roles, .link_salvachat, .link_xp, .link_gst, .link_log) {
    position: static;
    width: auto;
    height: auto;
    min-height: 30px;
    padding: 5px 3px;
    box-sizing: border-box;
    border: 1px solid var(--hs-copper);
    border-radius: 5px;
    background: var(--hs-panel);
    color: var(--hs-gold);
    font: 11px/1.7 'Lato', Verdana, sans-serif;
    box-shadow: inset 0 1px 0 #ffdd9b20, 0 2px 4px #0004;
}
body div.ritratto > a:hover > div { border-color: #efb669; background: #38261a; }
body div.ritratto div.ritratto_avatar { display: none; }
body div.ritratto div.posizione_foto {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 18px;
    box-sizing: border-box;
    /* The photo sets the height; nine-slice corners keep skull/leaves/pumpkin
       proportional for portrait, square and landscape player images. */
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
body div.ritratto div.posizione_foto::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 0 solid transparent;
    border-image: url('imgs/scheda/corniceavatar-halloween.png') 180 180 220 180 / 48px 48px 58px 48px / 0 stretch;
    pointer-events: none;
    z-index: 2;
}
body div.ritratto img.ritratto_avatar_immagine {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border-radius: 1px;
}
body div.ritratto div.ritratto_nome {
    position: static;
    width: auto;
    min-height: 30px;
    margin: 3px 0 0;
    padding: 5px 8px;
    border: 1px solid var(--hs-copper);
    border-radius: 5px;
    background: var(--hs-panel);
    color: #ffe3b7;
    font: 18px/1.4 'Cinzel', Georgia, serif;
    overflow-wrap: anywhere;
}
body div.ritratto div.ritratto_nome_pv {
    position: static;
    grid-column: 1 / 4;
    width: auto;
    align-self: center;
    font: 11px/1.4 'Lato', Verdana, sans-serif;
    color: var(--hs-ink);
    text-align: left;
}
body div.ritratto div.ritratto_look { position: static; grid-column: 4; justify-self: end; align-self: center; }
body div.ritratto div.ritratto_look a { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--hs-copper); border-radius: 50%; background: #d9b78a; }
body div.ritratto div.ritratto_look img { width: 22px; height: 22px; object-fit: contain; }
body div.ritratto div.ritratto_forme { position: static; width: auto; height: auto; margin: 0; gap: 9px; padding-top: 4px; }
body div.ritratto button.forma_avatar_button { border: 1px solid var(--hs-copper); border-radius: 50%; background: #d9b78a; color: var(--hs-ink); box-shadow: 0 2px 4px #0004; }
body div.ritratto button.forma_avatar_button.forma_avatar_attiva { border: 2px solid #9b4b15; background: #ffe0aa; box-shadow: 0 0 0 2px #a45d243f; }
body div.ritratto button.forma_avatar_button:disabled { opacity: .5; }
body div.ritratto button.forma_avatar_button img { opacity: .7; }
body div.ritratto button.forma_avatar_button.forma_avatar_attiva img { opacity: 1; }
body div:is(.pagina_scheda, .pagina_scheda_png) div.profilo {
    float: none;
    width: auto;
    min-width: 0;
    height: 570px;
    margin: 0;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #a56b35;
    border-radius: 7px;
    background: linear-gradient(#3a251d55, transparent 160px), #cbb18a66;
    box-shadow: inset 0 0 24px #39251530, 0 3px 9px #1b100d40;
}
body div.profilo iframe.scheda { display: block; width: 100%; height: 100%; border: 0; }
body div.avviso_assenza { top: 230px; left: 34px; right: 34px; width: auto; height: auto; padding: 15px; box-sizing: border-box; background: #241711ed; color: #ffe3b7; border: 1px solid #d5914d; border-radius: 6px; font: 13px/1.5 'Lato', sans-serif; text-shadow: none; }

/* Text labels replace the old pale bitmap tabs; the original image inputs
   remain the real hit targets, retaining alt text and form submissions. */
body div.menu_scheda {
    display: flex;
    flex-direction: column;
    gap: 7px;
    float: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 11px;
}
body div.menu_scheda > form { margin: 0; padding: 0; }
body div.menu_scheda > a { display: block; text-decoration: none; }
body div.menu_scheda :is(.id_link, .profilo_link, .storia_link, .attributi_link, .abilita_link, .poteri_link, .attivapg_link, .cerchie_link, .cammino_link, .role_link, .patrocini_link, .borsa_link, .ritratto_invia_messaggio) {
    position: relative;
    inset: auto;
    width: 100%;
    height: 34px;
    margin: 0;
    border: 1px solid var(--hs-copper);
    border-radius: 5px;
    background: var(--hs-panel);
    color: #ffe0ad;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 #ffdc9824, 0 2px 4px #0004;
}
body div.menu_scheda :is(.id_link, .profilo_link, .storia_link, .attributi_link, .abilita_link, .poteri_link, .attivapg_link, .cerchie_link, .cammino_link, .role_link, .patrocini_link, .borsa_link, .ritratto_invia_messaggio):hover { animation: none; border-color: #f0b970; background: #412918; }
body div.menu_scheda :is(.id_link, .profilo_link, .storia_link, .attributi_link, .abilita_link, .poteri_link, .attivapg_link, .cerchie_link, .cammino_link, .role_link, .patrocini_link, .borsa_link, .ritratto_invia_messaggio)::before {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    font: 11px/1.25 'Cinzel', Georgia, serif;
}
body div.menu_scheda .id_link::before { content: 'ID Card'; }
body div.menu_scheda .profilo_link::before { content: 'Profilo'; }
body div.menu_scheda .storia_link::before { content: 'Storia'; }
body div.menu_scheda .attributi_link::before { content: 'Attributi'; }
body div.menu_scheda .abilita_link::before { content: 'Abilità'; }
body div.menu_scheda .poteri_link::before { content: 'Poteri'; }
body div.menu_scheda .attivapg_link::before { content: 'Attiva PG'; }
body div.menu_scheda .cerchie_link::before { content: 'Cerchie'; }
body div.menu_scheda .cammino_link::before { content: 'Cammino'; }
body div.menu_scheda .role_link::before { content: 'Corsi'; }
body div.menu_scheda .role_link:has([alt='Carriera'])::before { content: 'Carriera'; }
body div.menu_scheda .patrocini_link::before { content: 'Dossier'; }
body div.menu_scheda .borsa_link::before { content: 'Borsa'; }
body div.menu_scheda .ritratto_invia_messaggio::before { content: 'Messaggio'; }
body div.menu_scheda input.linguette,
body div.menu_scheda img.linguette,
body div.menu_scheda .ritratto_invia_messaggio img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}
body div.menu_scheda .ritratto_invia_messaggio a { display: block; height: 100%; }
/* Keep the original audio icons in one transparent row, after Messaggio. */
body div.menu_scheda div.center_bottom_profilo {
    position: static;
    order: 1;
    flex: 0 0 28px;
    width: 100%;
    height: 28px;
    min-height: 28px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
body div.center_bottom_profilo button {
    flex: 0 0 22px;
    width: 22px;
    height: 28px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background-color: transparent;
    background-size: contain;
    box-shadow: none;
    appearance: none;
}
body div.center_bottom_profilo button:hover { filter: sepia(.65) saturate(1.5); }
body div.center_bottom_profilo button:focus-visible { outline: 2px solid #824319; outline-offset: 1px; }
body div.menu_scheda .pop { position: static; width: auto; height: auto; }

/* Titles, identity fields, characteristics, master notes and authored pages. */
body div:is(.titolo_scheda, .titolo_scheda_profilo, .titolo_aggiungi_conoscenze, .titolo_conoscenze, .header_role, .page_title_punti, .titolo_corso) {
    float: none;
    clear: both;
    width: auto;
    height: auto;
    min-height: 31px;
    margin: 10px 0 7px;
    padding: 7px 36px 7px 12px;
    box-sizing: border-box;
    border: 1px solid var(--hs-copper);
    border-radius: 5px;
    background: url('imgs/halloween/skull.webp') right 9px center / 18px auto no-repeat, var(--hs-panel);
    color: #ffe3b7;
    font: 13px/1.35 'Cinzel', Georgia, serif;
    text-align: left;
    text-shadow: 0 1px 2px #000;
}
body div.profilo_voce { display: flow-root; height: auto; min-height: 28px; margin: 0; padding: 4px 0; border-bottom: 1px solid #7750304d; }
body div:is(.profilo_voce_label, .profilo_voce_label_left, .profilo_voce_label_right, .profilo_voce_valore, .profilo_voce_valore_left, .profilo_voce_valore_right) {
    min-height: 0;
    margin: 0;
    padding: 2px 0;
    border: 0;
    color: var(--hs-ink);
    font: 12px/1.5 'Lato', Verdana, sans-serif;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}
body div.profilo_voce_label { width: 43%; color: var(--hs-muted); }
body div.profilo_voce_valore { width: 55%; font-weight: bold; }
body div.profilo_voce_label_left { width: 23%; color: var(--hs-muted); }
body div.profilo_voce_valore_left { width: 24%; }
body div.profilo_voce_label_right { width: 23%; color: var(--hs-muted); }
body div.profilo_voce_valore_right { width: 24%; }
body div.profilo_voce_label a { color: #713807; font: inherit; }
body div:is(.profilo_voce_note_master, .story_box) { float: none; clear: both; width: auto !important; height: auto; max-height: none; margin: 0 0 10px; padding: 10px; box-sizing: border-box; border: 1px solid #8b603c66; border-radius: 5px; background: #ead2a43b; color: var(--hs-ink); font: 13px/1.55 'Lato', Verdana, sans-serif; text-align: left; overflow-wrap: anywhere; }
body div.background { width: auto; }
body div:is(.background, .story_box, .pagina_scheda_storia .body_box, .profilo_png) img { max-width: 100%; height: auto; }
body div.pagina_scheda_storia .body_box { max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
body div:is(.contenitore_scheda_abilita, .pagina_affetti) { float: none; width: 100%; height: auto; max-height: none; overflow: visible; margin: 0; }
body table.scheda_abilita { width: 100%; margin: 0; border-collapse: collapse; font: 12px/1.4 'Lato', sans-serif; color: var(--hs-ink); }
body table.scheda_abilita tr.scheda_abilita { height: auto; background: #eed6ad38; }
body table.scheda_abilita tr.scheda_abilita:nth-of-type(4n+1) { background: #5f34101a; }
body table.scheda_abilita td { padding: 8px 5px; border-bottom: 1px solid #80543150; vertical-align: middle; }
body td.celle_attributi_scheda { background: transparent; }
body div:is(.abilita_scheda_nome, .abilita_scheda_car, .abilita_scheda_tank, .abilita_scheda_sub) { width: auto; font-size: 12px; }
body div.abilita_scheda_sub { min-width: 36px; white-space: nowrap; }
body div.abilita_scheda_sub a { color: #6b3107; font-size: 16px; font-weight: bold; }
body .skill_incr.active, body .skill_decr.active { color: #763706; }
body .skill_incr.inactive, body .skill_decr.inactive { color: #755f4c; }

/* Skill and power lists: a closed description must not leave an empty row. */
body table.scheda_abilita:has(.abilita_scheda_tank) { line-height: 1.25; }
body table.scheda_abilita:has(.abilita_scheda_tank) td { padding: 1px 5px; }
body table.scheda_abilita:has(.abilita_scheda_tank) div:is(.abilita_scheda_nome, .abilita_scheda_car, .abilita_scheda_tank, .abilita_scheda_sub) {
    margin: 0;
    line-height: 1.25;
}
body table.scheda_abilita:has(.abilita_scheda_tank) div.abilita_scheda_sub a { line-height: 1; }
body table.scheda_abilita:has(.abilita_scheda_tank) tr:has(> td[colspan='5'] > div[id]:is([style*='display:none'], [style*='display: none'])) {
    display: none;
}

/* Only the game's collapsible help boxes, never custom profile backgrounds. */
body div.scomparsa_descrizione,
body table.scheda_abilita:has(.abilita_scheda_tank) td[colspan='5'] > div[id],
html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css'])) div[id][style*='background: rgb(250,235,215'],
body div.pagina_attivazione div[id][style*='background: rgb(250,235,215'] {
    width: auto !important;
    max-width: 100%;
    padding: 10px !important;
    box-sizing: border-box;
    border: 1px solid #9a6538 !important;
    border-radius: 5px !important;
    background: #ddc095 !important;
    color: var(--hs-ink);
    line-height: 1.5;
}

/* Forms in this theme, including edit, staff, inventory and activation. */
body :is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px, .pagina_schedacammino, .cammini_solstizio, .pagina_scheda_oggetti) :is(input:not([type='hidden']):not([type='image']):not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']), select, textarea),
html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css'])) :is(input:not([type='hidden']):not([type='image']):not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']), select, textarea) {
    max-width: 100%;
    box-sizing: border-box;
    min-height: 31px;
    margin-top: 3px;
    padding: 6px 8px;
    border: 1px solid #9b6638;
    border-radius: 4px;
    background: var(--hs-field-paper, #ead0a3);
    color: var(--hs-ink);
    font: 12px/1.4 'Lato', Verdana, sans-serif;
    text-shadow: none;
    box-shadow: inset 0 1px 3px #3b211025;
}
body :is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px, .pagina_schedacammino, .cammini_solstizio, .pagina_scheda_oggetti) :is(input[type='submit'], input[type='button']),
html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css'])) :is(input[type='submit'], input[type='button']) {
    width: auto;
    min-height: 32px;
    padding: 7px 14px;
    border-color: #bd7d3e;
    border-radius: 5px;
    background: var(--hs-panel);
    color: #ffe3b7;
    box-shadow: inset 0 1px 0 #ffd69b25, 0 2px 4px #0003;
    cursor: pointer;
}
body :is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px, .pagina_schedacammino, .cammini_solstizio, .pagina_scheda_oggetti) :is(input[type='submit'], input[type='button']):hover,
html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css'])) :is(input[type='submit'], input[type='button']):hover { background: #4b2b17; border-color: #de9c50; }
body :is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px, .pagina_schedacammino, .cammini_solstizio) :is(input[type='checkbox'], input[type='radio']) { accent-color: #a25418; width: 16px; height: 16px; }
body :is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px) textarea { resize: vertical; }
body :is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px) :disabled { cursor: not-allowed; }
body :is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px) :is(.form_label, .form_label_exp, .label_corso, .form_label_job, .form_label_attivazione, .form_label_conosc) { color: var(--hs-ink); font: 12px/1.5 'Lato', Verdana, sans-serif; text-transform: uppercase; padding: 5px 0; }
body :is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px) :is(.form_info, .form_label_modificascheda_bloccoaudio, .form_label_modificascheda_scadenzaassenza) { color: var(--hs-muted); font-size: 12px; }
body :is(.pagina_scheda, .pagina_attivazione, .pagina_scheda_px) .form_field :is(input[type='text'], input[type='url'], input[type='password'], textarea) { width: 100%; }
body div.big_box_scheda { float: none; width: auto; height: 530px; margin: 0 0 14px; padding: 8px 12px 12px; color: var(--hs-ink); overflow: auto; box-sizing: border-box; scrollbar-gutter: stable; }
body div.pagina_scheda:not(:has(.ritratto)) div.menu_scheda,
body div.pagina_scheda_px div.menu_scheda { flex-direction: row; flex-wrap: wrap; justify-content: center; }
body div.pagina_scheda:not(:has(.ritratto)) div.menu_scheda > *,
body div.pagina_scheda_px div.menu_scheda > * { width: 106px; }
body div:is(.colonnasx_modscheda, .colonnasx_modscheda_suoni, .colonnadx_modscheda) { width: 48%; padding: 10px; margin: 0 0 14px; box-sizing: border-box; border: 1px solid #91603a66; border-radius: 6px; background: #e5cba22b; }
body div:is(.colonnacenter_modscheda, .form_prestavolto) { float: none; clear: both; width: auto; padding: 12px; margin: 0 0 14px; box-sizing: border-box; border: 1px solid #91603a66; border-radius: 6px; background: #e5cba22b; }
body div:is(.prestavolto_voce_nome, .prestavolto_voce_cognome) { width: 47%; margin: 0; }
body div.box_checkassenza_modificascheda { width: 48%; margin: 0; padding: 10px; box-sizing: border-box; }
body div:is(.alertmodscheda, .alertapprovascheda) { float: none; width: min(580px, 100%); height: auto; margin: 70px auto; padding: 38px 28px; box-sizing: border-box; border: 1px solid var(--hs-copper); border-radius: 8px; background: url('imgs/halloween/skull.webp') center 15px / 25px auto no-repeat, var(--hs-panel); color: #ffe3b7; text-align: center; font: 17px/1.6 'Cinzel', Georgia, serif; box-shadow: 0 5px 15px #0005; }
body div.alertmodscheda::before { content: 'Modifica eseguita'; display: block; padding-top: 18px; }
body div.alertapprovascheda::before { content: 'Attivazione completata. Studente ammesso alla Pandora Upside Down High School. Seleziona i corsi di studio e potrai entrare in game.'; display: block; padding-top: 18px; }

/* Relationships: index, cards, add/edit/delete screens. */
body div:is(.titolo_conoscenze_sx, .titolo_conoscenze_dx, .titolo_conoscenze_ct) { width: 31%; height: auto; min-height: 32px; margin: 0 0 8px; padding: 6px 3px; box-sizing: border-box; border: 1px solid #956037; border-radius: 4px; background: #6d411c1f; color: var(--hs-ink); font: 11px/1.5 'Lato', sans-serif; }
body div:is(.titolo_conoscenze_sx, .titolo_conoscenze_dx) a { color: #713807; font: inherit; }
body div.pagina_affetti > table { width: 100%; }
body div.voce_cerchia { width: calc(100% - 20px); height: auto; min-height: 200px; margin: 42px 10px 18px; padding: 16px; box-sizing: border-box; background: #d6b58b; border: 1px solid var(--hs-line); border-radius: 7px; box-shadow: 0 3px 7px #29130c33; }
body div.box_avatar_affetti { margin: -36px 0 0; }
body img.avatar_affetti { width: 60px; height: 60px; object-fit: cover; border: 2px solid #a4642e; }
body div.titolo_paragrafo_affetto { margin: -45px 0 0 74px; font: 16px/1.4 'Cinzel', Georgia, serif; }
body div.titolo_paragrafo_affetto a { color: #5a2809; }
body div.affetto_tipo { width: auto; float: none; margin: 6px 0 0 74px; color: var(--hs-muted); }
body div.paragrafo_affetto { width: auto; height: auto; max-height: 230px; margin: 20px 0 0; padding: 0 5px 0 0; text-align: left; line-height: 1.55; }
body div.link_affetti { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 12px; }
body span.tasti_aggiungi_affetti { display: inline-block; padding: 7px 12px; margin: 0; border: 1px solid var(--hs-copper); border-radius: 5px; background: var(--hs-panel); box-shadow: 0 2px 4px #0003; }
body span.tasti_aggiungi_affetti a { color: #ffe3b7; font-size: 11px; }
body div:is(.box_new_affetto, .riquadro_nuova_conoscenza, .box_new_simpatia, .riquadro_nome_conoscenza) { width: auto; height: auto; margin: 12px 0; padding: 12px; box-sizing: border-box; border: 1px solid var(--hs-line); border-radius: 6px; background: #d3b388; color: var(--hs-ink); }
body div:is(.cerchie_left_add, .cerchie_right_add, .nuova_conosc_sx, .nuova_conosc_dx) { width: 47%; box-sizing: border-box; }
body div:is(.box_new_affetto, .riquadro_nuova_conoscenza, .box_new_simpatia) :is(input:not([type='hidden']):not([type='image']):not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']), select, textarea) { max-width: 100%; box-sizing: border-box; border: 1px solid #946037; border-radius: 4px; background: #ead0a3; color: var(--hs-ink); font: 12px/1.5 'Lato', sans-serif; text-shadow: none; }
body div.cerchie_textarea { clear: both; width: auto; }
body textarea.form_textarea_cerchie { width: 100%; box-sizing: border-box; }
body div.link_back_tornaallecerchie { width: auto; height: auto; margin: 10px 0; padding: 8px; border: 1px solid #9c6636; border-radius: 5px; background: var(--hs-panel); }
body div.link_back_tornaallecerchie a { color: #ffe3b7; }

/* Courses, career, experience, saved chat and logs. */
body div:is(.invia_corso, .jobbino) { width: fit-content; max-width: 100%; height: auto; margin: 8px auto; padding: 6px 12px; box-sizing: border-box; border: 1px solid var(--hs-copper); border-radius: 5px; background: var(--hs-panel); color: #ffe3b7; font: 12px/1.5 'Lato', sans-serif; }
body div.invia_corso a { color: #ffe3b7; font: inherit; }
body tr:is(.corso1, .corso2, .corso3, .corso_scelta) { background: #5f34101a; }
body div.corso, body div.corso a { color: var(--hs-ink); font: 12px/1.5 'Lato', sans-serif; }
body div.classi_righe_master { background: #70431c20; color: var(--hs-ink); border-color: #805431; }
body div.classi_righe_master a { color: #713807; }
body div.contenitore_simpa { width: auto; margin: 10px 0; display: flow-root; padding: 8px; border: 1px solid #91603a66; border-radius: 5px; background: #d3b388; }
body div.contenitore_simpa img { width: 85px; height: auto; margin-right: 12px; }
body div.descrizione_simpa { width: auto; height: auto; color: var(--hs-ink); font-family: 'Lato', sans-serif; }
body div.pagina_scheda_px { display: flow-root; }
body div:is(.contenitore_tabella_left, .contenitore_tabella_right) { width: 48%; height: 515px; margin: 0 0 15px; padding: 8px; box-sizing: border-box; border: 1px solid #95603770; border-radius: 6px; background: #d3b38866; }
body div.elementi_elenco_px { height: auto; min-height: 24px; padding: 5px; font: 12px/1.5 'Lato', sans-serif; color: var(--hs-ink); }
body div.link_xp_punti { position: static; text-align: center; margin: 8px; }
body table.fine_voce_esperienza { width: 100%; }
body div.contenitore_roles { float: none; width: auto; height: 520px; margin: 0; padding: 4px 10px; box-sizing: border-box; }
body div.pagina_scheda_storia div.contenitore_roles { height: auto; padding: 0; overflow: visible; }
body div:is(.azione_scheda_dispari, .azione_scheda_pari) { margin: 8px 0; padding: 12px; border: 1px solid #94623b; border-radius: 5px; line-height: 1.55; text-align: left; overflow-wrap: anywhere; }
body div.azione_scheda_dispari { background: #2b1d16; color: #f3dfbd; }
body div.azione_scheda_dispari a { color: #ffd295; }
body div.azione_scheda_pari { background: #dcc198; color: var(--hs-ink); }
body div.azione_scheda_pari a { color: #713807; }
body div.luogo_azione_scheda { color: var(--hs-ink); border-color: var(--hs-line); font: 14px/1.5 'Cinzel', Georgia, serif; }
body div.salvachat_viewer { color: #f3dfbd; background: var(--hs-panel); border: 1px solid var(--hs-copper); border-radius: 7px; padding: 12px; }
body div.salvachat_viewer a { color: #ffd295; }

/* Inventory and equipment. */
body table.bag_table { width: 100%; border-collapse: collapse; color: var(--hs-ink); }
body table.bag_table td { padding: 9px 6px; border-bottom: 1px solid #8b603c66; vertical-align: middle; }
body div.inventario_nome { color: var(--hs-ink); font: 13px/1.5 'Cinzel', Georgia, serif; }
body div:is(.inventario_quantita, .inventario_riga_proprieta, .inventario_riga_commento) { color: var(--hs-muted); font: 12px/1.5 'Lato', sans-serif; }
body div.inventario_riga_descrizione { width: auto; height: auto; max-height: 220px; padding: 10px; margin: 8px 0; border: 1px solid #926039; border-radius: 5px; background: #d7b88e; color: var(--hs-ink); font: 12px/1.5 'Lato', sans-serif; }
body div.inventario_img img { object-fit: contain; max-width: 70px; max-height: 70px; border-radius: 5px; }
body div.omino_bianco_box { width: min(450px, 100%); border: 1px solid #996439; border-radius: 6px; background: #34241d; }
body div.omino_bianco_box > div { border-color: var(--hs-copper); }
body div.box_look { width: min(420px, calc(100% - 20px)); height: min(540px, calc(100dvh - 20px)); margin: 10px auto; box-sizing: border-box; border: 1px solid var(--hs-copper); border-radius: 7px; background: var(--hs-panel); color: #f3dfbd; font: 13px/1.55 'Lato', sans-serif; box-shadow: inset 0 0 25px #0005; }
body div.box_look a { color: #ffd295; }
body div.box_look img { width: auto; max-width: 100%; height: auto; }

/* Activation wizard and its summary. */
body div.avanzamento_attivazione { float: none; width: auto; height: auto; margin: 0 0 14px; padding: 12px; border: 1px solid #ab713c; border-radius: 6px; background: var(--hs-panel); color: #dbc39f; font: 11px/2.6 'Lato', sans-serif; }
body span.illuminati_step { padding: 5px 8px; border: 1px solid #d3934e; border-radius: 4px; background: #68401f; color: #fff0cc; }
body div:is(.valori_attivazione, .valori_attivazione_caratteristiche) { width: 52%; height: 440px; margin: 0 0 12px; padding: 8px; box-sizing: border-box; border: 1px solid #a36b37; border-radius: 7px; background: #d0b188; color: var(--hs-ink); box-shadow: inset 0 15px 35px #4a2a1a20; }
body div.descrizione_attivazione { width: 46%; height: 440px; margin: 0 0 12px; padding: 15px; box-sizing: border-box; border: 1px solid #a36b37; border-radius: 7px; background: #dbc197; color: var(--hs-ink); box-shadow: inset 0 15px 35px #4a2a1a20; line-height: 1.6; }
body div.contenitoretabelline { width: auto; height: 355px; padding: 0; }
body div:is(.valori_attivazione, .valori_attivazione_caratteristiche, .descrizione_attivazione) table { float: none; width: 100%; margin: 5px 0; padding: 4px; box-sizing: border-box; border: 1px solid #98633b; background: #e5cba24d; box-shadow: none; color: var(--hs-ink); }
body div:is(.valori_attivazione, .valori_attivazione_caratteristiche, .descrizione_attivazione) table a { color: #713807; }
body td.celle_attributi { border-color: #98633b; }
body div.punti_attivazione { float: none; clear: both; width: auto; height: auto; margin: 0; padding: 9px 12px; border: 1px solid var(--hs-copper); border-radius: 5px; background: var(--hs-panel); color: #ffe3b7; font: 13px/1.5 'Lato', sans-serif; }
body div.allert_eta { margin: 15px 0; padding: 12px; border: 1px solid #ad6037; border-radius: 5px; background: #3c2118; color: #ffe0b5; font: 13px/1.6 'Lato', sans-serif; }
body div.recap_contenitore { width: auto; margin: 0; display: flow-root; }
body div:is(.recap_attivazione, .recap_attivazionedest) { width: 48%; height: 480px; margin: 0 0 12px; padding: 12px; box-sizing: border-box; border: 1px solid #a36b37; border-radius: 6px; background: #d1b28a; color: var(--hs-ink); }
body div.recap_attivazione table { width: 100%; margin: 0; background: transparent; }
body div:is(.recap_label, .recap_sx, .recap_dx) { width: auto; max-width: 100%; height: auto; min-height: 28px; margin: 0; padding: 5px; border-color: #956037; color: var(--hs-ink); background: #e5cba24d; font: 12px/1.5 'Lato', sans-serif; box-sizing: border-box; }

/* Cammino keeps its central compass and its original explanatory labels.
   The old book edges are clipped off; the diagram blends into the new folio. */
body div:is(.pagina_schedacammino, .cammini_solstizio)::after {
    content: '';
    position: absolute;
    left: calc(50% - 220px);
    top: 55px;
    width: 440px;
    height: 526px;
    background: url('imgs/scheda/schedacammino.png') center -55px / 950px 630px no-repeat;
    mix-blend-mode: multiply;
    filter: grayscale(1) contrast(2);
    pointer-events: none;
    z-index: -1;
}
body div.cammini_solstizio::after { background-image: url('imgs/scheda/solstizi/sfondosolstizi.png'); }
body div:is(.cammino_ascensium, .cammino_descendium) { width: 210px; height: auto; margin: 30px 0 0; }
body div:is(.cammino_ascensium, .cammino_descendium) input[type='image'] { max-width: 100%; object-fit: contain; background: #ead0a340; border: 1px solid #aa713e; border-radius: 8px; }
body div.percentuale_cammino { float: none; width: auto; height: auto; padding: 8px 0 !important; margin-bottom: 8px; color: var(--hs-ink); font: 20px/1.5 'Lato', sans-serif; }
body div.percentuale_cammino::before { display: block; color: var(--hs-muted); font: 12px/1.5 'Cinzel', Georgia, serif; }
body div.cammino_ascensium .percentuale_cammino:nth-of-type(1)::before { content: 'Iudex'; }
body div.cammino_ascensium .percentuale_cammino:nth-of-type(2)::before { content: 'Kaos'; }
body div.cammino_descendium .percentuale_cammino:nth-of-type(1)::before { content: 'Eureka'; }
body div.cammino_descendium .percentuale_cammino:nth-of-type(2)::before { content: 'Principatus'; }
body div.img_lancette_cammini { left: calc(50% - 198px); }
body div:is(.torna_id, .vai_punti) { position: relative; inset: auto; float: right; clear: right; width: 120px; height: 34px; margin: 8px 0 0 10px; border: 1px solid var(--hs-copper); border-radius: 5px; background: var(--hs-panel); }
body div:is(.torna_id, .vai_punti)::before { content: 'Torna alla scheda'; position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: #ffe3b7; font: 11px/1.4 'Lato', sans-serif; }
body div.vai_punti::before { content: 'Punti ancestrali'; }
body div:is(.torna_id, .vai_punti) a { display: block; height: 100%; }
body div:is(.torna_id, .vai_punti) img { width: 100%; height: 100%; margin: 0; opacity: 0; }
body div:is(.messaggio_no_voto, .non_puoi_votarti) { position: relative; inset: auto; float: none; width: min(500px, 100%); height: auto; margin: 180px auto 20px; padding: 20px; box-sizing: border-box; border: 1px solid var(--hs-copper); border-radius: 7px; background: var(--hs-panel); color: #ffe3b7; font: 14px/1.6 'Lato', sans-serif; }
body div.form_p_a { position: relative; width: 300px; height: auto; margin: 170px auto 30px; padding: 12px; border: 1px solid var(--hs-line); border-radius: 6px; background: #d5b88c; z-index: 1; }
body div.form_p_a form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body div.form_p_a input { width: 100%; margin: 0; }
body div.form_p_a .form_submit_dominio { grid-column: 1 / -1; }
body div.p_a_recap { width: auto; height: auto; margin: 0 auto; color: var(--hs-ink); }
body div.mess_oper { left: 34px; right: 34px; width: auto; height: auto; padding: 10px; background: #352116; color: #ffe3b7; border: 1px solid var(--hs-copper); border-radius: 5px; }

/* Dossier's shared component stylesheet is loaded later inside the frame.
   Theme specificity wins while keeping the four organization emblems intact. */
body div.patrocinio-dossier, body div.patrocinio-dossier .patrocinio-visuals {
    --patrocinio-paper: #ccb087;
    --patrocinio-ink: #2f1c12;
    --patrocinio-muted: #62432e;
    --patrocinio-border: #94613a66;
}
body div.patrocinio-dossier { padding: 0; }
body div.patrocinio-dossier .patrocinio-card { border: 1px solid #a46d38; background: linear-gradient(#3a251d38, transparent 90px), #d0b58d; box-shadow: inset 0 0 18px #59391d15, 0 3px 7px #29130c22; border-radius: 6px; }
body div.patrocinio-dossier .patrocinio-card::before { background: linear-gradient(90deg, #75421e, #d39043); }
body div.patrocinio-dossier :is(.patrocinio-chart, .patrocinio-stains) { border-radius: 6px; background: #d4b88f; border-color: #a46d38; box-shadow: inset 0 10px 25px #59391d15; }
body div.patrocinio-dossier .patrocinio-history th { color: #62432e; background: #bb9868; }
body div.patrocinio-dossier .patrocinio-history td { background: #ddc19855; }

/* NPC sheet: original ID/description toggle and hidden panels stay functional. */
body div.pagina_scheda_png div.profilo_png_scheda { height: 570px; overflow: hidden; }
body div.pagina_scheda_png div.png_scheda_pannello { width: auto; height: calc(100% - 46px); padding: 0 3px; }
body div.pagina_scheda_png div.png_scheda_descrizione_contenuto { width: auto; height: auto; padding: 10px; font: 13px/1.55 'Lato', sans-serif; text-align: left; }
body div.pagina_scheda_png button.png_scheda_toggle { right: 12px; left: 12px; bottom: 10px; width: calc(100% - 24px); height: 32px; border: 1px solid var(--hs-copper); border-radius: 5px; background: var(--hs-panel); color: #ffe3b7; font: 12px/1.5 'Lato', sans-serif; }
body div.pagina_scheda_png div.profilo_voce { width: auto !important; }
body div.pagina_scheda_png .contenitore_story_png { position: static; height: auto; }

body div.warning_ban { width: auto; max-height: none; margin: 12px 0; padding: 16px; border: 1px solid #ad6037; border-radius: 6px; background: #3c2118; color: #ffe0b5; font: 13px/1.6 'Lato', sans-serif; }
body :is(.pagina_scheda, .pagina_attivazione, .pagina_scheda_px) :is(.error, .warning, .success) { padding: 12px; border: 1px solid #a76c35; border-radius: 5px; background: #e4c9a0; color: var(--hs-ink); font: 13px/1.5 'Lato', sans-serif; }

@media (max-width: 860px) {
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) > .page_body > .page_body { grid-template-columns: minmax(220px, 40%) minmax(0, 1fr); }
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.menu_scheda { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: center; }
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.menu_scheda > * { width: 106px; }
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.menu_scheda > .center_bottom_profilo { flex-basis: 100%; width: 100%; }
    body div.center_bottom_profilo button { flex-basis: 30px; width: 30px; background-size: auto 28px; }
    body div:is(.pagina_schedacammino, .cammini_solstizio) { display: flow-root; }
    body div:is(.pagina_schedacammino, .cammini_solstizio)::after { position: relative; display: block; clear: both; top: auto; left: auto; width: min(440px, 100%); height: auto; aspect-ratio: 440 / 540; margin: 15px auto 0; background-size: 216% auto; background-position: center 40%; }
    body div.img_lancette_cammini { position: relative; left: auto; bottom: auto; width: min(396px, 100%); height: auto; margin: 15px auto; }
    body img.lancette_cammini { width: 100%; height: auto; }
}
@media (max-width: 620px) {
    body div:is(.pagina_scheda, .pagina_scheda_png, .pagina_attivazione, .pagina_scheda_px, .pagina_schedacammino, .cammini_solstizio) { padding: 34px 22px 40px; }
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) > .page_body > .page_body { grid-template-columns: minmax(0, 1fr); }
    body div:is(.pagina_scheda, .pagina_scheda_png) div.ritratto { width: min(350px, 100%); margin: 0 auto; }
    body div:is(.pagina_scheda, .pagina_scheda_png) div.profilo { height: 550px; }
    body div:is(.colonnasx_modscheda, .colonnasx_modscheda_suoni, .colonnadx_modscheda, .box_checkassenza_modificascheda, .prestavolto_voce_nome, .prestavolto_voce_cognome, .contenitore_tabella_left, .contenitore_tabella_right, .valori_attivazione, .valori_attivazione_caratteristiche, .descrizione_attivazione, .recap_attivazione, .recap_attivazionedest) { float: none; width: 100%; }
    body div:is(.cammino_ascensium, .cammino_descendium) { width: 46%; }
    body div:is(.cammino_ascensium, .cammino_descendium) input[type='image'] { width: 100%; height: auto; }
    body div.big_box_scheda { height: 540px; padding: 4px; }
    body table.bag_table td { padding: 7px 3px; }
    body div.avviso_assenza { left: 22px; right: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    body div.menu_scheda *:hover, body div.pagina_schedacammino input:hover { animation: none; }
}

/* chat.css also targets #online; keep the profile status on readable paper. */
body div.pagina_scheda textarea#online[name='online_state'] {
    background: var(--hs-field-paper, #ead0a3);
    color: var(--hs-ink);
    caret-color: var(--hs-ink);
}
/* Native rich-text editor uses its own stylesheet after scheda.css. */
body div.pagina_scheda .land-native-editor[data-theme='halloween'] {
    --ne-panel: #211711;
    --ne-panel-soft: #38261c;
    --ne-border: #b9793b;
    --ne-accent: #efbd78;
    --ne-text: #ffe3b7;
    --ne-paper: #d5b78c;
    --ne-ink: #2f1c12;
    --ne-preview-background: linear-gradient(#3a251d22, transparent 120px), #d5b78c;
    --ne-preview-color: #2f1c12;
    --ne-preview-font: 13px/1.55 'Lato', Verdana, sans-serif;
}
body div.pagina_scheda .land-native-editor[data-theme='halloween'] .land-native-editor__editable a { color: #713807; }
body div.pagina_scheda_png > .page_body > .page_body { grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); }
body :is(.pagina_scheda, .pagina_attivazione, .pagina_scheda_px) :is(.titoli_elenco, .elementi_elenco, .elementi_elenco_modifica) { color: var(--hs-ink); font: 12px/1.5 'Lato', sans-serif; height: auto; }
body :is(.pagina_scheda, .pagina_attivazione, .pagina_scheda_px) td.casella_titolo { background: #aa814f38; color: var(--hs-ink); }
body div.pagina_scheda .titolo_scheda_profilo[style*='width: 835px'] { width: auto !important; }
@media (max-width: 860px) {
    body div.pagina_scheda_png > .page_body > .page_body { grid-template-columns: minmax(220px, 40%) minmax(0, 1fr); }
}
@media (max-width: 620px) {
    body div.pagina_scheda_png > .page_body > .page_body { grid-template-columns: minmax(0, 1fr); }
}

/* Complete the auxiliary forms and keep controls usable in small modals. */
body div.menu_scheda :is(form, a):focus-within > div { border-color: #f4bd70; outline: 2px solid #f4bd70; outline-offset: 2px; }
body div.pagina_scheda .land-native-editor[data-theme='halloween'] :is(.land-native-editor__row, .land-native-editor__group) { flex-wrap: wrap; max-width: 100%; }
body div.pagina_scheda .land-native-editor[data-theme='halloween'] .land-native-editor__group { flex-shrink: 1; }
body div.big_box_scheda div[style*='width: 520px'] { width: calc(100% - 10px) !important; box-sizing: border-box; }
body div.pagina_scheda_storia div.story_box table { width: 100% !important; table-layout: fixed; border-collapse: collapse; }
body div.pagina_scheda_storia div.story_box table td { width: auto !important; padding: 6px; border-bottom: 1px solid #91603a66; overflow-wrap: anywhere; }
body div.pagina_scheda_storia :is(.titoli_os, .casella_os) { color: var(--hs-ink); font: 12px/1.5 'Lato', sans-serif; }
body div:is(.box_new_affetto, .riquadro_nuova_conoscenza, .riquadro_nome_conoscenza) { display: flow-root; }
body div.cerchie_textarea { float: none !important; display: flow-root; width: 100% !important; height: auto; min-height: 100px; }
body div.box_new_affetto textarea { width: 100%; float: none; margin-left: 0; }
body textarea.form_textarea_cerchie { float: none; margin-left: 0; }
body div:is(.nuova_conosc_sx, .nuova_conosc_dx, .descrizione_conoscenza) { box-sizing: border-box; border: 1px solid #9a6538; border-radius: 5px; background: #d6b68c; color: var(--hs-ink); }
body div.descrizione_conoscenza { width: 100%; }
:where(html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css']))) :is(input[type='checkbox'], input[type='radio']) { accent-color: #a25418; width: 16px; height: 16px; }
body div.form_p_a input#dominio_bonus { margin: 0; width: 100%; background: var(--hs-panel); color: #ffe3b7; border: 1px solid var(--hs-copper); border-radius: 4px; }
body .popup > div.pagina_scheda_oggetti { width: min(900px, 100%); min-height: 400px; margin: 0 auto; padding: 40px 34px; box-sizing: border-box; border: 0 solid transparent; border-image: url('imgs/scheda/grimorio-halloween.png') 180 180 200 200 fill / 70px 70px 80px 80px / 0 stretch; color: var(--hs-ink); font: 13px/1.5 'Lato', sans-serif; }
@media (max-width: 620px) {
    body table.bag_table, body table.bag_table > tbody { display: block; }
    body table.bag_table > tbody > tr { display: flex; flex-wrap: wrap; width: 100%; margin: 0 0 12px; border: 1px solid #95603770; border-radius: 5px; box-sizing: border-box; }
    body table.bag_table td { box-sizing: border-box; min-width: 0; }
    body table.bag_table td:first-child { width: 34%; }
    body table.bag_table td:nth-child(2) { width: 66%; }
    body table.bag_table td.casella_controlli { width: 100%; }
}
body div.pagina_scheda_px .form_submit input[type='submit'] { background: var(--hs-panel); color: #ffe3b7; border: 1px solid var(--hs-copper); border-radius: 5px; }
body div.titolo_conoscenze[style] { color: #ffe3b7 !important; font: 13px/1.35 'Cinzel', Georgia, serif !important; }
body div.ritratto > a > div.link_modifica[style] { color: var(--hs-gold) !important; }

/* Fit the character sheet to the popup viewport. The central frame owns the
   only scroll; the portrait and navigation stay within the visible folio. */
body div.popup:has(> :is(.pagina_scheda, .pagina_scheda_png):has(.ritratto)) {
    overflow: hidden;
}
body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) {
    --hs-sheet-height: min(660px, calc(100dvh - 8px));
    --hs-photo-height: calc(var(--hs-sheet-height) - 226px);
    height: var(--hs-sheet-height);
    min-height: 0;
    margin: 4px auto;
    padding: 28px 26px 26px;
}
body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) > .page_body,
body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) > .page_body > .page_body {
    height: 100%;
    min-height: 0;
}
body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) > .page_body > .page_body {
    grid-template-columns: minmax(180px, 340px) minmax(0, 1fr) 94px;
    grid-template-rows: minmax(0, 1fr);
    gap: 12px;
}
body div.pagina_scheda_png:has(.ritratto) > .page_body > .page_body {
    grid-template-columns: minmax(180px, 340px) minmax(0, 1fr);
}
body div:is(.pagina_scheda, .pagina_scheda_png) div.ritratto {
    min-width: 0;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px 5px;
}
body div.ritratto > a { display: grid; place-items: center; align-self: center; }
body div.ritratto > a > :is(.link_modifica, .link_roles, .link_salvachat, .link_xp, .link_gst, .link_log) {
    position: relative;
    inset: auto;
    margin: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
}
body div.ritratto > a > :is(.link_modifica, .link_roles, .link_salvachat, .link_xp, .link_gst, .link_log)::before {
    content: var(--hs-action-initial);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding-top: 2px;
    font: 14px/1 'Cinzel', Georgia, serif;
}
body div.ritratto > a > :is(.link_modifica, .link_roles, .link_salvachat, .link_xp, .link_gst, .link_log)::after {
    content: var(--hs-action-label);
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 6px;
    border: 1px solid var(--hs-copper);
    border-radius: 4px;
    background: #21160e;
    color: #ffe3b7;
    font: 11px/1.4 'Lato', Verdana, sans-serif;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    z-index: 4;
}
body div.ritratto > a:is(:hover, :focus-visible) > div::after { opacity: 1; }
body div.ritratto div.link_modifica { --hs-action-initial: 'M'; --hs-action-label: 'Modifica'; }
body div.ritratto div.link_roles { --hs-action-initial: 'R'; --hs-action-label: 'Roles'; }
body div.ritratto div.link_salvachat { --hs-action-initial: 'S'; --hs-action-label: 'Salvachat'; }
body div.ritratto div.link_xp { --hs-action-initial: 'E'; --hs-action-label: 'Exp'; }
body div.ritratto div.link_log { --hs-action-initial: 'L'; --hs-action-label: 'Log'; }
body div.ritratto div.link_gst { --hs-action-initial: 'A'; --hs-action-label: 'Admin'; }
body div.ritratto div.posizione_foto {
    grid-row: 2;
    width: fit-content;
    max-width: 100%;
    justify-self: center;
    padding: 14px;
}
body div.ritratto div.posizione_foto::after {
    border-image-width: 38px 38px 46px 38px;
}
body div.ritratto img.ritratto_avatar_immagine {
    width: auto;
    max-width: 100%;
    max-height: var(--hs-photo-height);
}
body div.ritratto div.ritratto_nome {
    grid-row: 3;
    min-height: 26px;
    margin-top: 0;
    padding: 4px 6px;
    font-size: 16px;
    line-height: 1.3;
}
body div.ritratto div.ritratto_nome_pv { grid-column: 1 / -1; grid-row: 4; padding: 0 8px 0 20px; box-sizing: border-box; font-size: 10px; line-height: 1.3; }
body div.ritratto div.ritratto_look { grid-column: 7; grid-row: 1; }
body div.ritratto div.ritratto_look a { width: 28px; height: 28px; }
body div.ritratto div.ritratto_look img { width: 19px; height: 19px; }
body div.ritratto div.ritratto_forme { grid-row: 5; gap: 7px; padding-top: 0; }
body div.ritratto div.ritratto_forme form.forma_avatar_form,
body div.ritratto button.forma_avatar_button { width: 30px; height: 30px; }
body div.ritratto button.forma_avatar_button img { inset: 3px; width: 22px; height: 22px; }
body div.ritratto button.forma_avatar_button img[src$='/umana.png'] { inset: 4px auto auto 5px; width: 16px; height: 20px; }
body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.profilo {
    height: 100%;
    min-height: 0;
    padding: 8px;
    overflow: hidden;
}
body div.pagina_scheda_png:has(.ritratto) div.png_scheda_pannello {
    height: calc(100% - 40px);
    min-height: 0;
}
body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.menu_scheda { height: 100%; min-height: 0; gap: 4px; }
body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.menu_scheda > :is(form, a, .ritratto_invia_messaggio) { flex: 0 1 26px; height: auto; min-height: 0; }
body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.menu_scheda > :is(form, a) > div { height: 100%; }
body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.menu_scheda > :is(form, a) > div::before,
body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.menu_scheda > .ritratto_invia_messaggio::before { font-size: 9.5px; }

/* Keep the desktop commands together, clear of the decorative folio corners. */
@media (min-width: 861px) {
    body div:is(.pagina_scheda, .pagina_scheda_png) div.ritratto {
        --hs-command-count: 0;
        --hs-look-count: 0;
        column-gap: 6px;
    }
    body div.ritratto:has(> a:nth-of-type(1)) { --hs-command-count: 1; }
    body div.ritratto:has(> a:nth-of-type(2)) { --hs-command-count: 2; }
    body div.ritratto:has(> a:nth-of-type(3)) { --hs-command-count: 3; }
    body div.ritratto:has(> a:nth-of-type(4)) { --hs-command-count: 4; }
    body div.ritratto:has(> a:nth-of-type(5)) { --hs-command-count: 5; }
    body div.ritratto:has(> a:nth-of-type(6)) { --hs-command-count: 6; }
    body div.ritratto:has(> div.ritratto_look) { --hs-look-count: 1; }
    body div:is(.pagina_scheda, .pagina_scheda_png) div.ritratto:is(:has(> a), :has(> .ritratto_look)) {
        grid-template-columns: minmax(0, 1fr) repeat(calc(var(--hs-command-count) + var(--hs-look-count)), 30px) minmax(0, 1fr);
    }
    body div.ritratto:is(:has(> a), :has(> .ritratto_look))::before,
    body div.ritratto:is(:has(> a), :has(> .ritratto_look))::after {
        content: '';
        grid-row: 1;
    }
    body div.ritratto::before { grid-column: 1; }
    body div.ritratto::after { grid-column: -2 / -1; }
    body div.ritratto > a { grid-row: 1; transform: translateY(5px); }
    body div.ritratto div.ritratto_look { grid-column: -3 / -2; justify-self: center; transform: translateY(5px); }
    body div.pagina_scheda:has(.ritratto) { padding-right: 38px; }
    body div.pagina_scheda:has(.ritratto) div.menu_scheda {
        justify-content: center;
        gap: 8px;
        padding-block: 38px;
        box-sizing: border-box;
    }
}
@media (min-width: 861px) and (max-height: 540px) {
    body div.pagina_scheda:has(.ritratto) div.menu_scheda { gap: 4px; }
}

/* Dense identity rows leave room for guilds, race details and master notes. */
body div.profilo_voce { min-height: 22px; padding: 2px 0; }
body div:is(.profilo_voce_label, .profilo_voce_label_left, .profilo_voce_label_right, .profilo_voce_valore, .profilo_voce_valore_left, .profilo_voce_valore_right) {
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
}
body div:is(.profilo_voce_label, .profilo_voce_label_left, .profilo_voce_label_right) { text-align: left; }
body div.profilo_voce_note_master { padding: 7px; font-size: 12px; line-height: 1.4; overflow: visible; }
html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css'])) body { padding: 6px; }
html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css'])) body > .titolo_scheda_profilo { min-height: 28px; padding: 5px 32px 5px 9px; margin: 7px 0 5px; font-size: 12px; }
html:has(link[href$='/scheda.css']):not(:has(link[href$='/main.css'])) body > .titolo_scheda_profilo:first-child { margin-top: 0; }

@media (max-width: 860px) and (min-width: 621px) {
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) { --hs-photo-height: calc(var(--hs-sheet-height) - 290px); }
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) > .page_body > .page_body {
        grid-template-columns: minmax(180px, 36%) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) auto;
        row-gap: 8px;
    }
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.menu_scheda { grid-column: 1 / -1; height: auto; }
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.menu_scheda > :is(form, a, .ritratto_invia_messaggio) { flex: 0 0 94px; width: 94px; height: 26px; }
    body div.pagina_scheda_png:has(.ritratto) > .page_body > .page_body { grid-template-rows: minmax(0, 1fr); }
}
@media (max-width: 620px) {
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) { --hs-photo-height: 108px; padding: 24px 20px; }
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) > .page_body > .page_body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 8px;
    }
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.ritratto {
        grid-template-columns: 92px repeat(6, minmax(0, 1fr));
        width: 100%;
        margin: 0;
        gap: 3px 4px;
    }
    body div.ritratto div.posizione_foto { grid-column: 1; grid-row: 1 / span 4; align-self: start; padding: 8px; }
    body div.ritratto div.posizione_foto::after { border-image-width: 23px 23px 28px 23px; }
    body div.ritratto div.ritratto_nome { grid-column: 2 / -1; grid-row: 1; font-size: 13px; min-height: 0; padding: 3px 5px; }
    body div.ritratto div.ritratto_nome_pv { grid-column: 2 / -1; grid-row: 2; padding-left: 6px; }
    body div.ritratto div.ritratto_forme { grid-column: 2 / 7; grid-row: 3; }
    body div.ritratto div.ritratto_look { grid-column: 7; grid-row: 3; }
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.menu_scheda { grid-column: 1; height: auto; }
    body div:is(.pagina_scheda, .pagina_scheda_png):has(.ritratto) div.menu_scheda > :is(form, a, .ritratto_invia_messaggio) { flex: 0 0 78px; width: 78px; height: 26px; }
    body div.pagina_scheda_png:has(.ritratto) > .page_body > .page_body { grid-template-rows: auto minmax(0, 1fr); }
}
body div.box_new_affetto select[style] { max-width: calc(100% - 10px); background: #ead0a3 !important; color: var(--hs-ink) !important; border: 1px solid #9b6638 !important; border-radius: 4px !important; font-family: 'Lato', Verdana, sans-serif !important; padding: 6px !important; margin: 3px 0 !important; }
body div.cammini_solstizio::after { left: calc(50% - 447px); width: 894px; height: 520px; }
body div.cammini_solstizio:has(.cammino_ascensium) .percentuale_cammino { margin-top: 175px; }
body div.form_p_a input.punti_iudex { --hs-field-paper: #d9c58c; }
body div.form_p_a input.punti_eureka { --hs-field-paper: #dbb48e; }
body div.form_p_a input.punti_kaos { --hs-field-paper: #d8aab8; }
body div.form_p_a input.punti_principatus { --hs-field-paper: #b9b6d9; }
@media (max-width: 860px) {
    body div.cammini_solstizio::after { left: auto; width: 100%; height: auto; aspect-ratio: 894 / 520; background-size: 106.264% auto; }
    body div.cammini_solstizio:has(.cammino_ascensium) .percentuale_cammino { margin-top: 0; }
}
