/**
 * Kalendarz adwentowy (page-adwent.php).
 *
 * Przeniesione z prototypu diablestcg-adwent-main/propozycje: tokeny, przycisk
 * i śnieg (propozycje-base.css), karta produktu (propozycje-karty.css) oraz
 * kierunek „Prezenty” (propozycje-prezenty.css) — tylko widok kalendarza.
 */

/* ==========================================================================
   Tokeny, przycisk, śnieg
   ========================================================================== */
.dtx {
	--red-950: #3a0909;
	--red-900: #5c1010;
	--red-800: #8B1E1E;
	--red-600: #DC2626;
	--orange: #FF7F2A;
	--gold: #FFB52A;
	--cream: #FFF6E8;
	--paper: #FAF6ED;
	--ink: #111827;
	--muted: #5b5f6b;
	--display: "Gemunu Libre", sans-serif;
	--body: Inter, sans-serif;
	--ease-out: cubic-bezier(.19, 1, .22, 1);
	--ease-io: cubic-bezier(.645, .045, .355, 1);
	/* Sprężyna z lekkim odbiciem, liczona jako krzywa linear(). */
	--ease-spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.1, 1.077 30.8%, .999 38.4%, .981 41.8%, .978 45.6%, .993 55.2%, 1.001 63.6%, 1);
	font-family: var(--body);
	color: var(--ink);
}

.dtx [hidden] { display: none !important; }
.dtx-sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.dtx-wrap { max-width: 1232px; margin-inline: auto; padding-inline: 16px; }
.dtx :is(h1, h2) { font-family: var(--display); margin: 0; }
.dtx :is(a, button, select):focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.dtx-btn,
.dtx-btn:visited {
	position: relative;
	min-height: 52px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--orange);
	color: var(--red-950);
	font: 800 21px/1.1 var(--display);
	text-decoration: none;
	cursor: pointer;
	transition: transform 150ms var(--ease-out), background-color 150ms ease;
}

.dtx-btn span { display: inline-block; transition: transform 200ms var(--ease-out); }
.dtx-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
	.dtx-btn:hover { background: #ff9447; color: var(--red-950); }
	.dtx-btn:hover span { transform: translateX(4px); }
}

