@charset "UTF-8";
/* Vianočné pexeso | ZľavaDňa | verzia 004 (priečinok v002)
   Špeciálna podstránka www.zlavadna.sk/special/vianocne-pexeso
   Zdroj je tento SCSS, kompiluje sa do ../css/style-004.css (sass + autoprefixer, príkazy v CLAUDE.md), CSS sa ručne needituje.
   Všetky pravidlá sú zapuzdrené pod #sp-vianoce-pexeso, aby neovplyvnili hlavičku, pätičku ani zvyšok webu
   a aby globálne štýly webu (button, h1 až h3, p, a, .btn) neovplyvnili pexeso. Bez Bootstrapu.
   Tmavý motív sekcie „Ako sa hrá“ sa zapína spolu s webom (body.dark).
   Zmena oproti 003 (01. 12. 2026): rozloženie hracej plochy a veľkosť textov v darčekoch, pozri časť „hracia plocha“ na konci. */
#sp-vianoce-pexeso {
  --sky-1:#06131f;
  --sky-2:#0b2635;
  --pine:#0f3a2d;
  --pine-d:#0a2a20;
  --pine-3:#1f6b4f;
  --red:#e4264f;
  --red-d:#b9123a;
  --gold:#f5c451;
  --gold-l:#ffd77a;
  --card:#fffaf0;
  --card-ink:#14201a;
  --card-muted:#5d665f;
  --snow:#f3f6f4;
  --ink-s:#13201a;
  --muted-s:#56635c;
  --line-s:#dde5e0;
  --mist:rgba(255,255,255,.74);
  --font:"Bricolage Grotesque","Segoe UI",system-ui,-apple-system,sans-serif;
  color-scheme: dark;
  box-sizing: border-box;
}

body.dark #sp-vianoce-pexeso {
  --snow:#0c231b;
  --ink-s:#eef4f0;
  --muted-s:#a5b7ad;
  --line-s:#21453a;
}

#sp-vianoce-pexeso, #sp-vianoce-pexeso *, #sp-vianoce-pexeso *::before, #sp-vianoce-pexeso *::after {
  box-sizing: border-box;
}

#sp-vianoce-pexeso {
  margin: 0;
  background: var(--sky-1);
  color: #fff;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#sp-vianoce-pexeso img, #sp-vianoce-pexeso svg {
  max-width: 100%;
}

#sp-vianoce-pexeso button {
  font-family: inherit;
}

#sp-vianoce-pexeso [hidden] {
  display: none !important;
}

#sp-vianoce-pexeso :focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

#sp-vianoce-pexeso .in {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

#sp-vianoce-pexeso .hero, #sp-vianoce-pexeso .play, #sp-vianoce-pexeso .how, #sp-vianoce-pexeso .prizes {
  isolation: isolate;
}

#sp-vianoce-pexeso .hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 62%, #103a3a 100%);
}

#sp-vianoce-pexeso .aurora {
  position: absolute;
  inset: -10% -10% 15%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.5;
  mix-blend-mode: screen;
}

#sp-vianoce-pexeso .aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform, opacity;
}

#sp-vianoce-pexeso .aurora i:nth-child(1) {
  left: -10%;
  top: 4%;
  width: 70%;
  height: 34%;
  background: linear-gradient(90deg, transparent, #2bd49a 30%, #5ff0c0 55%, transparent);
  animation: px-sweepA 90s ease-in-out infinite alternate, px-glow 24s ease-in-out infinite alternate;
}

#sp-vianoce-pexeso .aurora i:nth-child(2) {
  left: 30%;
  top: 16%;
  width: 60%;
  height: 26%;
  background: linear-gradient(90deg, transparent, #1fb5a8 35%, #3b7bd9 70%, transparent);
  opacity: 0.8;
  animation: px-sweepB 110s ease-in-out infinite alternate, px-glow 30s ease-in-out infinite alternate-reverse;
}

#sp-vianoce-pexeso .aurora i:nth-child(3) {
  left: 5%;
  top: 30%;
  width: 55%;
  height: 20%;
  background: linear-gradient(90deg, transparent, #7a5cd6 40%, #2bd49a 75%, transparent);
  opacity: 0.5;
  animation: px-sweepC 130s ease-in-out infinite alternate, px-glow 36s ease-in-out infinite alternate;
}

@keyframes px-sweepA {
  0% {
    transform: translate(0, 0) rotate(-12deg) skewX(-12deg);
  }
  50% {
    transform: translate(18%, 4%) rotate(-8deg) skewX(4deg) scaleY(1.15);
  }
  100% {
    transform: translate(30%, -2%) rotate(-14deg) skewX(-6deg);
  }
}
@keyframes px-sweepB {
  0% {
    transform: translate(0, 0) rotate(10deg) skewX(10deg);
  }
  50% {
    transform: translate(-20%, 6%) rotate(6deg) skewX(-6deg) scaleY(1.12);
  }
  100% {
    transform: translate(-32%, 0) rotate(12deg) skewX(4deg);
  }
}
@keyframes px-sweepC {
  0% {
    transform: translate(0, 0) rotate(-6deg);
  }
  100% {
    transform: translate(35%, -7%) rotate(-12deg) skewX(-12deg) scaleY(1.2);
  }
}
@keyframes px-glow {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.85;
  }
}
#sp-vianoce-pexeso .moon {
  position: absolute;
  top: 9%;
  right: 4%;
  --m:clamp(70px,9vw,120px);
  width: var(--m);
  aspect-ratio: 1;
  rotate: 18deg;
  filter: drop-shadow(0 0 18px rgba(255, 230, 160, 0.5)) drop-shadow(0 0 60px rgba(255, 230, 160, 0.2));
}

#sp-vianoce-pexeso .moon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 45%, #fffbea, #f3df9f 60%, #d8bd6c);
  -webkit-mask: radial-gradient(circle at 26% 36%, transparent calc(var(--m) * 0.4), #000 calc(var(--m) * 0.4 + 1px));
  mask: radial-gradient(circle at 26% 36%, transparent calc(var(--m) * 0.4), #000 calc(var(--m) * 0.4 + 1px));
}

#sp-vianoce-pexeso #pxSnow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

#sp-vianoce-pexeso .hero-body {
  position: relative;
  z-index: 4;
  flex: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(16px, 4vh, 48px) clamp(170px, 22vw, 320px);
}

@media (max-width: 900px) {
  #sp-vianoce-pexeso .hero-body {
    grid-template-columns: 1fr;
    padding-bottom: 150px;
  }
}
#sp-vianoce-pexeso .hero h1 {
  font-weight: 800;
  font-size: clamp(44px, 6.6vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 24px;
  font-variation-settings: "opsz" 96;
}

#sp-vianoce-pexeso .hero .lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--mist);
  max-width: 44ch;
  margin: 0 0 30px;
}

#sp-vianoce-pexeso .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

#sp-vianoce-pexeso .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: #fff;
  font-weight: 600;
}

#sp-vianoce-pexeso .facts li {
  display: flex;
  align-items: center;
  gap: 9px;
}

#sp-vianoce-pexeso .facts li span {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  font-size: 16px;
}

#sp-vianoce-pexeso .pile {
  position: relative;
  width: min(122%, 560px);
  aspect-ratio: 1;
  justify-self: center;
}

