@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --bg-deep:       #06090f;
    --bg-surface:    #0b1120;
    --bg-card:       #101827;
    --bg-card-hover: #141f30;
    --border-dim:    rgba(255,255,255,0.06);
    --border-mid:    rgba(255,255,255,0.12);
    --border-accent: rgba(0,245,160,0.35);

    --text-primary:  #e8edf5;
    --text-muted:    #6b7a94;
    --text-hint:     #3d4d63;

    --accent:        #00f5a0;
    --accent-dim:    rgba(0,245,160,0.12);
    --accent-glow:   rgba(0,245,160,0.25);

    --gold:          #f0b429;
    --gold-dim:      rgba(240,180,41,0.12);

    --rarity-bronze:     #cd7f32;
    --rarity-silver:     #c0c0c0;
    --rarity-gold:       #ffd700;
    --rarity-super-rare: #00d4ff;
    --rarity-epic:       #b200ff;
    --rarity-legend:     #ffffff;

    --notif-success:  #00f5a0;
    --notif-error:    #f05252;
    --notif-info:     #60a5fa;
    --notif-warning:  #f0b429;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    /* FIX MOBILE: Fallback a vh, ma sovrascritto da dvh se supportato */
    height: 100vh;
    height: 100dvh; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-overlay {
    position: fixed; inset: 0; z-index: 0;
    background: radial-gradient(ellipse 60% 40% at 20% 80%, rgba(0,245,160,0.04) 0%, transparent 70%),
                radial-gradient(ellipse 50% 50% at 80% 20%, rgba(0,100,255,0.05) 0%, transparent 70%),
                var(--bg-deep);
    pointer-events: none;
}

.background-overlay::after {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 40px 40px;
}

.screen { 
    width: 100%; 
    /* FIX MOBILE: Limita l'altezza allo schermo reale */
    height: 100%; 
    max-height: 100dvh; 
    max-width: 480px; 
    position: relative; 
    z-index: 1; 
    display: none; 
    flex-direction: column; 
}
.screen.active { display: flex; }
.screen.hidden  { display: none; }

.glass-panel { background: var(--bg-card); border: 1px solid var(--border-dim); border-radius: var(--radius-lg); }

h1, h2, h3, .display { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 0.02em; }
.highlight-text { color: var(--accent); }

.onboarding-container { padding: 32px 28px; margin: auto 16px; max-height: 92vh; overflow-y: auto; scrollbar-width: none; }
.onboarding-container::-webkit-scrollbar { display: none; }
.onboarding-container h1 { font-size: 36px; line-height: 1.1; margin-bottom: 6px; }
.onboarding-container > p { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

.form-group { margin-bottom: 22px; text-align: left; }
.form-group label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }

input[type="text"] { width: 100%; padding: 13px 16px; background: var(--bg-surface); border: 1px solid var(--border-mid); border-radius: var(--radius-sm); color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: 15px; outline: none; transition: border-color 0.2s; }
input[type="text"]::placeholder { color: var(--text-hint); }
input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.kit-selection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--bg-surface); padding: 14px; border-radius: var(--radius-md); border: 1px solid var(--border-dim); }
.kit-selection-grid label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 0; }
input[type="color"] { width: 100%; height: 38px; border: 1px solid var(--border-mid); border-radius: var(--radius-sm); cursor: pointer; background: transparent; margin-top: 6px; padding: 2px; }

