.sfjul {
  --night:#102b24; --fir:#163b30; --wine:#622835; --gold:#edc887; --cream:#fff7e9; --ink:#1b352c;
  max-width:1220px; margin:1rem auto 3rem; color:var(--ink);
  font-family: "Inter", system-ui, sans-serif; isolation:isolate;
}
.sfjul *, .sfjul *::before, .sfjul *::after { box-sizing:border-box }
.sfjul [hidden], .sfjul-banner[hidden] { display:none !important }
.sfjul h1,.sfjul h2,.sfjul p { margin:0 }
.sfjul h1,.sfjul h2,.sfjul-number { font-family:"Baskervville",Georgia,serif; font-weight:400 }
.sfjul-hero {
  position:relative; isolation:isolate; overflow:hidden; min-height:400px; display:grid; align-items:center;
  border-radius:26px 26px 0 0; color:var(--cream);
  background:radial-gradient(ellipse at 82% 35%,#3c6151 0%,transparent 47%),linear-gradient(135deg,#10271f,#173b30);
}
.sfjul-hero::after {
  content:""; position:absolute; z-index:-2; inset:13px; border:1px solid #eac38755; border-radius:19px 19px 0 0; pointer-events:none;
}
.sfjul-hero-copy { position:relative; z-index:1; padding:clamp(2rem,6vw,5rem); max-width:715px }
.sfjul-kicker { color:var(--gold); letter-spacing:.17em; text-transform:uppercase; font-size:.75rem; font-weight:750 }
.sfjul h1 { color:inherit; font-size:clamp(3rem,7.6vw,6.7rem); line-height:.91; letter-spacing:-.065em; margin:.7rem 0 1.25rem }
.sfjul h1 span { font-size:.34em; vertical-align:middle; letter-spacing:0 }
.sfjul .sfjul-intro { color:#fff7e9; font-size:clamp(1rem,2vw,1.2rem); max-width:30ch; line-height:1.5 }
.sfjul .sfjul-preview { display:inline-block; margin-top:1.2rem; padding:.42rem .8rem; color:var(--gold); border:1px solid #edc88785; border-radius:99px; font-size:.78rem }
.sfjul-art { width:51%; height:100%; position:absolute; right:0; bottom:0; z-index:-1; pointer-events:none; overflow:hidden }
.sfjul-art::after {
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle,#fff0d694 0 1px,transparent 1.6px) 6px 23px/53px 59px,
    radial-gradient(circle,#edc88790 0 1px,transparent 1.7px) 10px 0/89px 65px;
  mask-image:linear-gradient(90deg,transparent,#000 58%);
}
.sfjul-moon {
  position:absolute; display:block; width:59%; aspect-ratio:1; right:13%; top:13%; border-radius:50%;
  background:radial-gradient(circle at 43% 30%,#f1cc94,#bc8852 66%,#875b38);
  opacity:.92; box-shadow:0 0 55px #f9d99c38; border:1px solid #f0d3ab;
}
.sfjul-snow { position:absolute; color:#fff3db; font-size:2.35rem; font-style:normal; z-index:3; text-shadow:0 0 16px #fff8 }
.sfjul-snow-a { top:21%; right:12%; animation:sfjul-drift 6s ease-in-out infinite }
.sfjul-snow-b { top:51%; left:15%; font-size:1.6rem }
.sfjul-snow-c { top:14%; left:27%; font-size:1.05rem; animation:sfjul-drift 8s ease-in-out infinite reverse }
.sfjul-tree {
  position:absolute; display:block; background:linear-gradient(105deg,#0b221a,#2b5241);
  clip-path:polygon(50% 0,68% 27%,60% 27%,80% 55%,68% 54%,95% 84%,54% 81%,54% 100%,46% 100%,46% 81%,5% 84%,32% 54%,20% 55%,40% 27%,32% 27%);
}
.sfjul-tree-left { width:42%; height:68%; right:50%; bottom:-8%; transform:rotate(-12deg) }
.sfjul-tree-right { width:49%; height:86%; right:-5%; bottom:-14%; transform:rotate(7deg) }
.sfjul-present {
  position:absolute; display:block; width:24%; aspect-ratio:1.13; bottom:10%; right:37%; z-index:1;
  background:linear-gradient(90deg,transparent 43%,#f4d19b 44% 57%,transparent 58%),
    repeating-linear-gradient(135deg,#932f45 0 10px,#842b40 10px 21px);
  border-radius:3px; border:1px solid #efbe81; box-shadow:9px 14px 20px #0b17128c; transform:rotate(-12deg);
}
.sfjul-present::before,.sfjul-present::after {
  position:absolute; content:""; width:30%; height:24%; bottom:98%; border:3px solid #f7d5a3;
  border-radius:70% 78% 0 78%; left:20%; transform:rotate(14deg);
}
.sfjul-present::after { left:49%; transform:scaleX(-1) rotate(14deg) }
.sfjul-present-two {
  width:21%; right:20%; bottom:9%; z-index:2; transform:rotate(11deg);
  background:linear-gradient(90deg,transparent 43%,#e5bb79 44% 57%,transparent 58%),
    repeating-linear-gradient(0deg,#396652 0 2px,#2a5342 2px 10px);
}
.sfjul-present-three {
  width:14%; right:31%; bottom:2%; z-index:3; transform:rotate(-3deg);
  background:linear-gradient(90deg,transparent 42%,#722d3d 43% 57%,transparent 58%),linear-gradient(125deg,#ffe6b4,#c99255);
}
.sfjul-board { border:1px solid #e8d9c2; border-top:0; background:#fbf3e5; border-radius:0 0 26px 26px; padding:clamp(.8rem,3.7vw,2.65rem) }
.sfjul-board-top { display:flex; align-items:center; justify-content:space-between; gap:.8rem; flex-wrap:wrap; margin-bottom:1rem }
.sfjul-board h2 { color:var(--ink); font-size:clamp(1.7rem,4vw,2.65rem) }
.sfjul-timer { display:flex; align-items:center; gap:.65rem; color:#30483e; font-size:.77rem }
.sfjul-timer strong { background:#eae1cf; border-radius:.5rem; font-variant-numeric:tabular-nums; letter-spacing:.09em; padding:.37em .75em }
.sfjul-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); list-style:none; padding:0; gap:clamp(.42rem,1.35vw,1rem); margin:0 }
.sfjul-tile { min-width:0; display:flex; --tile:#1c4436; --ribbon:#dcbb7e }
.sfjul-tile:nth-child(4n+2),.sfjul-tile:nth-child(4n+3) { --tile:#622835 }
.sfjul-tile:nth-child(7n+4):not(.sfjul-finale) { --tile:#f3dfbb; --ribbon:#9b6439; --number:#3c2a1e; --label:#533323 }
.sfjul-door {
  isolation:isolate; position:relative; min-width:0; overflow:hidden; width:100%; min-height:90px; aspect-ratio:1.24;
  margin:0; border:1px solid var(--ribbon); border-radius:9px; color:var(--number,#fff5e2);
  background:radial-gradient(ellipse at 55% 0%,#fff2,transparent 72%),var(--tile);
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:.24rem;
  text-align:center; padding:.58rem .24rem;
}
.sfjul-door::before,.sfjul-door::after { content:""; position:absolute; z-index:-1; pointer-events:none }
.sfjul-door::before { inset:5px; border:1px solid color-mix(in srgb,var(--ribbon) 55%,transparent); border-radius:5px }
.sfjul-door::after { inset:0; background:repeating-linear-gradient(135deg,transparent 0 6px,#ffffff12 6px 7px,transparent 7px 13px); mask-image:linear-gradient(120deg,#000 1%,transparent 33%,transparent 68%,#000 100%) }
button.sfjul-door { cursor:pointer; transition:transform .2s ease,box-shadow .2s ease }
button.sfjul-door:is(:hover,:focus-visible) { box-shadow:0 6px 16px #18352c31; transform:translateY(-3px) }
.sfjul :is(button,a):focus-visible,.sfjul-banner:focus-visible { outline:3px solid #a44713; outline-offset:3px }
.sfjul-number { font-size:clamp(1.8rem,4.4vw,3.25rem); line-height:1 }
.sfjul-label { color:var(--label,#ffecd1); font-size:clamp(.65rem,1.15vw,.8rem); line-height:1.2; font-weight:700 }
.sfjul-current .sfjul-door { box-shadow:0 0 0 2px #8b4e1d,0 0 0 5px #efd29c }
.sfjul-expired .sfjul-door { background:#5b514a; color:#fff7e9 }
.sfjul-expired .sfjul-label { color:#fff7e9 }
.sfjul-finale { --tile:#eac284; --ribbon:#925321; --number:#3b291c; --label:#4b2717 }
.sfjul-finale .sfjul-door { background-image:radial-gradient(ellipse,#fff5d8,transparent 76%),repeating-linear-gradient(55deg,transparent 0 7px,#9e5d3140 8px 9px,transparent 10px 17px) }
.sfjul-banner { display:flex; justify-content:center; gap:1em; margin:1rem 0; padding:1rem; background:#183c30; color:#fff3dc; border:1px solid #c99550; border-radius:10px; text-align:center; font-weight:700 }
.sfjul-banner:hover { color:#fff; text-decoration:underline }
.sfjul-modal { width:min(770px,calc(100% - 1.5rem)); max-height:calc(100dvh - 1.5rem); border:1px solid #e2b880; border-radius:19px; padding:0; color:var(--ink); background:var(--cream); overflow:auto; box-shadow:0 22px 75px #0007 }
.sfjul-modal[open] { animation:sfjul-open .34s cubic-bezier(.2,.7,.3,1) both }
.sfjul-modal::backdrop { background:#0b211bcc }
.sfjul-modal-inner { position:relative; display:grid; grid-template-columns:36% minmax(0,1fr) }
.sfjul-close { position:absolute; top:.62rem; right:.65rem; width:44px; height:44px; border:1px solid #ab8b68; border-radius:50%; background:var(--cream); color:var(--ink); cursor:pointer; font-size:1.5rem; z-index:4; line-height:1 }
.sfjul-modal form { display:contents }
.sfjul-deal-art { display:grid; place-items:center; min-height:250px; background:radial-gradient(#376351,#153b2e); color:var(--gold); overflow:hidden }
.sfjul-deal-art span { font-size:clamp(5rem,15vw,9rem) }
.sfjul-deal-art img { width:100%; height:auto; max-height:360px; object-fit:contain; background:#f4eee4; border-radius:10px }
.sfjul-deal-art img:not([hidden]) + span { display:none }
.sfjul-deal-text { padding:2.35rem clamp(1rem,4vw,2rem) 1.2rem; min-width:0 }
.sfjul-deal-text .sfjul-kicker { color:#7c431f }
.sfjul-deal-text h2 { color:var(--ink); font-size:clamp(1.6rem,4vw,2.6rem); line-height:1.04; margin:.45rem 1rem .65rem 0 }
.sfjul-deal-text p { color:#405349; line-height:1.45; overflow-wrap:anywhere }
.sfjul-offer { display:flex; gap:.7rem; flex-wrap:wrap; align-items:center; margin:.85rem 0; color:#652539 }
.sfjul-offer > strong { background:#f1e3cd; border-radius:.45rem; padding:.4rem .65rem; line-height:1.4 }
.sfjul-offer [data-prices] { display:grid; line-height:1.2 }
.sfjul-offer [data-price] { font-size:1.4rem }
.sfjul-offer small { color:#544839 }
.sfjul-suggestions { margin-top:1rem }
.sfjul-suggestions h3 { margin:0 0 .35rem; color:var(--ink); font-size:.95rem }
.sfjul-suggestions ul { list-style:none; margin:0; padding:0; display:grid; gap:.35rem }
.sfjul-suggestions a { display:flex; align-items:center; gap:.6rem; min-height:44px; padding:.25rem .55rem; border:1px solid #ddc9a9; border-radius:.45rem; color:#1d4938; text-decoration:underline; background:#fff9ef }
.sfjul-suggestions img { width:34px; height:34px; object-fit:contain; border-radius:.25rem }
.sfjul-instructions { margin:.85rem 0 .25rem; font-weight:600 }
.sfjul-end { margin:.4rem 0 0; font-size:.9rem }
.sfjul-tile:target .sfjul-door { outline:2px solid var(--gold); outline-offset:3px }
.sfjul-code,.sfjul-actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin-top:.8rem }
.sfjul-code code { background:#f1e3cd; padding:.44rem .65rem; border-radius:.4rem; word-break:break-word }
.sfjul-cta,.sfjul-secondary { display:inline-flex; align-items:center; justify-content:center; min-height:44px; font:inherit; font-size:.88rem; font-weight:750; padding:.56rem .75rem; border-radius:.45rem; cursor:pointer; text-align:center }
.sfjul-cta { color:#fff7e9; background:#1d4938; border:1px solid #1d4938 }
.sfjul-cta:hover { color:#fff; background:#143528 }
.sfjul-secondary { color:#21392e; background:#fff7e9; border:1px solid #b39a76 }
.sfjul-feedback { margin-top:.4rem !important; font-size:.8rem }
.sfjul-confetti { position:absolute; overflow:hidden; inset:0; pointer-events:none; z-index:3 }
.sfjul-confetti i { position:absolute; top:-10px; left:var(--x); width:6px; height:10px; border-radius:2px; background:#cc9b51; animation:sfjul-fall 850ms ease-in var(--delay) forwards }
.sfjul-confetti i:nth-child(3n) { background:#723443 }
.sfjul-confetti i:nth-child(3n+1) { background:#496f57 }
.sfjul-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
@keyframes sfjul-open { from { opacity:0; transform:translateY(12px) scale(.96) } to { opacity:1; transform:none } }
@keyframes sfjul-drift { 50% { transform:translate(6px,10px) rotate(13deg) } }
@keyframes sfjul-fall { 100% { transform:translate(18px,280px) rotate(410deg); opacity:0 } }
@media (max-width:760px) {
  .sfjul-hero { min-height:380px; align-items:start }
  .sfjul-hero-copy { padding:2rem 1.5rem }
  .sfjul-art { width:68%; height:68%; mask-image:linear-gradient(90deg,transparent,#000 40%) }
  .sfjul-moon { width:58%; top:13% }
  .sfjul-grid { grid-template-columns:repeat(4,minmax(0,1fr)) }
}
@media (max-width:480px) {
  .sfjul-hero { min-height:332px }
  .sfjul-hero-copy { padding:1.8rem 1.3rem }
  .sfjul .sfjul-intro { max-width:24ch }
  .sfjul-art { width:71%; height:53% }
  .sfjul-door { min-height:72px; border-radius:7px }
  .sfjul-door::before { inset:3px }
  .sfjul-modal-inner { display:block }
  .sfjul-deal-art { min-height:110px; height:145px }
  .sfjul-deal-art img { height:145px; width:100%; padding:8px; object-fit:contain; object-position:center }
  .sfjul-deal-text { padding:1rem }
  .sfjul-actions .sfjul-cta { min-height:44px; width:100%; justify-content:center; text-align:center }
  .sfjul-code .sfjul-secondary { min-height:44px }
}
@media (prefers-reduced-motion:reduce) {
  .sfjul *,.sfjul *::before,.sfjul *::after { animation:none !important; transition:none !important }
  button.sfjul-door:is(:hover,:focus-visible) { transform:none }
}