@media (max-width: 900px) {
  #sp-vianoce-pexeso .pile {
    width: min(88%, 380px);
    order: -1;
    margin-top: -8px;
  }
}
#sp-vianoce-pexeso .pile .box {
  position: absolute;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 -10px 0 rgba(0, 0, 0, 0.12);
  animation: px-drop 0.9s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

#sp-vianoce-pexeso .orbit {
  position: absolute;
  inset: 0;
  --a:0deg;
  rotate: var(--a);
  transition: rotate 1.8s cubic-bezier(0.65, 0, 0.3, 1);
}

#sp-vianoce-pexeso .pile .box {
  translate: -50% -50%;
  rotate: calc(var(--tilt) - var(--a));
  transition: rotate 1.8s cubic-bezier(0.65, 0, 0.3, 1);
}

#sp-vianoce-pexeso .pile .b1 {
  left: 23.2%;
  top: 65.5%;
  width: 52%;
  aspect-ratio: 1;
  --tilt:-6deg;
  animation-delay: 0.15s;
}

#sp-vianoce-pexeso .pile .b2 {
  left: 76.8%;
  top: 65.5%;
  width: 41%;
  aspect-ratio: 1/1.15;
  --tilt:5deg;
  animation-delay: 0.35s;
}

#sp-vianoce-pexeso .pile .b3 {
  left: 50%;
  top: 19%;
  width: 37%;
  aspect-ratio: 1;
  --tilt:3deg;
  animation-delay: 0.55s;
}

#sp-vianoce-pexeso .pile .lid {
  position: absolute;
  left: -3%;
  right: -3%;
  top: -2%;
  height: 24%;
  border-radius: 12px;
  z-index: 4;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14), 0 8px 12px rgba(0, 0, 0, 0.18);
  transform-origin: 12% 100%;
  transition: transform 0.55s cubic-bezier(0.3, 1.4, 0.5, 1);
}

#sp-vianoce-pexeso .pile .lid.wrapped::after {
  display: none;
}

#sp-vianoce-pexeso .pile .box.open {
  z-index: 5;
}

#sp-vianoce-pexeso .pile .box.open .peekwrap {
  z-index: 5;
}

#sp-vianoce-pexeso .pile .box.open .lid {
  transform: translate(-30%, -40%) rotate(-38deg);
}

#sp-vianoce-pexeso .peekwrap {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 78%;
  height: 90%;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

#sp-vianoce-pexeso .peek {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74%;
  border-radius: 12px;
  background: var(--card);
  color: var(--card-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 0 3px var(--gold);
  transform: translateY(105%);
  transition: transform 0.5s cubic-bezier(0.3, 1.3, 0.5, 1);
}

#sp-vianoce-pexeso .pile .box.open .peek {
  transform: translateY(0);
  transition-delay: 0.15s;
}

#sp-vianoce-pexeso .peek b {
  font-weight: 800;
  font-size: clamp(22px, 2.9vw, 40px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--red);
}

#sp-vianoce-pexeso .peek small {
  display: none;
}

@keyframes px-drop {
  from {
    opacity: 0;
    transform: translateY(-120px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#sp-vianoce-pexeso .w0 {
  background-color: var(--red);
  background-image: radial-gradient(rgba(255, 255, 255, 0.92) 2.2px, transparent 2.8px);
  background-size: 16px 16px;
  --rib:var(--gold);
}

#sp-vianoce-pexeso .w1 {
  background-color: var(--pine-3);
  background-image: radial-gradient(var(--gold) 1.6px, transparent 2.2px), radial-gradient(rgba(255, 255, 255, 0.35) 1.4px, transparent 2px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  --rib:var(--red);
}

#sp-vianoce-pexeso .w2 {
  background-color: #fff6e4;
  background-image: repeating-linear-gradient(45deg, var(--red) 0 7px, transparent 7px 18px);
  --rib:var(--pine-3);
}

#sp-vianoce-pexeso .w3 {
  background-color: var(--gold);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 3px, transparent 3px 14px);
  --rib:var(--red);
}

#sp-vianoce-pexeso .wrapped {
  overflow: visible;
}

#sp-vianoce-pexeso .wrapped::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 15%;
  transform: translateX(-50%);
  background: var(--rib);
}

#sp-vianoce-pexeso .wrapped::after {
  content: "";
  position: absolute;
  top: 44%;
  left: 0;
  right: 0;
  height: 13%;
  background: var(--rib);
}

#sp-vianoce-pexeso .bow {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 44%;
  aspect-ratio: 2/1;
  transform: translate(-50%, -72%);
  z-index: 2;
}

#sp-vianoce-pexeso .bow::before, #sp-vianoce-pexeso .bow::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 52%;
  height: 100%;
  border: clamp(3px, 0.6vw, 5px) solid var(--rib);
  border-radius: 50%;
}

#sp-vianoce-pexeso .bow::before {
  left: -2%;
  transform: rotate(-20deg);
}

#sp-vianoce-pexeso .bow::after {
  right: -2%;
  transform: rotate(20deg);
}

#sp-vianoce-pexeso .forest {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(190px, 24vw, 380px);
  z-index: 3;
  display: block;
}

#sp-vianoce-pexeso .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 16px 30px;
  font-weight: 700;
  font-size: 17px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(228, 38, 79, 0.45);
  transition: background 0.15s, transform 0.15s;
}

#sp-vianoce-pexeso .btn:hover {
  background: var(--red-d);
}

#sp-vianoce-pexeso .btn:active {
  transform: scale(0.98);
}

#sp-vianoce-pexeso .btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

#sp-vianoce-pexeso .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

#sp-vianoce-pexeso .btn.gold {
  background: var(--gold);
  color: #1d1606;
  box-shadow: 0 10px 30px rgba(245, 196, 81, 0.35);
}

#sp-vianoce-pexeso .btn.gold:hover {
  background: var(--gold-l);
}

#sp-vianoce-pexeso .btn.small {
  padding: 11px 20px;
  font-size: 15px;
}

@property --px-ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
#sp-vianoce-pexeso .btn.shine {
  position: relative;
}

#sp-vianoce-pexeso .ptag, #sp-vianoce-pexeso .lock .box {
  isolation: isolate;
}

#sp-vianoce-pexeso .btn.shine::before, #sp-vianoce-pexeso .btn.shine::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from var(--px-ang), transparent 0 60%, rgba(245, 196, 81, 0.25) 70%, #ffd77a 82%, #fff6d2 86%, #f5c451 90%, transparent 98%);
  animation: px-shine-spin 3.4s linear infinite;
}

#sp-vianoce-pexeso .btn.shine::before {
  padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

#sp-vianoce-pexeso .btn.shine::after {
  z-index: -1;
  inset: -3px;
  filter: blur(7px);
  opacity: 0.75;
}

@keyframes px-shine-spin {
  to {
    --px-ang:360deg;
  }
}
#sp-vianoce-pexeso .play {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, var(--pine) 0%, var(--pine-d) 100%);
  padding-block: clamp(24px, 4vh, 48px) clamp(165px, 12vw, 185px);
}

#sp-vianoce-pexeso .play .table {
  width: 100%;
  max-width: min(860px, max(400px, (100svh - 370px) * 1.15));
}

