/* ══════════════════════════════════════════════════════════════
   WORLD CUP 2026 PROMO — styles
   Fully self-contained stylesheet for the time-boxed World Cup 2026
   "pick your team, win $100" campaign.

   TO RETIRE THE CAMPAIGN LATER: delete this file and its <link> tag
   in index.html, along with scripts/worldcup2026.js and the two HTML
   blocks marked "WORLD CUP 2026 PROMO" in index.html. Nothing else
   in the app depends on any of this.
   ══════════════════════════════════════════════════════════════ */

/* ── Promo banner (sits right under the hero) ─────────────────── */
.wc2026-banner {
    display: none;
    align-items: center;
    gap: 12px;
    margin: 14px 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(120deg, #0b6b3a 0%, #0e8a4b 45%, #ffcc00 220%);
    box-shadow: 0 6px 20px rgba(11, 107, 58, 0.35);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.wc2026-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 10px, transparent 10px 20px);
    pointer-events: none;
}
.wc2026-banner__icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
    animation: wc2026Bounce 2.2s ease-in-out infinite;
}
@keyframes wc2026Bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-4px) rotate(-6deg); }
}
.wc2026-banner__text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.wc2026-banner__title {
    font-size: 0.92rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    margin-bottom: 2px;
}
.wc2026-banner__sub {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
}
.wc2026-banner__cta {
    flex-shrink: 0;
    background: #fff;
    color: #0b6b3a;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 8px 14px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

/* ── Modal ─────────────────────────────────────────────────────── */
#wc2026-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10200;
    background: rgba(0,0,0,0.68);
    align-items: flex-end;
    justify-content: center;
}
.wc2026-sheet {
    width: 100%;
    max-width: 480px;
    background: #12321f;
    background: linear-gradient(180deg, #123a24 0%, #0d2717 100%);
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    font-family: inherit;
}
.wc2026-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.wc2026-sheet__title {
    font-size: 1.02rem;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wc2026-sheet__close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.7);
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}
.wc2026-sheet__body {
    padding: 14px 18px 20px;
    overflow-y: auto;
}
.wc2026-intro {
    font-size: 0.82rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
}
.wc2026-rules {
    font-size: 0.7rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 9px 12px;
    margin-bottom: 12px;
}
.wc2026-search {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    margin-bottom: 12px;
}
.wc2026-search::placeholder { color: rgba(255,255,255,0.4); }
.wc2026-search:focus { border-color: #ffcc00; }

#wc2026-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 46vh;
    overflow-y: auto;
    padding-bottom: 4px;
}
.wc-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    padding: 20px 0;
}
.wc-team-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 10px 6px 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.wc-team-tile img {
    width: 36px; height: 27px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.wc-team-tile span {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-align: center;
    line-height: 1.25;
}
.wc-team-tile:hover { border-color: rgba(255,204,0,0.4); background: rgba(255,255,255,0.1); }
.wc-team-tile--selected {
    border-color: #ffcc00;
    background: rgba(255,204,0,0.14);
    box-shadow: 0 0 0 2px rgba(255,204,0,0.25);
}
.wc-team-tile--selected span { color: #ffcc00; }

.wc2026-submit-btn {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffcc00, #ff9800);
    color: #12321f;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255,153,0,0.35);
    transition: opacity 0.15s;
}
.wc2026-submit-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

#wc2026-error {
    display: none;
    margin-top: 10px;
    padding: 9px 12px;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
}

/* ── Registered / confirmation state ───────────────────────────── */
#wc2026-registered-view { display: none; text-align: center; padding: 10px 0 6px; }
.wc-reg-flag img {
    width: 84px; height: 63px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    margin-bottom: 14px;
}
.wc-reg-title { font-size: 1.05rem; font-weight: 900; color: #fff; margin-bottom: 8px; }
.wc-reg-sub   { font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.75); padding: 0 6px; }

/* ── Tiny self-contained toast (independent from cart.js) ──────── */
.wc2026-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a2e;
    color: #fff;
    padding: 11px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    z-index: 10300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    max-width: 88vw;
    text-align: center;
}
.wc2026-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.wc2026-toast--error   { background: #7f1d1d; }
.wc2026-toast--success { background: #14532d; }

@media (min-width: 480px) {
    #wc2026-grid { grid-template-columns: repeat(4, 1fr); }
}