@charset "UTF-8";
/* ==========================================================================
   Vis in Fide: Signori e Ventura, 1392 — tema grafico
   --------------------------------------------------------------------------
   Pergamena, inchiostro ferrogallico, araldica e capilettera da codice
   miniato; rosso, oro e nero della Compagnia del Lupo Rosso.

   Si carica DOPO i css del gpack (vedi Templates/vif_head.tpl) e li
   sovrascrive: i file originali di TravianZ restano intatti, cosi' il
   progetto si puo' ancora aggiornare dall'upstream (GPL v3).
   Immagini nuove: img/visinfide/ (SVG originali). Font OFL: fonts/visinfide/.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font (OFL, serviti in locale)
   -------------------------------------------------------------------------- */
@font-face { font-family: "VIF Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/visinfide/eb-garamond-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "VIF Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/visinfide/eb-garamond-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "VIF Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/visinfide/eb-garamond-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "VIF Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/visinfide/eb-garamond-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "VIF Garamond"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(fonts/visinfide/eb-garamond-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "VIF Garamond"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(fonts/visinfide/eb-garamond-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "VIF Garamond"; font-style: normal; font-weight: 700 900; font-display: swap;
  src: url(fonts/visinfide/eb-garamond-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "VIF Garamond"; font-style: normal; font-weight: 700 900; font-display: swap;
  src: url(fonts/visinfide/eb-garamond-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "VIF Cinzel"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/visinfide/cinzel-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "VIF Cinzel"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/visinfide/cinzel-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "VIF Cinzel"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(fonts/visinfide/cinzel-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "VIF Cinzel"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(fonts/visinfide/cinzel-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "VIF Cinzel"; font-style: normal; font-weight: 700 900; font-display: swap;
  src: url(fonts/visinfide/cinzel-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "VIF Cinzel"; font-style: normal; font-weight: 700 900; font-display: swap;
  src: url(fonts/visinfide/cinzel-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "VIF Cinzel Decorative"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/visinfide/cinzel-decorative-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "VIF Cinzel Decorative"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/visinfide/cinzel-decorative-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "VIF Fell"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/visinfide/im-fell-english-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "VIF Fell"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/visinfide/im-fell-english-latin-400-italic.woff2) format("woff2"); }

/* --------------------------------------------------------------------------
   2. Tavolozza
   -------------------------------------------------------------------------- */
:root {
  --vif-ink: #2a1c11;          /* inchiostro ferrogallico */
  --vif-ink-soft: #5b4630;
  --vif-ink-faint: #8a7457;
  --vif-parch: #f2e6c8;        /* pergamena */
  --vif-parch-light: #fbf4e2;
  --vif-parch-mid: #ecdcb5;
  --vif-parch-dark: #e0c995;
  --vif-rule: #b99b62;         /* righe delle tabelle */
  --vif-red: #a3201a;          /* cinabro, il rosso del Lupo */
  --vif-red-dark: #6e110c;
  --vif-red-light: #c8362a;
  --vif-gold: #c9a23f;
  --vif-gold-light: #ecd28a;
  --vif-gold-dark: #8a6a1f;
  --vif-black: #1a110b;
  --vif-azure: #2d5aa5;        /* lapislazzuli, per i rari accenti */
  --vif-green: #4f6b3a;
  --vif-serif: "VIF Garamond", "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --vif-caps: "VIF Cinzel", Cinzel, "Trajan Pro", Georgia, serif;
  --vif-deco: "VIF Cinzel Decorative", "VIF Cinzel", Georgia, serif;
  --vif-fell: "VIF Fell", "IM Fell English", Georgia, serif;
  --vif-shadow: 0 8px 28px rgba(0, 0, 0, .55);
}

/* --------------------------------------------------------------------------
   3. Fondo, carattere di base, link
   -------------------------------------------------------------------------- */
html {
  background: #1a110b url(../img/visinfide/tapestry.svg) repeat;
}
body, body.v35, body.manual {
  background: transparent;
  color: var(--vif-ink);
  font-family: var(--vif-serif);
  /* il Garamond ha un'occhiatura piccola: la riportiamo a quella del Verdana
     originale, cosi' le misure fisse del layout classico restano valide */
  font-size-adjust: .5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrapper { background: none; }

a, a:visited, a:active { color: var(--vif-red); }
a:hover { color: #d2491f; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--vif-gold);
  outline-offset: 1px;
}
::selection { background: rgba(163, 32, 26, .22); }

h1, h2, h3, h4, h5, h6 { color: var(--vif-red-dark); }
h2, h3, h4 { font-family: var(--vif-caps); font-size-adjust: none; font-weight: 700; letter-spacing: .02em; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
h4 { font-size: 13.5px; }

/* --------------------------------------------------------------------------
   4. Intestazione miniata (paesaggio lombardo + marchio)
   -------------------------------------------------------------------------- */
div#dynamic_header,
body.mod1 div#dynamic_header,
body.mod2 div#dynamic_header,
body.mod3 div#dynamic_header {
  height: 100px;
  background:
    url(../img/visinfide/logo.svg) center 0 / auto 106px no-repeat,
    url(../img/visinfide/header.svg) center bottom / auto 100px repeat-x,
    #efe0bb;
  border-bottom: 1px solid #5a3a1c;
}

/* barra rossa (velluto con rombi d'oro) che regge i medaglioni */
div#header {
  box-sizing: border-box;
  height: 72px;
  background:
    url(../img/visinfide/velvet.svg) repeat,
    linear-gradient(#a8291f 0%, #8a1912 42%, #600f0a 100%);
  border-top: 3px solid var(--vif-gold);
  border-bottom: 3px solid var(--vif-gold);
  box-shadow: inset 0 1px 0 #f6df92, inset 0 -1px 0 #f6df92, 0 4px 10px rgba(0, 0, 0, .45);
  position: relative;
  z-index: 3;
}
div#mtop, body.mod1 div#mtop, body.mod2 div#mtop, body.mod3 div#mtop { top: -3px; }
/* pagine pubbliche (accesso, iscrizione): la barra vuota mostra gli stemmi delle sette fazioni */
div#header:empty {
  background:
    url(../img/visinfide/stemmi/stemma_v1.svg) calc(50% - 216px) center / 35px 42px no-repeat,
    url(../img/visinfide/stemmi/stemma_v3.svg) calc(50% - 144px) center / 35px 42px no-repeat,
    url(../img/visinfide/stemmi/stemma_v8.svg) calc(50% - 72px) center / 35px 42px no-repeat,
    url(../img/visinfide/stemmi/stemma_v2.svg) center center / 44px 53px no-repeat,
    url(../img/visinfide/stemmi/stemma_v7.svg) calc(50% + 72px) center / 35px 42px no-repeat,
    url(../img/visinfide/stemmi/stemma_v6.svg) calc(50% + 144px) center / 35px 42px no-repeat,
    url(../img/visinfide/stemmi/stemma_v9.svg) calc(50% + 216px) center / 35px 42px no-repeat,
    url(../img/visinfide/velvet.svg) repeat,
    linear-gradient(#a8291f 0%, #8a1912 42%, #600f0a 100%);
}

/* medaglioni di navigazione */
body.v35 a#n1 img, body.v35 a#n2 img, body.v35 a#n3 img, body.v35 a#n4 img,
body a#n1 img, body a#n2 img, body a#n3 img, body a#n4 img {
  background-position: center center;
  background-size: 70px 72px;
  background-repeat: no-repeat;
  transition: transform .15s ease, filter .15s ease;
}
body.v35 a#n1 img, body a#n1 img { background-image: url(../img/visinfide/nav/n1.svg); }
body.v35 a#n2 img, body a#n2 img { background-image: url(../img/visinfide/nav/n2.svg); }
body.v35 a#n3 img, body a#n3 img { background-image: url(../img/visinfide/nav/n3.svg); }
body.v35 a#n4 img, body a#n4 img { background-image: url(../img/visinfide/nav/n4.svg); }
body a#n1:hover img { background-image: url(../img/visinfide/nav/n1_h.svg); }
body a#n2:hover img { background-image: url(../img/visinfide/nav/n2_h.svg); }
body a#n3:hover img { background-image: url(../img/visinfide/nav/n3_h.svg); }
body a#n4:hover img { background-image: url(../img/visinfide/nav/n4_h.svg); }
body a#n1:hover img, body a#n2:hover img, body a#n3:hover img, body a#n4:hover img,
body a#n1:hover img, body div#n5 a:hover img { background-position: center center; transform: translateY(-1px); }

body.v35 div#n5, body div#n5 {
  background-position: center center;
  background-size: 70px 72px;
  background-repeat: no-repeat;
}
body.v35 div#n5.i1, body div#n5.i1 { background-image: url(../img/visinfide/nav/n5_i1.svg); }
body.v35 div#n5.i2, body div#n5.i2 { background-image: url(../img/visinfide/nav/n5_i2.svg); }
body.v35 div#n5.i3, body div#n5.i3 { background-image: url(../img/visinfide/nav/n5_i3.svg); }
body.v35 div#n5.i4, body div#n5.i4 { background-image: url(../img/visinfide/nav/n5_i4.svg); }
body div#n5 a:hover img { background: radial-gradient(circle at 50% 50%, rgba(255, 236, 180, .28), transparent 70%); }

/* Plus => fiorini d'oro */
body div#mtop a#plus {
  background: linear-gradient(#2c1b11, #170e08);
  border: 1px solid var(--vif-gold);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(246, 223, 146, .35), 0 2px 4px rgba(0, 0, 0, .4);
  height: 32px;
  margin-top: 19px;
  padding: 0 4px 0 2px;
}
body div#mtop a#plus span.plus_text {
  background: none;
  height: 32px;
  padding: 0 4px 0 12px;
  line-height: 32px;
  font: 700 13px/32px var(--vif-caps);
  font-size-adjust: none;
  letter-spacing: .08em;
}
body div#mtop a#plus span.plus_text span { color: var(--vif-gold-light); }
body img#btn_plus { margin-top: 1px; height: 29px; width: 36px; background-size: 36px 29px; }
body #plus img.active { background-image: url(../img/visinfide/orn/fiorino.svg); }
body #plus img.inactive { background-image: url(../img/visinfide/orn/fiorino_off.svg); }
body .plus_g, body span.plus_g, body div#side_navi .plus_g { color: var(--vif-gold-dark); }
body .plus_o, body span.plus_o, body div#side_navi .plus_o { color: var(--vif-red); }

/* giorno / notte */
body div#mtop .dayNightIcon img.day_image { background: url(../img/visinfide/orn/sun.svg) center / 22px 22px no-repeat; width: 22px; height: 22px; }
body div#mtop .dayNightIcon img.night_image { background: url(../img/visinfide/orn/moon.svg) center / 22px 22px no-repeat; width: 22px; height: 22px; }

/* fiorini e argento a destra */
body div#mtop #goldHeader { color: #f6e5bd; text-shadow: 0 1px 1px rgba(0, 0, 0, .6); font-family: var(--vif-serif); font-size: 13px; }
body div#mtop #goldHeader .tzCoinBg { fill: #2a1a10; stroke: var(--vif-gold); }
body div#mtop #goldHeader .tzCoinRow-goldOff .tzCoinValue { color: #b9a37a; }

/* capitano (componente hero): colori di pergamena e oro */
body div#mtop .tzHeroRingBg { fill: #f2e6c8; stroke: var(--vif-gold-dark); }
body div#mtop .tzHeroTrack { stroke: #4a1a12; }
body div#mtop .tzHeroArcHealth { stroke: #e0473a; }
body div#mtop .tzHeroArcExp { stroke: var(--vif-gold-light); }
body div#mtop .tzHeroInner { fill: #fbf4e2; stroke: var(--vif-gold-dark); }
body div#mtop .tzHeroIcoBg { fill: #f2e6c8; stroke: var(--vif-gold-dark); }
body div#mtop .tzHeroCoin { fill: #d9d3c4; stroke: #6b5a3a; }
body div#mtop .tzHeroAdvOn { background: var(--vif-gold); border-color: #6b4a14; }
body div#mtop .tzHeroAdvOn .tzHeroAdvNum { color: var(--vif-black); }
body div#mtop .tzHeroAdvOff { background: #e8dcc0; border-color: #8a7457; }
body div#mtop .tzHeroRes { background: #f2e6c8; border-color: var(--vif-gold-dark); }

/* ora del server, in alto a sinistra sulla barra rossa */
div#ltime, body.mod1 div#ltime, body.mod2 div#ltime, body.mod3 div#ltime {
  color: #f0d9a8;
  font-family: var(--vif-serif);
  font-size: 12px;
  line-height: 14px;
  top: 112px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .55);
  pointer-events: none;
  z-index: 5;
}
div#ltime b, div#ltime .b { color: #fff1c9; }

/* --------------------------------------------------------------------------
   5. Barra delle risorse: linguetta d'inchiostro appesa alla barra rossa
   -------------------------------------------------------------------------- */
div#res, body.mod1 div#res, body.mod2 div#res, body.mod3 div#res { top: 172px; height: 28px; z-index: 4; }
body div#res table {
  background: linear-gradient(#2e1d12, #170e08);
  border: 1px solid var(--vif-gold);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 1px 12px 3px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(246, 223, 146, .25);
}
body div#res table td {
  background: transparent;
  color: #f3e3b8;
  font-family: var(--vif-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  padding: 0 2px;
}
body div#res table td img { margin-left: 8px; vertical-align: -2px; }

/* icone delle risorse (ovunque nel gioco) */
img.r1, img.r2, img.r3, img.r4, img.r5 {
  background-position: center center !important;
  background-size: 18px 12px;
  background-repeat: no-repeat;
}
img.r1 { background-image: url(../img/visinfide/res/r1.svg); }
img.r2 { background-image: url(../img/visinfide/res/r2.svg); }
img.r3 { background-image: url(../img/visinfide/res/r3.svg); }
img.r4 { background-image: url(../img/visinfide/res/r4.svg); }
img.r5 { background-image: url(../img/visinfide/res/r5.svg); }
div#res img.r1, div#res img.r2, div#res img.r3, div#res img.r4, div#res img.r5 {
  width: 21px; height: 14px; background-size: 21px 14px;
  filter: drop-shadow(0 0 1px rgba(246, 223, 146, .5));
}

/* --------------------------------------------------------------------------
   6. Il foglio: tre colonne su pergamena
   -------------------------------------------------------------------------- */
/* NB: #mid resta «static»: in alcune pagine (build.php) il piede, la barra
   delle risorse e l'ora del server finiscono DENTRO #mid e devono restare
   posizionati rispetto a .wrapper come nel layout originale. */
div#mid {
  background: url(../img/visinfide/parchment.svg) repeat #f2e6c8;
  border: 1px solid rgba(201, 162, 63, .75);
  box-shadow: 0 0 0 1px #5a3a1c, 0 0 0 5px #2a1a10, 0 0 0 6px rgba(201, 162, 63, .55), var(--vif-shadow);
  /* filetto rosso interno, come la cornice di un codice */
  outline: 1px solid rgba(163, 32, 26, .42);
  outline-offset: -9px;
  padding-bottom: 24px;
  margin-bottom: 30px;
}

/* menu di sinistra: indice del codice */
div#side_navi {
  background: none;
  margin-top: 34px;
  padding-left: 10px;
  box-sizing: border-box;
}
div#side_navi p {
  font-size: 13px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  background: url(../img/visinfide/orn/sep.svg) 4px bottom / 120px 10px no-repeat;
}
div#side_navi p:last-child { background: none; }
div#side_navi p a, div#side_navi p a:visited {
  display: block;
  padding: 1px 0 1px 20px;
  font-family: var(--vif-caps);
  font-size-adjust: none;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: .03em;
  color: var(--vif-ink);
}
div#side_navi a:hover, div#side_navi p a:hover {
  color: var(--vif-red);
  background: url(../img/visinfide/orn/fleuron.svg) 3px center / 11px 11px no-repeat;
  height: auto;
  width: auto;
}
div#side_navi p a font { font-family: inherit; }