#sp-vianoce-pexeso .play .play-head {
  margin-bottom: clamp(16px, 3vh, 32px);
  max-width: 920px;
}

#sp-vianoce-pexeso .play h2 {
  font-size: clamp(30px, 3.6vw, 48px);
}

#sp-vianoce-pexeso .play-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(26px, 4vw, 40px);
}

#sp-vianoce-pexeso .play h2, #sp-vianoce-pexeso .how h2, #sp-vianoce-pexeso .prizes h2 {
  font-weight: 800;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}

#sp-vianoce-pexeso .play-head p {
  color: var(--mist);
  margin: 0;
}

#sp-vianoce-pexeso .table {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(14px, 2.6vw, 28px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.25);
}

#sp-vianoce-pexeso .status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 4px 16px;
  font-weight: 700;
  font-size: 16px;
  min-height: 32px;
}

#sp-vianoce-pexeso .tries {
  display: flex;
  gap: 6px;
}

#sp-vianoce-pexeso .tries i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 19px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  transition: opacity 0.3s, filter 0.3s;
}

#sp-vianoce-pexeso .tries i.used {
  opacity: 0.25;
  filter: grayscale(1);
}

#sp-vianoce-pexeso .board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.8vw, 18px);
}

@media (max-width: 560px) {
  #sp-vianoce-pexeso .board {
    grid-template-columns: repeat(3, 1fr);
  }
}
#sp-vianoce-pexeso .gift {
  position: relative;
  rotate: var(--t, 0deg);
  aspect-ratio: 1/1.06;
  perspective: 900px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

#sp-vianoce-pexeso .gift:disabled {
  cursor: default;
}

#sp-vianoce-pexeso .flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.3, 0.8, 0.3, 1);
}

#sp-vianoce-pexeso .gift.open .flip, #sp-vianoce-pexeso .gift.done .flip, #sp-vianoce-pexeso .gift.shown .flip {
  transform: rotateY(180deg);
}

#sp-vianoce-pexeso .face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

#sp-vianoce-pexeso .back {
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35), inset 0 -6px 0 rgba(0, 0, 0, 0.12);
}

#sp-vianoce-pexeso .gift:not(:disabled):hover .flip {
  transform: translateY(-5px) rotate(-1.5deg);
}

#sp-vianoce-pexeso .gift.open:hover .flip, #sp-vianoce-pexeso .gift.done:hover .flip, #sp-vianoce-pexeso .gift.shown:hover .flip {
  transform: rotateY(180deg);
}

#sp-vianoce-pexeso .front {
  transform: rotateY(180deg);
  background: var(--card);
  color: var(--card-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  box-shadow: inset 0 0 0 3px var(--gold);
}

#sp-vianoce-pexeso .front .lbl {
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 700;
  color: var(--red);
}

#sp-vianoce-pexeso .front .val {
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 3px 0;
}

#sp-vianoce-pexeso .front .sub {
  font-size: clamp(10px, 1.1vw, 13px);
  line-height: 1.2;
  color: var(--card-muted);
  font-weight: 500;
}

#sp-vianoce-pexeso .front .pic {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1;
}

#sp-vianoce-pexeso .prize-deal .front {
  background: var(--red);
  color: #fff;
}

#sp-vianoce-pexeso .prize-deal .front .lbl {
  color: var(--gold);
}

#sp-vianoce-pexeso .prize-deal .front .sub {
  color: rgba(255, 255, 255, 0.85);
}

#sp-vianoce-pexeso .empty .front {
  background: #e7efea;
  box-shadow: inset 0 0 0 3px #c7d6cc;
}

#sp-vianoce-pexeso .gift.done .front {
  box-shadow: inset 0 0 0 3px var(--gold), 0 0 0 3px #fff, 0 0 26px 8px rgba(245, 196, 81, 0.75);
}

#sp-vianoce-pexeso .gift.shown {
  opacity: 0.55;
}

#sp-vianoce-pexeso .gift.shown.done {
  opacity: 1;
}

#sp-vianoce-pexeso .gift.miss .flip {
  animation: px-shake 0.35s;
}

@keyframes px-shake {
  25% {
    translate: -5px 0;
  }
  75% {
    translate: 5px 0;
  }
}
#sp-vianoce-pexeso .lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 6;
  background: rgba(8, 30, 23, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 32px;
}

#sp-vianoce-pexeso .lock .box {
  text-align: center;
  padding: 24px;
}

#sp-vianoce-pexeso .lock p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--mist);
}

#sp-vianoce-pexeso .swap {
  display: grid;
}

#sp-vianoce-pexeso .swap > * {
  grid-area: 1/1;
}

#sp-vianoce-pexeso .table {
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s;
}

#sp-vianoce-pexeso .table.out {
  opacity: 0;
  transform: scale(0.97);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s 0.45s;
}

#sp-vianoce-pexeso .result {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding-top: 64px;
  align-self: center;
}

#sp-vianoce-pexeso .result .again {
  animation: px-fadein 0.4s ease 0.9s both;
}

@keyframes px-fadein {
  from {
    opacity: 0;
  }
}
#sp-vianoce-pexeso .result .rcard {
  position: relative;
  padding-top: clamp(84px, 9vw, 100px);
  animation: px-pop 0.6s cubic-bezier(0.2, 1, 0.4, 1) 0.35s both;
}

@keyframes px-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}
#sp-vianoce-pexeso .cap {
  position: absolute;
  left: -10px;
  right: -10px;
  top: -22px;
  height: 60px;
  pointer-events: none;
  z-index: 2;
}

#sp-vianoce-pexeso .snowcap {
  display: block;
  width: 100%;
  height: 54px;
  filter: drop-shadow(0 5px 5px rgba(0, 40, 60, 0.14));
}

#sp-vianoce-pexeso .icicles {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 38px;
  height: 64px;
  filter: drop-shadow(0 1px 1px rgba(40, 100, 140, 0.35));
}

#sp-vianoce-pexeso .icicles i {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--w);
  height: var(--h);
  background: linear-gradient(90deg, #9fd2ec 0%, #e8f6fd 40%, #a6d5ee 70%, #6fb3da 100%);
  clip-path: polygon(0 0, 100% 0, 58% 100%, 42% 100%);
  transform-origin: top;
  animation: px-grow 0.8s ease-out both;
  animation-delay: var(--d);
}

@keyframes px-grow {
  from {
    transform: scaleY(0);
  }
}
#sp-vianoce-pexeso .trees {
  position: absolute;
  left: 5%;
  bottom: calc(100% - 20px);
  width: clamp(96px, 12vw, 136px);
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

#sp-vianoce-pexeso .mini {
  position: absolute;
  bottom: calc(100% - 15px);
  border-radius: 9px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.28), inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

#sp-vianoce-pexeso .mini.m1 {
  right: 7%;
  width: 46px;
  height: 46px;
  rotate: 7deg;
}

#sp-vianoce-pexeso .mini.m2 {
  right: calc(7% + 44px);
  width: 32px;
  height: 32px;
  rotate: -9deg;
}

#sp-vianoce-pexeso .mini .bow {
  border-width: 3px;
}

