*{
    box-sizing:border-box;
}

html,
body{
    margin:0;
    padding:0;
    min-width:320px;
    font-family:Arial,Helvetica,sans-serif;
    color:#111;
    background:#f7f8fa;
}

body{
    overflow-x:hidden;
}

a{
    color:inherit;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar{
    height:52px;
    position:relative;
    z-index:20;
    background:linear-gradient(
        90deg,
        #090909 0%,
        #171717 50%,
        #090909 100%
    );
    color:#fff;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.topbar-inner{
    max-width:1260px;
    height:100%;
    margin:0 auto;
    display:flex;
    align-items:center;
}

.mini-brand{
    height:100%;
    padding:0 20px;
    display:flex;
    align-items:center;
    gap:9px;
    text-decoration:none;
}

.gate-icon{
    color:#f4c21f;
    font-size:30px;
    line-height:1;
}

.mini-brand-text strong{
    display:block;
    font-family:Georgia,serif;
    font-size:18px;
    line-height:17px;
}

.mini-brand-text small{
    display:block;
    margin-top:2px;
    color:#f2c019;
    font-size:7px;
    font-weight:700;
    letter-spacing:4px;
    text-align:center;
}

.main-nav{
    height:100%;
    display:flex;
}

.main-nav a{
    height:100%;
    padding:0 20px;
    display:flex;
    align-items:center;
    gap:7px;
    text-decoration:none;
    font-size:12px;
    font-weight:700;
    border-left:1px solid rgba(255,255,255,.09);
}

.main-nav a:last-child{
    border-right:1px solid rgba(255,255,255,.09);
}

.main-nav a.active{
    color:#111;
    background:linear-gradient(
        180deg,
        #ffd339,
        #e5a500
    );
}

.top-social{
    margin-left:auto;
    display:flex;
    gap:18px;
    font-size:13px;
    font-weight:700;
}

.top-slogan{
    margin-left:35px;
    padding-left:20px;
    border-left:1px solid rgba(255,255,255,.14);
    color:#ddd;
    font-size:8px;
    line-height:1.4;
    letter-spacing:2px;
    text-align:center;
}


/* =========================================================
   HERO
========================================================= */

.hero{
    height:315px;
    position:relative;
    overflow:hidden;

    background-image:
        url('../images/berlin-hero.jpg');

    background-repeat:no-repeat;
    background-size:cover;
    background-position:center 51%;
}

.hero-shade{
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.55) 0%,
            rgba(0,0,0,.20) 34%,
            rgba(0,0,0,.05) 60%,
            rgba(0,0,0,.32) 100%
        );
}

.hero-inner{
    width:100%;
    max-width:1300px;
    height:100%;
    margin:0 auto;
    position:relative;
}

.berlin-brand{
    position:absolute;
    left:35px;
    top:30px;
    width:420px;
    text-align:center;
    color:#fff;
    text-shadow:0 4px 10px rgba(0,0,0,.8);
}

.gate-mark{
    height:55px;
    color:#f2bc16;
    position:relative;
}

.gate-roof{
    position:absolute;
    left:50%;
    top:-5px;
    transform:translateX(-50%);
    font-size:23px;
}

.gate-body{
    display:block;
    padding-top:12px;
    font-size:54px;
    line-height:44px;
}

.berlin-brand h1{
    margin:2px 0 0;
    font-family:Georgia,serif;
    font-size:66px;
    line-height:.95;
    letter-spacing:3px;
}

.brand-sub{
    margin-top:5px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:14px;
    color:#f2bd16;
    font-size:19px;
    font-weight:700;
    letter-spacing:9px;
}

.brand-sub span{
    width:42px;
    height:2px;
    background:#d71920;
}

.berlin-brand p{
    margin:10px 0 0;
    font-size:12px;
    font-weight:700;
    letter-spacing:4px;
}

.berlin-brand p b{
    margin:0 7px;
    color:#f2bd16;
}

