/* Luck New Year 2027 — "Winter midnight".
   Every decoration carries a .ny-* class, sits on top of the page (position:absolute),
   takes no clicks (pointer-events:none) and never changes the size of a theme block. */

/* ---------- Header (every page) ---------- */
.masthead .ny-frost-line {
	position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 60;
	background: linear-gradient(180deg, rgba(220,236,255,0), rgba(220,236,255,.7));
	pointer-events: none;
}
.masthead .ny-icicles {
	position: absolute; left: 0; right: 0; top: 100%; height: 0; z-index: 60;
	display: flex; justify-content: space-between; padding: 0 6px;
	pointer-events: none; overflow: visible;
}
.ny-icicles svg { display: block; flex: none; animation: ny-drip 5s ease-in-out infinite; }

li.brand > a { position: relative; }
.ny-logo-snow {
	position: absolute; left: -2px; top: 5px; width: 134px; height: 12px;
	pointer-events: none; z-index: 2;
}

/* ---------- Front page: #hero ---------- */
#hero .hero-main { z-index: 2; }
#hero .ny-layer { position: absolute; pointer-events: none; z-index: 1; }

#hero .ny-clock {
	left: 50%; top: 50%; width: 540px; height: 540px;
	transform: translate(-82%, -50%); opacity: .24;
	filter: drop-shadow(0 0 8px rgba(180,215,255,.6));
}
#hero .ny-frost-corner { top: 0; width: 260px; height: 200px; opacity: .8; }
#hero .ny-frost-corner.l { left: 0; }
#hero .ny-frost-corner.r { right: 0; transform: scaleX(-1); }
#hero .ny-cold-glow {
	inset: 0;
	background: radial-gradient(520px 320px at 100% 0%, rgba(140,190,255,.22), transparent 70%),
	            radial-gradient(420px 300px at 0% 100%, rgba(140,190,255,.14), transparent 70%);
}

/* side gutters outside the theme container (~1227px) */
#hero .ny-side { top: 0; bottom: 0; width: calc((100% - 1240px) / 2); }
#hero .ny-side.l { left: 0; }
#hero .ny-side.r { right: 0; }
/* hanging snowflakes, every page: in the gutters left and right of the theme container, static */
.ny-gutter {
	position: absolute; top: 90px; height: 320px; width: calc((100vw - 1260px) / 2); max-width: 340px;
	z-index: 1; pointer-events: none; overflow: hidden;
}
.ny-gutter.l { left: 0; }
.ny-gutter.r { right: 0; }
.ny-hang { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); }
.ny-thread { display: block; width: 1px; background: linear-gradient(rgba(190,215,245,.15), rgba(190,215,245,.7)); }
.ny-flake { display: block; margin-top: -2px; }
.ny-spark { position: absolute; animation: ny-tw 4s ease-in-out infinite; }

#hero .ny-drift { left: 0; right: 0; bottom: -1px; width: 100%; height: 30px; }

