/* Christmas Pick a Square — sits on top of the site's css/custom.css.
   Uses the site's own variables: --red, --darkred, --black, --font-h, --font-b. */
.pas {
  --pas-gold: #e8b23a;
  --pas-green: #1f6b45;
  --pas-line: #e2e2e2;
  --pas-muted: #6b6b6b;
}

/* Intro */
.pas-intro { margin-bottom: 26px; }
.pas-intro h2 { font-family: var(--font-h); font-size: 44px; letter-spacing: .5px; margin-bottom: 4px; }
.pas-intro .lead { margin-bottom: 18px; }
.pas-prizes { list-style: none; padding: 0; margin: 0 auto 14px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pas-prize { background: var(--black); color: #fff; border-radius: 999px; padding: 8px 18px; font-family: var(--font-h); font-size: 22px; letter-spacing: .5px; }
.pas-prize.p1 { background: var(--pas-gold); color: var(--black); }
.pas-prize.p2 { background: var(--red); }
.pas-split { color: var(--pas-muted); font-size: 14px; }

/* Progress */
.pas-progress { margin: 6px 0 22px; }
.pas-bar { height: 12px; background: var(--pas-line); border-radius: 999px; overflow: hidden; }
.pas-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--pas-gold)); transition: width .6s; }
.pas-progress p { margin: 8px 0 0; color: var(--pas-muted); }

.pas-results { border: 2px solid var(--pas-gold) !important; margin-bottom: 24px; }