.trust-row{
    position:absolute;
    left:35px;
    bottom:24px;
    display:flex;
    gap:29px;
}

.trust-item{
    display:flex;
    align-items:center;
    gap:8px;
    color:#fff;
}

.trust-icon{
    color:#f4c21d;
    font-size:24px;
}

.trust-item strong{
    font-size:9px;
    line-height:1.25;
}

.goodluck{
    position:absolute;
    right:70px;
    top:47px;
    width:250px;
    text-align:center;
    color:#fff;
    transform:rotate(-3deg);
    text-shadow:0 4px 9px rgba(0,0,0,.85);
}

.goodluck strong{
    display:block;
    font-family:cursive;
    font-size:42px;
    line-height:.88;
    font-weight:500;
}

.goodluck strong em{
    color:#f3bd18;
    font-style:normal;
}

.flag-line{
    width:150px;
    margin:11px auto 9px;
    transform:skewX(-20deg);
}

.flag-line i{
    display:block;
    height:4px;
}

.flag-line i:nth-child(1){
    background:#111;
}

.flag-line i:nth-child(2){
    background:#dd111c;
}

.flag-line i:nth-child(3){
    background:#f3c51c;
}

.goodluck small{
    font-size:9px;
    line-height:1.5;
    font-weight:700;
    letter-spacing:2.5px;
}

.german-ribbon{
    position:absolute;
    right:-180px;
    bottom:-2px;
    width:410px;
    height:95px;
    transform:rotate(-8deg);
    overflow:hidden;
    border-radius:55% 0 0 0;
    box-shadow:-10px -10px 20px rgba(0,0,0,.25);
}

.german-ribbon i{
    display:block;
    height:33.333%;
}

.german-ribbon .black{
    background:#050505;
}

.german-ribbon .red{
    background:#d71920;
}

.german-ribbon .gold{
    background:#f5c518;
}


/* =========================================================
   MAIN / LATEST
========================================================= */

main{
    position:relative;
    z-index:5;
    padding-bottom:10px;
}

.latest-card{
    max-width:1220px;
    min-height:155px;
    margin:-24px auto 0;
    padding:0 30px 16px;
    position:relative;
    overflow:hidden;
    text-align:center;
    background:rgba(255,255,255,.98);
    border:2px solid #e6aa12;
    border-radius:14px;
    box-shadow:0 12px 28px rgba(0,0,0,.10);
}

.latest-title{
    width:max-content;
    min-width:335px;
    max-width:calc(100% - 30px);
    margin:0 auto 4px;
    padding:10px 25px 11px;
    position:relative;
    left:auto;
    top:auto;
    transform:none;
    z-index:3;
    color:#111;
    background:linear-gradient(
        180deg,
        #ffd43d,
        #e3a400
    );
    border-radius:0 0 30px 30px;
    font-size:17px;
    font-weight:700;
    line-height:1.2;
}

.latest-card h2{
    margin:3px 0 11px;
    position:relative;
    z-index:2;
    font-size:16px;
    line-height:1.25;
}

.latest-balls{
    position:relative;
    z-index:2;
    display:flex;
    justify-content:center;
    gap:12px;
}

.latest-balls span{
    width:64px;
    height:64px;
    display:grid;
    place-items:center;
    border-radius:50%;
    color:#fff;
    background:linear-gradient(
        145deg,
        #292929,
        #050505
    );
    border:2px solid #e3aa13;
    box-shadow:
        inset 0 5px 8px rgba(255,255,255,.08),
        0 3px 5px rgba(0,0,0,.14);
    font-size:31px;
    font-weight:700;
}

.city-silhouette{
    position:absolute;
    inset:auto 20px -21px 20px;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    color:#f1eee6;
    opacity:.72;
    font-size:78px;
    line-height:1;
    pointer-events:none;
}


/* =========================================================
   WINNING TABLE
========================================================= */

.winning{
    width:min(730px,calc(100% - 30px));
    margin:11px auto 0;
    text-align:center;
}