#sp-vianoce-pexeso .rcard {
  background: var(--card);
  color: var(--card-ink);
  border-radius: 30px;
  padding: clamp(22px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

@media (max-width: 700px) {
  #sp-vianoce-pexeso .rcard {
    grid-template-columns: 1fr;
  }
}
#sp-vianoce-pexeso .rcard .k {
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}

#sp-vianoce-pexeso .rcard h3 {
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 6px 0 10px;
}

#sp-vianoce-pexeso .rcard p {
  margin: 0 0 6px;
  color: var(--card-muted);
}

#sp-vianoce-pexeso .rcard .meta {
  font-size: 15px;
}

#sp-vianoce-pexeso .rcard .meta b {
  color: var(--card-ink);
}

#sp-vianoce-pexeso .coupon {
  min-width: 220px;
  text-align: center;
  border: 3px dashed var(--red);
  border-radius: 22px;
  padding: 20px 22px;
  background: #fff;
}

#sp-vianoce-pexeso .coupon .val {
  display: block;
  font-weight: 800;
  font-size: 50px;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.04em;
}

#sp-vianoce-pexeso .coupon small {
  display: block;
  font-size: 14px;
  color: var(--card-muted);
  margin-top: 4px;
}

#sp-vianoce-pexeso .coupon .code {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1.5px solid #eadfc8;
  font-weight: 800;
  font-size: 19px;
  color: var(--card-ink);
  -webkit-user-select: all;
  -moz-user-select: all;
       user-select: all;
  word-break: break-all;
}

#sp-vianoce-pexeso .copy {
  margin-top: 8px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--card-ink);
  color: #fff;
  font: 600 15px var(--font);
  cursor: pointer;
}

#sp-vianoce-pexeso .copy:hover {
  background: #2c3a33;
}

#sp-vianoce-pexeso .picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

#sp-vianoce-pexeso .pick {
  border: 2px solid #e6dcc6;
  background: #fff;
  color: var(--card-ink);
  border-radius: 16px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}

#sp-vianoce-pexeso .pick b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  line-height: 1.1;
}

#sp-vianoce-pexeso .pick[aria-pressed=true] {
  border-color: var(--red);
  background: #fde8ed;
}

#sp-vianoce-pexeso .next {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--card-muted);
}

#sp-vianoce-pexeso .next .clock {
  font-weight: 800;
  color: var(--card-ink);
  font-variant-numeric: tabular-nums;
}

#sp-vianoce-pexeso .again {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: 0;
  color: var(--mist);
  text-decoration: underline;
  font-size: 15px;
  cursor: pointer;
}

#sp-vianoce-pexeso .drift {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(150px, 10vw, 170px);
  display: block;
}

#sp-vianoce-pexeso .how {
  background: var(--snow);
  color: var(--ink-s);
  padding-block: clamp(64px, 8vw, 120px) 0;
}

#sp-vianoce-pexeso .how-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

@media (max-width: 860px) {
  #sp-vianoce-pexeso .how-grid {
    grid-template-columns: 1fr;
  }
}
#sp-vianoce-pexeso .how .intro p {
  color: var(--muted-s);
  margin: 0;
  max-width: 40ch;
}

#sp-vianoce-pexeso .rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--line-s);
}

@media (max-width: 520px) {
  #sp-vianoce-pexeso .rules {
    grid-template-columns: 1fr;
  }
}
#sp-vianoce-pexeso .rules li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 22px 18px 22px 0;
  border-bottom: 1.5px solid var(--line-s);
  color: var(--muted-s);
  font-size: 16px;
}

#sp-vianoce-pexeso .rules li span {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--red);
  color: #fff;
}

#sp-vianoce-pexeso .rules li:nth-child(2) span {
  background: var(--pine-3);
}

#sp-vianoce-pexeso .rules li:nth-child(3) span {
  background: var(--gold);
}

#sp-vianoce-pexeso .rules li:nth-child(4) span {
  background: #2b5f9e;
}

#sp-vianoce-pexeso .rules b {
  display: block;
  color: var(--ink-s);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#sp-vianoce-pexeso .how {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0 !important;
  --t-far:#e1e9e5;
  --t-mid:#9db2aa;
  --t-mid-d:#7f978e;
  --t-near:#3e6a5a;
  --t-near-d:#2f5446;
  --t-tree:#2a5e48;
  --t-snow:#ffffff;
  --t-ground:#ffffff;
  --t-win:#f5c451;
  --t-win2:#f3d68a;
  --t-smoke:#b9c7c1;
}

body.dark #sp-vianoce-pexeso .how {
  --t-far:#12302a;
  --t-mid:#1b443a;
  --t-mid-d:#163a31;
  --t-near:#24584a;
  --t-near-d:#1c473b;
  --t-tree:#1f5a43;
  --t-snow:#e8f1ed;
  --t-ground:#e8f1ed;
  --t-smoke:#4b6a60;
}

#sp-vianoce-pexeso .how .how-grid {
  flex: 1;
  align-content: center;
  padding-bottom: clamp(40px, 6vw, 90px);
}

#sp-vianoce-pexeso .town {
  display: block;
  width: 100%;
  height: clamp(170px, 18.8vw, 420px);
  margin-top: auto;
}

#sp-vianoce-pexeso .town-ground {
  position: relative;
  height: clamp(110px, 10vw, 170px);
  background: var(--t-ground);
  margin-top: -2px;
  --s1a:#ffffff;
  --s1b:#cfe0f3;
  --s2a:#e6effb;
  --s2b:#bfd5ee;
  --s3a:#f3f8fe;
  --s3b:#d6e5f6;
}

body.dark #sp-vianoce-pexeso .town-ground {
  --s1a:#e8f1ed;
  --s1b:#bfd0de;
  --s2a:#d6e3ee;
  --s2b:#b5c8da;
  --s3a:#dfe9f2;
  --s3b:#c3d4e3;
}

#sp-vianoce-pexeso .drifts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#sp-vianoce-pexeso .drifts path {
  filter: drop-shadow(0 -4px 8px rgba(110, 150, 200, 0.22));
}

#sp-vianoce-pexeso .how .cue {
  color: var(--ink-s);
  text-shadow: none;
  flex-direction: column;
  gap: 5px;
  bottom: 50%;
  transform: translate(-50%, 50%);
}

#sp-vianoce-pexeso .how .cue i {
  color: var(--ink-s);
  box-shadow: inset 0 0 0 1.5px var(--ink-s);
}

#sp-vianoce-pexeso .how .cue:hover i {
  background: rgba(127, 140, 133, 0.12);
}

#sp-vianoce-pexeso .prizes .cue.up {
  bottom: 18px;
  z-index: 2;
}

#sp-vianoce-pexeso .prizes .cue.up i {
  background: rgba(120, 6, 32, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8);
  animation: px-bobUp 1.8s ease-in-out infinite;
}

#sp-vianoce-pexeso .prizes .cue.up:hover i {
  background: rgba(120, 6, 32, 0.5);
}

#sp-vianoce-pexeso .prizes .in {
  padding-bottom: max(clamp(56px, 8vw, 104px), 110px) !important;
}

@keyframes px-bobUp {
  50% {
    transform: translateY(-6px);
  }
}
#sp-vianoce-pexeso .prizes {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--foot, 76px));
  display: flex;
  align-items: center;
  background-color: var(--red);
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 3px, transparent 3.6px);
  background-size: 28px 28px;
  color: #fff;
}