/* colonna centrale */
div#content { background: transparent; }
div#content h1 {
  font-family: var(--vif-caps);
  font-size-adjust: none;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: .015em;
  color: var(--vif-red-dark);
  padding-bottom: 14px;
  margin-bottom: 10px;
  background: url(../img/visinfide/orn/rule.svg) left bottom / auto 14px no-repeat;
}
/* capolettera miniato */
div#content > h1:first-letter,
div#content #build > h1:first-letter {
  font-family: var(--vif-deco);
  font-size: 1.32em;
  color: var(--vif-red);
  text-shadow: 1px 1px 0 var(--vif-gold-light);
}
div#content h1 span.level { color: var(--vif-ink-soft); font-family: var(--vif-serif); font-size: 17px; font-weight: 600; }
div#content p { line-height: 1.45; }
#cap font, #cap { color: var(--vif-ink-faint) !important; font-style: italic; }

/* colonna di destra */
div#side_info, body.mod1 div#side_info, body.mod2 div#side_info, body.mod3 div#side_info { background: none; }
div#side_info h5, div#side_info h6 { font-family: var(--vif-caps); font-size-adjust: none; color: var(--vif-red-dark); }
div#side_info table, div#side_info table td, div#side_info table thead td { background: transparent; }
div#side_info table thead td { border-bottom: 1px solid var(--vif-rule); }
div#side_info table thead td a { color: var(--vif-red-dark); font-family: var(--vif-caps); font-size-adjust: none; }
div#side_info table tbody td { font-size: 13px; }
div#side_info td.hl, div#side_info td.hl a { color: var(--vif-red); font-weight: 700; }
div#side_info td.dot { color: var(--vif-gold-dark); }
div#side_info div.news {
  border: 1px solid var(--vif-rule);
  background: rgba(251, 244, 226, .7);
  box-shadow: inset 0 0 0 3px rgba(242, 230, 200, .9), inset 0 0 0 4px rgba(201, 162, 63, .45);
  padding: 10px 12px;
}
div#side_info span.time { color: var(--vif-ink-faint); }

/* messaggero delle missioni (sostituisce il personaggio Travian) */
div#side_info div#qge { padding: 4px 0 0 30px; }
div#side_info div#qge img.vif-quest { width: 160px; height: auto !important; max-height: 174px; transition: transform .2s ease; }
div#side_info div#qge img.vif-quest:hover { transform: rotate(-2deg) scale(1.03); }
div#side_info div#anm { border: 1px solid var(--vif-gold); }

/* --------------------------------------------------------------------------
   7. Tabelle: righe a inchiostro su pergamena, testate rosse
   -------------------------------------------------------------------------- */
