@import url('https://fonts.googleapis.com/css2?family=Anton&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --pitch-dark: #05170d;
    --pitch: #0b3d24;
    --pitch-light: #145c34;
    --line: rgba(255, 255, 255, 0.85);
    --gold: #ffc933;
    --gold-dark: #d9a520;
    --ink: #eafff0;
    --ink-dim: #a9c9b6;
    --danger: #ff5a5f;
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--pitch-dark);
    color: var(--ink);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden; /* nimic nu impinge pagina lateral pe mobil */
}

body {
    background-image:
        radial-gradient(circle at 15% -10%, rgba(255, 255, 255, 0.06), transparent 40%),
        radial-gradient(circle at 85% -10%, rgba(255, 255, 255, 0.06), transparent 40%),
        repeating-linear-gradient(
            135deg,
            var(--pitch) 0px,
            var(--pitch) 40px,
            var(--pitch-light) 40px,
            var(--pitch-light) 80px
        );
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3, .display {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}

a { color: var(--gold); }

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    /* safe-area = evitam breton-ul / bara de jos pe iPhone */
    padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
             calc(60px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

/* --- Header / hero --- */
.hero {
    text-align: center;
    padding: 34px 16px 26px;
    position: relative;
}

.hero::before, .hero::after {
    content: "";
    position: absolute;
    top: 0;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
    pointer-events: none;
}
.hero::before { left: 0; }
.hero::after { right: 0; }

.hero .ball {
    font-size: 2.4rem;
    display: inline-block;
    animation: spin 6s linear infinite;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    margin: 6px 0 4px;
}

.hero .subtitle {
    color: var(--ink-dim);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.pitch-line {
    height: 3px;
    max-width: 260px;
    margin: 18px auto;
    background: var(--line);
    position: relative;
    border-radius: 2px;
}
.pitch-line::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -14px;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--line);
    border-radius: 50%;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--gold);
    color: #17240f;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 0 var(--gold-dark), 0 10px 18px rgba(0,0,0,0.35);
    transition: transform 0.12s ease;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--gold-dark); }
.btn.secondary {
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    border: 2px solid rgba(255,255,255,0.35);
}
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Gallery grid --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.gallery .tile {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0,0,0,0.25);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.08);
}
.gallery .tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.gallery .tile:hover img { transform: scale(1.06); }

.gallery .tile.is-new { animation: pop-in 0.5s ease; }
@keyframes pop-in {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

.empty-state {
    text-align: center;
    color: var(--ink-dim);
    padding: 60px 20px;
    font-size: 1.1rem;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 10, 5, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 100;
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
    touch-action: pan-y; /* lasa swipe-ul vertical, noi prindem gesturile in JS */
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 100%;
    max-height: 72vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    -webkit-user-select: none;
    user-select: none;
}
.lightbox .lb-bar {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.lightbox .lb-close {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top));
    right: 12px;
    width: 46px;
    height: 46px;
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
}
.lightbox .lb-prev { left: 12px; }
.lightbox .lb-next { right: 12px; }

/* --- Upload page --- */
.card {
    background: rgba(5, 26, 15, 0.55);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(6px);
}

label { font-weight: 600; display: block; margin-bottom: 8px; }

input[type="text"], input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
    color: var(--ink);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    margin-bottom: 18px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin: 14px 0 20px;
}
.preview-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.15);
}