/* countdown: on desktop it sits in the free 32px above the H1 and moves nothing */
.ny-countdown {
	position: absolute; left: 14px; top: -30px; z-index: 3;
	display: flex; align-items: center; gap: 12px; white-space: nowrap;
}
.ny-countdown .ny-cd-label {
	font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600;
	font-size: 18px; color: #d6e8ff; text-shadow: 0 0 12px rgba(160,205,255,.6);
}
.ny-countdown .ny-cd-box {
	display: inline-flex; align-items: baseline; gap: 3px;
	font-variant-numeric: tabular-nums; font-weight: 800; font-size: 16px; color: #fff;
	border: 1px solid rgba(200,225,255,.55); border-radius: 6px; padding: 3px 12px;
	background: linear-gradient(180deg, rgba(220,236,255,.16), rgba(220,236,255,.04));
	box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 22px rgba(140,190,255,.35);
}
.ny-countdown .ny-cd-unit { font-size: 10px; font-weight: 600; color: #f3d98f; margin: 0 6px 0 1px; }
.ny-countdown .ny-colon { color: #f3d98f; animation: ny-pulse 1s steps(1) infinite; }

/* every other page: in the breadcrumb row, left of the share button (placed by newyear.js) */
.ny-countdown--crumbs {
	top: 50%; left: auto; transform: translateY(-50%); gap: 8px; pointer-events: none;
}
.ny-countdown--crumbs .ny-cd-label { font-size: 14px; }
.ny-countdown--crumbs .ny-cd-box { font-size: 12px; padding: 1px 8px; border-radius: 4px; }
.ny-countdown--crumbs.ny-compact .ny-cd-label { display: none; }
.ny-countdown--crumbs.ny-hidden { visibility: hidden; }

/* fallback (and mobile): a badge fixed to the bottom-left corner of the screen */
.ny-badge {
	position: fixed; left: 16px; bottom: 16px; z-index: 9990;
	display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px;
	background: #262230; border: 1px solid rgba(200,225,255,.45); border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 18px rgba(140,190,255,.25);
}
.ny-countdown--badge { position: static; gap: 10px; }
.ny-countdown--badge .ny-cd-label { font-size: 15px; }
.ny-countdown--badge .ny-cd-box { font-size: 13px; padding: 2px 9px; border-radius: 4px; }
.ny-badge-close {
	display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0;
	border: 0; border-radius: 4px; background: transparent; color: rgba(214,232,255,.7); cursor: pointer;
}
.ny-badge-close:hover, .ny-badge-close:focus-visible { background: rgba(255,255,255,.1); color: #fff; }

/* stat tiles: snow rim and ice glint */
#hero .tile .ny-tile-snow { position: absolute; left: 0; top: 0; width: 100%; height: 8px; pointer-events: none; z-index: 2; }
#hero .tile .ny-glint {
	position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none; z-index: 2;
	background: linear-gradient(90deg, transparent, rgba(220,238,255,.22), transparent);
	animation: ny-glint 7s ease-in-out infinite;
}

/* "Popular casinos" panel: snow cap and frost glow */
#hero aside.hero-panel { box-shadow: 0 0 0 1px rgba(200,225,255,.6), 0 0 30px rgba(140,190,255,.25); }
#hero aside.hero-panel .ny-panel-snow { position: absolute; left: 0; top: -9px; width: 100%; height: 18px; pointer-events: none; z-index: 3; }
#hero aside.hero-panel .ny-panel-ice  { position: absolute; left: 0; top: 4px;  width: 100%; height: 14px; pointer-events: none; z-index: 3; }

/* ---------- Animations ---------- */
@keyframes ny-drip  { 0%,100% { opacity: .9 } 50% { opacity: .6 } }
@keyframes ny-tw    { 0%,100% { opacity: .1; transform: scale(.5) } 50% { opacity: .95; transform: scale(1) } }
@keyframes ny-glint { 0%,70% { transform: translateX(-120%) skewX(-20deg) } 100% { transform: translateX(260%) skewX(-20deg) } }
@keyframes ny-pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

/* ---------- Responsive ---------- */
@media (max-width: 1499px) { #hero .ny-side, .ny-gutter { display: none; } } /* no side gutters, no snowflakes */
@media (max-width: 1100px) { #hero .ny-clock, #hero .ny-frost-corner { display: none; } }
@media (max-width: 991px) {
	.ny-countdown { position: static; margin: 0 0 10px; flex-wrap: wrap; } /* on mobile it becomes a line above the H1 */
	.ny-countdown--crumbs { display: none; }
	.ny-badge { left: 10px; bottom: 10px; padding: 6px 6px 6px 10px; }
	.ny-countdown--badge .ny-cd-label { display: none; }
	.ny-badge .ny-countdown { margin: 0; }
	.masthead .ny-icicles svg:nth-child(2n) { display: none; }
	.ny-logo-snow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ny-icicles svg, .ny-spark, #hero .tile .ny-glint, .ny-countdown .ny-colon { animation: none; }
}