body table { background-color: var(--vif-rule); }
body table tbody th, body table tbody td { background-color: var(--vif-parch-light); }
body table thead td, body table tfoot td {
  background-color: var(--vif-parch-mid);
  color: var(--vif-ink);
  font-weight: 600;
}
body table thead th, body table tfoot th {
  background-image: none;
  background-color: var(--vif-red-dark);
  background: linear-gradient(#97201a, #6a100b);
  color: #f6e5bd;
  font-family: var(--vif-caps);
  font-size-adjust: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 6px;
}
body table thead th a, body table tfoot th a, body table thead th font, body table tfoot th font { color: #ffe3a1; }
body table thead th a:hover, body table tfoot th a:hover { color: #fff; }
body table tbody th { color: var(--vif-ink); font-weight: 600; }
body table.tbg tr { background-color: var(--vif-parch-light); }
body table.tbg tr.cbg1 td, body td.cbg1 { background-color: #f0e0bb; }
body table.row_table_data tr.hlight td { background-color: #fff3d0; }
body table.row_table_data tr.marked td { background-color: #f6dcb3; }
body table td.none { color: var(--vif-ink-faint); font-style: italic; text-align: center; }
body table td, body table th { font-variant-numeric: lining-nums; }
/* la barra delle risorse e le tabelle di layout restano trasparenti */
body div#res table, body table#vlist, body #side_info table { background-color: transparent; }

/* --------------------------------------------------------------------------
   8. Moduli e bottoni
   -------------------------------------------------------------------------- */
input.text, select.dropdown, textarea,
input[type="text"], input[type="password"], input[type="email"], input[type="number"], select {
  border: 1px solid #a88a55;
  border-radius: 2px;
  background: #fffaf0;
  color: var(--vif-ink);
  font-family: var(--vif-serif);
  box-shadow: inset 0 1px 2px rgba(80, 50, 20, .15);
}
input.text:focus, textarea:focus, select:focus, input[type="text"]:focus, input[type="password"]:focus {
  border-color: var(--vif-red);
  background: #fff;
}

/* bottoni testuali (classe originale .trav_buttons e bottoni del gioco) */
.trav_buttons, button.trav_buttons, input.trav_buttons {
  display: inline-block;
  background: linear-gradient(#c3352a, #a3201a 50%, #76130e);
  border: 1px solid var(--vif-gold);
  border-radius: 3px;
  color: #f8e7bd;
  cursor: pointer;
  font-family: var(--vif-caps);
  font-size-adjust: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 18px;
  padding: 3px 18px 4px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, .35), 0 1px 3px rgba(0, 0, 0, .3);
  transition: filter .12s ease, transform .12s ease;
}
.trav_buttons:hover { border-color: #f0d27a; filter: brightness(1.12); color: #fff4d6; }
.trav_buttons:active { transform: translateY(1px); background: linear-gradient(#76130e, #a3201a) !important; border-color: var(--vif-gold) !important; }
.trav_buttons[disabled], .trav_buttons:disabled { filter: grayscale(.8) brightness(.9); cursor: default; }

/* bottoni-immagine: SVG con la scritta in italiano */
input.dynamic_img, img.dynamic_img { background-position: 0 0 !important; background-size: 100% 100%; background-repeat: no-repeat; }
input.dynamic_img.over, img.dynamic_img.over { filter: brightness(1.12); }
input.dynamic_img.clicked { filter: brightness(.9); transform: translateY(1px); }
input#btn_ok { background-image: url(../img/visinfide/btn/ok.svg); }
input#btn_train { background-image: url(../img/visinfide/btn/train.svg); }
input#btn_save { background-image: url(../img/visinfide/btn/save.svg); }
input#btn_delete { background-image: url(../img/visinfide/btn/delete.svg); }
input#btn_send { background-image: url(../img/visinfide/btn/send.svg); }
input#btn_login { background-image: url(../img/visinfide/btn/login.svg); }
input#btn_signup { background-image: url(../img/visinfide/btn/signup.svg); }
input#btn_back { background-image: url(../img/visinfide/btn/back.svg); }
input#btn_archiv { background-image: url(../img/visinfide/btn/archiv.svg); }
input#btn_reply { background-image: url(../img/visinfide/btn/reply.svg); }
input#btn_forward { background-image: url(../img/visinfide/btn/forward.svg); }
input#btn_demolish { background-image: url(../img/visinfide/btn/demolish.svg); }
input#btn_search { background-image: url(../img/visinfide/btn/search.svg); }
div.forum input#fbtn_ok { background-image: url(../img/visinfide/btn/ok.svg); }
div.forum input#fbtn_vote { background-image: url(../img/visinfide/btn/f_vote.svg); }
div.forum input#fbtn_result { background-image: url(../img/visinfide/btn/f_result.svg); }
div.forum input#fbtn_voting { background-image: url(../img/visinfide/btn/f_voting.svg); }
div.forum img#fbtn_reply { background-image: url(../img/visinfide/btn/reply.svg); }
div.forum img#fbtn_post { background-image: url(../img/visinfide/btn/f_post.svg); }
div.forum img#fbtn_newforum { background-image: url(../img/visinfide/btn/f_newforum.svg); }

/* menu testuali «Tutti | Commercio | ...» */
div#textmenu { font-family: var(--vif-caps); font-size-adjust: none; font-size: 12.5px; color: var(--vif-rule); margin-bottom: 10px; }
div#textmenu a { color: var(--vif-ink-soft); font-weight: 600; }
div#textmenu a.selected, div#textmenu a:hover { color: var(--vif-red); border-bottom: 1px solid var(--vif-gold); }

/* --------------------------------------------------------------------------
   9. Feudo (dorf1/dorf2), edifici, rapporti, mappa
   -------------------------------------------------------------------------- */
/* i disegni Travian dei feudi vengono «stampati» sulla pergamena:
   moltiplicazione per far sparire il fondo bianco e un po' di seppia */
div#content #village_map,
div#content.village2 #village_map,
div#content img.building,
div#content .build_logo img,
div#content img.unit.big, div#content img.big_u {
  mix-blend-mode: multiply;
  filter: sepia(.32) saturate(.85) contrast(1.03);
}
div#content #village_map { border-radius: 50%; }
div#content.village2 h1 { background: none; position: relative; z-index: 5; text-shadow: 0 0 6px #f2e6c8, 0 0 3px #f2e6c8; }
button.rpt-readall-btn { color: var(--vif-red); font-family: var(--vif-caps); font-size-adjust: none; font-size: 12.5px; }
button.rpt-readall-btn:hover { color: #d2491f; }

div#map_details table#production, div#map_details table#troops, div#map_details table#movements {
  background-color: rgba(251, 244, 226, .72);
  border: 1px solid var(--vif-rule);
  box-shadow: inset 0 0 0 3px rgba(242, 230, 200, .85);
  margin-bottom: 8px;
}
div#map_details table thead th, div#map_details table thead td {
  background: none;
  color: var(--vif-red-dark);
  font-family: var(--vif-caps);
  font-size-adjust: none;
  text-align: left;
  border-bottom: 1px solid var(--vif-rule);
}
div#map_details table td, div#map_details table th, div#map_details table thead th, div#map_details table thead td { background-color: transparent; }
div#map_details table td.num { font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
div#content #loyality { font-family: var(--vif-serif); font-size: 14px; }

/* pagina di un edificio */
div#build p.build_desc { font-size: 14px; color: var(--vif-ink-soft); }
div#build p#contract, div#build .contract {
  padding: 8px 10px;
  border: 1px solid var(--vif-rule);
  background: rgba(251, 244, 226, .75);
  box-shadow: inset 0 0 0 3px rgba(242, 230, 200, .8);
}
div#build a.build, div#build .build a {
  font-family: var(--vif-caps);
  font-size-adjust: none;
  font-weight: 700;
  letter-spacing: .03em;
}
span.little_res { font-variant-numeric: lining-nums; }

/* rapporti e messaggi */
div.reports table#overview td.sub a, div.messages table#overview td a { font-weight: 600; }
div.reports table#report_surround thead th, div.reports table#report_surround thead td { text-align: left; }
div.messages div.msg_content, div#content .msg_content {
  background: var(--vif-parch-light);
  border: 1px solid var(--vif-rule);
}

/* mappa: cornice dorata */
div#content.map #map { mix-blend-mode: multiply; filter: sepia(.25) saturate(.9); }
div#content.map #map_rulers div { color: var(--vif-ink-soft); font-family: var(--vif-serif); }

/* finestra del tutorial / missioni */
div.popup3 {
  background: url(../img/visinfide/parchment.svg) #f2e6c8;
  border: 2px solid var(--vif-gold-dark);
  box-shadow: 0 0 0 4px #2a1a10, 0 0 0 5px var(--vif-gold), 0 14px 40px rgba(0, 0, 0, .6);
  border-radius: 2px;
}
div.popup3 div#drag { background: url(../img/visinfide/velvet.svg), linear-gradient(#97201a, #6a100b); border-bottom: 1px solid var(--vif-gold); }
img.popup4 { background: url(../img/visinfide/orn/close.svg) center / 26px 26px no-repeat; border: 0 !important; right: 4px; top: 4px; }
img.popup4:hover { filter: brightness(1.15); }
div.popup3 h1, div.popup3 h2, div#popup3 h1 { font-family: var(--vif-caps); font-size-adjust: none; color: var(--vif-red-dark); background: none; }
div.popup3 h1 { font-size: 21px; }
div#popup3 i, div#popup3 .questText { font-family: var(--vif-fell); font-size-adjust: none; font-size: 15.5px; line-height: 1.35; color: var(--vif-ink-soft); }
div.quest div#qstd span#qst_accpt a, div.quest div#qstd a.qle, div.quest div#qstd a.qri { font-family: var(--vif-caps); font-size-adjust: none; font-size: 13px; color: var(--vif-red); }
div.quest div#qstbg { background-color: transparent; mix-blend-mode: multiply; filter: sepia(.4) saturate(.8); }

/* --------------------------------------------------------------------------
   10. Piede: credito GPL in piccolo
   -------------------------------------------------------------------------- */
div#footer {
  background: linear-gradient(#2a1a10, #120b07);
  border-top: 3px solid var(--vif-gold);
  box-shadow: inset 0 1px 0 #f6df92;
  color: #cdb27a;
}
div#footer div#mfoot { background: url(../img/visinfide/logo_small.svg) 0 18px / auto 44px no-repeat; color: #cdb27a; }
div#footer div.footer-menu { color: #cdb27a; }
div#footer div#mfoot div.copyright { font-family: var(--vif-serif); font-size: 13px; color: #d8c08e; }
div#footer div#mfoot div.vif-credit { font-size: 12px; color: #a99064; }
div#footer div#mfoot a, div#footer div#mfoot a:visited { color: var(--vif-gold-light) !important; font-weight: 600; }
div#footer div#mfoot a:hover { color: #fff1c9 !important; }

/* --------------------------------------------------------------------------
   11. Barra di guerra (Templates/visinfide/war_banner.tpl, inclusa in cima a
       header.tpl). Markup atteso: <div class="vif-war-banner onwar|offwar">…</div>
       .onwar  = le campane suonano: battaglia aperta (rosso, spade incrociate)
       .offwar = tregua (verde salvia e oro, colomba)
       E' una fascia a tutta larghezza in cima alla pagina, alta 28px: gli
       elementi posizionati in assoluto del layout classico scendono di 28px.
   -------------------------------------------------------------------------- */
.vif-war-banner {
  position: relative;
  z-index: 30;
  box-sizing: border-box;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 12px;
  overflow: hidden;
  font-family: var(--vif-caps);
  font-size-adjust: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: .05em;
  text-align: center;
  white-space: nowrap;
}
.vif-war-banner:before, .vif-war-banner:after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: center / contain no-repeat;
}
.vif-war-banner:after { transform: scaleX(-1); }
.vif-war-banner > * { overflow: hidden; text-overflow: ellipsis; }
.vif-war-banner a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.vif-war-banner a:hover { border-bottom-style: solid; }
.vif-war-banner .vif-war-icon { display: none; }
.vif-war-banner .vif-war-links { flex: none; font-family: var(--vif-serif); font-size-adjust: .5; font-style: italic; font-weight: 600; letter-spacing: 0; font-size: 14px; }
.vif-war-banner .vif-war-links:before { content: "\2014"; margin-right: 8px; opacity: .6; font-style: normal; }
.vif-war-banner .vif-war-link + .vif-war-link { position: relative; margin-left: 20px; }
.vif-war-banner .vif-war-link + .vif-war-link:before { content: "\00B7"; position: absolute; left: -13px; opacity: .75; }
.vif-war-banner.onwar {
  color: #fff1d0;
  background: url(../img/visinfide/velvet.svg), linear-gradient(#c3352a, #8a1912 55%, #5e0e09);
  border-bottom: 2px solid var(--vif-gold);
  box-shadow: inset 0 -1px 0 #f6df92, 0 2px 6px rgba(0, 0, 0, .45);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
  animation: vif-campane 2.4s ease-in-out infinite;
}
.vif-war-banner.onwar:before, .vif-war-banner.onwar:after { background-image: url(../img/visinfide/orn/swords.svg); }
.vif-war-banner.offwar {
  color: #343f22;
  background: linear-gradient(#e4e2bf, #c8c79b 60%, #b2b383);
  border-bottom: 2px solid var(--vif-gold-dark);
  box-shadow: inset 0 -1px 0 rgba(246, 223, 146, .7), 0 2px 5px rgba(0, 0, 0, .3);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.vif-war-banner.offwar:before, .vif-war-banner.offwar:after { background-image: url(../img/visinfide/orn/dove.svg); }
@keyframes vif-campane {
  0%, 100% { box-shadow: inset 0 -1px 0 #f6df92, 0 2px 6px rgba(0, 0, 0, .45); }
  50%      { box-shadow: inset 0 -1px 0 #f6df92, 0 2px 14px rgba(230, 70, 40, .75); }
}
@media (prefers-reduced-motion: reduce) {
  .vif-war-banner.onwar { animation: none; }
}
/* gli elementi in posizione assoluta seguono la fascia */
.wrapper:has(.vif-war-banner) div#res,
body.mod1 .wrapper:has(.vif-war-banner) div#res,
body.mod2 .wrapper:has(.vif-war-banner) div#res,
body.mod3 .wrapper:has(.vif-war-banner) div#res { top: 200px; }
.wrapper:has(.vif-war-banner) div#ltime,
body.mod1 .wrapper:has(.vif-war-banner) div#ltime,
body.mod2 .wrapper:has(.vif-war-banner) div#ltime,
body.mod3 .wrapper:has(.vif-war-banner) div#ltime { top: 140px; }

/* --------------------------------------------------------------------------
   12. Chat del mondo (Templates/GlobalChat/widget.tpl ha il suo <style>:
       qui serve una specificita' piu' alta)
   -------------------------------------------------------------------------- */
#gchat_root #gchat_bubble {
  background: radial-gradient(circle at 40% 35%, #c8362a, #7a140f);
  border: 2px solid var(--vif-gold);
  box-shadow: 0 0 0 2px #2a1a10, 0 3px 10px rgba(0, 0, 0, .5);
}
#gchat_root #gchat_badge { background: var(--vif-gold); color: var(--vif-black); }
#gchat_root #gchat_panel {
  background: url(../img/visinfide/parchment.svg) #f2e6c8;
  border: 1px solid var(--vif-gold-dark);
  box-shadow: 0 0 0 3px #2a1a10, 0 0 0 4px var(--vif-gold), 0 8px 26px rgba(0, 0, 0, .55);
  font-family: var(--vif-serif);
  font-size: 13px;
  border-radius: 3px;
}
#gchat_root #gchat_head {
  background: url(../img/visinfide/velvet.svg), linear-gradient(#a8291f, #6a100b);
  color: #f6e5bd;
  font-family: var(--vif-caps);
  font-size-adjust: none;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--vif-gold);
}
#gchat_root .gchat_text { color: var(--vif-ink); }
#gchat_root .gchat_time { color: var(--vif-ink-faint); }
#gchat_root .gchat_name { color: var(--vif-red-dark); }
#gchat_root #gchat_form { border-top: 1px solid var(--vif-rule); background: var(--vif-parch-light); }
#gchat_root #gchat_input { background: transparent; font-family: var(--vif-serif); font-size: 13px; color: var(--vif-ink); }
#gchat_root #gchat_send_btn, #gchat_root #gchat_poll_submit { background: linear-gradient(#c3352a, #7a140f); color: #f8e7bd; }
#gchat_root .gchat_poll_option_mine { border-color: var(--vif-gold-dark); }
#gchat_root .gchat_mention_item:hover, #gchat_root .gchat_mention_item.active { background: var(--vif-parch-mid); }

/* --------------------------------------------------------------------------
   13. Pagine pubbliche: accesso e iscrizione
   -------------------------------------------------------------------------- */
div.login h1 img.img_login { background-image: url(../img/visinfide/orn/title_login.svg); }
div.signup h1 img.anmelden { background-image: url(../img/visinfide/orn/title_signup.svg); }
div.activate h1 img.passwort { background-image: url(../img/visinfide/orn/title_password.svg); }
div#content.login h1, div#content.signup h1, div#content.activate h1, div.login h1, div.signup h1, div.activate h1 { background: none; padding-bottom: 0; margin-bottom: 6px; text-align: center; }
div.login h5, div.signup h5, div.activate h5 { display: none; }

div.login table#login_form, div#content.login table#login_form {
  background: rgba(251, 244, 226, .8);
  border: 1px solid var(--vif-rule);
  box-shadow: inset 0 0 0 4px rgba(242, 230, 200, .9), inset 0 0 0 5px rgba(201, 162, 63, .5);
  padding: 14px 10px;
}
div.login table#login_form th, div.login table#login_form td { background: transparent; font-size: 14px; }
div.login table#login_form input.text { font-size: 14px; padding: 4px 6px; width: 180px; }
div.login p.btn button.trav_buttons, div.login button#btn_login { font-size: 14px; padding: 6px 34px; }

/* procedura di iscrizione (anmelden.php): stessa struttura, nuova veste */
#regwiz { font-family: var(--vif-serif); }
#regwiz .rw-hdr {
  height: auto;
  padding: 14px 20px 12px;
  background: url(../img/visinfide/velvet.svg), linear-gradient(#a8291f, #6a100b);
  border: 2px solid var(--vif-gold);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 1px 0 #f6df92;
}
#regwiz .rw-hdr:before, #regwiz .rw-hdr:after, #regwiz .rw-bot:before, #regwiz .rw-bot:after { display: none; }
#regwiz .rw-hdr span {
  font: 700 19px/22px var(--vif-caps);
  font-size-adjust: none;
  color: #f6e5bd;
  letter-spacing: .06em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
#regwiz .rw-body {
  background: url(../img/visinfide/parchment.svg) #f2e6c8;
  border-left: 2px solid var(--vif-gold);
  border-right: 2px solid var(--vif-gold);
  padding: 14px 18px 8px;
}
#regwiz .rw-bot { height: 10px; background: var(--vif-red-dark); border: 2px solid var(--vif-gold); border-top: 0; border-radius: 0 0 6px 6px; }
#regwiz .rw-intro { font: italic 400 15px/1.4 var(--vif-serif); color: var(--vif-ink-soft); text-align: center; }
#regwiz .rw-thumbs { gap: 6px; }
#regwiz .rw-thumb {
  flex: 1 1 52px;
  max-width: 66px;
  margin: 0;
  padding: 4px 3px 2px;
  background: var(--vif-parch-light);
  border: 1px solid var(--vif-rule);
  border-radius: 3px;
  box-shadow: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
#regwiz .rw-thumb img { width: 100%; height: auto; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
#regwiz .rw-thumb:hover { border-color: var(--vif-gold); transform: translateY(-2px); }
#regwiz .rw-thumb.sel { border: 1px solid var(--vif-red); box-shadow: 0 0 0 2px var(--vif-gold), 0 4px 10px rgba(110, 17, 12, .35); background: #fff8e6; }
#regwiz .rw-thumb.sel:before { border-bottom-color: var(--vif-gold); }
#regwiz .rw-thumb.sel:after { border-bottom-color: var(--vif-red); }
#regwiz .rw-panel {
  height: 230px;
  background: rgba(251, 244, 226, .85);
  border: 1px solid var(--vif-rule);
  box-shadow: inset 0 0 0 4px rgba(242, 230, 200, .9), inset 0 0 0 5px rgba(201, 162, 63, .5);
  border-radius: 2px;
}
#regwiz .rw-portrait { right: 12px; bottom: 12px; top: 12px; height: auto; max-height: 206px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
#regwiz .rw-name { font: 700 22px/1.15 var(--vif-caps); font-size-adjust: none; color: var(--vif-red-dark); text-transform: none; margin-right: 175px; }
#regwiz .rw-lines { margin-right: 170px; }
#regwiz .rw-lines li { font: 400 14.5px/19px var(--vif-serif); color: var(--vif-ink); background-size: 14px auto; padding-left: 24px; }
#regwiz .rw-badge {
  top: auto; bottom: 10px; left: 16px; right: auto; width: auto; max-width: none;
  padding: 2px 10px; border: 1px solid var(--vif-gold-dark); border-radius: 10px;
  background: var(--vif-red-dark); color: #f6e5bd; font: 700 11px/16px var(--vif-caps); font-size-adjust: none; letter-spacing: .04em;
}
#regwiz .rw-btn {
  width: 260px;
  height: 44px;
  background: linear-gradient(#c3352a, #a3201a 50%, #76130e);
  border: 2px solid var(--vif-gold);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, .4), 0 0 0 2px #2a1a10, 0 4px 10px rgba(0, 0, 0, .35);
  font: 700 17px/40px var(--vif-caps);
  font-size-adjust: none;
  letter-spacing: .08em;
  color: #f8e7bd;
}
#regwiz .rw-back, #regwiz .rw-change { color: var(--vif-red); font-family: var(--vif-caps); font-size-adjust: none; }
#regwiz .rw-foot { font: italic 13px var(--vif-serif); color: var(--vif-ink-faint); }
#regwiz .rw-map img.rw-mapbg, #regwiz .rw-pic { filter: sepia(.45) saturate(.8); }
#regwiz .rw-rand { background: var(--vif-parch-light); border-color: var(--vif-rule); font-family: var(--vif-caps); font-size-adjust: none; color: var(--vif-ink); }
#regwiz .rw-rand.sel, #regwiz .rw-map.picked .rw-q.sel { border-color: var(--vif-red); box-shadow: inset 0 0 0 2px var(--vif-red); color: var(--vif-red-dark); }
#regwiz .rw-card { background: rgba(251, 244, 226, .85); border-color: var(--vif-rule); }
#regwiz .rw-card h3 { font: 700 17px/1.2 var(--vif-caps); font-size-adjust: none; color: var(--vif-red-dark); text-transform: none; }
#regwiz .rw-pic-tribe { background-size: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3)); }
#regwiz .rw-field label, #regwiz .rw-agree { font: 600 14px var(--vif-serif); color: var(--vif-ink); }
#regwiz .rw-field input.rw-text { border-color: #a88a55; background: #fffaf0; font: 15px var(--vif-serif); color: var(--vif-ink); }
#regwiz .rw-note { background: #efe6cf; border-color: var(--vif-rule); color: var(--vif-ink-soft); font: italic 14px var(--vif-serif); }
#regwiz .rw-note:before { background: var(--vif-azure); }

/* stemma della fazione nel profilo */
.vif-stemma { width: 18px; height: 22px; vertical-align: -5px; margin-right: 5px; }

/* --------------------------------------------------------------------------
   14. Telefono: il layout classico (980px fissi) diventa a una colonna
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  html, body { min-width: 0; }
  body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; padding-bottom: 46px; }
  div#dynamic_header, div#header, div#mid, div#res, div#ltime, div#footer, div#footer div#mfoot,
  body.mod1 div#res, body.mod2 div#res, body.mod3 div#res { min-width: 0 !important; }

  div#dynamic_header, body.mod1 div#dynamic_header, body.mod2 div#dynamic_header, body.mod3 div#dynamic_header {
    height: 70px;
    background:
      url(../img/visinfide/logo.svg) center 2px / auto 70px no-repeat,
      url(../img/visinfide/header.svg) center bottom / auto 70px repeat-x,
      #efe0bb;
  }
  .vif-war-banner { display: block; height: auto; min-height: 28px; padding: 4px 30px; font-size: 11.5px; line-height: 16px; white-space: normal; }
  .vif-war-banner > * { overflow: visible; text-overflow: clip; }
  .vif-war-banner:before, .vif-war-banner:after { position: absolute; top: 50%; margin-top: -9px; width: 18px; height: 18px; }
  .vif-war-banner:before { left: 7px; }
  .vif-war-banner:after { right: 7px; }
  .vif-war-banner .vif-war-links { display: block; font-size: 13.5px; }
  .vif-war-banner .vif-war-links:before { content: none; }

  /* barra rossa con i medaglioni piu' piccoli, che vanno a capo */
  div#header { height: auto; padding: 4px 4px 6px; }
  div#mtop, body.mod1 div#mtop, body.mod2 div#mtop, body.mod3 div#mtop {
    position: relative; left: auto; top: 0; margin: 0 auto; width: auto; max-width: 420px; height: auto;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 4px;
  }
  div#mtop a#n1, div#mtop a#n2, div#mtop a#n3, div#mtop a#n4, div#mtop div#n5 { float: none; }
  body a#n1 img, body a#n2 img, body a#n3 img, body a#n4 img { width: 52px; height: 54px; background-size: 52px 54px; }
  body div#n5 { width: 52px; height: 54px; background-size: 52px 54px; }
  body div#n5 img { width: 26px; height: 54px; }
  div#mtop #tzHeroBox { position: relative; left: auto; top: auto; margin: 0 2px; zoom: .8; }
  body div#mtop a#plus { margin: 0 2px; float: none; }
  div#mtop #wrapper { display: none; }
  body div#mtop #goldHeader { position: static; transform: none; margin: 0 4px; }
  div#mtop > .clear { display: none; }

  /* ora del server: fuori dal flusso su telefono */
  div#stime { display: none; }

  /* risorse sempre visibili in basso */
  div#res, body.mod1 div#res, body.mod2 div#res, body.mod3 div#res,
  .wrapper:has(.vif-war-banner) div#res, body.mod1 .wrapper:has(.vif-war-banner) div#res,
  body.mod2 .wrapper:has(.vif-war-banner) div#res, body.mod3 .wrapper:has(.vif-war-banner) div#res {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; height: auto; z-index: 9000;
  }
  div#resWrap { left: 0; margin: 0; width: auto; }
  body div#res table {
    width: 100%; border-radius: 0; border: 0; border-top: 2px solid var(--vif-gold); padding: 3px 4px 4px;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, .4);
  }
  body div#res table tr { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
  body div#res table td { font-size: 11.5px; line-height: 18px; padding: 0 1px; }
  body div#res table td img { margin-left: 4px; }
  div#res img.r1, div#res img.r2, div#res img.r3, div#res img.r4, div#res img.r5 { width: 18px; height: 12px; background-size: 18px 12px; }
  #gchat_root #gchat_bubble { bottom: 58px; right: 10px; width: 42px; height: 42px; }
  #gchat_root #gchat_panel { bottom: 108px; right: 8px; max-height: calc(100vh - 190px); }

  /* il foglio: una colonna */
  div#mid { width: auto; margin: 10px 6px 20px; float: none; padding: 6px 10px 18px; box-sizing: border-box; }
  div#mid { outline-offset: -5px; }
  div#side_navi { float: none; width: auto; min-height: 0 !important; height: auto !important; margin: 4px 0 6px; padding: 0; }
  div#side_navi p { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; margin: 0 0 4px; padding: 0 0 6px; background-position: center bottom; }
  div#side_navi p br { display: none; }
  div#side_navi p a, div#side_navi p a:visited { display: inline-block; padding: 2px 8px; border: 1px solid rgba(185, 155, 98, .6); border-radius: 12px; background: rgba(251, 244, 226, .6); font-size: 11.5px; line-height: 20px; }
  div#side_navi a:hover, div#side_navi p a:hover { background: #fff6dc; }
  div#side_navi td.count { display: block; }

  div#content, div#content[class], body.mod1 div#content, body.mod2 div#content, body.mod3 div#content {
    float: none; width: auto !important; min-height: 0 !important; height: auto !important; margin: 0; padding: 0;
    overflow-x: auto; overflow-y: visible;
  }
  div#content h1 { font-size: 21px; }
  div#content #build, div#content h1, div#content p, div#content #textmenu, div#content h4, div#content form { width: auto !important; max-width: 100%; }
  div#content table:not(#map_infobox) { width: 100% !important; }
  div#content #lswitch { display: none; }
  div#side_info, body.mod1 div#side_info, body.mod2 div#side_info, body.mod3 div#side_info {
    float: none; width: auto; min-height: 0 !important; height: auto !important; margin: 12px 0 0; padding: 0;
  }
  div#side_info div#anm { display: none; }
  div#side_info div#qge { padding: 0; text-align: center; }
  div#side_info div#qge img.vif-quest { display: inline-block; width: 84px; max-height: 92px; }
  div#side_info div.news { width: auto; margin-left: 0; }
  div#side_info table { width: 100%; }
  div#side_info > br, div#mid > br { display: none; }
  .footer-stopper { margin-bottom: 0; height: 0; }
  div#content br + br + br { display: none; }

  /* feudo: mappa e dettagli una sotto l'altro */
  div#content.village1 #village_map { float: none; margin: 0 auto; }
  div#content.village1 #map_details { float: none; width: auto; margin: 10px 0 0; position: static; }
  div#content.village1 #map_details > br { display: none; }
  div#content.village2 #village_map, div#content.village2 #levels { zoom: .64; margin: 0 auto; }
  div#content.map #map { zoom: .66; }

  /* finestre popup: fisse al centro dello schermo */
  div.popup3 { position: fixed; left: 50% !important; top: 70px !important; margin-left: 0; transform: translateX(-50%); width: calc(100vw - 44px); max-width: 430px; height: auto; max-height: calc(100vh - 130px); padding: 34px 10px 12px; overflow: auto; box-sizing: border-box; z-index: 9500; }
  div.popup3 div#drag { left: 0; right: 0; top: 0; width: auto; height: 26px; }
  div.popup3 iframe { max-width: 100%; }
  div.quest div#qstd { width: auto; }
  div.quest div#qstbg { position: relative; left: 0; top: 0; width: 100%; height: 180px; margin-top: 10px; background-size: contain; }

  /* piede */
  div#footer { position: relative; height: auto; margin-top: 0; padding: 8px 0 12px; }
  div#footer div#mfoot { width: auto; height: auto; padding: 56px 12px 0; background-position: center 6px; text-align: center; }
  div#footer div#mfoot div.copyright, div#footer div.footer-menu, div#footer div.footer-menu > div { text-align: center !important; }
  .wrapper { min-height: 0; }

  /* pagine pubbliche */
  div#header:empty {
    height: 58px;
    background:
      url(../img/visinfide/stemmi/stemma_v1.svg) calc(50% - 138px) center / 29px 35px no-repeat,
      url(../img/visinfide/stemmi/stemma_v3.svg) calc(50% - 92px) center / 29px 35px no-repeat,
      url(../img/visinfide/stemmi/stemma_v8.svg) calc(50% - 46px) center / 29px 35px no-repeat,
      url(../img/visinfide/stemmi/stemma_v2.svg) center center / 36px 43px no-repeat,
      url(../img/visinfide/stemmi/stemma_v7.svg) calc(50% + 46px) center / 29px 35px no-repeat,
      url(../img/visinfide/stemmi/stemma_v6.svg) calc(50% + 92px) center / 29px 35px no-repeat,
      url(../img/visinfide/stemmi/stemma_v9.svg) calc(50% + 138px) center / 29px 35px no-repeat,
      url(../img/visinfide/velvet.svg) repeat,
      linear-gradient(#a8291f 0%, #8a1912 42%, #600f0a 100%);
  }
  div.login h1 img.img_login, div.signup h1 img.anmelden, div.activate h1 img.passwort { width: 100%; max-width: 468px; background-size: contain; background-position: center; }
  div.login table#login_form input.text { width: 100%; box-sizing: border-box; }
  #regwiz .rw-panel { height: auto; min-height: 210px; }
  #regwiz .rw-portrait { position: static; display: block; margin: 0 auto 8px; height: 120px; max-height: none; }
  #regwiz .rw-name, #regwiz .rw-lines { margin-right: 0; text-align: left; }
  #regwiz .rw-name { text-align: center; }
  #regwiz .rw-badge { position: static; display: inline-block; margin: 6px 0 0; }
  #regwiz .rw-cards { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  div#content.village2 #village_map, div#content.village2 #levels { zoom: .6; }
  div#content.map #map { zoom: .6; }
  body a#n1 img, body a#n2 img, body a#n3 img, body a#n4 img { width: 48px; height: 50px; background-size: 48px 50px; }
  body div#n5 { width: 48px; height: 50px; background-size: 48px 50px; }
  body div#n5 img { width: 24px; height: 50px; }
}