.section-heading{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
}

.section-heading > i{
    width:44px;
    height:2px;
    background:linear-gradient(
        90deg,
        #d71920,
        #efb815
    );
}

.section-heading h2{
    margin:0;
    font-size:19px;
}

.section-heading p{
    margin:1px 0 8px;
    font-size:11px;
}

.result-table{
    overflow:hidden;
    border-radius:7px;
    background:#fff;
    box-shadow:0 6px 22px rgba(0,0,0,.11);
}

.result-header,
.result-row{
    display:grid;
    grid-template-columns:1fr 1fr 1.5fr;
    align-items:center;
}

.result-header{
    height:38px;
    color:#fff;
    background:linear-gradient(
        90deg,
        #101010,
        #222,
        #101010
    );
    font-size:12px;
    font-weight:700;
}

.result-row{
    min-height:38px;
    border-bottom:1px solid #e7e7e7;
    font-size:11px;
}

.result-row:last-child{
    border-bottom:0;
}

.draw-name{
    color:#d71920;
    font-weight:700;
}

.small-balls{
    display:flex;
    justify-content:center;
    gap:7px;
}

.small-balls span{
    width:23px;
    height:23px;
    display:grid;
    place-items:center;
    color:#fff;
    background:#111;
    border:1px solid #e3aa13;
    border-radius:50%;
    font-size:10px;
    font-weight:700;
}

.empty-result{
    padding:25px;
    color:#777;
    font-size:12px;
}


/* =========================================================
   FEATURE CARDS
========================================================= */