.msg {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 600;
}
.msg.error { background: rgba(255, 90, 95, 0.15); border: 1px solid var(--danger); color: #ffd7d8; }
.msg.success { background: rgba(120, 220, 130, 0.15); border: 1px solid #78dc82; color: #d6ffd9; }

.goal-banner {
    text-align: center;
    padding: 40px 20px;
}
.goal-banner .goal-text {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.4rem, 10vw, 4rem);
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 201, 51, 0.5);
    animation: goal-pop 0.6s ease;
}
@keyframes goal-pop {
    0% { transform: scale(0.5) rotate(-4deg); opacity: 0; }
    70% { transform: scale(1.1) rotate(2deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.qr-page {
    text-align: center;
}
.qr-page .qr-box {
    background: #fff;
    display: inline-block;
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
}
.qr-page .qr-box img { display: block; width: 260px; height: 260px; }

/* --- Bilet de meci premium (pagina QR de printat) --- */
.ticket {
    position: relative;
    display: flex;
    align-items: stretch;
    max-width: 720px;
    margin: 10px auto 0;
    text-align: left;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(255, 201, 51, 0.10), transparent 55%),
        linear-gradient(150deg, #0f3a25, #061810);
    border: 1px solid rgba(255, 201, 51, 0.28);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
/* Bara aurie de accent, sus */
.ticket::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    z-index: 3;
}
.ticket-main {
    position: relative;
    flex: 1 1 auto;
    padding: 26px 26px 22px;
    min-width: 0;
    overflow: hidden;
    /* pattern subtil de "securitate", ca pe biletele reale */
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 11px);
}
/* Sclipire animata (doar pe ecran) */
.ticket-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.13) 48%, transparent 64%);
    transform: translateX(-120%);
    animation: ticketShine 5s ease-in-out 1s infinite;
}
@keyframes ticketShine { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }

.ticket-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}
.ticket-top .ticket-serial-top { color: var(--ink-dim); font-variant-numeric: tabular-nums; }

.ticket-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.ticket-hero .ticket-crest { margin: 0; flex: 0 0 auto; }
.ticket-hero .ticket-crest .crest-sm { width: 96px; }
.ticket-hero-text { min-width: 0; }
.ticket-eyebrow {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}
.ticket-title {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: 2rem;
    line-height: 1.02;
    color: var(--gold);
    margin: 0 0 8px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.ticket-teams {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.ticket-teams .team { font-weight: 800; color: var(--ink); }
.ticket-teams .vs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    margin: 0 8px;
    font-family: 'Anton', sans-serif;
    font-size: 0.78rem;
    color: var(--pitch-dark);
    background: linear-gradient(var(--gold), var(--gold-dark));
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.ticket-meta {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
}
.ticket-meta .tm-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 201, 51, 0.35);
}
.ticket-meta .tm-cell span {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-dim);
}
.ticket-meta .tm-cell strong { font-size: 1rem; color: var(--ink); }
.ticket-note {
    position: relative;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--ink-dim);
}

/* Linia perforata dintre bilet si cotor, cu crestaturi rotunde */
.ticket-perf {
    position: relative;
    flex: 0 0 0;
    border-left: 3px dashed rgba(255, 255, 255, 0.3);
    margin: 0 2px;
    z-index: 3;
}
.ticket-perf::before,
.ticket-perf::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 24px; height: 24px;
    transform: translateX(-50%);
    background: var(--pitch-dark);
    border-radius: 50%;
}
.ticket-perf::before { top: -13px; }
.ticket-perf::after { bottom: -13px; }

.ticket-stub {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 8px, transparent 8px 16px),
        rgba(255, 255, 255, 0.02);
}
.ticket-stub .stub-admit {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}
.ticket-stub .qr-box {
    margin: 4px 0;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.ticket-stub .qr-box img { width: 190px; height: 190px; }
.ticket-stub .stub-scan { font-weight: 800; font-size: 0.92rem; color: var(--ink); }
/* Cod de bare decorativ (pur CSS) */
.stub-barcode {
    width: 168px; height: 34px;
    margin-top: 2px;
    background-image:
        repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 9px);
    opacity: 0.82;
    border-radius: 3px;
}
.ticket-stub .stub-serial {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--ink-dim);
    font-variant-numeric: tabular-nums;
}

/* Pasi 1-2-3 pe bilet (mini "regulament de meci") */
.ticket-steps {
    position: relative;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
    list-style: none;
    display: grid;
    gap: 9px;
}
.ticket-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    line-height: 1.3;
    color: var(--ink);
}
.ticket-steps .step-no {
    flex: 0 0 auto;
    width: 24px; height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold);
    color: #17240f;
    font-family: 'Anton', sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 2px 0 var(--gold-dark);
}

/* Trimitere la quiz */
.ticket-quiz {
    margin: 13px 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--ink-dim);
}
.ticket-quiz strong { color: var(--gold); font-variant-numeric: tabular-nums; }