/* --------------------------------------------------------------------------
   15. Ritocchi puntuali
   -------------------------------------------------------------------------- */
/* movimenti di truppe nel feudo: colori leggibili sulla pergamena */
body div.village1 table#movements .a1, body div.village1 table#movements .d1 { color: #c0281c; }
body div.village1 table#movements .a2, body div.village1 table#movements .d2 { color: #8a5a00; }
body div.village1 table#movements .a3, body div.village1 table#movements .d3 { color: #6a2d7a; }
/* riquadro informativo della mappa */
body div#map table#map_infobox { box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
body div#map table#map_infobox thead th { background: linear-gradient(#97201a, #6a100b) !important; color: #f6e5bd !important; }
body div#map table#map_infobox tbody th, body div#map table#map_infobox tbody td { background-color: var(--vif-parch-light) !important; color: var(--vif-ink); }
/* classifiche: gli stemmi delle fazioni al posto dei volti Travian */
body div.statistics div#submenu2 img { width: 26px; height: 31px; background-size: 26px 31px !important; background-position: center !important; background-repeat: no-repeat; opacity: .82; transition: transform .15s ease, opacity .15s ease; }
body div.statistics div#submenu2 img:hover, body div.statistics div#submenu2 img.active { opacity: 1; transform: translateY(-1px) scale(1.06); filter: drop-shadow(0 0 3px rgba(246, 223, 146, .8)); }
body div.statistics div#submenu2 img.btn_v1 { background-image: url(../img/visinfide/stemmi/stemma_v1.svg); }
body div.statistics div#submenu2 img.btn_v2 { background-image: url(../img/visinfide/stemmi/stemma_v2.svg); }
body div.statistics div#submenu2 img.btn_v3 { background-image: url(../img/visinfide/stemmi/stemma_v3.svg); }
body div.statistics div#submenu2 img.btn_v6 { background-image: url(../img/visinfide/stemmi/stemma_v6.svg); }
body div.statistics div#submenu2 img.btn_v7 { background-image: url(../img/visinfide/stemmi/stemma_v7.svg); }
body div.statistics div#submenu2 img.btn_v8 { background-image: url(../img/visinfide/stemmi/stemma_v8.svg); }
body div.statistics div#submenu2 img.btn_v9 { background-image: url(../img/visinfide/stemmi/stemma_v9.svg); }
/* rapporti di battaglia: attaccante rosso, difensore azzurro */
body div.reports td.report_content table#attacker td.role, body div.warsim table.attacker td.role { color: var(--vif-red); font-family: var(--vif-caps); font-size-adjust: none; }
body div.reports td.report_content table.defender td.role, body div.reports td.report_content table#reinforcement td.role, body div.warsim table.defender td.role { color: var(--vif-azure); font-family: var(--vif-caps); font-size-adjust: none; }
body div.reports table#report_surround thead th { font-size: 12.5px; }
/* bottone «condividi in chat» (stile in linea nel widget) */
#gchat_share_report_wrap #gchat_share_report_btn {
  background: linear-gradient(#c3352a, #a3201a 50%, #76130e) !important;
  border: 1px solid var(--vif-gold) !important;
  color: #f8e7bd !important;
  font-family: var(--vif-caps) !important;
  font-size-adjust: none;
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: 3px !important;
}
/* «Inviato» nelle testate di rapporti e messaggi */
body div.reports table#overview thead th.sent a, body div.messages table#overview th.sent a { color: #ffe3a1; }
/* voci di menu non disponibili, valori ignoti */
body div#textmenu span { color: #b6a27e; font-weight: 600; }
body span.none, body span.none2, body span.none3, body div.player div#textmenu a.none { color: #a8946f; }
/* riga del feudo corrente: filetto d'oro invece del verde */
body table tr.hl th, body table tr.hl td { background-color: #fff3d0; border-top: 1px solid var(--vif-gold); border-bottom: 1px solid var(--vif-gold); }
body table tr.hl th.fc, body table tr.hl td.fc { border-left: 1px solid var(--vif-gold); }
body table tr.hl th.lc, body table tr.hl td.lc { border-right: 1px solid var(--vif-gold); }
body div#build.gid16 div#textmenu a { background-color: transparent; }

/* --------------------------------------------------------------------------
   16. Portale d'ingresso (index.php, body.indexPage): layout proprio di
       gpack/travian/main.css, qui rivestito con la stessa veste del gioco
   -------------------------------------------------------------------------- */
body.indexPage { background: transparent; }
body.indexPage .wrapper { background: none; }
body.indexPage #country_select { background: linear-gradient(#2c1b11, #170e08); border-bottom: 2px solid var(--vif-gold); }
body.indexPage div#header {
  position: absolute;
  z-index: 10;
  box-sizing: content-box;
  height: 389px;
  border: 0;
  border-bottom: 3px solid var(--vif-gold);
  box-shadow: inset 0 -1px 0 #f6df92, 0 6px 16px rgba(0, 0, 0, .5);
  background:
    url(../img/visinfide/stemmi/stemma_v1.svg) calc(50% - 255px) 176px / 50px 60px no-repeat,
    url(../img/visinfide/stemmi/stemma_v3.svg) calc(50% - 170px) 166px / 54px 65px no-repeat,
    url(../img/visinfide/stemmi/stemma_v8.svg) calc(50% - 85px) 158px / 58px 70px no-repeat,
    url(../img/visinfide/stemmi/stemma_v2.svg) center 146px / 76px 91px no-repeat,
    url(../img/visinfide/stemmi/stemma_v7.svg) calc(50% + 85px) 158px / 58px 70px no-repeat,
    url(../img/visinfide/stemmi/stemma_v6.svg) calc(50% + 170px) 166px / 54px 65px no-repeat,
    url(../img/visinfide/stemmi/stemma_v9.svg) calc(50% + 255px) 176px / 50px 60px no-repeat,
    url(../img/visinfide/header.svg) center bottom / auto 210px repeat-x,
    linear-gradient(#e6d09c 0%, #f1e2bd 55%, #efdfb8 100%);
}
body.indexPage #navigation a.home { left: 20px; top: -8px; width: 330px; height: 92px; background: url(../img/visinfide/logo.svg) left center / contain no-repeat; }
body.indexPage #navigation table.menu {
  top: 24px; right: 10px; width: 470px;
  background: linear-gradient(#2c1b11, #170e08);
  border: 1px solid var(--vif-gold);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(42, 26, 16, .4), 0 3px 8px rgba(0, 0, 0, .35);
}
body.indexPage #navigation table.menu, body.indexPage #navigation .menu td { background: transparent; }
body.indexPage #navigation table.menu { background: linear-gradient(#2c1b11, #170e08); }
body.indexPage #navigation .menu td { border-left: 1px solid rgba(201, 162, 63, .35); }
body.indexPage #navigation .menu td:first-child { border-left: 0; }
body.indexPage #navigation .menu a, body.indexPage #navigation .menu a:hover, body.indexPage #navigation .menu a:active {
  display: block; padding: 6px 4px; background: none; color: #f3e3b8; text-shadow: 0 1px 1px #000;
  font: 700 13px/18px var(--vif-caps); font-size-adjust: none; letter-spacing: .04em;
}
body.indexPage #navigation .menu a span, body.indexPage #navigation .menu a:hover span { background: none; padding: 0; }
body.indexPage #navigation .menu a:hover { color: #fff; }
body.indexPage #navigation .menu a.mark { color: var(--vif-gold-light); }
body.indexPage #register_now {
  top: 268px; left: 50%; width: 300px; height: auto; margin-left: -150px; padding: 8px 0 9px;
  text-align: center; color: #f3e3b8;
  background: url(../img/visinfide/velvet.svg), linear-gradient(#c3352a, #8a1912 55%, #5e0e09);
  border: 2px solid var(--vif-gold); border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(42, 26, 16, .85), 0 8px 20px rgba(0, 0, 0, .45);
}
body.indexPage #register_now a { margin: 0; color: #fff1d0; font: 700 24px/30px var(--vif-caps); font-size-adjust: none; letter-spacing: .08em; text-shadow: 0 2px 2px rgba(0, 0, 0, .5); }
body.indexPage #register_now span { font: italic 14px var(--vif-serif); color: #f3d98f; }
body.indexPage #t4play { display: none; }

