/* ===== Jamelgos site banner v5 ===========================================
   Cropped from the supplied three-part artwork
   (/opt/data/images/upload_20260924_201406_1.png) — nothing redrawn:

       left   x   0.. 66   67x150  -> banner-left-v5.png   (end plate)
       middle x 147..166   20x150  -> banner-middle-v5.png (repeated)
       right  x 214..284   71x150  -> banner-right-v5.png  (end plate)

   The middle strip is flat across its width on every row, so repeating it
   horizontally tiles without a seam; it is mounted at the element's natural
   height (150px = the source's own pixels, 1:1) and the two caps sit on top of
   it as absolutely-positioned pseudo-elements. The caps are the full 150px
   height — their end plates are what protrude past the bar body.

   No crest, no border, no box-shadow: the legacy 3px brown ring is cleared
   here so nothing frames the artwork.
   ========================================================================= */

.title,
.connection-screen h1 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: min(100%, 1040px);
    height: 150px;                    /* the artwork's own pixel height */
    margin: 22px auto 18px;
    padding: 0 86px 4px;              /* clears the 67/71px end plates + gap */
    border: 0;
    outline: 0;
    border-radius: 0;
    box-shadow: none;                 /* kills the legacy 3px brown ring */
    background-color: transparent;
    background-image: url('banner-middle-v5.png');   /* repeatable middle */
    background-repeat: repeat-x;
    background-position: left top;
    background-size: auto 150px;
    image-rendering: pixelated;
    color: #f7e4a2;
    font-family: "Dogica", "Courier New", monospace;
    font-weight: 700;
    font-size: clamp(1.15rem, 3.0vw, 2.6rem);
    letter-spacing: .05em;
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 3px 3px 0 #2b1a13;
    white-space: nowrap;
}

/* left section: end plate */
.title::before,
.connection-screen h1::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0;
    right: auto;
    bottom: auto;
    width: 67px;                      /* the crop's own width */
    height: 150px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    clip-path: none;
    box-shadow: none;
    transform: none;
    background: url('banner-left-v5.png') no-repeat left top;
    background-size: 67px 150px;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 2;
}

/* right section: end plate */
.title::after,
.connection-screen h1::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    left: auto;
    bottom: auto;
    width: 71px;
    height: 150px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    clip-path: none;
    box-shadow: none;
    transform: none;
    background: url('banner-right-v5.png') no-repeat right top;
    background-size: 71px 150px;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 2;
}

/* Narrow screens: the same artwork at 2/3 (100px tall), caps scaled with it. */
/* The PvP page's heading sits in a narrower column than the game title, and the
   end plates are 67/71px wide now: take the heading down a step so the title
   keeps clear of them instead of running under the plate. */
.connection-screen h1 {
    font-size: clamp(1.0rem, 2.5vw, 2.1rem);
}

@media (max-width: 760px) {
    .title,
    .connection-screen h1 {
        height: 100px;
        margin: 18px auto 14px;
        padding: 0 46px 3px;          /* 38/40px of cap + a few px of air */
        background-size: auto 100px;
        font-size: clamp(12px, 4.2vw, 15px);   /* keeps the title off the caps */
        letter-spacing: .04em;
        text-shadow: 2px 2px 0 #2b1a13;
    }

    .title::before,
    .connection-screen h1::before {
        left: -7px;
        width: 45px;
        height: 100px;
        background-size: 45px 100px;
    }

    .title::after,
    .connection-screen h1::after {
        right: -7px;
        width: 47px;
        height: 100px;
        background-size: 47px 100px;
    }
}
