/* Keep the game's existing landscape, ribbon, colours and navigation. */
div#dynamic_header,
body.mod1 div#dynamic_header,
body.mod2 div#dynamic_header,
body.mod3 div#dynamic_header {
    background-image: url(default/img/vip/arab-travian-header-v2.png);
    background-size: 1280px auto;
    background-position: center -163px;
    background-repeat: no-repeat;
}
.arab-travian-header-brand {
    position: absolute;
    top: 78px;
    left: calc(50% + 60px);
    transform: translateX(-50%);
    width: 220px;
    height: 19px;
    text-align: center;
    text-decoration: none;
}
/* The original ribbon already paints the title; expose it accessibly once. */
.arab-travian-header-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.arab-travian-header-domain {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 3px;
    background: rgba(255, 250, 231, .94);
    color: #5a4625;
    font: 12px/1.4 Tahoma, Arial, sans-serif;
    letter-spacing: .5px;
    white-space: nowrap;
}
div#footer.arab-travian-footer,
.footer.arab-travian-footer {
    display: block !important;
    position: relative;
    clear: both;
    height: auto;
    min-height: 76px;
    margin-top: 24px;
    padding: 16px 8px 8px;
    box-sizing: border-box;
    text-align: center;
}
div#footer.arab-travian-footer div#mfoot {
    width: 100%;
    height: auto;
}
div#footer.arab-travian-footer ul.menu,
.footer.arab-travian-footer .footer-menu ul.menu {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    width: auto;
}
div#footer.arab-travian-footer ul.menu li,
.footer.arab-travian-footer .footer-menu ul.menu li {
    float: none;
    margin: 0;
}
div#footer.arab-travian-footer .footer-menu a,
.footer.arab-travian-footer .footer-menu a {
    font-size: 12px;
    color: #797979;
}
/* Village pages formerly positioned this list below the page, outside flow.
   Keep it before the footer without hiding any village links on phones. */
@media screen and (max-width: 900px) {
    /* Keep the domain beside, not behind, the existing protection timer. */
    .arab-travian-header-brand {
        left: 12px;
        transform: none;
        width: 160px;
    }
    body.arab-travian-game div#mid { flex-wrap: wrap; }
    body.arab-travian-game div#mid div#content {
        flex: 0 0 100%;
        width: auto;
        box-sizing: border-box;
    }
    body.arab-travian-game div#mid div#side_info {
        position: relative !important;
        display: block !important;
        clear: both;
        float: none;
        flex: 0 0 100%;
        top: auto;
        right: auto;
        width: auto !important;
        min-height: 0;
        padding: 16px 8px;
        box-sizing: border-box;
        background: none;
    }
    body.arab-travian-game div#mid div#side_info #anm { display: none; }
    body.arab-travian-game div#mid div#side_info table#vlist { margin: 0 auto; }
}