body.indexPage #content { padding-top: 418px; }
body.indexPage #content .grit .infobox,
body.indexPage #content .grit .secondarybox {
  background: url(../img/visinfide/parchment.svg) #f2e6c8;
  border: 1px solid var(--vif-gold-dark);
  box-shadow: 0 0 0 4px #2a1a10, 0 0 0 5px var(--vif-gold), 0 10px 26px rgba(0, 0, 0, .55);
  min-height: 0;
  padding-bottom: 14px;
}
body.indexPage #content .grit .infobox { margin-left: 12px; margin-right: 26px; }
body.indexPage #content .grit .secondarybox { margin-top: 0; }
body.indexPage #content .grit .infobox div { padding-left: 26px; padding-right: 24px; }
body.indexPage #content h2, body.indexPage #what_is_travian h2, body.indexPage #about_the_game h2 {
  color: var(--vif-red-dark); font: 700 19px/1.2 var(--vif-caps); font-size-adjust: none; margin: 18px 0 8px;
  padding-bottom: 10px; background: url(../img/visinfide/orn/sep.svg) left bottom / 120px 10px no-repeat;
}
body.indexPage #content p, body.indexPage #content li { font-size: 15px; line-height: 1.45; color: var(--vif-ink); }
body.indexPage #content a { color: var(--vif-red); }
body.indexPage #content p.play_now a { font: 700 15px var(--vif-caps); font-size-adjust: none; }
body.indexPage #player_counter {
  left: 0; width: auto; height: auto; margin: 10px 24px; padding: 8px 10px 8px 70px !important;
  background: url(../img/visinfide/stemmi/stemma_v2.svg) 14px center / 42px 50px no-repeat, rgba(251, 244, 226, .8);
  border: 1px solid var(--vif-rule);
  box-shadow: inset 0 0 0 3px rgba(242, 230, 200, .9);
}
body.indexPage #player_counter table { position: static; width: 100%; background: transparent; }
body.indexPage #player_counter td, body.indexPage #player_counter th { background: transparent; font-size: 15px; }
body.indexPage #player_counter th { font-weight: 600; text-align: left; color: var(--vif-ink-soft); }
body.indexPage #player_counter td { text-align: right; color: var(--vif-red-dark); font-variant-numeric: lining-nums; }
/* le immagini di Travian (anteprime) non si mostrano: non sono il nostro gioco */
body.indexPage .grit #screenshots { display: none; }
body.indexPage #footer ul.menu li:nth-child(2) { display: none; }
body.indexPage #newsbox { background: none; padding: 0 0 6px; }
body.indexPage #newsbox h2 {
  height: auto; margin: 0; padding: 9px 18px 8px; background: url(../img/visinfide/velvet.svg), linear-gradient(#a8291f, #6a100b);
  color: #f6e5bd; border-bottom: 2px solid var(--vif-gold);
}
body.indexPage #newsbox .news { background: none; width: auto; padding: 10px 18px; font-size: 14.5px; }
body.indexPage #footer { background: linear-gradient(#2a1a10, #120b07); border-top: 3px solid var(--vif-gold); box-shadow: inset 0 1px 0 #f6df92; }
body.indexPage #footer .container { background: url(../img/visinfide/logo_small.svg) 0 18px / auto 44px no-repeat; height: 90px; }
body.indexPage #footer .logo { display: none; }
body.indexPage #footer li, body.indexPage #footer a { color: #d8c08e; font-size: 13px; }
body.indexPage #footer a:hover { color: #fff1c9; }
body.indexPage #footer .copyright { top: 44px; color: #a99064; font-size: 12px; }
body.indexPage #footer .copyright a { color: var(--vif-gold-light); font-weight: 600; }
/* finestre «scegli il mondo» */
body.indexPage .overlay_content, body.indexPage #login_layer .overlay_content, body.indexPage #signup_layer .overlay_content, body.indexPage #iframe_layer .overlay_content {
  background: url(../img/visinfide/parchment.svg) #f2e6c8;
  border: 2px solid var(--vif-gold-dark);
  box-shadow: 0 0 0 4px #2a1a10, 0 0 0 5px var(--vif-gold), 0 14px 40px rgba(0, 0, 0, .6);
}
body.indexPage #login_layer h2, body.indexPage #signup_layer h2, body.indexPage #iframe_layer h2 {
  background: url(../img/visinfide/velvet.svg), linear-gradient(#a8291f, #6a100b); color: #f6e5bd;
  font: 700 18px/1.2 var(--vif-caps); font-size-adjust: none; padding: 10px 14px; margin: 0; border-bottom: 2px solid var(--vif-gold);
}
body.indexPage #login_layer .footer, body.indexPage #signup_layer .footer, body.indexPage #iframe_layer .footer { background: none; }
body.indexPage .overlay_content .closer img { background: url(../img/visinfide/orn/close.svg) center / 26px 26px no-repeat; top: 8px; right: 8px; }
body.indexPage ul.world_list li.w_big { filter: sepia(.5) saturate(.8); }

