/* "Put Cuboree under the Christmas Tree" (December 2026). Loaded by site_head_links() only until Boxing Day
   (see site_xmas() in _inc/site.php), so nothing here needs taking out afterwards. Cubtopia colours plus a Christmas red. */
:root{ --xmas-red: #d23b2f; --xmas-red-deep: #a82a20; }

/* Santa hats on the badge and the header logo. badge-hat.svg is drawn in the badge's own coordinates and is 125% of its
   width, so laid over the badge from its top-left corner the brim wraps the badge's top-right edge. */
.brand{ position: relative; }
.brand::before{
  content: ""; position: absolute; left: 0; top: 50%; width: 50px; height: 40px; transform: translateY(-50%);
  background: url("../img/xmas/badge-hat.svg") no-repeat left top / 100% 100%; pointer-events: none;
}
.badge-wrap{ position: relative; }
.badge-wrap::before{
  content: ""; position: absolute; z-index: 1; left: 0; top: 0; width: 125%; aspect-ratio: 800 / 640;
  background: url("../img/xmas/badge-hat.svg") no-repeat left top / 100% 100%; pointer-events: none;
}

/* Gentle snow over the sky (still for anyone who prefers less motion) */
.sky::after{
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 90px 120px, #fff 50%, transparent 51%),
    radial-gradient(4px 4px at 160px 60px, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(2px 2px at 230px 170px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 60px 200px, rgba(255,255,255,.85) 50%, transparent 51%);
  background-size: 260px 240px; opacity: .75;
}
@media (prefers-reduced-motion: no-preference){
  .sky::after{ animation: xmas-snow 22s linear infinite; }
}
@keyframes xmas-snow{ from{ background-position: 0 0; } to{ background-position: 60px 240px; } }

/* String of lights along the top of the page */
.sky::before{
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; z-index: 4; pointer-events: none;
  background:
    radial-gradient(circle at 12px 9px, var(--xmas-red) 4px, transparent 5px) 0 0 / 96px 16px repeat-x,
    radial-gradient(circle at 36px 9px, var(--gold) 4px, transparent 5px) 0 0 / 96px 16px repeat-x,
    radial-gradient(circle at 60px 9px, #4b794a 4px, transparent 5px) 0 0 / 96px 16px repeat-x,
    radial-gradient(circle at 84px 9px, #fff 4px, transparent 5px) 0 0 / 96px 16px repeat-x,
    linear-gradient(var(--navy), var(--navy)) 0 3px / 100% 2px no-repeat;
}

/* Homepage: the Christmas countdown box under Register Now */
.rego-xmas{ display: block; margin: 1.6rem auto 0; position: relative; border-color: var(--xmas-red); background: rgba(255,250,240,.94); }
.rego-xmas::before{
  content: ""; position: absolute; left: -18px; top: -22px; width: 62px; height: 62px;
  background: url("../img/xmas/gift.svg") no-repeat center / contain; transform: rotate(-10deg);
}
.rego-xmas::after{
  content: ""; position: absolute; right: -10px; top: -14px; width: 56px; height: 35px;
  background: url("../img/xmas/holly.svg") no-repeat center / contain;
}
.rego-xmas .rego-countdown div{ background: var(--xmas-red); color: var(--cream); box-shadow: 0 4px 0 var(--xmas-red-deep); }
.rego-xmas .rego-soon-title{ color: var(--xmas-red-deep); }
.rego-xmas .rego-soon-title strong{ color: var(--navy); }

/* Pricing page */
.xmas-banner{
  display: flex; align-items: center; gap: 1rem; max-width: 900px; margin: 0 auto 1.5rem; padding: 1rem 1.3rem;
  background: var(--cream); border: 2px solid var(--xmas-red); border-radius: 18px; box-shadow: 0 10px 22px rgba(12,28,57,.14); color: var(--navy);
}
.xmas-banner p{ margin: 0; }
.xmas-banner-title{ font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.3rem; line-height: 1.15; color: var(--xmas-red-deep); margin-bottom: .2rem !important; }
.xmas-banner-gift{ flex: 0 0 56px; height: 56px; background: url("../img/xmas/gift.svg") no-repeat center / contain; }
.price-periods .pp-xmas.is-now{ border-color: var(--xmas-red); background: #fff6f3; }
.price-periods .pp-xmas.is-now .pp-state{ background: var(--xmas-red); }
.role-card .role-prices .rp-xmas.is-now{ position: relative; border-color: var(--xmas-red); }
.role-card .role-prices .rp-xmas.is-now .rp-label{ color: var(--xmas-red-deep); }
.role-card .role-prices .rp-xmas.is-now::after{
  content: ""; position: absolute; right: -8px; top: -12px; width: 34px; height: 22px;
  background: url("../img/xmas/holly.svg") no-repeat center / contain;
}
.fee-table th.fee-xmas{ background: var(--xmas-red); }

@media (max-width: 560px){
  .xmas-banner{ margin-left: 1rem; margin-right: 1rem; }
  .xmas-banner-gift{ flex-basis: 44px; height: 44px; }
}