.glass-select { width: 100%; padding: 11px 14px; margin-top: 6px; background: var(--bg-card); border: 1px solid var(--border-mid); border-radius: var(--radius-sm); color: var(--text-primary); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; outline: none; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a94' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.glass-select option { background: var(--bg-card); color: var(--text-primary); }

.leagues-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.league-btn { background: var(--bg-surface); border: 1px solid var(--border-mid); border-radius: var(--radius-sm); color: var(--text-muted); padding: 11px 14px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; text-align: left; transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s; display: flex; align-items: center; gap: 8px; }
.league-btn:hover { background: var(--bg-card-hover); border-color: var(--border-mid); color: var(--text-primary); transform: translateY(-1px); }
.league-btn.active-league { background: var(--accent-dim); border-color: var(--border-accent); color: var(--accent); }

.primary-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 24px; margin-top: 24px; background: var(--accent); color: #050a0e; border: none; border-radius: var(--radius-md); font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: opacity 0.2s, transform 0.15s; }
.primary-btn:hover:not([disabled]) { opacity: 0.9; transform: translateY(-1px); }
.primary-btn[disabled], .primary-btn.disabled { background: var(--bg-card-hover); color: var(--text-hint); cursor: not-allowed; transform: none; opacity: 1; border: 1px solid var(--border-dim); }

/* ─── STILI BOTTONI GLOBALI (Glass Button) ─────── */
.glass-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.glass-btn:hover { background: var(--bg-card-hover); border-color: var(--border-mid); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.glass-btn:active { transform: translateY(0); }

#event-options .glass-btn { justify-content: flex-start; padding: 14px; background: rgba(255,255,255,0.03); }
#event-options .glass-btn:hover { background: rgba(0, 245, 160, 0.1); border-color: var(--accent); color: var(--accent); }


/* ─── LAYOUT DASHBOARD ─────────────────────────── */
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; margin: 10px 10px 0; border-radius: var(--radius-md); flex-shrink: 0; }
.team-info h2 { font-size: 20px; line-height: 1; }
.badge { font-size: 11px; font-weight: 500; background: var(--bg-surface); color: var(--text-muted); padding: 3px 8px; border-radius: 4px; margin-top: 4px; display: inline-block; border: 1px solid var(--border-dim); }
.currency { display: flex; align-items: center; gap: 6px; color: var(--gold); font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; background: var(--gold-dim); border: 1px solid rgba(240,180,41,0.2); border-radius: var(--radius-sm); padding: 6px 12px; }
.currency i { font-size: 14px; }

.content-area { 
    flex: 1; 
    overflow-y: auto; 
    padding: 10px; 
    scrollbar-width: thin; 
    scrollbar-color: var(--border-dim) transparent; 
    /* FIX MOBILE: Assicura che l'area scrollabile funzioni bene in flexbox */
    min-height: 0; 
}

.bottom-nav { 
    display: flex; 
    justify-content: space-around; 
    padding: 10px 6px; 
    /* FIX MOBILE: Margin in basso considera la safe-area degli iPhone e la barra Android */
    margin: 0 10px calc(15px + env(safe-area-inset-bottom)); 
    border-radius: var(--radius-md); 
    /* FIX MOBILE: Impedisce alla barra di essere schiacciata */
    flex-shrink: 0; 
    background: var(--bg-card);
}
.nav-item { background: transparent; border: none; color: var(--text-hint); display: flex; flex-direction: column; align-items: center; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.02em; padding: 8px 12px; border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s; gap: 4px; }
.nav-item i { font-size: 18px; }
.nav-item:hover { color: var(--text-muted); background: var(--bg-surface); }
.nav-item.active { color: var(--accent); background: var(--accent-dim); }

/* MATCH E HOME */
.home-view { padding: 20px; }
.section-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-hint); margin-bottom: 14px; }
.match-card { background: var(--bg-surface); border: 1px solid var(--border-dim); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; }
.match-teams { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team-block { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.team-crest { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border-mid); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.team-name-label { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; text-align: center; color: var(--text-primary); }
.vs-badge { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; color: var(--text-hint); background: var(--bg-card); border: 1px solid var(--border-dim); border-radius: 6px; padding: 4px 10px; letter-spacing: 0.05em; }

.play-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 16px 24px; margin-top: 16px; background: transparent; border: 1px solid rgba(0,245,160,0.3); border-radius: var(--radius-md); color: var(--accent); font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.15s; position: relative; overflow: hidden; }
.play-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,245,160,0.08) 0%, transparent 60%); pointer-events: none; }
.play-btn:hover { background: var(--accent-dim); border-color: var(--accent); transform: translateY(-1px); }
.play-btn .play-icon { width: 28px; height: 28px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #050a0e; font-size: 11px; }

/* ─── PITCH CONTAINER E FORMAZIONI ─────────────── */
.pitch-container {
    background-color: #1b4d2e;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(0,0,0,0.1) 40px, rgba(0,0,0,0.1) 80px);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}
.pitch-line-center { position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,0.3); transform: translateY(-50%); }
.pitch-circle { position: absolute; top: 50%; left: 50%; width: 70px; height: 70px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch-box-top { position: absolute; top: 0; left: 50%; width: 140px; height: 50px; border: 2px solid rgba(255,255,255,0.3); border-top: none; transform: translateX(-50%); }
.pitch-box-bottom { position: absolute; bottom: 0; left: 50%; width: 140px; height: 50px; border: 2px solid rgba(255,255,255,0.3); border-bottom: none; transform: translateX(-50%); }

.pitch-slot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.player-card { background: var(--bg-card); border-radius: var(--radius-sm); padding: 10px; width: 75px; display: flex; flex-direction: column; align-items: center; justify-content: center; background-image: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; cursor: grab; position: relative; }
.player-card:active { cursor: grabbing; }

.player-card-interactive.selected { box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent) !important; transform: scale(1.15) !important; border-color: var(--accent) !important; z-index: 10; }

.oop-warning { position: absolute; top: -8px; right: -8px; background: var(--notif-warning); color: #000; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; z-index: 10; box-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.empty-slot { width: 75px; height: 100px; border: 2px dashed rgba(255,255,255,0.3); border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); cursor: pointer; background: rgba(0,0,0,0.2); font-size: 11px; }
.empty-slot:hover { background: rgba(0,0,0,0.4); border-color: rgba(255,255,255,0.8); color: rgba(255,255,255,0.8); }

.card-overall { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 800; line-height: 1; }
.card-pos { font-family: 'DM Sans', sans-serif; font-size: 10px; color: var(--text-muted); font-weight: 700; margin: 4px 0; text-transform: uppercase; letter-spacing: 0.05em; }
.card-name { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-primary); text-transform: uppercase; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: center; }

/* ANIMAZIONE PACCHETTO E NOTIFICHE */
.pack-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(6, 9, 15, 0.98); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.pack-unopened { text-align: center; cursor: pointer; transition: transform 0.3s; animation: pulse-pack 2s infinite; }
.pack-unopened:hover { transform: scale(1.1); }
@keyframes pulse-pack { 0% { filter: drop-shadow(0 0 10px rgba(240,180,41,0.5)); } 50% { filter: drop-shadow(0 0 30px rgba(240,180,41,1)); } 100% { filter: drop-shadow(0 0 10px rgba(240,180,41,0.5)); } }

.pack-opened { width: 100%; max-width: 480px; text-align: center; display: none; flex-direction: column; align-items: center; }
.pack-cards-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-height: 65vh; overflow-y: auto; padding: 10px; width: 100%; }