.dtx-btn--red, .dtx-btn--red:visited { background: var(--red-800); color: var(--cream); }
@media (hover: hover) and (pointer: fine) {
	.dtx-btn--red:hover { background: #a3261f; color: var(--cream); }
}

.dtx-next { font-variant-numeric: tabular-nums; }
.dtx-hint { margin: 8px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 60ch; }

/* Śnieg: dwie warstwy kropek przesuwane transformem, bez przeliczania layoutu. */
.dtx-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.dtx-snow i {
	position: absolute;
	inset: -100% 0 0;
	background-image:
		radial-gradient(2px 2px at 20px 30px, #fff9 50%, transparent 52%),
		radial-gradient(1.5px 1.5px at 90px 110px, #fff7 50%, transparent 52%),
		radial-gradient(2.5px 2.5px at 160px 60px, #fffa 50%, transparent 52%),
		radial-gradient(1.5px 1.5px at 210px 170px, #fff6 50%, transparent 52%),
		radial-gradient(2px 2px at 60px 190px, #fff8 50%, transparent 52%);
	background-size: 240px 220px;
	animation: dtx-snow 14s linear infinite;
}

.dtx-snow i + i { background-size: 330px 300px; opacity: .55; animation-duration: 22s; transform: translateX(40px); }
@keyframes dtx-snow { to { transform: translateY(50%); } }
@keyframes dtx-rise { from { opacity: 0; transform: translateY(18px) scale(.96); } }

/* ==========================================================================
   Karta produktu dnia: rewers z emblematem, awers w ramce karty kolekcjonerskiej
   ========================================================================== */
.dtx-card {
	--flip: 0deg;
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 5 / 8;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	perspective: 900px;
	font: inherit;
}

.dtx-card__inner {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip)));
	transition: transform 720ms var(--ease-io);
}

.dtx-card.is-flipped { --flip: 180deg; }

.dtx-card__face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 7% / 5%;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	box-shadow: 0 1px 0 #ffffff1f inset, 0 14px 28px #1a030355;
}

.dtx-card__back {
	display: grid;
	place-items: center;
	background-color: var(--red-800);
	background-image:
		radial-gradient(circle at 50% 50%, #ffb52a33 0 22%, transparent 23%),
		repeating-linear-gradient(45deg, #ffb52a26 0 1px, transparent 1px 11px),
		repeating-linear-gradient(-45deg, #ffb52a26 0 1px, transparent 1px 11px);
}

.dtx-card__back::before {
	content: "";
	position: absolute;
	inset: 5.5%;
	border: 1.5px solid #ffb52acc;
	border-radius: 5% / 3.6%;
}

.dtx-card__back svg { width: 46%; height: auto; filter: drop-shadow(0 3px 4px #0005); }

.dtx-card__front {
	transform: rotateY(180deg);
	display: flex;
	flex-direction: column;
	gap: 5%;
	padding: 9% 9% 10%;
	background:
		radial-gradient(circle at 50% 46%, #ffb52a59, transparent 52%),
		repeating-linear-gradient(135deg, #ff7f2a0d 0 6px, transparent 6px 12px),
		var(--cream);
	color: var(--ink);
	text-align: left;
}

.dtx-card__front::before {
	content: "";
	position: absolute;
	inset: 4.5%;
	border: 2px solid var(--orange);
	border-radius: 5% / 3.6%;
}

/* Folia: pasek światła przesuwany transformem po awersie. */
.dtx-card__front::after {
	content: "";
	position: absolute;
	inset: -10% -60%;
	background: linear-gradient(100deg, transparent 32%, #ffe3a0 42%, #ffb4a0 47%, #b8e9ff 53%, #d9c2ff 58%, transparent 68%);
	mix-blend-mode: multiply;
	opacity: .55;
	transform: translateX(-75%);
	pointer-events: none;
}

.dtx-card.is-shining .dtx-card__front::after { animation: dtx-shine 1100ms var(--ease-out); }
@keyframes dtx-shine { to { transform: translateX(75%); } }

.dtx-pc__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 6px;
	color: var(--red-800);
	font: 700 18px/1 var(--display);
}

.dtx-pc__top b { font-size: 1.55em; font-weight: 800; }
.dtx-pc__top svg { width: 20%; height: auto; }
.dtx-pc__img {
	position: relative;
	flex: 1 1 0;
	min-height: 44%;
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 1px solid #f3d4b2;
	border-radius: 6px;
	background: #fff;
}

.dtx-pc__img img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4%; object-fit: contain; }
.dtx-pc__name { font: 600 14px/1.25 var(--body); color: var(--ink); }
.dtx-pc__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-family: var(--body); }
.dtx-pc__price ins { background: none; color: var(--orange); font-size: 20px; font-weight: 800; text-decoration: none; }
.dtx-pc__price del { color: #9CA3AF; font-size: 13px; }
.dtx-pc__ended { color: var(--muted); font: 700 12px/1.2 var(--body); }

/* Dzisiejsza karta: obrotowa poświata. */
@property --dtx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.dtx-card--today::before {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 9% / 6.5%;
	background: conic-gradient(from var(--dtx-a), var(--gold), var(--orange), var(--red-600), var(--orange), var(--gold));
	filter: blur(3px);
}

.dtx-card--today.is-flipped::before { opacity: 0; transition: opacity 300ms ease; }

@media (prefers-reduced-motion: no-preference) {
	.dtx-card--today::before { animation: dtx-spin 3.2s linear infinite; }
}

@keyframes dtx-spin { to { --dtx-a: 360deg; } }

/* Iskry przy otwarciu paczki i w pętli stosu w hero. */
.dtx-sparks { position: absolute; left: 50%; top: 42%; width: 0; height: 0; z-index: 6; pointer-events: none; }
.dtx-sparks svg { position: absolute; width: 18px; height: 18px; margin: -9px; color: var(--gold); opacity: 0; }
.dtx-sparks svg:nth-child(3n) { color: var(--cream); width: 12px; height: 12px; margin: -6px; }
.dtx-sparks.is-on svg { animation: dtx-spark 900ms var(--ease-out) calc(var(--d, 0) * 1ms) both; }
@keyframes dtx-spark {
	0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0); }
	15% { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(1) rotate(90deg); }
}

/* ==========================================================================
   Hero: stos paczek w zaspie
   ========================================================================== */
.dtx-g--banner,
.dtx-g--hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color: var(--cream);
	background: radial-gradient(ellipse 70% 90% at 72% 45%, #861b18 0%, #561010 48%, #2c0707 100%);
}

.dtx-g__hill { position: absolute; z-index: 0; left: 0; bottom: -1px; width: 100%; height: 70px; }
.dtx-g__inner {
	position: relative;
	z-index: 1;
	min-height: 420px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	align-items: center;
	gap: 24px;
	padding-block: 36px 0;
}

.dtx-g--banner .dtx-g__inner { min-height: 480px; }
.dtx-g__copy { padding-bottom: 70px; }
.dtx-g__copy :is(h1, h2) {
	color: inherit;
	font-size: clamp(56px, 7.6vw, 112px);
	font-weight: 800;
	line-height: .84;
	letter-spacing: -.03em;
}

.dtx-g__copy :is(h1, h2) span { display: block; color: var(--gold); }
.dtx-g__copy p { margin: 22px 0 24px; max-width: 34ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; color: #f3dccb; }
.dtx-g__copy .dtx-next { margin-top: -12px; color: var(--gold); font-weight: 600; }

/* ---------- Paczka SVG ---------- */
.gf { display: block; overflow: visible; }
.gf-front { fill: var(--c); }
.gf-side { fill: color-mix(in oklab, var(--c) 66%, #2a0505); }
.gf-top { fill: color-mix(in oklab, var(--c) 74%, #fff); }
.gf-r { fill: var(--r); }
.gf-r-side { fill: color-mix(in oklab, var(--r) 66%, #2a0505); }
.gf-r-top { fill: color-mix(in oklab, var(--r) 78%, #fff); }
.gf-in { fill: #2b0a08; }
.gf-shade { fill: url(#dtx-g-shade); pointer-events: none; }
.gf-lid-front + .gf-r + .gf-shade { fill: url(#dtx-g-shade-lid); }
.gf-shadow { fill: url(#dtx-g-shadow); }
.gf-snow { fill: #fffaf2; }
.gf-bow { color: color-mix(in oklab, var(--r) 92%, #fff); }
.gf-glow { fill: url(#dtx-g-glow); opacity: 0; pointer-events: none; }
.gf-lid { transform-box: fill-box; transform-origin: 50% 50%; }

/* ---------- Scena stosu ---------- */
.dtx-g__pile {
	position: relative;
	width: min(100%, 560px);
	justify-self: center;
	align-self: end;
}

.dtx-g--banner .dtx-g__pile { width: min(100%, 640px); }
.dtx-g__scene { display: block; width: 100%; height: auto; overflow: visible; }
.gf-mound { fill: var(--cream); }
.gf-mound-back { fill: #f1dfcb; }
.gf-drop { transform-box: fill-box; transform-origin: 50% 100%; }
.gf-hero .gf-lid { transform-origin: 20% 100%; }

@media (prefers-reduced-motion: no-preference) {
	.dtx-js [data-stage]:not(.is-in) .gf-drop { opacity: 0; }
	[data-stage].is-in .gf-drop { animation: dtx-drop 1000ms var(--ease-spring) calc(var(--i) * 120ms) backwards; }
	[data-stage].is-in .gf-hero { animation: dtx-drop 1000ms var(--ease-spring) calc(var(--i) * 120ms) backwards, dtx-hop 6s var(--ease-io) 1.8s infinite; }
	[data-stage].is-in .gf-hero .gf-lid { animation: dtx-lid-loop 6s var(--ease-out) 1.8s infinite; }
	[data-stage].is-in .gf-hero .gf-glow { animation: dtx-glow-loop 6s ease 1.8s infinite; }
	[data-stage].is-in .dtx-g__pile .dtx-sparks svg { animation: dtx-spark-loop 6s var(--ease-out) calc(1800ms + var(--d, 0) * 1ms) infinite; }
}

@keyframes dtx-drop {
	from { opacity: 0; transform: translateY(-460px); }
	15% { opacity: 1; }
}

/* Pętla 6 s: spokój, drganie, wieczko w górę z błyskiem, powrót. */
@keyframes dtx-hop {
	0%, 40%, 58%, 100% { transform: none; }
	43% { transform: rotate(-3deg); }
	46% { transform: rotate(3deg); }
	49% { transform: rotate(-2deg); }
	52% { transform: translateY(-5px) scale(.98, 1.03); }
	55% { transform: translateY(1px) scale(1.03, .96); }
}

@keyframes dtx-lid-loop {
	0%, 50% { transform: none; }
	58% { transform: translateY(-46px) rotate(-14deg); }
	82% { transform: translateY(-40px) rotate(-10deg); }
	90%, 100% { transform: none; }
}

@keyframes dtx-glow-loop {
	0%, 52% { opacity: 0; }
	60%, 80% { opacity: 1; }
	90%, 100% { opacity: 0; }
}

@keyframes dtx-spark-loop {
	0%, 53% { opacity: 0; transform: translate(0, 0) scale(.3); }
	56% { opacity: 1; }
	72%, 100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(1) rotate(90deg); }
}

/* ==========================================================================
   Dzisiejsza paczka: otwiera się w miejscu, z otworu wyjeżdża karta produktu
   ========================================================================== */
.dtx-g__today { background: var(--cream); padding-block: 40px 64px; overflow-x: clip; }
.dtx-g__today-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: end;
	gap: 32px 56px;
}

.dtx-g__stage {
	--mouth: 120px;
	position: relative;
	justify-self: center;
	width: min(100%, 360px);
}

@media (prefers-reduced-motion: no-preference) {
	.dtx-g__stage { transition: height 800ms var(--ease-out); }
}

.dtx-g__box {
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.dtx-g__box:disabled { cursor: default; }
.dtx-g__box .gf { width: 100%; height: auto; transform-box: fill-box; transform-origin: 50% 100%; }
.dtx-g__box .gf-lid { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
	.dtx-g__stage.is-waiting .dtx-g__box:hover .gf-lid { transform: translateY(-8px) rotate(-3deg); }
}

/* Wszystko nad linią otworu paczki. Dolna krawędź przycina kartę, więc wysuwa się ze środka paczki. */
.dtx-g__reveal {
	position: absolute;
	z-index: 2;
	top: -80px;
	left: -45%;
	right: -45%;
	bottom: var(--mouth);
	overflow: hidden;
	pointer-events: none;
}

.dtx-g__card {
	position: absolute;
	left: var(--mouth-x, 50%);
	bottom: 10px;
	width: min(250px, 66vw);
	translate: -50% 112%;
	scale: .78;
	rotate: -5deg;
	transform-origin: 50% 100%;
}

.dtx-g__card .dtx-card { width: 100%; }
.dtx-g__card .dtx-card__face { box-shadow: 0 18px 40px #3a090940; }
.dtx-g__rays {
	position: absolute;
	left: var(--mouth-x, 50%);
	bottom: 0;
	width: 640px;
	aspect-ratio: 1;
	translate: -50% 50%;
	background:
		radial-gradient(circle, #ffe0a0 0 8%, #ffb52a55 22%, transparent 48%),
		repeating-conic-gradient(from 0deg, #ffc65a40 0 6deg, transparent 6deg 17deg);
	-webkit-mask: radial-gradient(circle, #000 0 18%, transparent 60%);
	mask: radial-gradient(circle, #000 0 18%, transparent 60%);
	opacity: 0;
	scale: .3;
}

.dtx-g__stage.is-open .dtx-g__reveal { pointer-events: auto; }
.dtx-g__stage.is-open .dtx-g__card { translate: -50% 0; scale: 1; rotate: 0deg; }
.dtx-g__stage.is-open .dtx-g__rays { opacity: 1; scale: 1; }

@media (prefers-reduced-motion: no-preference) {
	.dtx-g__card { transition: translate 1000ms var(--ease-spring), scale 900ms var(--ease-out), rotate 1000ms var(--ease-spring); }
	.dtx-g__rays { transition: opacity 500ms ease, scale 1100ms var(--ease-out); }
	.dtx-g__stage.is-open .dtx-g__rays { animation: dtx-rays 30s linear infinite; }
	.dtx-g__stage.is-open .dtx-g__card .dtx-card { animation: dtx-card-float 3.6s ease-in-out 1.2s infinite alternate; }
	.dtx-g__stage.is-waiting .dtx-g__box .gf { animation: dtx-wiggle 3.2s var(--ease-io) 1s infinite; }
	.dtx-g__today-copy.is-swapped > * { animation: dtx-offer-in 520ms var(--ease-out) backwards; }
	.dtx-g__today-copy.is-swapped > :nth-child(2) { animation-delay: 70ms; }
	.dtx-g__today-copy.is-swapped > :nth-child(3) { animation-delay: 140ms; }
	.dtx-g__today-copy.is-swapped > :nth-child(n + 4) { animation-delay: 210ms; }
}

@keyframes dtx-rays { to { rotate: 360deg; } }
@keyframes dtx-card-float { to { translate: 0 -6px; } }
@keyframes dtx-offer-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes dtx-wiggle {
	0%, 70%, 100% { transform: none; }
	74% { transform: rotate(-2.5deg) translateY(-4px); }
	78% { transform: rotate(2.5deg) translateY(-4px); }
	82% { transform: rotate(-1.5deg); }
	86% { transform: scale(1.03, .97); }
}

/* Poświata pod czekającą paczką. */
.dtx-g__stage.is-waiting::after {
	content: "";
	position: absolute;
	z-index: 0;
	left: 8%;
	right: 8%;
	bottom: -10px;
	height: 70px;
	border-radius: 50%;
	background: radial-gradient(closest-side, #ffb52a66, transparent);
}

.dtx-g__today-copy { padding-bottom: 24px; }
.dtx-g__date { margin: 0 0 8px; color: var(--red-600); font: 700 22px/1 var(--display); }
.dtx-g__today-copy h2 { max-width: 18ch; font-size: clamp(32px, 3.4vw, 46px); font-weight: 800; line-height: .95; color: var(--ink); }
.dtx-g__today-copy > p:not([class]) { margin: 16px 0 24px; max-width: 42ch; font-size: 17px; line-height: 1.55; color: #3d3f47; }
.dtx-g__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 18px 0 24px; font-family: var(--body); }
.dtx-g__price ins { background: none; color: var(--orange); font-size: 36px; font-weight: 800; text-decoration: none; }
.dtx-g__price del { color: #9CA3AF; font-size: 20px; }
.dtx-g__price span {
	align-self: center;
	padding: 3px 8px;
	border-radius: 4px;
	background: linear-gradient(136deg, #FF7F2A 1.56%, #FFB52A 99.27%);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .05em;
}

.dtx-g__today-copy .dtx-next { margin: 18px 0 0; color: var(--red-800); font-weight: 600; }

/* ==========================================================================
   Wszystkie paczki: minione dni to karty, dziś świeci, kolejne są zamknięte
   ========================================================================== */
.dtx-g__board { background: #f7ead8; padding-block: 56px 88px; overflow-x: clip; }
.dtx-g__board h2 { font-size: clamp(36px, 4.4vw, 52px); font-weight: 800; line-height: .95; color: var(--ink); text-align: center; }
.dtx-g__board .dtx-hint { margin-inline: auto; text-align: center; }
.dtx-g__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: end;
	gap: 40px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dtx-g__grid li { display: grid; gap: 8px; justify-items: center; }
.dtx-g__tile {
	position: relative;
	display: block;
	width: 84%;
	aspect-ratio: 1;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.dtx-g__locked { cursor: not-allowed; }
.dtx-g__tile .gf { position: relative; z-index: 1; display: block; width: 100%; height: 100%; overflow: visible; }
.dtx-g__tile .gf-lid { transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
	.dtx-g__tile:hover .gf-lid { transform: translateY(-4px) rotate(-2deg); }
}

.dtx-g__grid .dtx-card { width: 100%; transform: rotate(var(--tilt, 0deg)); text-decoration: none; }

/* Minione i wyprzedane okienka: karta produktu wyszarzona, nieklikalna. Zamknięte paczki zostają w kolorze. */
.dtx-g__grid :is(.is-ended, .is-soldout) .dtx-card { filter: grayscale(1); opacity: .55; cursor: default; pointer-events: none; }
.dtx-g__grid :is(.is-ended, .is-soldout) .dtx-g__label { color: var(--muted); }
.dtx-g__grid .is-empty .dtx-g__tile { cursor: default; }
.dtx-g__grid li { position: relative; }
.dtx-pc__soldout { color: var(--red-800); text-transform: uppercase; letter-spacing: .04em; }
.dtx-g__grid .is-soldout .dtx-card { opacity: .7; }@media (hover: hover) and (pointer: fine) {
	.dtx-g__grid a.dtx-card:hover .dtx-card__face { box-shadow: 0 1px 0 #ffffff1f inset, 0 20px 36px #1a030366; }
}

.dtx-g__label { display: inline-flex; align-items: center; gap: 6px; font: 700 16px/1.1 var(--display); color: var(--ink); text-align: center; }
.dtx-g__label em { font-style: normal; color: var(--red-600); }
.dtx-g__label svg { width: 11px; height: 13px; color: var(--muted); flex: none; }

/* Dziś: ciepła poświata i lekkie kołysanie, kliknięcie przewija do otwierania. */
.is-today .dtx-g__tile::before {
	content: "";
	position: absolute;
	inset: -6% -10% 0;
	border-radius: 50%;
	background: radial-gradient(closest-side, #FFB52A88, #FFB52A00);
}

.dtx-g__num {
	position: absolute;
	left: 44%;
	top: 64%;
	padding: 3px 9px 2px;
	border-radius: 6px;
	background: var(--paper);
	color: var(--red-800);
	font: 800 26px/1 var(--display);
	font-variant-numeric: tabular-nums;
	transform: translate(-50%, -50%) rotate(-4deg);
	box-shadow: 0 3px 8px #0003;
}

@media (prefers-reduced-motion: no-preference) {
	.dtx-g__board.is-in .dtx-g__grid li { animation: dtx-rise 520ms var(--ease-out) calc(var(--i) * 20ms) backwards; }
	.dtx-g__locked.is-nope { animation: dtx-nope 420ms var(--ease-out); }
	.is-today .dtx-g__tile .gf { animation: dtx-wiggle 3.2s var(--ease-io) 1s infinite; }
	.is-today .dtx-g__tile::before { animation: dtx-pulse 2.4s var(--ease-io) infinite alternate; }
}

@keyframes dtx-pulse { from { opacity: .55; scale: .92; } to { opacity: 1; scale: 1.04; } }

@keyframes dtx-nope {
	20% { transform: translateX(-5px) rotate(-2deg); }
	40% { transform: translateX(5px) rotate(2deg); }
	60% { transform: translateX(-3px); }
	80% { transform: translateX(2px); }
}

/* ==========================================================================
   Responsywność i ograniczenie ruchu
   ========================================================================== */
@media (max-width: 900px) {
	.dtx-g__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dtx-g__today-inner { grid-template-columns: 1fr; align-items: start; }
	.dtx-g__today-copy { padding-bottom: 0; }
}

@media (max-width: 760px) {
	.dtx-g__inner { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-block: 32px 0; }
	.dtx-g__copy { padding-bottom: 8px; }
	.dtx-g--banner .dtx-g__inner { min-height: 0; }
	.dtx-g__copy :is(h1, h2) { font-size: clamp(50px, 13vw, 80px); }
	.dtx-g__copy p { margin-block: 14px 18px; }
	.dtx-g__pile,
	.dtx-g--banner .dtx-g__pile { width: min(100%, 440px); }
	.dtx-g__hill { height: 40px; }
	.dtx-g__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
	.dtx-g__num { font-size: 21px; }
	.dtx-g__board { padding-block: 40px 64px; }
}

/* Wąskie telefony: dwie kolumny po ~140 px, więc tekst na karcie mniejszy, żeby nazwa mieściła się w całości. */
@media (max-width: 420px) {
	.dtx-g__grid .dtx-pc__name { font-size: 11.5px; line-height: 1.2; }
	.dtx-g__grid .dtx-pc__top { font-size: 15px; }
	.dtx-g__grid .dtx-pc__ended { font-size: 10.5px; }
	.dtx-g__grid .dtx-pc__price ins { font-size: 16px; }
	.dtx-g__grid .dtx-pc__img { min-height: 36%; }
	.dtx-g__grid .dtx-card__front { padding: 8% 7%; }
}

/* ==========================================================================
   Strona główna: baner jako pierwszy slajd slidera sklepu
   ========================================================================== */
/* Swiper ustawia content-box na wrapperze, a motyw dziedziczy box-sizing, więc slajd wraca do border-box. */
.home__swiper .slide--advent { box-sizing: border-box; }
/* Wszystkie slajdy mają wysokość najwyższego (kalendarza), tło gradientu wypełnia resztę. */
.home__swiper .swiper-slide { height: auto; align-self: stretch; }
.home__swiper .slide--advent .dtx,
.home__swiper .slide--advent .dtx-g--banner { height: 100%; }
/* Kropki slidera leżą na śniegu, więc dostają obrys, żeby było je widać na jasnym tle. */
.home__swiper-pagination .swiper-pagination-bullet { box-shadow: 0 0 0 1px #3a090955; }

@media (prefers-reduced-motion: reduce) {
	.dtx-card__inner { transition: none !important; }
	.dtx-snow i { animation: none; }
}