/* URL de rezerva sub codul QR (vizibil si la print, daca scanarea nu merge) */
.ticket-stub .stub-url {
    max-width: 200px;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--ink-dim);
}
.ticket-stub .stub-url strong {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

@media (prefers-reduced-motion: reduce) { .ticket-shine { animation: none; display: none; } }

@media (max-width: 620px) {
    .ticket { flex-direction: column; }
    .ticket-title { font-size: 1.7rem; }
    .ticket-meta { grid-template-columns: 1fr 1fr; }
    .ticket-perf {
        border-left: 0;
        border-top: 3px dashed rgba(255, 255, 255, 0.3);
        margin: 2px 0;
    }
    .ticket-perf::before { top: 50%; left: -13px; transform: translateY(-50%); }
    .ticket-perf::after { top: 50%; left: auto; right: -13px; bottom: auto; transform: translateY(-50%); }
    .ticket-stub { width: 100%; }
}

footer.hint {
    text-align: center;
    color: var(--ink-dim);
    font-size: 0.85rem;
    margin-top: 30px;
}

/* --- Scoreboard (header galerie, stil tabela LED de stadion) --- */
.scoreboard {
    display: flex;
    align-items: stretch;
    max-width: 780px;
    margin: 6px auto 4px;
    background: linear-gradient(#0a2416, #050f09);
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sb-cell {
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sb-badge {
    flex: 0 0 84px;
    background: rgba(255, 255, 255, 0.03);
    border-right: 2px solid rgba(255, 255, 255, 0.08);
}
.sb-badge .ball { font-size: 2.4rem; display: inline-block; animation: spin 6s linear infinite; }
.sb-main { flex: 1 1 auto; gap: 4px; }
.sb-title {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(1.3rem, 4.5vw, 2.4rem);
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.sb-sub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-dim);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
}
.live-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: #ff3b3b;
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7);
    animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}
.sb-score {
    flex: 0 0 96px;
    background:
        repeating-linear-gradient(180deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 4px),
        #030805;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}
.sb-num {
    font-family: 'Anton', sans-serif;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 201, 51, 0.55), 0 0 24px rgba(255, 201, 51, 0.25);
    font-variant-numeric: tabular-nums;
    transition: transform 0.25s ease;
}
.sb-num.bump { transform: scale(1.35); }
.sb-score .sb-label {
    color: var(--ink-dim);
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 0.62rem;
    text-transform: uppercase;
    margin-top: 4px;
}

/* --- Tag cu numele celui care a incarcat (pe fiecare poza) --- */
.gallery .tile .tile-name {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 18px 8px 7px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* --- Toast-uri "GOL!" cand apar poze noi live --- */
.toast-wrap {
    position: fixed;
    left: 50%;
    bottom: calc(22px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 92vw;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    color: #17240f;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    animation: toast-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4), toast-out 0.4s ease 3.4s forwards;
}
.toast .t-ball { font-size: 1.25rem; animation: spin 1.6s linear infinite; }
.toast strong { font-family: 'Anton', sans-serif; letter-spacing: 0.03em; }
@keyframes toast-in { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateY(20px); opacity: 0; } }

/* --- Info in lightbox (nume + timp) --- */
.lb-meta {
    color: var(--ink-dim);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 12px;
    min-height: 1.2em;
}
.lb-meta strong { color: var(--ink); }

/* --- Drop zone upload (mare, usor de apasat pe telefon) --- */
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    padding: 30px 18px;
    margin-bottom: 18px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone:focus-within, .dropzone.has-files {
    border-color: var(--gold);
    background: rgba(255, 201, 51, 0.08);
}
.dz-ball { font-size: 2.6rem; line-height: 1; }
.dz-title {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1.25rem;
    color: #fff;
}
.dz-sub { color: var(--ink-dim); font-size: 0.9rem; }

/* --- Numele de jucator retinut pe telefon --- */
.player-id {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: rgba(255, 201, 51, 0.12);
    border: 1px solid rgba(255, 201, 51, 0.35);
    border-radius: 12px;
}
.player-id .pid-text { color: var(--ink); }
.player-id .pid-text strong { color: var(--gold); }
.player-id .pid-change {
    flex: 0 0 auto;
    background: none;
    border: none;
    color: var(--gold);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 6px;
}
.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--ink-dim);
}
.dz-input {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- Emblema / blazon eveniment --- */
.crest {
    display: inline-block;
    background: linear-gradient(var(--gold), var(--gold-dark));
    padding: 4px;
    clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}
.crest-inner {
    clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
    background: linear-gradient(#0f4f2c, #062a16);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-align: center;
    height: 100%;
}
.crest-name {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.02;
}
.crest-star { color: var(--gold); }
.crest-date { color: var(--gold); font-weight: 700; letter-spacing: 0.12em; }
/* varianta mare (cartonas QR / print) */
.crest-big { width: 230px; }
.crest-big .crest-inner { padding: 20px 16px 66px; gap: 5px; }
.crest-big .crest-star { font-size: 1rem; }
.crest-big .crest-ball { font-size: 2.6rem; }
.crest-big .crest-name { font-size: 1.6rem; }
.crest-big .crest-date { font-size: 0.85rem; margin-top: 2px; }
/* varianta mica (antet) */
.crest-sm { width: 120px; }
.crest-sm .crest-inner { padding: 12px 8px 34px; gap: 2px; }
.crest-sm .crest-ball { font-size: 1.7rem; }
.crest-sm .crest-name { font-size: 1rem; }
.crest-sm .crest-star, .crest-sm .crest-date { display: none; }

/* --- Insigna / realizare pe bannerul de gol --- */
.achievement {
    display: inline-block;
    margin: 4px auto 2px;
    padding: 8px 22px;
    background: rgba(255, 201, 51, 0.15);
    border: 2px solid var(--gold);
    border-radius: 999px;
    color: var(--gold);
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.03em;
    font-size: 1.15rem;
    animation: goal-pop 0.6s ease 0.2s both;
}

/* --- Ceas de meci --- */
.match-clock { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- "La Ola" (val prin galerie) --- */
.gallery .tile.wave { animation: la-ola 0.62s ease; z-index: 2; }
@keyframes la-ola {
    0%, 100% { transform: translateY(0) scale(1); box-shadow: none; }
    45% { transform: translateY(-14px) scale(1.06); box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45); }
}

/* --- Clasament "Golgheterii serii" --- */
.leaderboard {
    max-width: 520px;
    margin: 14px auto 6px;
    background: rgba(5, 26, 15, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(6px);
}
.leaderboard .lb-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.leaderboard .lb-cup { font-size: 1.2rem; }
.leaderboard .lb-list { list-style: none; margin: 0; padding: 6px 8px; }
.leaderboard .lb-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
}
.leaderboard .lb-list li:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.leaderboard .lb-rank { width: 1.7em; text-align: center; font-size: 1.1rem; flex: 0 0 auto; }
.leaderboard .lb-name {
    flex: 1 1 auto;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.leaderboard .lb-score {
    flex: 0 0 auto;
    color: var(--gold);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* --- Slideshow "Cinema" pe TV --- */
.slideshow-body { overflow: hidden; }
.slideshow {
    position: fixed;
    inset: 0;
    background: #030805;
    overflow: hidden;
}
.slide-stage { position: absolute; inset: 0; }
.slide-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: transform, opacity;
}
.slide-layer.is-visible { opacity: 1; }
/* patru variante de Ken Burns ca sa nu para repetitiv */
.ken-0 { animation: ken0 8s ease-out forwards; }
.ken-1 { animation: ken1 8s ease-out forwards; }
.ken-2 { animation: ken2 8s ease-out forwards; }
.ken-3 { animation: ken3 8s ease-out forwards; }
@keyframes ken0 { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -2%); } }
@keyframes ken1 { from { transform: scale(1.14) translate(2%, 0); } to { transform: scale(1.02) translate(0, 1%); } }
@keyframes ken2 { from { transform: scale(1.04) translate(0, 2%); } to { transform: scale(1.16) translate(2%, -2%); } }
@keyframes ken3 { from { transform: scale(1.16) translate(-2%, 1%); } to { transform: scale(1.03) translate(0, 0); } }

.slide-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 60px 40px calc(28px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    pointer-events: none;
}
.slide-brand { display: flex; align-items: center; gap: 14px; }
.slide-brand .ball { font-size: 2.2rem; animation: spin 6s linear infinite; }
.slide-title {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(1.4rem, 3vw, 2.6rem);
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.slide-caption {
    font-size: clamp(1rem, 2vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    padding: 8px 18px;
    border-radius: 999px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.slide-caption strong { color: var(--gold); }

.slide-flash {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 201, 51, 0.35), transparent 60%);
    opacity: 0;
    pointer-events: none;
}
.slide-flash span {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 14vw, 10rem);
    color: var(--gold);
    text-shadow: 0 0 40px rgba(255, 201, 51, 0.8);
    transform: scale(0.6);
}
.slide-flash.go { animation: slide-flash-bg 1.6s ease forwards; }
.slide-flash.go span { animation: slide-flash-txt 1.6s ease forwards; }
@keyframes slide-flash-bg { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
@keyframes slide-flash-txt {
    0% { transform: scale(0.4) rotate(-6deg); opacity: 0; }
    25% { transform: scale(1.1) rotate(3deg); opacity: 1; }
    70% { transform: scale(1) rotate(0); opacity: 1; }
    100% { transform: scale(1.05); opacity: 0; }
}

.slide-empty {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ink-dim);
    gap: 14px;
}
.slide-empty.show { display: flex; }
.slide-empty .ball { font-size: 4rem; animation: spin 6s linear infinite; }
.slide-empty p { font-size: 1.4rem; line-height: 1.5; }

.slide-exit {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top));
    right: 16px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    z-index: 5;
}
.slide-exit:hover { opacity: 1; }