#sp-vianoce-pexeso .prizes::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: clamp(36px, 5vw, 64px);
  transform: translateX(-50%);
  background: var(--gold);
  opacity: 0.95;
}

#sp-vianoce-pexeso .prizes .in {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px);
}

#sp-vianoce-pexeso .ptag {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  color: var(--card-ink);
  border-radius: 30px;
  padding: clamp(26px, 5vw, 52px);
  box-shadow: 0 30px 70px rgba(80, 0, 20, 0.35);
}

#sp-vianoce-pexeso .ptag p {
  color: var(--card-muted);
  margin: 0 auto 26px;
  max-width: 46ch;
}

#sp-vianoce-pexeso .mystery {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

#sp-vianoce-pexeso .mystery span {
  width: 70px;
  height: 78px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 32px;
  color: #fff;
  background: var(--red);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15);
  rotate: -5deg;
}

#sp-vianoce-pexeso .mystery span:nth-child(2) {
  background: var(--pine-3);
  rotate: 4deg;
  translate: 0 -8px;
}

#sp-vianoce-pexeso .mystery span:nth-child(3) {
  background: var(--gold);
  color: #1d1606;
  rotate: -2deg;
}

#sp-vianoce-pexeso .toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 180%);
  background: var(--card);
  color: var(--card-ink);
  border-radius: 18px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s, visibility 0.3s;
  visibility: hidden;
  z-index: 20;
  max-width: calc(100% - 32px);
}

#sp-vianoce-pexeso .toast.on {
  transform: translate(-50%, 0);
  visibility: visible;
}

#sp-vianoce-pexeso .cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3.5vh, 36px);
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#sp-vianoce-pexeso .cue i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
  font-style: normal;
  animation: px-bob 1.8s ease-in-out infinite;
  transition: background 0.2s, box-shadow 0.2s;
}

#sp-vianoce-pexeso .cue i svg {
  width: 20px;
  height: 20px;
}

#sp-vianoce-pexeso .cue:hover i {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1.5px #fff;
}

#sp-vianoce-pexeso .play .cue {
  bottom: 8px;
  color: var(--ink-s);
  text-shadow: none;
  flex-direction: column;
  gap: 5px;
}

#sp-vianoce-pexeso .play .cue i {
  background: transparent;
  color: var(--ink-s);
  box-shadow: inset 0 0 0 1.5px var(--ink-s);
}

#sp-vianoce-pexeso .play .cue:hover i {
  background: rgba(127, 140, 133, 0.12);
}

@keyframes px-bob {
  50% {
    transform: translateY(7px);
  }
}
#sp-vianoce-pexeso .rail {
  position: fixed;
  left: max(18px, env(safe-area-inset-left, 0px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#sp-vianoce-pexeso .rail .track {
  position: absolute;
  left: 50%;
  top: 21px;
  bottom: 21px;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

#sp-vianoce-pexeso .rail .fill {
  width: 100%;
  height: 0;
  background: linear-gradient(var(--gold), var(--red));
  border-radius: 3px;
}

#sp-vianoce-pexeso .rail a {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
  text-decoration: none;
  background: rgba(8, 26, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

#sp-vianoce-pexeso .rail a:hover {
  transform: scale(1.08);
}

#sp-vianoce-pexeso .rail a.on {
  background: var(--red);
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 18px rgba(228, 38, 79, 0.6);
  transform: scale(1.14);
}

#sp-vianoce-pexeso .rail .tip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate(-6px, -50%);
  white-space: nowrap;
  background: var(--card);
  color: var(--card-ink);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

#sp-vianoce-pexeso .rail a:hover .tip, #sp-vianoce-pexeso .rail a:focus-visible .tip {
  opacity: 1;
  transform: translate(0, -50%);
}

@media (max-width: 640px) {
  #sp-vianoce-pexeso .rail {
    display: none;
  }
}
@media (min-width: 641px) and (max-width: 1420px) {
  #sp-vianoce-pexeso .in {
    padding-left: max(92px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}
#sp-vianoce-pexeso .mgift {
  display: none;
}

#sp-vianoce-pexeso .sbar {
  display: none;
}

