*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Inter',sans-serif;
}

body{
background:#050816;
color:white;
overflow-x:hidden;
}

a{
text-decoration:none;
}

.glass-card{

background:
rgba(255,255,255,.05);

backdrop-filter:
blur(20px);

border:
1px solid rgba(
255,255,255,.1
);

border-radius:20px;
}

.hero{

background:
linear-gradient(
135deg,
#7c3aed,
#06b6d4
);

border-radius:10px;

padding:5px;

}

.team-flag{

width:60px;

border-radius:8px;

box-shadow:
0 0 20px rgba(
255,255,255,.15
);
}

.glass-card{
background: rgba(255,255,255,0.05);
backdrop-filter: blur(12px);
border-radius: 15px;
border: 1px solid rgba(255,255,255,0.1);
transition: 0.3s;
}

.glass-card:hover{
transform: translateY(-3px);
}

button{
border-radius: 10px !important;
}

.badge{
padding: 8px 10px;
}

.chat-emoji{
    display:inline-block;
}


#miniChat {
    font-family: "IBM Plex Sans", Verdana, sans-serif;
}

#miniChat * {
    font-weight: 400 !important;
}

/* usernames can still be bold */
.chat-username {
    font-weight: 600 !important;
}

/* message text always normal */
.chat-message {
    font-weight: 400 !important;
}

@media (max-width: 768px) {
    #emojiPicker {
        width: 95vw !important;
        right: 10px !important;
        left: 10px !important;
        bottom: 80px !important;
        height: 280px !important;
    }
}

.bet-input {
    max-width: 140px;   /* controls total size */
}

.bet-input .form-control {
    padding: 2px 6px;
    font-size: 13px;
}

.bet-input .input-group-text {
    padding: 2px 8px;
    font-size: 13px;
}

/* optional: make it full width on mobile */
@media (max-width: 768px) {
    .bet-input {
        max-width: 100%;
    }
}

#nextResult{
    border:2px solid #ffc107;
    box-shadow:0 0 20px rgba(255,193,7,.5);
    animation:pulse 1.5s infinite;
}

@keyframes pulse{
    0%{
        box-shadow:0 0 10px rgba(255,193,7,.3);
    }
    50%{
        box-shadow:0 0 25px rgba(255,193,7,.9);
    }
    100%{
        box-shadow:0 0 10px rgba(255,193,7,.3);
    }
}


/* =========================================================
   FIFA KNOCKOUT BRACKET
=========================================================*/

.bracket{
    display:flex;
    gap:45px;
    overflow-x:auto;
    padding:20px 5px 30px;
}

.stage{
    min-width:270px;
    flex-shrink:0;
}

.stage h5{
    color:#ffc107;
    text-align:center;
    margin-bottom:25px;
    font-weight:700;
}

.match-card{

    background:#1f1f1f;

    border:1px solid rgba(255,255,255,.08);

    border-radius:12px;

    margin-bottom:35px;

    padding:12px;

    position:relative;

    transition:.25s;

    box-shadow:
        0 0 12px rgba(0,0,0,.30);

}

.match-card:hover{

    transform:translateY(-3px);

    border-color:#ffc107;

}

.team-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:8px 4px;

    border-bottom:1px solid rgba(255,255,255,.05);

}

.team-row:last-child{

    border-bottom:none;

}

.team-row strong{

    color:#fff;

    font-size:15px;

}

.team-row.winner{

    background:rgba(25,135,84,.15);

    border-radius:6px;

    color:#6dff8a;

    font-weight:700;

}

.team-row.winner strong{

    color:#6dff8a;

}

.match-date{

    margin-top:10px;

    text-align:center;

    color:#9c9c9c;

    font-size:12px;

}

.match-card img{

    border-radius:3px;

}

.stage:nth-child(2) .match-card{

    margin-top:55px;

    margin-bottom:70px;

}

.stage:nth-child(3) .match-card{

    margin-top:120px;

    margin-bottom:140px;

}

.stage:nth-child(4) .match-card{

    margin-top:220px;

    margin-bottom:260px;

}

.stage:nth-child(5) .match-card{

    margin-top:340px;

}

.stage:last-child .match-card{

    border:2px solid gold;

    background:#292106;

}

.stage:last-child .match-card::before{

    content:"🏆";

    position:absolute;

    top:-12px;

    right:-12px;

    font-size:24px;

}

@media(max-width:991px){

.stage{

    min-width:230px;

}

.match-card{

    margin-bottom:25px !important;

    margin-top:0 !important;

}

}

.team-row.loser{

    opacity:.45;

}


.worldcup-bracket{
    display:flex;
    align-items:flex-start;
    gap:80px;
    overflow-x:auto;
    padding:40px 20px;
}

.stage{
    display:flex;
    flex-direction:column;
    min-width:270px;
}

.stage h4{
    text-align:center;
    margin-bottom:25px;
    color:#ffc107;
    font-weight:bold;
}

/* spacing between rounds */

.stage32 .bracket-match{
    margin-bottom:22px;
}

.stage16{
    padding-top:70px;
}

.stage16 .bracket-match{
    margin-bottom:95px;
}

.stage8{
    padding-top:165px;
}

.stage8 .bracket-match{
    margin-bottom:220px;
}

.stage4{
    padding-top:340px;
}

.stage4 .bracket-match{
    margin-bottom:510px;
}

.final-stage{
    padding-top:520px;
}

/* cards */

.bracket-match{

    background:#181818;
    border:1px solid #333;

    border-radius:14px;

    padding:10px;

    width:260px;

    position:relative;

    box-shadow:0 0 15px rgba(0,0,0,.35);

}

.team{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:8px;

}

.team+.team{

    border-top:1px solid rgba(255,255,255,.08);

}

.team-left{

    display:flex;

    align-items:center;

    gap:8px;

}

.team-left img{

    width:24px;

    border-radius:3px;

}

.team.winner{

    background:#185b27;

    color:#fff;

}

.team.loser{

    opacity:.45;

}

.kickoff{

    text-align:center;

    color:#888;

    margin-top:8px;

    font-size:12px;

}

/* CONNECTOR LINES */

.bracket-match::after{

    content:"";

    position:absolute;

    right:-40px;

    top:50%;

    width:40px;

    height:2px;

    background:#555;

}

/* don't draw line from Final */

.final-stage .bracket-match::after{

    display:none;

}

/* champion */

.final-stage .bracket-match{

    border:2px solid gold;

}

/* third place */

.third-place-box{

    margin-top:120px;

    border-top:2px solid #444;

    padding-top:20px;

}

.match-pair{
    position:relative;
    margin-bottom:40px;
}

.match-pair::after{

    content:"";

    position:absolute;

    right:-40px;

    top:50%;

    width:40px;

    height:2px;

    background:#666;

}

.match-pair::before{

    content:"";

    position:absolute;

    right:-40px;

    top:25%;

    width:2px;

    height:50%;

    background:#666;

}

.match-pair .bracket-match:first-child{

    margin-bottom:16px;

}

.match-pair .bracket-match{

    position:relative;

}

.match-pair .bracket-match::after{

    content:"";

    position:absolute;

    right:-20px;

    top:50%;

    width:20px;

    height:2px;

    background:#666;

}