.feature-grid{
    max-width:1260px;
    margin:13px auto 0;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.feature-grid article{
    min-height:64px;
    padding:10px 22px;
    display:flex;
    align-items:center;
    gap:14px;
    background:#fff;
    border-radius:8px;
    box-shadow:0 5px 18px rgba(0,0,0,.07);
}

.feature-icon{
    width:43px;
    min-width:43px;
    height:43px;
    display:grid;
    place-items:center;
    border-radius:50%;
    color:#fff;
    font-size:20px;
}

.feature-icon.red{
    background:linear-gradient(
        145deg,
        #f0242b,
        #ad0007
    );
    box-shadow:inset 0 2px 3px rgba(255,255,255,.25);
}

.feature-grid strong{
    font-size:12px;
}

.feature-grid p{
    margin:3px 0 0;
    color:#4c5360;
    font-size:9px;
    line-height:1.35;
}


/* =========================================================
   FOOTER
========================================================= */

footer{
    margin-top:9px;
    position:relative;
    overflow:hidden;
    color:#fff;
    background:
        linear-gradient(
            180deg,
            #151515,
            #090909
        );
}

.footer-skyline{
    position:absolute;
    left:0;
    right:0;
    bottom:25px;
    height:80px;
    opacity:.08;
    background:
        linear-gradient(
            90deg,
            transparent 0 4%,
            #fff 4% 6%,
            transparent 6% 10%,
            #fff 10% 11%,
            transparent 11% 85%,
            #fff 85% 87%,
            transparent 87% 91%,
            #fff 91% 95%,
            transparent 95%
        );
}

.footer-inner{
    max-width:1380px;
    margin:0 auto;
    padding:22px 25px 15px;
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:
        1.25fr
        1.7fr
        .75fr
        .8fr
        1.25fr;
    gap:34px;
}

.footer-logo{
    display:flex;
    align-items:center;
    gap:8px;
}

.footer-logo > span{
    color:#f2bc16;
    font-size:39px;
}

.footer-logo strong{
    display:block;
    font-family:Georgia,serif;
    font-size:24px;
}

.footer-logo small{
    display:block;
    color:#f1bc17;
    font-size:7px;
    font-weight:700;
    letter-spacing:4px;
    text-align:center;
}

.footer-brand p{
    font-size:8px;
    letter-spacing:2px;
}

.footer-inner strong{
    font-size:11px;
}

.newsletter form{
    margin-top:8px;
    display:flex;
}

.newsletter input{
    width:210px;
    height:34px;
    padding:0 11px;
    border:0;
    outline:0;
    border-radius:4px 0 0 4px;
    font-size:10px;
}

.newsletter button{
    height:34px;
    padding:0 20px;
    border:0;
    color:#111;
    background:linear-gradient(
        180deg,
        #ffd13a,
        #e1a200
    );
    border-radius:0 4px 4px 0;
    font-size:9px;
    font-weight:700;
    cursor:pointer;
}

.footer-links a{
    display:block;
    margin-top:4px;
    color:#fff;
    text-decoration:none;
    font-size:9px;
}

.follow > div{
    margin-top:12px;
    display:flex;
    gap:8px;
}

.follow span{
    width:29px;
    height:29px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#343434;
    font-size:10px;
}

.security p{
    margin:8px 0 0;
    font-size:9px;
    line-height:1.5;
}

.security p b{
    float:left;
    margin-right:9px;
    font-size:23px;
}

.copyright{
    position:relative;
    z-index:2;
    padding:9px;
    text-align:center;
    border-top:1px solid rgba(255,255,255,.08);
    font-size:8px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:900px){

    .topbar{
        height:auto;
    }

    .topbar-inner{
        flex-wrap:wrap;
    }

    .mini-brand{
        height:52px;
    }

    .main-nav{
        order:3;
        width:100%;
        height:44px;
        overflow-x:auto;
    }

    .main-nav a{
        min-width:max-content;
        padding:0 15px;
    }

    .top-social{
        padding-right:15px;
    }

    .top-slogan{
        display:none;
    }

    .hero{
        height:310px;
    }

    .berlin-brand{
        left:20px;
        width:350px;
    }

    .berlin-brand h1{
        font-size:55px;
    }

    .goodluck{
        right:20px;
    }

    .german-ribbon{
        right:-250px;
    }

    .trust-row{
        left:20px;
        gap:17px;
    }

    .latest-card{
        margin:-18px 12px 0;
    }

    .feature-grid{
        padding:0 12px;
        grid-template-columns:1fr 1fr;
    }

    .footer-inner{
        grid-template-columns:1fr 1fr;
    }
}


@media (max-width:600px){

    .hero{
        height:330px;
        background-position:center;
    }

    .berlin-brand{
        width:100%;
        left:50%;
        top:32px;
        transform:translateX(-50%);
    }

    .berlin-brand h1{
        font-size:49px;
    }

    .brand-sub{
        font-size:15px;
        letter-spacing:7px;
    }

    .goodluck,
    .german-ribbon{
        display:none;
    }

    .trust-row{
        left:0;
        bottom:22px;
        width:100%;
        padding:0 12px;
        justify-content:center;
        gap:16px;
    }

    .trust-item:nth-child(4){
        display:none;
    }

    .latest-card{
        min-height:137px;
        padding:0 10px 14px;
    }

    .latest-title{
        min-width:270px;
        max-width:calc(100% - 20px);
        margin:0 auto 5px;
        padding:8px 18px 9px;
        font-size:13px;
        line-height:1.2;
        border-radius:0 0 24px 24px;
    }

    .latest-card h2{
        margin:4px 0 10px;
        font-size:14px;
    }

    .latest-balls{
        gap:8px;
    }

    .latest-balls span{
        width:50px;
        height:50px;
        font-size:24px;
    }

    .section-heading h2{
        font-size:16px;
    }

    .section-heading > i{
        width:25px;
    }

    .result-header,
    .result-row{
        grid-template-columns:.8fr 1fr 1.35fr;
    }

    .feature-grid{
        grid-template-columns:1fr;
    }

    .footer-inner{
        grid-template-columns:1fr;
        gap:17px;
    }

    .newsletter input{
        width:100%;
    }

    .newsletter form{
        max-width:360px;
    }
}