.pop-in { animation: pop-in-anim 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; opacity: 0; transform: scale(0.5); }
@keyframes pop-in-anim { to { opacity: 1; transform: scale(1); } }

#notification-container { position: fixed; top: 16px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 320px; pointer-events: none; }
.notif-card { pointer-events: all; background: var(--bg-card); border: 1px solid var(--border-dim); border-radius: var(--radius-md); padding: 0; overflow: hidden; transform: translateX(340px); opacity: 0; transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), opacity 0.25s ease; box-shadow: 0 8px 32px rgba(0,0,0,0.5); position: relative; }
.notif-card.show { transform: translateX(0); opacity: 1; }
.notif-card.hide { transform: translateX(340px); opacity: 0; }
.notif-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; border-radius: 12px 0 0 12px; }
.notif-card.success::before { background: var(--notif-success); }
.notif-card.error::before   { background: var(--notif-error); }
.notif-card.info::before    { background: var(--notif-info); }
.notif-card.warning::before { background: var(--notif-warning); }
.notif-inner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 18px; }
.notif-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.notif-card.success .notif-icon { background: rgba(0,245,160,0.12); color: var(--notif-success); }
.notif-card.error   .notif-icon { background: rgba(240,82,82,0.12);  color: var(--notif-error); }
.notif-card.info    .notif-icon { background: rgba(96,165,250,0.12); color: var(--notif-info); }
.notif-card.warning .notif-icon { background: rgba(240,180,41,0.12); color: var(--notif-warning); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.2; margin-bottom: 2px; }
.notif-msg { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.notif-close { background: transparent; border: none; color: var(--text-hint); cursor: pointer; font-size: 14px; padding: 0; line-height: 1; flex-shrink: 0; transition: color 0.15s; }
.notif-close:hover { color: var(--text-primary); }
.notif-progress { height: 2px; background: var(--border-dim); position: relative; overflow: hidden; }
.notif-progress-bar { height: 100%; border-radius: 0 0 2px 2px; transform-origin: left; animation: notif-shrink linear forwards; }
.notif-card.success .notif-progress-bar { background: var(--notif-success); }
.notif-card.error   .notif-progress-bar { background: var(--notif-error); }
.notif-card.info    .notif-progress-bar { background: var(--notif-info); }
.notif-card.warning .notif-progress-bar { background: var(--notif-warning); }

@keyframes notif-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.empty-view { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; gap: 12px; }
.empty-view i { font-size: 40px; color: var(--text-hint); margin-bottom: 8px; }
.empty-view h3 { font-size: 20px; color: var(--text-muted); }
.empty-view p { font-size: 13px; color: var(--text-hint); max-width: 200px; line-height: 1.5; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dim); border-radius: 4px; }
.divider { height: 1px; background: var(--border-dim); margin: 16px 0; }