@media (max-width: 640px) {
  #sp-vianoce-pexeso .sbar {
    display: block;
    position: fixed;
    left: 0;
    top: env(safe-area-inset-top, 0px);
    height: 4px;
    width: 0;
    z-index: 40;
    pointer-events: none;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(90deg, rgba(245, 196, 81, 0.25), #f5c451 65%, #ffd77a 88%, #fff6d2);
    box-shadow: 0 0 8px 1px rgba(255, 210, 110, 0.75), 0 0 18px 2px rgba(245, 196, 81, 0.35);
  }
  #sp-vianoce-pexeso .sbar::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, #fffbe8 0 30%, rgba(255, 215, 120, 0.85) 55%, transparent 72%);
    filter: blur(0.5px);
  }
}
@media (min-width: 641px) {
  #sp-vianoce-pexeso .hero h1 {
    font-size: min(clamp(44px, 6.6vw, 100px), 10svh);
  }
  #sp-vianoce-pexeso .hero-body {
    padding-bottom: min(clamp(170px, 22vw, 320px), 26svh);
  }
  #sp-vianoce-pexeso .pile {
    width: min(122%, 560px, 60svh);
  }
  #sp-vianoce-pexeso .how {
    padding-top: min(clamp(64px, 8vw, 120px), 7svh) !important;
  }
  #sp-vianoce-pexeso .how .how-grid {
    padding-bottom: min(clamp(40px, 6vw, 90px), 4svh);
  }
  #sp-vianoce-pexeso .town-ground {
    height: min(clamp(110px, 10vw, 170px), 13svh);
  }
}
@keyframes px-sway {
  0%, 100% {
    rotate: -4deg;
    translate: 0 0;
  }
  50% {
    rotate: 3deg;
    translate: 0 -6px;
  }
}
@media (max-width: 899px) {
  #sp-vianoce-pexeso .moon {
    --m:clamp(54px,13vw,88px);
    top: 7%;
    right: 6%;
  }
  #sp-vianoce-pexeso .play {
    padding-bottom: 175px;
  }
  #sp-vianoce-pexeso .drift {
    height: 150px;
  }
  #sp-vianoce-pexeso .play .cue {
    bottom: 8px;
  }
  #sp-vianoce-pexeso .pile {
    width: min(64%, 360px);
  }
}
@media (max-width: 640px) {
  #sp-vianoce-pexeso .hero-body {
    gap: 6px;
    padding-top: 0;
    padding-bottom: 112px;
  }
  #sp-vianoce-pexeso .pile {
    width: min(62%, 250px);
    margin: 0 auto;
  }
  #sp-vianoce-pexeso .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
    margin-bottom: 12px;
  }
  #sp-vianoce-pexeso .hero .lead {
    font-size: 15px;
    margin-bottom: 18px;
  }
  #sp-vianoce-pexeso .cta {
    margin-bottom: 16px;
    gap: 10px;
  }
  #sp-vianoce-pexeso .cta .btn {
    flex: 1 1 0;
    padding: 14px 16px;
    font-size: 16px;
  }
  #sp-vianoce-pexeso .facts {
    gap: 8px 18px;
    font-size: 14px;
  }
  #sp-vianoce-pexeso .facts li span {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  #sp-vianoce-pexeso .forest {
    height: 130px;
  }
  #sp-vianoce-pexeso .cue {
    bottom: 14px;
    font-size: 14px;
  }
  #sp-vianoce-pexeso .play {
    padding-top: 28px;
    padding-bottom: 130px;
  }
  #sp-vianoce-pexeso .play h2, #sp-vianoce-pexeso .how h2, #sp-vianoce-pexeso .prizes h2 {
    font-size: clamp(28px, 8.4vw, 36px);
  }
  #sp-vianoce-pexeso .table {
    border-radius: 22px;
  }
  #sp-vianoce-pexeso .lock {
    border-radius: 22px;
  }
  #sp-vianoce-pexeso .status {
    font-size: 14px;
    margin-bottom: 12px;
  }
  #sp-vianoce-pexeso .tries i {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
  #sp-vianoce-pexeso .how {
    padding-top: 56px !important;
  }
  #sp-vianoce-pexeso .how-grid {
    gap: 24px;
  }
  #sp-vianoce-pexeso .rules li {
    grid-template-columns: 42px 1fr;
    padding: 16px 0;
  }
  #sp-vianoce-pexeso .rules li span {
    width: 42px;
    height: 42px;
    font-size: 19px;
    border-radius: 12px;
  }
  #sp-vianoce-pexeso .rules b {
    font-size: 17px;
  }
  #sp-vianoce-pexeso .town {
    height: 150px;
  }
  #sp-vianoce-pexeso .town-ground {
    height: 116px;
  }
  #sp-vianoce-pexeso .prizes .in {
    padding-block: 56px;
  }
  #sp-vianoce-pexeso .ptag {
    padding: 28px 20px;
    border-radius: 24px;
  }
  #sp-vianoce-pexeso .mystery span {
    width: 56px;
    height: 62px;
    font-size: 26px;
  }
  #sp-vianoce-pexeso .result {
    padding-top: 52px;
  }
  #sp-vianoce-pexeso .rcard {
    padding: 22px 18px;
    gap: 18px;
    border-radius: 24px;
  }
  #sp-vianoce-pexeso .result .rcard {
    padding-top: 70px;
  }
  #sp-vianoce-pexeso .coupon {
    min-width: 0;
  }
  #sp-vianoce-pexeso .coupon .val {
    font-size: 42px;
  }
  #sp-vianoce-pexeso .trees {
    width: 84px;
    left: 4%;
  }
  #sp-vianoce-pexeso .mini.m1 {
    width: 34px;
    height: 34px;
  }
  #sp-vianoce-pexeso .mini.m2 {
    width: 24px;
    height: 24px;
    right: calc(7% + 32px);
  }
  #sp-vianoce-pexeso .icicles {
    left: 16px;
    right: 16px;
  }
  #sp-vianoce-pexeso .prizes {
    --foot:112px;
  }
}
@media (max-width: 640px) and (max-height: 790px) {
  #sp-vianoce-pexeso .pile {
    width: min(50%, 210px);
  }
  #sp-vianoce-pexeso .hero-body {
    padding-bottom: 104px;
  }
}
@media (max-width: 640px) {
  #sp-vianoce-pexeso .hero {
    min-height: 100vh;
    min-height: 100svh;
  }
  #sp-vianoce-pexeso .mgift {
    display: block;
    position: relative;
    width: 96px;
    aspect-ratio: 1;
    margin: 28px auto 30px;
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45), inset 0 -8px 0 rgba(0, 0, 0, 0.12);
    animation: px-drop 0.9s cubic-bezier(0.2, 1.3, 0.4, 1) 0.2s both, px-sway 5s ease-in-out 1.2s infinite;
  }
  #sp-vianoce-pexeso .mgift .lid {
    position: absolute;
    left: -4%;
    right: -4%;
    top: -2%;
    height: 26%;
    border-radius: 10px;
    z-index: 4;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14), 0 8px 12px rgba(0, 0, 0, 0.18);
    transform-origin: 12% 100%;
    transition: transform 0.55s cubic-bezier(0.3, 1.4, 0.5, 1);
  }
  #sp-vianoce-pexeso .mgift .lid.wrapped::after {
    display: none;
  }
  #sp-vianoce-pexeso .mgift.open .lid {
    transform: translate(-30%, -40%) rotate(-38deg);
  }
  #sp-vianoce-pexeso .mgift.open .peekwrap {
    z-index: 5;
  }
  #sp-vianoce-pexeso .mgift.open .peek {
    transform: translateY(0);
    transition-delay: 0.15s;
  }
  #sp-vianoce-pexeso .mgift .peekwrap {
    left: 4%;
    right: 4%;
  }
  #sp-vianoce-pexeso .mgift .peek b {
    font-size: 19px;
    white-space: nowrap;
  }
  #sp-vianoce-pexeso .pile {
    display: none;
  }
  #sp-vianoce-pexeso .play {
    padding-bottom: 170px;
  }
  #sp-vianoce-pexeso .drift {
    height: 150px;
  }
  #sp-vianoce-pexeso .play .cue {
    bottom: 12px;
  }
  #sp-vianoce-pexeso .cue, #sp-vianoce-pexeso .play .cue, #sp-vianoce-pexeso .how .cue {
    flex-direction: column-reverse;
    gap: 10px;
  }
  #sp-vianoce-pexeso .play .table {
    max-width: min(100%, max(260px, (100svh - 404px) * 0.7 + 24px));
    padding: 12px;
  }
  #sp-vianoce-pexeso .play .board {
    gap: 8px;
  }
  #sp-vianoce-pexeso .play > .in {
    padding-left: 14px;
    padding-right: 14px;
  }
  #sp-vianoce-pexeso .play {
    padding-bottom: 150px;
  }
  #sp-vianoce-pexeso .how {
    padding-top: 40px !important;
  }
  #sp-vianoce-pexeso .how .intro p {
    font-size: 15px;
  }
  #sp-vianoce-pexeso .rules {
    grid-template-columns: 1fr 1fr;
    -moz-column-gap: 14px;
         column-gap: 14px;
  }
  #sp-vianoce-pexeso .rules li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
    font-size: 14px;
  }
  #sp-vianoce-pexeso .rules li span {
    width: 36px;
    height: 36px;
    font-size: 17px;
    border-radius: 11px;
  }
  #sp-vianoce-pexeso .rules b {
    font-size: 16px;
  }
  #sp-vianoce-pexeso .how .how-grid {
    padding-bottom: 16px;
    flex: 0 0 auto;
  }
  #sp-vianoce-pexeso .town {
    flex: 1 1 120px;
    height: auto;
    min-height: 120px;
    max-height: 280px;
  }
  #sp-vianoce-pexeso .town-ground {
    height: 96px;
  }
  #sp-vianoce-pexeso .moon {
    top: 13%;
    right: 15%;
  }
  #sp-vianoce-pexeso .hero-body {
    align-content: center;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 140px;
  }
  #sp-vianoce-pexeso .hero h1 {
    font-size: clamp(38px, 11.6vw, 52px);
    margin-inline: auto;
  }
  #sp-vianoce-pexeso .hero .lead {
    margin-inline: auto;
    max-width: 34ch;
    margin-bottom: 32px;
  }
  #sp-vianoce-pexeso .cta {
    justify-content: center;
    margin-bottom: 32px;
  }
  #sp-vianoce-pexeso .facts {
    justify-content: center;
  }
}
@media (max-width: 640px) and (max-height: 720px) {
  #sp-vianoce-pexeso .mgift {
    width: 70px;
    margin: 4px auto 16px;
  }
  #sp-vianoce-pexeso .hero h1 {
    font-size: 34px;
  }
  #sp-vianoce-pexeso .hero .lead {
    font-size: 14px;
    margin-bottom: 20px;
  }
  #sp-vianoce-pexeso .cta {
    margin-bottom: 20px;
  }
  #sp-vianoce-pexeso .facts {
    font-size: 13px;
  }
  #sp-vianoce-pexeso .hero-body {
    padding-bottom: 116px;
  }
  #sp-vianoce-pexeso .play {
    padding-top: 16px;
    padding-bottom: 150px;
  }
  #sp-vianoce-pexeso .drift {
    height: 130px;
  }
  #sp-vianoce-pexeso .play h2 {
    font-size: 26px;
    margin-bottom: 0;
  }
  #sp-vianoce-pexeso .play-head p {
    display: none;
  }
  #sp-vianoce-pexeso .play .table {
    max-width: min(100%, (100svh - 282px) * 0.7 + 24px);
  }
  #sp-vianoce-pexeso .how .intro p {
    display: none;
  }
  #sp-vianoce-pexeso .rules li {
    padding: 10px 0;
  }
  #sp-vianoce-pexeso .town {
    height: auto;
    min-height: 96px;
    flex-basis: 96px;
  }
  #sp-vianoce-pexeso .town-ground {
    height: 84px;
  }
  #sp-vianoce-pexeso .prizes .in {
    padding-block: 20px;
  }
  #sp-vianoce-pexeso .mystery {
    margin-bottom: 14px;
  }
  #sp-vianoce-pexeso .mystery span {
    width: 46px;
    height: 50px;
    font-size: 22px;
  }
  #sp-vianoce-pexeso .ptag {
    padding: 22px 18px;
  }
  #sp-vianoce-pexeso .prizes h2 {
    font-size: 26px;
    margin-bottom: 10px;
  }
  #sp-vianoce-pexeso .ptag p {
    font-size: 15px;
    margin-bottom: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #sp-vianoce-pexeso .flip {
    transition: none;
  }
  #sp-vianoce-pexeso .aurora i, #sp-vianoce-pexeso .pile .box, #sp-vianoce-pexeso .gift.miss .flip, #sp-vianoce-pexeso .cue i, #sp-vianoce-pexeso .icicles i, #sp-vianoce-pexeso .result .rcard, #sp-vianoce-pexeso .btn.shine::before, #sp-vianoce-pexeso .btn.shine::after, #sp-vianoce-pexeso .mgift, #sp-vianoce-pexeso .prizes .cue.up i {
    animation: none;
  }
}
/* ---------- izolácia od štýlov webu ---------- */
/* web má globálne: button{margin-top:25px;padding;background:#eb1a47;border-radius:50px}, h1–h3{padding;color:#000},
   p{padding:10px 0}, b{font-weight:600}, a{color:#000;text-decoration:underline}, .btn{background:#2fb382;...} */