@media (max-width: 760px) {
  body.indexPage .wrapper { min-width: 0; }
  body.indexPage #country_select { display: none; }
  body.indexPage div#header {
    position: relative; height: 300px; padding: 0;
    background:
      url(../img/visinfide/stemmi/stemma_v1.svg) calc(50% - 138px) 140px / 32px 38px no-repeat,
      url(../img/visinfide/stemmi/stemma_v3.svg) calc(50% - 92px) 134px / 34px 41px no-repeat,
      url(../img/visinfide/stemmi/stemma_v8.svg) calc(50% - 46px) 129px / 36px 43px no-repeat,
      url(../img/visinfide/stemmi/stemma_v2.svg) center 122px / 46px 55px no-repeat,
      url(../img/visinfide/stemmi/stemma_v7.svg) calc(50% + 46px) 129px / 36px 43px no-repeat,
      url(../img/visinfide/stemmi/stemma_v6.svg) calc(50% + 92px) 134px / 34px 41px no-repeat,
      url(../img/visinfide/stemmi/stemma_v9.svg) calc(50% + 138px) 140px / 32px 38px no-repeat,
      url(../img/visinfide/header.svg) center bottom / auto 130px repeat-x,
      linear-gradient(#e6d09c 0%, #f1e2bd 55%, #efdfb8 100%);
  }
  body.indexPage #navigation { position: absolute; top: 6px; left: 0; right: 0; margin: 0; width: auto; height: auto; }
  body.indexPage #navigation a.home { position: relative; display: block; left: auto; top: 0; margin: 0 auto; width: 300px; max-width: 92%; height: 66px; background-position: center; }
  body.indexPage #navigation table.menu { position: relative; top: auto; right: auto; width: calc(100% - 16px); margin: 2px 8px 0; }
  body.indexPage #navigation .menu a { font-size: 11px; padding: 5px 1px; letter-spacing: 0; }
  body.indexPage #register_now { top: 212px; width: 260px; margin-left: -130px; padding: 6px 0 7px; }
  body.indexPage #register_now a { font-size: 20px; line-height: 26px; }
  body.indexPage #content { padding: 24px 0 20px; }
  body.indexPage #content .grit { width: auto; padding: 0 12px; }
  body.indexPage #content .grit .infobox, body.indexPage #content .grit .secondarybox { float: none; width: auto; margin: 0 0 22px; }
  body.indexPage #content .grit .infobox div { padding-left: 16px; padding-right: 14px; }
  body.indexPage #player_counter { margin: 10px 14px; }
  body.indexPage #footer { position: relative; height: auto; padding: 8px 0 12px; }
  body.indexPage #footer .container { width: auto; height: auto; padding: 56px 12px 0; background-position: center 6px; text-align: center; }
  body.indexPage #footer .menu, body.indexPage #footer .copyright { position: static; }
  body.indexPage #footer ul.menu { margin: 0; padding: 0; list-style: none; }
  body.indexPage #footer ul.menu li { display: inline-block; float: none; }
  body.indexPage #footer { padding-bottom: 18px; }
  body.indexPage #footer .copyright { display: block !important; margin-top: 6px; }
  body.indexPage .overlay_content { width: calc(100vw - 30px) !important; margin-right: 0 !important; right: 15px !important; left: auto !important; }
}
/* la pergamena delle missioni pulsa piano quando c'e' un compito nuovo */
div#side_info div#qge img.vif-quest-new { animation: vif-sigillo 2.8s ease-in-out infinite; }
@keyframes vif-sigillo {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(243, 162, 58, 0)); }
  50%      { filter: drop-shadow(0 0 7px rgba(243, 162, 58, .75)); }
}
@media (prefers-reduced-motion: reduce) { div#side_info div#qge img.vif-quest-new { animation: none; } }

/* --------------------------------------------------------------------------
   17. Pagine di contenuto del portale (anleitung, tutorial, regole, note
       legali: body.contentPage) e finestra del manuale (body.manual)
   -------------------------------------------------------------------------- */
body.contentPage { background: transparent; }
body.contentPage .wrapper { background: none; }
body.contentPage #country_select { background: linear-gradient(#2c1b11, #170e08); border-bottom: 2px solid var(--vif-gold); }
body.contentPage div#header {
  position: absolute; z-index: 10; box-sizing: content-box; height: 200px;
  border: 0; border-bottom: 3px solid var(--vif-gold);
  box-shadow: inset 0 -1px 0 #f6df92, 0 6px 16px rgba(0, 0, 0, .5);
  background: url(../img/visinfide/header.svg) center bottom / auto 120px repeat-x, linear-gradient(#e6d09c 0%, #f1e2bd 55%, #efdfb8 100%);
}
body.contentPage #navigation { background: none; }
body.contentPage #navigation a.home { left: 20px; top: -8px; width: 330px; height: 92px; background: url(../img/visinfide/logo.svg) left center / contain no-repeat; }
body.contentPage #navigation table.menu, body.contentPage #navigation .menu td { background: transparent; }
body.contentPage #navigation table.menu {
  top: 24px; right: 10px; width: 470px;
  background: linear-gradient(#2c1b11, #170e08);
  border: 1px solid var(--vif-gold); border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(42, 26, 16, .4), 0 3px 8px rgba(0, 0, 0, .35);
}
body.contentPage #navigation .menu td { border-left: 1px solid rgba(201, 162, 63, .35); }
body.contentPage #navigation .menu td:first-child { border-left: 0; }
body.contentPage #navigation .menu a, body.contentPage #navigation .menu a:hover, body.contentPage #navigation .menu a:active {
  display: block; padding: 6px 4px; background: none; color: #f3e3b8; text-shadow: 0 1px 1px #000;
  font: 700 13px/18px var(--vif-caps); font-size-adjust: none; letter-spacing: .04em;
}
body.contentPage #navigation .menu a span, body.contentPage #navigation .menu a:hover span { background: none; padding: 0; }
body.contentPage #navigation .menu a.mark { color: var(--vif-gold-light); }
body.contentPage #content { padding-top: 236px; }
body.contentPage #content .grit {
  background: url(../img/visinfide/parchment.svg) #f2e6c8;
  border: 1px solid var(--vif-gold-dark);
  box-shadow: 0 0 0 4px #2a1a10, 0 0 0 5px var(--vif-gold), 0 10px 26px rgba(0, 0, 0, .55);
  outline: 1px solid rgba(163, 32, 26, .42); outline-offset: -9px;
  padding: 6px 0 36px;
}
body.contentPage h1 { padding-top: 34px; font-family: var(--vif-caps); font-size-adjust: none; color: var(--vif-red-dark); background: url(../img/visinfide/orn/rule.svg) center bottom / auto 14px no-repeat; padding-bottom: 16px; }
body.contentPage #content h2 { color: var(--vif-red-dark); font: 700 18px/1.25 var(--vif-caps); font-size-adjust: none; }
body.contentPage #content h3 { color: var(--vif-red-dark); }
body.contentPage #content p, body.contentPage #content li, body.contentPage #content td { font-size: 14.5px; line-height: 1.45; }
body.contentPage .rules strong, body.contentPage .rules ul strong { color: var(--vif-red-dark); }
body.contentPage table.table_data th { background-color: var(--vif-parch-mid); }
body.contentPage table.table_data td { background-color: var(--vif-parch-light); }
body.contentPage #content img { mix-blend-mode: multiply; }
body.contentPage #footer { background: linear-gradient(#2a1a10, #120b07); border-top: 3px solid var(--vif-gold); box-shadow: inset 0 1px 0 #f6df92; }
body.contentPage #footer .container { background: url(../img/visinfide/logo_small.svg) 0 18px / auto 44px no-repeat; height: 90px; }
body.contentPage #footer .logo { display: none; }
body.contentPage #footer li, body.contentPage #footer a { color: #d8c08e; font-size: 13px; }
body.contentPage #footer .copyright { color: #a99064; }