/* ─── MODAL CUSTOM E SVINCOLO ───────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: var(--bg-card); border: 1px solid var(--border-dim); border-radius: var(--radius-lg); padding: 24px; width: 90%; max-width: 380px; transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 40px rgba(0,0,0,0.8); }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-buttons { display: flex; gap: 12px; margin-top: 24px; }

.release-selected { border-color: var(--notif-error) !important; box-shadow: 0 0 15px var(--notif-error) !important; transform: scale(1.1) !important; background-image: linear-gradient(to bottom, rgba(240, 82, 82, 0.2), transparent) !important; }
.dimmed { opacity: 0.4; pointer-events: none; filter: grayscale(100%); }

/* ─── HUB SQUADRA STYLES ───────────────────────── */
.hub-list-item { background: var(--bg-surface); border: 1px solid var(--border-dim); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: transform 0.2s, background 0.2s; }
.hub-list-item:hover { background: var(--bg-card-hover); transform: translateX(5px); border-color: var(--accent-dim); }
.hub-action-btn { width: 100%; padding: 12px; margin-bottom: 10px; text-align: left; display: flex; justify-content: space-between; align-items: center; }
.hub-action-btn i { font-size: 18px; margin-right: 10px; }
.hub-action-desc { font-size: 10px; color: var(--text-hint); margin-top: 4px; font-weight: normal; text-transform: none; letter-spacing: 0;}

/* ─── STILI PARTITA (MATCH ENGINE) ──────────────── */
.match-view { font-family: 'DM Sans', sans-serif; }
.log-event { background: rgba(255,255,255,0.05); padding: 10px 15px; border-radius: 8px; font-size: 13px; animation: slide-in 0.3s ease forwards; display: flex; gap: 10px; align-items: center; border-left: 3px solid transparent; }
.log-goal { border-left-color: var(--accent); background: rgba(0, 245, 160, 0.1); }
.log-cpu-goal { border-left-color: var(--notif-error); background: rgba(240, 82, 82, 0.1); }
.log-yellow { border-left-color: var(--gold); }
.log-red { border-left-color: var(--notif-error); }
.log-injury { border-left-color: #f43f5e; }

@keyframes slide-in { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

.goal-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; width: 100%; height: 180px; border: 5px solid white; border-bottom: none; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><rect width="10" height="10" fill="none" stroke="rgba(255,255,255,0.3)" stroke-width="1"/></svg>'); position: relative; }
.goal-section { background: rgba(0,0,0,0.4); cursor: pointer; transition: background 0.2s; border: 1px dashed rgba(255,255,255,0.2); }
.goal-section:hover { background: rgba(0, 245, 160, 0.3); }

.goal-success { background: rgba(0, 245, 160, 0.8) !important; animation: flash-green 0.5s; }
.goal-fail { background: rgba(240, 82, 82, 0.8) !important; animation: flash-red 0.5s; }
@keyframes flash-green { 0% { box-shadow: 0 0 30px #00f5a0; } 100% { box-shadow: none; } }
@keyframes flash-red { 0% { box-shadow: 0 0 30px #f05252; } 100% { box-shadow: none; } }

.sub-card { background: var(--bg-surface); border: 1px solid var(--border-dim); padding: 8px; border-radius: 6px; font-size: 11px; cursor: pointer; display: flex; justify-content: space-between; }
.sub-card.selected { border-color: var(--accent); background: rgba(0,245,160,0.1); }
.sub-card.disabled { opacity: 0.4; pointer-events: none; }

/* ─── GOAL BANNER ──────────────────────────────── */
.goal-banner-overlay {
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.goal-banner-overlay.show {
    opacity: 1;
    transform: scale(1);
}
.goal-banner-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 70px;
    font-weight: 800;
    color: var(--gold);
    text-shadow: 0 4px 20px rgba(240, 180, 41, 0.6);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    line-height: 1;
}
.goal-banner-details {
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-dim);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
/* ─── MATCH BANNER (GOL, CARTELLINI, INFORTUNI) ─── */
.match-banner-overlay {
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.match-banner-overlay.show {
    opacity: 1;
    transform: scale(1);
}
.match-banner-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 60px;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}
.match-banner-details {
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-dim);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}