#sp-vianoce-pexeso {
  position: relative;
  margin: 0;
  overflow-x: clip;
  text-align: left;
  --px-head:175px;
}

@media (max-width: 1090px) {
  #sp-vianoce-pexeso {
    --px-head:111px;
  }
}
#sp-vianoce-pexeso h1, #sp-vianoce-pexeso h2, #sp-vianoce-pexeso h3 {
  padding: 0;
  margin: 0;
  color: inherit;
  font-family: inherit;
  line-height: 1.1;
}

#sp-vianoce-pexeso p {
  padding: 0;
}

#sp-vianoce-pexeso b, #sp-vianoce-pexeso strong {
  font-weight: 700;
}

#sp-vianoce-pexeso ul {
  list-style: none;
}

#sp-vianoce-pexeso a {
  color: inherit;
  text-decoration: none;
}

#sp-vianoce-pexeso button {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  transition: none;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
}

#sp-vianoce-pexeso .btn {
  text-align: center;
  position: relative;
}

/* ---------- vloženie do stránky webu ---------- */
/* úvod: hlavička webu (175 px / 111 px) je nad pexesom, takže úvod + šípka dole sa zmestia do prvej obrazovky */
#sp-vianoce-pexeso .hero {
  min-height: calc(100vh - var(--px-head));
  min-height: calc(100svh - var(--px-head));
}

#sp-vianoce-pexeso .hero-body {
  padding-top: clamp(24px, 5vh, 64px);
}

@media (max-width: 640px) {
  #sp-vianoce-pexeso .hero-body {
    padding-top: 12px;
  }
}
/* darčeky v úvode: menej výšky (hlavička webu), aby sa horný darček nezrezal */
@media (min-width: 900px) {
  #sp-vianoce-pexeso .pile {
    width: min(122%, 560px, 70vh - var(--px-head) - 40px);
    width: min(122%, 560px, 70svh - var(--px-head) - 40px);
  }
}
/* desktop: úvod je o hlavičku webu nižší, šípka „Chcem hrať“ musí byť vidieť pri každej výške okna
   (pôvodne len do 1000 px; nad 1000 px bol nadpis 100 px na 3 riadky a úvod vyšší ako okno, šípka pod okrajom, 17. 11. 2026) */
@media (min-width: 641px) {
  #sp-vianoce-pexeso .hero h1 {
    font-size: min(clamp(44px, 6.6vw, 100px), 9svh);
  }
  /* obsah na stred medzi vrchom úvodu a šípkou „Chcem hrať“: dole presne miesto šípky (odsadenie clamp(18px,3.5vh,36px) + jej výška 74 px), hore nič (17. 11. 2026) */
  #sp-vianoce-pexeso .hero-body {
    padding-top: 0;
    padding-bottom: calc(clamp(18px, 3.5vh, 36px) + 74px);
  }
}
/* Safari (WebKit) občas ignoruje backface-visibility pri 3D otočení a ukazuje líce darčeka cez baliaci papier.
   Preto sa strany prepínajú aj cez visibility presne v polovici otočenia (0,55 s / 2). */
#sp-vianoce-pexeso .face {
  transition: visibility 0s 0.27s;
}

#sp-vianoce-pexeso .front {
  visibility: hidden;
}

#sp-vianoce-pexeso .gift.open .front, #sp-vianoce-pexeso .gift.done .front, #sp-vianoce-pexeso .gift.shown .front {
  visibility: visible;
}

#sp-vianoce-pexeso .gift.open .back, #sp-vianoce-pexeso .gift.done .back, #sp-vianoce-pexeso .gift.shown .back {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  #sp-vianoce-pexeso .face {
    transition: none;
  }
}
/* odpočet do 8:00 v jednom riadku s textom */
#sp-vianoce-pexeso .next {
  display: block;
}

/* bočné menu sa ukáže len vtedy, keď je pexeso na obrazovke (nie nad hlavičkou ani pätičkou webu) */
#sp-vianoce-pexeso .rail {
  transition: opacity 0.25s, visibility 0.25s;
}