/* --- Buton flotant "Adauga poze" (mereu la indemana pe mobil) --- */
.fab {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 90;
    display: none; /* doar pe mobil, vezi media query */
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--gold);
    color: #17240f;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    box-shadow: 0 6px 0 var(--gold-dark), 0 12px 22px rgba(0,0,0,0.45);
}
.fab:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--gold-dark); }
.fab .fab-ico { font-size: 1.2rem; }

/* --- Buton stergere in admin (tinta de deget mai mare) --- */
.tile-del {
    position: absolute;
    top: 6px;
    right: 6px;
}
.tile-del button {
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Feedback la atingere pe poze */
.gallery .tile:active { transform: scale(0.97); transition: transform 0.08s ease; }

/* --- Quiz: mod "quiz show" (o intrebare pe ecran) --- */
.quiz-form.is-slides .quiz-slide { display: none; }
.quiz-form.is-slides .quiz-slide.active { display: block; animation: slideIn 0.28s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Bara de progres cu minge spre poarta */
.quiz-progress { margin-bottom: 20px; }
.qp-track {
    position: relative;
    height: 10px;
    margin: 4px 28px 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.qp-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    transition: width 0.35s ease;
}
.qp-ball {
    position: absolute; top: 50%; left: 0;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    transition: left 0.35s ease;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
.qp-net { position: absolute; right: -26px; top: 50%; transform: translateY(-50%); font-size: 1.25rem; }
.qp-label { text-align: center; margin-top: 12px; font-weight: 700; font-size: 0.9rem; color: var(--ink-dim); }

.quiz-q-title { font-weight: 700; margin-bottom: 14px; line-height: 1.35; font-size: 1.1rem; }
.quiz-q-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; margin-right: 6px;
    font-size: 0.9rem; color: var(--pitch-dark);
    background: linear-gradient(var(--gold), var(--gold-dark)); border-radius: 50%;
}

.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 16px 30px 16px 14px;
    text-align: center; font-weight: 700; font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px; cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.08s ease;
}
.quiz-opt:active { transform: scale(0.98); }
.quiz-opt-input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-opt:hover { border-color: rgba(255, 201, 51, 0.45); }
.quiz-opt.selected, .quiz-opt:has(.quiz-opt-input:checked) {
    border-color: var(--gold);
    background: rgba(255, 201, 51, 0.16);
}
.quiz-opt.selected::after, .quiz-opt:has(.quiz-opt-input:checked)::after {
    content: "✓"; position: absolute; right: 12px; color: var(--gold); font-weight: 900;
}

/* Adevarat / Fals: butoane mari colorate */
.quiz-opts-tf .quiz-opt { font-size: 1.15rem; }
.quiz-opts-tf .opt-true::before { content: "✓ "; color: #35c46a; font-weight: 900; }
.quiz-opts-tf .opt-false::before { content: "✕ "; color: #ff6b6b; font-weight: 900; }
.quiz-opts-tf .opt-true.selected, .quiz-opts-tf .opt-true:has(:checked) { border-color: #35c46a; background: rgba(53, 196, 106, 0.16); }
.quiz-opts-tf .opt-false.selected, .quiz-opts-tf .opt-false:has(:checked) { border-color: #ff6b6b; background: rgba(255, 107, 107, 0.16); }
.quiz-opts-tf .quiz-opt.selected::after, .quiz-opts-tf .quiz-opt:has(:checked)::after { content: none; }

.quiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.quiz-nav .btn {
    flex: 1 1 auto;
    padding: 10px 16px;
    font-size: 0.85rem;
    box-shadow: 0 3px 0 var(--gold-dark), 0 5px 10px rgba(0, 0, 0, 0.3);
}
.quiz-nav .btn.secondary { box-shadow: none; }
.quiz-nav .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-dark); }
.quiz-next, .quiz-back { display: none; }
.is-slides .quiz-next, .is-slides .quiz-back { display: inline-flex; }

/* Ecran "ai jucat deja" (blocheaza refacerea quiz-ului) */
.quiz-done { text-align: center; }

.shake { animation: shake 0.4s ease; }
@keyframes shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-8px); }
    40%, 60% { transform: translateX(8px); }
}