/* Grid */
.pas-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--pas-muted); margin-bottom: 10px; }
.pas-legend .k { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.pas-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.pas .sq { aspect-ratio: 1; border: 1px solid var(--pas-line); border-radius: 6px; background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px; color: var(--black);
  min-width: 0; transition: transform .08s, background .15s; font-family: var(--font-b); line-height: 1.1; }
.pas .sq .num { font-family: var(--font-h); font-size: clamp(16px, 2.2vw, 24px); }
.pas .sq .nm { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pas .sq.available:hover { background: #fff1f1; border-color: var(--red); transform: scale(1.05); }
.pas .sq:focus-visible { outline: 3px solid var(--pas-gold); outline-offset: 1px; }
.pas .sq.picked, .pas .k.picked { background: var(--pas-green); color: #fff; border-color: var(--pas-green); }
.pas .sq.held, .pas .k.held { background: repeating-linear-gradient(45deg, #f1f1f1, #f1f1f1 6px, #e1e1e1 6px, #e1e1e1 12px); color: var(--pas-muted); cursor: not-allowed; }
.pas .sq.sold, .pas .k.sold { background: var(--red); color: #fff; border-color: var(--red); cursor: default; }
.pas .k.available { background: #fff; border: 1px solid #ccc; }
.pas .sq:disabled { opacity: 1; }
.pas-dip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 24px; }
.pas-dip label { margin: 0; font-weight: 600; }
.pas-dip .form-control { width: 70px; }
.pas-dip .btn { margin: 0; }

/* Checkout */
.pas-checkout { position: sticky; top: 90px; }
.pas-summary { font-weight: 600; }
.pas .form-check { margin: 6px 0; }
.pas-pay { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; font-size: 16px; margin-top: 14px; }
.pas-pay:disabled { background: #aaa !important; border-color: #aaa !important; cursor: not-allowed; }
.pas-fine { font-size: 13px; color: var(--pas-muted); margin-top: 8px; }
.pas-closed { padding: 20px 0; }
.pas-foot { font-size: 13px; color: var(--pas-muted); margin-top: 30px; }

/* Return / rules pages */
.pas-big { font-size: 20px; }

@media (max-width: 991px) { .pas-checkout { position: static; } }
@media (max-width: 600px) {
  .pas-grid { gap: 3px; }
  .pas .sq .nm { display: none; }
  .pas-intro h2 { font-size: 34px; }
}

/* ---------------------------------------------------------- Christmas */
.pas-snow { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

/* fairy lights */
.pas-lights { list-style: none; display: flex; justify-content: space-between; margin: -6px 0 18px; padding: 0 4px; height: 28px; position: relative; }
.pas-lights::before { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 14px; border-top: 2px solid #2b3a2b; border-radius: 50%; }
.pas-lights li { position: relative; width: 11px; height: 17px; margin-top: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #cc0000; box-shadow: 0 2px 12px 2px rgba(204,0,0,.7); animation: pas-twinkle 1.6s infinite ease-in-out; }
.pas-lights li::before { content: ''; position: absolute; top: -5px; left: 2px; width: 7px; height: 6px; background: #333; border-radius: 2px; }
.pas-lights li:nth-child(4n+2) { background: #f2c14e; box-shadow: 0 2px 12px 2px rgba(242,193,78,.75); animation-delay: .4s; }
.pas-lights li:nth-child(4n+3) { background: #1f8a4c; box-shadow: 0 2px 12px 2px rgba(31,138,76,.7); animation-delay: .8s; }
.pas-lights li:nth-child(4n+4) { background: #3a8fd9; box-shadow: 0 2px 12px 2px rgba(58,143,217,.7); animation-delay: 1.2s; }
.pas-lights li:nth-child(odd) { margin-top: 13px; }
@keyframes pas-twinkle { 50% { opacity: .35; box-shadow: none; } }
@media (max-width: 600px) { .pas-lights li:nth-child(n+13) { display: none; } }

/* big game promo */
.pas-game { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  margin: 4px 0 26px; padding: 20px 24px; border-radius: 16px; text-decoration: none !important; color: #fff !important;
  background: linear-gradient(135deg, #0b1730 0%, #1d3a6b 60%, #7a0000 130%); box-shadow: 0 10px 30px rgba(11,23,48,.35);
  transition: transform .15s, box-shadow .15s; }
.pas-game:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(11,23,48,.45); }
.pas-game-snow { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(2px 2px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(3px 3px at 30% 70%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 55% 35%, #fff 50%, transparent 51%), radial-gradient(3px 3px at 75% 80%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 90% 15%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 45% 90%, #fff 50%, transparent 51%);
  background-size: 220px 160px; animation: pas-flurry 9s linear infinite; }
@keyframes pas-flurry { to { background-position: 40px 160px, -30px 160px, 20px 160px, -40px 160px, 30px 160px, 0 160px; } }
.pas-game-badge { position: relative; width: 92px; height: 92px; background: #fff; border-radius: 50%; padding: 4px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.25); animation: pas-pop 2.4s ease-in-out infinite; }
@keyframes pas-pop { 0%, 100% { transform: translateY(8px) scale(.94); } 40%, 60% { transform: translateY(-4px) scale(1.04) rotate(-4deg); } }
.pas-game-text { position: relative; display: flex; flex-direction: column; gap: 2px; }
.pas-game-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; color: #f2c14e; }
.pas-game-title { font-family: var(--font-h); font-size: 46px; line-height: .95; letter-spacing: 1px; }
.pas-game-sub { font-size: 15px; opacity: .92; }
.pas-game-btn { position: relative; background: var(--red); color: #fff; font-weight: 800; font-size: 20px; padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 5px 0 var(--darkred); white-space: nowrap; }
.pas-game:hover .pas-game-btn { background: #e00000; }
.pas-game-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; text-align: center;
  background: #eef4fb; border: 2px dashed #9fbfe0; border-radius: 14px; padding: 14px 18px; margin-top: 28px; }
.pas-game-strip .btn { margin: 0; }
.pas-game-strip a.pas-pay { width: auto; }
@media (max-width: 767px) {
  .pas-game { grid-template-columns: auto 1fr; padding: 16px; gap: 12px; }
  .pas-game-badge { width: 64px; height: 64px; }
  .pas-game-title { font-size: 36px; }
  .pas-game-btn { grid-column: 1 / -1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .pas-lights li, .pas-game-snow, .pas-game-badge { animation: none; } }

.pas-game-tagline { font-weight: 800; font-size: 18px; color: #f2c14e; margin: 2px 0 4px; }
.pas-reg { display: inline-block; font-size: 13px; font-weight: 600; color: #2d4a2f; background: #eef7ee; border: 1px solid #b9dbbb; border-radius: 999px; padding: 4px 14px; margin: -4px 0 12px; }
.pas .sq.sold, .pas .sq.held { cursor: pointer; }
.pas-tip { position: absolute; z-index: 80; max-width: 240px; background: #111; color: #fff; padding: 8px 12px; border-radius: 10px;
  font-size: 14px; line-height: 1.35; text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; word-break: break-word; }
.pas-tip b { color: #f2c14e; }
.pas-tip::after { content: ''; position: absolute; left: calc(var(--arrow, 50%) - 7px); top: 100%; border: 7px solid transparent; border-top-color: #111; }
.pas-tip.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #111; }