#sp-vianoce-pexeso .rail.px-off {
  opacity: 0;
  visibility: hidden;
}

#sp-vianoce-pexeso .sbar.px-off {
  opacity: 0;
}

/* hlásenie dole musí byť nad tlačidlom „hore“ a chatom webu */
#sp-vianoce-pexeso .toast {
  z-index: 1045;
}

/* výhra z predchádzajúceho dňa, ktorá ešte platí */
#sp-vianoce-pexeso .last {
  max-width: 640px;
  margin: 0 auto clamp(14px, 2.4vh, 22px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(245, 196, 81, 0.12);
  box-shadow: inset 0 0 0 1.5px rgba(245, 196, 81, 0.45);
  font-size: 15px;
  text-align: center;
}

#sp-vianoce-pexeso .last b {
  color: var(--gold);
}

#sp-vianoce-pexeso .last code {
  font: 800 15px var(--font);
  background: var(--card);
  color: var(--card-ink);
  padding: 3px 9px;
  border-radius: 8px;
  -webkit-user-select: all;
  -moz-user-select: all;
       user-select: all;
}

/* ---------- hracia plocha (01. 12. 2026) ----------
   Problém v 003: šírka plochy sa počítala z výšky okna a mala najmenej 400 px, takže na nízkych a širokých oknách
   (notebook 1082 × 637) bola plocha malá (darček 75 px) a písmo výhry, počítané zo šírky okna, väčšie ako darček.
   Teraz: JS (fitBoard v main-004.js) zmeria voľné miesto a vyberie rozloženie s najväčším darčekom:
   4 × 3, 3 × 4 (úzke okno) alebo 6 × 2 (široké a nízke okno). Nastaví --px-cols (stĺpce), --px-table (šírka plochy)
   a --px-tile (šírka darčeka). Písmo v darčeku sa počíta z --px-tile; keď sa dlhý text nezmestí, JS ho zmenší cez --px-fs.
   Bez JS ostáva pôvodné rozloženie 4 × 3 (na mobile 3 × 4). */
#sp-vianoce-pexeso .board {
  grid-template-columns: repeat(var(--px-cols, 4), minmax(0, 1fr));
}
#sp-vianoce-pexeso .play .table.px-fit {
  max-width: var(--px-table);
}
#sp-vianoce-pexeso .front {
  padding: max(5px, var(--px-tile, 90px) * 0.06);
}
#sp-vianoce-pexeso .front > span {
  max-width: 100%;
}
#sp-vianoce-pexeso .front .lbl {
  font-size: calc(max(9px, var(--px-tile, 90px) * 0.105) * var(--px-fs, 1));
  line-height: 1.15;
}
#sp-vianoce-pexeso .front .val {
  margin: calc(var(--px-tile, 90px) * 0.025) 0;
  font-size: calc(max(16px, var(--px-tile, 90px) * 0.27) * var(--px-fs, 1));
  white-space: nowrap;
}
#sp-vianoce-pexeso .front .sub {
  font-size: calc(max(9px, var(--px-tile, 90px) * 0.1) * var(--px-fs, 1));
  line-height: 1.2;
  overflow-wrap: break-word;
}
#sp-vianoce-pexeso .front .pic {
  font-size: calc(var(--px-tile, 90px) * 0.36 * var(--px-fs, 1));
}

@media (max-width: 560px) {
  #sp-vianoce-pexeso .board {
    grid-template-columns: repeat(var(--px-cols, 3), minmax(0, 1fr));
  }
}
/* nízke okno na notebooku a tablete na šírku: menej miesta okolo plochy, viac pre darčeky
   (sneh dole ostáva dosť vysoký, aby šípka „Pravidlá hry“ stála na ňom) */
@media (min-width: 641px) and (max-height: 820px) {
  #sp-vianoce-pexeso .play {
    padding-top: clamp(16px, 3vh, 32px);
    padding-bottom: 140px;
  }
  #sp-vianoce-pexeso .drift {
    height: 130px;
  }
  #sp-vianoce-pexeso .play h2 {
    font-size: min(clamp(32px, 4.4vw, 56px), 6.6vh);
  }
  #sp-vianoce-pexeso .play .play-head {
    margin-bottom: clamp(12px, 2.4vh, 24px);
  }
  #sp-vianoce-pexeso .play .table {
    padding: 14px 16px 16px;
  }
  #sp-vianoce-pexeso .play .status {
    margin-bottom: 10px;
  }
}
/* ---------- rozlíšenie výhier (01. 12. 2026) ----------
   Milan: ľudia si mýlili „−3 € na masáže“ a „−3 € na nákup“ a mysleli si, že vyhrali. Každá výhra dňa má vlastnú farbu
   (JS dá darčeku triedu pc0 až pc5 podľa poradia výhry v ceny.js), dvojica má vždy rovnakú farbu.
   Kategória („masáže“) je farebný štítok, „od 50 €“ pod ním malým. Kontrast farby na pozadí aj bieleho textu na farbe aspoň 5 : 1. */
#sp-vianoce-pexeso .pc0 {
  --pc: #1b7340;
  --pc-bg: #e2f3e7;
}
#sp-vianoce-pexeso .pc1 {
  --pc: #1d5aa6;
  --pc-bg: #e3edfa;
}
#sp-vianoce-pexeso .pc2 {
  --pc: #a5490a;
  --pc-bg: #fdeadb;
}
#sp-vianoce-pexeso .pc3 {
  --pc: #7434a8;
  --pc-bg: #f1e5fa;
}
#sp-vianoce-pexeso .pc4 {
  --pc: #8a5d00;
  --pc-bg: #fdf0c2;
}
#sp-vianoce-pexeso .pc5 {
  --pc: #0e6f74;
  --pc-bg: #dff3f3;
}
#sp-vianoce-pexeso .gift.prize .front {
  background: var(--pc-bg, var(--card));
  box-shadow: inset 0 0 0 4px var(--pc, var(--gold));
}
#sp-vianoce-pexeso .gift.prize.done .front {
  box-shadow: inset 0 0 0 4px var(--pc, var(--gold)), 0 0 0 3px #fff, 0 0 26px 8px rgba(245, 196, 81, 0.75);
}
#sp-vianoce-pexeso .gift.prize .front .lbl, #sp-vianoce-pexeso .gift.prize .front .val {
  color: var(--pc, var(--red));
}
#sp-vianoce-pexeso .front .cat {
  display: inline-block;
  margin: calc(var(--px-tile, 90px) * 0.02) 0;
  padding: 0.18em 0.65em;
  border-radius: 999px;
  background: var(--pc, var(--card-ink));
  color: #fff;
  font-size: calc(max(10px, var(--px-tile, 90px) * 0.12) * var(--px-fs, 1));
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: break-word;
}
#sp-vianoce-pexeso .gift.prize-deal .front {
  background: var(--red);
  box-shadow: inset 0 0 0 3px var(--gold);
}
#sp-vianoce-pexeso .gift.prize-deal .front .lbl {
  color: var(--gold);
}
#sp-vianoce-pexeso .gift.prize-deal .front .val {
  color: #fff;
}
#sp-vianoce-pexeso .gift.prize-deal .front .cat {
  background: #fff;
  color: var(--red);
}
