/* Holiday contest banner (HolidayContestService.BuildBannerHtml): games page (desktop.aspx) and home page (gate.aspx). */
.hcb { max-width: 1170px; margin: 26px auto 0; display: flex; align-items: center; gap: 22px; padding: 16px 22px 16px 26px; border-radius: 18px; direction: rtl; text-decoration: none; color: #fff;
       background-color: #18306b; background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.2px); background-size: 22px 22px;
       box-shadow: 0 12px 28px rgba(16, 32, 74, .22); transition: transform .15s, box-shadow .15s; }
.hcb:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(16, 32, 74, .28); color: #fff; }
.hcb-art { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 6px; transform: rotate(-4deg); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.hcb-art img { width: 100%; height: 100%; object-fit: contain; }
.hcb-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hcb-chip { align-self: flex-start; font-size: .85rem; color: #dfe6f7; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 3px 12px; display: inline-flex; align-items: center; gap: 7px; }
.hcb-chip i { color: #e9a80b; }
.hcb-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.22); }
.hcb-title { font-size: 1.45rem; font-weight: 900; line-height: 1.25; }
.hcb-line { color: #d6def2; font-size: 1rem; }
.hcb-line i { color: #e9a80b; margin-left: 4px; }
.hcb-line b { color: #fff; }
.hcb-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hcb-cta { background: #e9a80b; color: #1b1b1b; font-weight: 800; border-radius: 12px; padding: 11px 20px; white-space: nowrap; box-shadow: 0 4px 0 #b98306; }
.hcb-side small { color: #b9c4e0; font-size: .82rem; }
@media (max-width: 700px) {
    .hcb { margin: 18px 12px 0; flex-wrap: wrap; gap: 14px; padding: 16px; }
    .hcb-art { width: 70px; height: 70px; }
    .hcb-body { flex-basis: calc(100% - 90px); }
    .hcb-title { font-size: 1.15rem; }
    .hcb-line { font-size: .92rem; }
    .hcb-side { width: 100%; flex-direction: row; justify-content: space-between; }
}

/* Shown to admins while the contest is not published (only they see the banner). */
.hcb-admin { background: #fde68a; color: #92400e; font-weight: 700; border-radius: 999px; padding: 0 8px; }

/* Home page (gate.aspx): the banner opens the games section, above "מגרש המשחקים". */
.games-container > .hcb { margin: 0 auto 56px; }
@media (max-width: 700px) {
    .games-container > .hcb { margin: 0 0 36px; }
}

/* ---------- home page popup (HolidayContestService.BuildHomePopupHtml) ---------- */
.hcp { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 18px;
       background: rgba(8, 14, 34, .55); direction: rtl; font-family: 'Heebo', 'Rubik', sans-serif; animation: hcpFade .3s ease-out; }
.hcp[hidden] { display: none; }
.hcp.hcp-out { animation: hcpFadeOut .26s ease-in forwards; }
.hcp-card { position: relative; width: 100%; max-width: 440px; background: #fff; color: #1a1f3d; border-radius: 22px; overflow: hidden;
            box-shadow: 0 24px 60px rgba(5, 12, 40, .45); animation: hcpRise .45s cubic-bezier(.2, 1.3, .4, 1); }
.hcp-x { position: absolute; top: 10px; left: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
         background: rgba(255, 255, 255, .9); color: #1a1f3d; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.hcp-x:hover, .hcp-x:focus-visible { background: #fff; outline: 2px solid #e9a80b; }
.hcp-art { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; }
.hcp-art img { width: 128px; height: 128px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35)); animation: hcpBob 3.2s ease-in-out infinite; }
.hcp-theme { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16);
             color: #f6c344; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.hcp-body { padding: 18px 22px 22px; text-align: center; }
.hcp-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff5d6; color: #8a5a00; font-weight: 700; font-size: .85rem; border-radius: 999px; padding: 4px 14px; }
.hcp-live { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .25); }
.hcp-admin { background: #fde68a; color: #92400e; border-radius: 999px; padding: 0 8px; }
.hcp-body h2 { font-size: 1.45rem; font-weight: 900; line-height: 1.25; margin: 10px 0 6px; }
.hcp-body p { color: #4b5578; font-size: .98rem; line-height: 1.6; margin: 0 0 12px; }
.hcp-facts { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: #5d6784; font-size: .92rem; }
.hcp-facts i { color: #e9a80b; margin-left: 5px; }
.hcp-facts b { color: #1a1f3d; }
.hcp-actions { display: flex; flex-direction: column; gap: 8px; }
.hcp-main { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #e9a80b; color: #1b1b1b; font-weight: 800; font-size: 1.08rem;
            border-radius: 12px; padding: 13px 20px; text-decoration: none; box-shadow: 0 5px 0 #b98306; }
.hcp-main:hover, .hcp-main:focus-visible { color: #1b1b1b; transform: translateY(-1px); outline: none; }
.hcp-later { border: 0; background: none; color: #5d6784; font: inherit; font-size: .92rem; cursor: pointer; padding: 6px; }
.hcp-later:hover { color: #1a1f3d; text-decoration: underline; }
@keyframes hcpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hcpFadeOut { to { opacity: 0; } }
@keyframes hcpRise { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes hcpBob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .hcp, .hcp-card, .hcp-art img, .hcp.hcp-out { animation: none; } }

/* the contest's message in the banner */
.hcb-win { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 2px 0 4px; background: #f6c344; color: #1b1b1b;
           font-weight: 800; font-size: .88rem; border-radius: 999px; padding: 2px 12px; }

/* home popup: countdown until an upcoming contest opens */
.hcp-count-label { font-weight: 700; color: #5d6784; font-size: .88rem; margin: -4px 0 8px; }
.hcp-count { display: flex; justify-content: center; gap: 6px; direction: ltr; margin-bottom: 16px; }
.hcp-count div { background: #10204a; border-radius: 10px; width: 62px; padding: 7px 0 5px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.hcp-count b { display: block; color: #ffd76e; font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hcp-count span { font-size: .7rem; color: #aebbe0; }