/* finestra del manuale (iframe nel popup): tutta su pergamena */
html:has(> body.manual) { background: #f2e6c8 url(../img/visinfide/parchment.svg); }
body.manual { background: transparent; padding: 4px 8px; }
body.manual h1 { font-family: var(--vif-caps); font-size-adjust: none; font-size: 22px; color: var(--vif-red-dark); }
body.manual h1 span.tribe { font-family: var(--vif-serif); font-size: 15px; color: var(--vif-ink-soft); font-style: italic; }
body.manual img.big_u, body.manual img.unit.big { mix-blend-mode: multiply; filter: sepia(.3); }

@media (max-width: 760px) {
  body.contentPage .wrapper { min-width: 0; }
  body.contentPage #country_select { display: none; }
  body.contentPage div#header { position: relative; height: 130px; }
  body.contentPage #navigation { position: absolute; top: 6px; left: 0; right: 0; margin: 0; width: auto; height: auto; }
  body.contentPage #navigation a.home { position: relative; display: block; left: auto; top: 0; margin: 0 auto; width: 300px; max-width: 92%; height: 66px; background-position: center; }
  body.contentPage #navigation table.menu { position: relative; top: auto; right: auto; width: calc(100% - 16px); margin: 2px 8px 0; }
  body.contentPage #navigation .menu a { font-size: 11px; padding: 5px 1px; letter-spacing: 0; }
  body.contentPage #content { padding: 20px 8px; }
  body.contentPage #content .grit { width: auto; overflow-x: auto; }
  body.contentPage .wrapper { overflow-x: hidden; }
  body.contentPage #content .characteristics, body.contentPage #content p, body.contentPage #content table, body.contentPage #content h2, body.contentPage #content h3, body.contentPage .rules { margin-left: 14px !important; margin-right: 14px !important; max-width: calc(100% - 28px); }
  body.contentPage #footer { position: relative; height: auto; padding: 8px 0 14px; }
  body.contentPage #footer .container { width: auto; height: auto; padding: 56px 12px 0; background-position: center 6px; text-align: center; }
  body.contentPage #footer .menu, body.contentPage #footer .copyright { position: static; }
  body.contentPage #footer ul.menu li { display: inline-block; float: none; }
}
/* testate con sole icone (attacco, difesa, risorse): fondo chiaro, cosi' le icone si leggono */
body table thead th:has(> img):not(:has(> a)), body table thead td:has(> img) { background: var(--vif-parch-mid); color: var(--vif-ink); }