/* Rezultat: "omul meciului" + puncte */
.motm-badge {
    display: inline-block; margin: 6px 0 4px; padding: 6px 14px;
    font-weight: 800; color: var(--pitch-dark);
    background: linear-gradient(var(--gold), var(--gold-dark)); border-radius: 999px;
}
.quiz-points { font-size: 1.7rem; font-weight: 800; color: var(--gold); letter-spacing: 0.02em; }

/* Rezumat raspunsuri (corect / gresit) */
.quiz-review { margin-top: 22px; }
.quiz-review-head { text-align: center; font-weight: 800; color: var(--gold); margin-bottom: 10px; }
.qr-item {
    padding: 12px 14px; margin-bottom: 8px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.03);
}
.qr-item.is-ok { border-color: rgba(53, 196, 106, 0.5); }
.qr-item.is-bad { border-color: rgba(255, 107, 107, 0.5); }
.qr-q { font-weight: 700; line-height: 1.3; }
.qr-mark { font-weight: 900; margin-right: 4px; }
.qr-item.is-ok .qr-mark { color: #35c46a; }
.qr-item.is-bad .qr-mark { color: #ff6b6b; }
.qr-ans { margin-top: 4px; font-size: 0.9rem; color: var(--ink-dim); }
.qr-ans strong { color: var(--ink); }

/* Podium top 3 */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 0 0 18px; }
.podium-spot { flex: 1 1 0; max-width: 130px; text-align: center; }
.podium-medal { font-size: 1.7rem; }
.podium-name { font-weight: 800; font-size: 0.9rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-pts { font-size: 0.8rem; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.podium-bar {
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 8px; font-weight: 900; color: var(--pitch-dark);
    background: linear-gradient(var(--gold), var(--gold-dark)); border-radius: 8px 8px 0 0;
}
.podium .spot-1 .podium-bar { height: 84px; }
.podium .spot-2 .podium-bar { height: 58px; background: linear-gradient(#eaeaea, #b6b6b6); }
.podium .spot-3 .podium-bar { height: 42px; background: linear-gradient(#e8a06a, #c67b43); }

/* --- Premii quiz --- */
.prizes {
    margin: 26px auto 0;
    background: linear-gradient(#0a2416, #050f09);
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    overflow: hidden;
}
.prizes-head {
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--gold);
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.prizes-list { list-style: none; margin: 0; padding: 6px 14px; }
.prizes-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.prizes-list li:last-child { border-bottom: 0; }
.prizes-list .pz-place { font-weight: 800; white-space: nowrap; }
.prizes-list .pz-what { text-align: right; color: var(--ink); }
.prizes-list .pz-what em { color: var(--ink-dim); font-style: normal; font-size: 0.82rem; }
.prizes-list .pz-tbd { color: var(--ink-dim); font-style: italic; }
.prizes-list .pz-cons { background: rgba(255, 201, 51, 0.06); margin: 0 -14px; padding: 10px 14px; }

.standings {
    margin: 26px auto 0;
}
.standings-head {
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--gold);
    margin-bottom: 10px;
}
.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(#0a2416, #050f09);
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    overflow: hidden;
}
.standings-table th,
.standings-table td {
    padding: 10px 12px;
    text-align: left;
}
.standings-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.standings-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.standings-table tbody tr:last-child { border-bottom: 0; }
.standings-table .st-rank { width: 44px; font-size: 1.1rem; text-align: center; }
.standings-table .st-goals,
.standings-table .st-pts { text-align: center; width: 60px; }
.standings-table .st-pts { color: var(--gold); font-weight: 800; }
.standings-table .st-name { font-weight: 700; }
.standings-table tr.is-podium { background: rgba(255, 201, 51, 0.06); }
.standings-table tr.pod-1 { background: rgba(255, 201, 51, 0.14); }
.standings-table tr.is-me { outline: 2px solid var(--gold); outline-offset: -2px; }

/* --- Salut personalizat in galerie --- */
.welcome {
    text-align: center;
    margin: 0 auto 10px;
    padding: 8px 16px;
    max-width: max-content;
    font-weight: 700;
    color: var(--gold);
    background: rgba(255, 201, 51, 0.12);
    border: 1px solid rgba(255, 201, 51, 0.35);
    border-radius: 999px;
}

/* --- "Primul 11": teren cu formatia de start --- */
.lineup {
    max-width: 620px;
    margin: 18px auto 6px;
}
.lineup-head {
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--gold);
    margin-bottom: 8px;
}
.lineup-head .lineup-sub {
    color: var(--ink-dim);
    font-weight: 700;
    font-size: 0.8rem;
    margin-left: 4px;
}
.pitch {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    background:
        repeating-linear-gradient(0deg,
            var(--pitch) 0, var(--pitch) 24px,
            var(--pitch-light) 24px, var(--pitch-light) 48px);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), 0 8px 20px rgba(0,0,0,0.35);
    overflow: hidden;
}
/* Marcaje simple: cerc central + linia de mijloc */
.pitch::before {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 32%; aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,0.18);
    border-radius: 50%;
}
.pitch::after {
    content: "";
    position: absolute;
    left: 6%; right: 6%; top: 50%;
    height: 2px;
    background: rgba(255,255,255,0.18);
}
.player {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 82px;
}
.player-shirt {
    position: relative;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--pitch-dark);
    background: linear-gradient(var(--gold), var(--gold-dark));
    border-radius: 50%;
    box-shadow: 0 3px 0 rgba(0,0,0,0.35);
}
.player-shirt.is-captain::after {
    content: attr(data-cap);
    position: absolute;
    top: -6px; right: -6px;
    width: 18px; height: 18px;
    font-size: 0.62rem;
    color: #fff;
    background: #c62828;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.player-name {
    max-width: 82px;
    padding: 1px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink);
    background: rgba(5, 23, 13, 0.72);
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* --- Ajustari pentru ecrane mici (telefoane) --- */
@media (max-width: 480px) {
    .lineup { max-width: 260px; margin-top: 12px; }
    .pitch { aspect-ratio: 4 / 5; }
    .player { width: 56px; }
    .player-shirt { width: 28px; height: 28px; font-size: 0.82rem; }
    .player-name { max-width: 58px; font-size: 0.6rem; }
    .scoreboard { border-radius: 14px; }
    .sb-badge { flex-basis: 58px; }
    .sb-badge .ball { font-size: 1.8rem; }
    .sb-cell { padding: 12px 8px; }
    .sb-score { flex-basis: 74px; }
    .sb-num { font-size: 2rem; }
    .gallery { grid-template-columns: repeat(auto-fill, minmax(46%, 1fr)); gap: 8px; }
    .lightbox .lb-nav { width: 44px; height: 44px; font-size: 1.5rem; }
}

/* Arata butonul flotant doar pe ecrane tactile mici; ascunde cel din antet ca sa nu se dubleze */
@media (max-width: 768px) {
    .fab { display: inline-flex; }
    .top-upload { display: none; }
}

@media print {
    body { background: #fff !important; }
    .no-print { display: none !important; }
    .ticket-shine { display: none !important; }
}
