

:root {
    --bg:        #0a0a0f;
    --surface:   #13131a;
    --card:      #1c1c28;
    --border:    #2a2a3d;
    --gold:      #c04271;
    --gold-dim:  #9a4a8b;
    --green:     #22c55e;
    --red:       #ef4444;
    --text:      #e8e8f0;
    --muted:     #6b6b88;
    --connector: #3a3a55;
    --card-w:    180px;
    --card-h:    76px;
    --gap-v:     28px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}
header {
    background: linear-gradient(135deg, #1a0a2e 0%, #0a0a0f 60%);
    border-bottom: 2px solid var(--gold-dim);
    padding: 32px 40px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff 30%,#dadada);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: #6b6b88;
    margin-top: 6px;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.header-title {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.trophy-icon {
    font-size: 2.4rem;
    filter: drop-shadow(0 0 12px rgba(240,165,0,.6));
}
.container {
    width: min(1200px, 90%);
    margin: auto;
    padding-bottom: 50px;
}
.container-header {
    width: min(1200px, 90%);
    margin: auto;
   
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 25px;
}

.card {
    background: #1c1c28;
    border: 1px solid #2a2a3d;
    border-radius: 12px;
    overflow-x: auto;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #c84a85;
    box-shadow: 0 8px 30px rgba(0,0,0,.6), 0 0 0 1px #c84a85;
}

.card-header {
    background: linear-gradient(
        180deg,
        #e63d7e 0%,
        #c84a85 60%,
        #9a4a8b 85%,
        #74408a 100%
    );
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.teams {
    list-style: none;
    padding: 12px 16px;
}

.team {
  
    align-items: center;
    gap: 8px;
    padding: 2px 4px;
    border-bottom: 1px solid #2a2a3d;
    font-size: 1.1em;
    color: #e8e8f0;
}

.team:last-child {
    border: none;
}

.flag {
    font-size: 22px;
    width: 32px;
    text-align: center;
}

.card-footer {
    padding: 14px 16px;
}
.back-link {
    color: var(--muted);
    text-decoration: none;
    font-size: .82rem;
    letter-spacing: .05em;
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 6px;
    transition: all .2s;
}
.back-link:hover {
    color: var(--gold);
    border-color: var(--gold-dim);
    background: rgba(240,165,0,.06);
}
.card-footer a {
    display: block;
    text-decoration: none;
    text-align: center;
    background: transparent;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1.5px solid #c84a85;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.card-footer a:hover {
    background: #9a4a8b;
    color: #fff;
    border-color: #9a4a8b;
}

@media (max-width: 700px) {
    header h1 { font-size: 1.4rem; }
    .team { font-size: 1em; }
    .match-info {
    color: #e2e8f0;
    font-size: .5em !important;
    text-align: center;
   
}
}
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    h1 {
        font-size: 1.4rem;
    }
   .llaveslink {
        font-size: 0.65rem !important;
    }
}