/* jener.dev/app: deals page */
::selection{background:rgb(217 119 87 / 35%);color:var(--ink)}
.jx-search{caret-color:var(--accent)}
.jx-price{font-variant-numeric:tabular-nums}
.jx-card:focus-visible,.jx-chips button:focus-visible,.jx-xmas:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.jx h1{text-wrap:balance}
body.jd .jx-price em{font-family:inherit!important;font-style:normal!important;font-weight:700!important;font-size:11.5px!important;background:none!important;color:#3fb96f!important;-webkit-text-fill-color:#3fb96f!important;letter-spacing:0;white-space:nowrap}
main#main{position:relative;z-index:1;background:var(--paper,#17130f)}
.jx{max-width:1180px;margin:0 auto;padding:clamp(28px,6vw,64px) 16px 56px}
.jx-kicker{font:600 12px/1 var(--mono,ui-monospace,monospace);letter-spacing:.28em;text-transform:uppercase;color:var(--accent);margin:0 0 12px}
.jx h1{margin:0}
.jx-sub{color:var(--soft);max-width:560px;margin:12px 0 0}
.jx-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:24px 0 12px}
.jx-search{flex:1 1 260px;min-height:46px;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;font-size:16px;transition:border-color .2s,box-shadow .2s}
.jx-search:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--tint)}
.jx-upd{font-size:12.5px;color:var(--soft)}
.jx-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 0 18px;padding:2px 0;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
/* fade only on the side that has more chips to scroll to */
.jx-chips.more-r{-webkit-mask:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
.jx-chips.more-l{-webkit-mask:linear-gradient(90deg,transparent,#000 36px);mask:linear-gradient(90deg,transparent,#000 36px)}
.jx-chips.more-l.more-r{-webkit-mask:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent);mask:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent)}
.jx-chips::-webkit-scrollbar{display:none}
.jx-chips button{flex:none;scroll-snap-align:start;border:1px solid var(--line);background:var(--card);color:var(--soft);border-radius:99px;padding:0 15px;min-height:40px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .2s,color .2s,border-color .2s}

.jx-chips button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#1a120c}
.jx-xmas{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px 18px;border-radius:16px;margin-bottom:18px;background:var(--card);border:1px solid var(--line);color:var(--ink);font:inherit;cursor:pointer;transition:border-color .2s}
.jx-xmas[hidden]{display:none}
.jx-xmas:hover{border-color:rgb(217 119 87 / 45%)}
.jx-xmas b{display:block;font-size:16px}.jx-xmas small{color:var(--soft)}.jx-xmas .go{margin-left:auto;color:var(--link);font-weight:700;white-space:nowrap}
.jx-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(min-width:720px){.jx-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
@media(min-width:1020px){.jx-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.jx-card{display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;text-decoration:none;color:var(--ink);box-shadow:var(--shadow);transition:transform .35s cubic-bezier(.34,1.56,.64,1),border-color .2s}
.jx-card:hover{border-color:rgb(217 119 87 / 45%)}
.jx-grid.in .jx-card{animation:jxCard .5s cubic-bezier(.16,1,.3,1) both}
@keyframes jxIn{from{opacity:.001}}
.jx-card.glitch{box-shadow:inset 0 0 0 1.5px #e5484d,var(--shadow)}
.jx-ph{aspect-ratio:1;background:#fff;position:relative;overflow:hidden}.jx-ph img{display:block;width:100%;height:100%;object-fit:contain}
.jx-ph.none{background:rgb(254 251 232 / 5%);display:grid;place-items:center;font-size:34px}
.jx-tag{position:absolute;left:7px;top:7px;padding:3px 9px;border-radius:99px;background:rgb(20 17 15 / 86%);color:#fff;font-size:11px;font-weight:700}
.glitch .jx-tag{background:#e5484d}
.jx-body{padding:10px 11px 12px;display:flex;flex-direction:column;gap:3px;flex:1}
.jx-price{font-size:17px;font-weight:800;letter-spacing:-.01em}.jx-price s{font-size:12px;font-weight:400;color:var(--soft);margin-left:5px}.jx-price em{font-style:normal;font-size:11.5px;color:#3fb96f;margin-left:5px}
.jx-name{font-size:13px;line-height:1.38;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.jx-store{margin-top:auto;padding-top:6px;display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--soft)}
.jx-store img{width:14px;height:14px;border-radius:3px}
.jx-empty{grid-column:1/-1;text-align:center;color:var(--soft);padding:50px 10px}
.jx-sk{background:var(--card);border-radius:16px;aspect-ratio:.72;animation:jxP 1.1s ease-in-out infinite alternate}@keyframes jxP{to{opacity:.45}}
.jx-statue{right:-6%;top:0;width:min(46vw,520px);opacity:.22}@media(max-width:720px){.jx-statue{width:72vw;opacity:.16}}
.jx-statue img{position:absolute;inset:0;opacity:0;transition:opacity .6s ease}.jx-statue img:first-child{position:relative}.jx-statue img.on{opacity:1}
.jx-px{width:min(60vw,300px);margin:40px auto 0;mix-blend-mode:lighten;-webkit-mask:linear-gradient(#000 55%,transparent);mask:linear-gradient(#000 55%,transparent)}.jx-px img{display:block;width:100%;height:auto;image-rendering:pixelated;opacity:.4;filter:brightness(1)}
.jx-chips button,.jx-tag{display:inline-flex;align-items:center}
.jx-i{display:inline-block;width:1.05em;height:1.05em;vertical-align:-.17em;margin-right:6px;flex:none}.jx-xi{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:rgb(217 119 87 / 16%);color:var(--accent)}.jx-xi .jx-i{width:24px;height:24px;margin:0}.jx-ph.none>.jx-i{width:38px;height:38px;margin:0;color:var(--soft);opacity:.5}.jx-tag .jx-i{width:12px;height:12px;margin-right:4px}
.jx-note{color:var(--soft);max-width:62ch;margin-left:auto;margin-right:auto;font-size:12.5px;margin-top:28px;text-align:center}
@media(prefers-reduced-motion:reduce){.jx *,.jx-grid.in .jx-card{animation:none!important;transition:none!important}}
.jx-sprite{position:absolute;width:0;height:0;overflow:hidden}
.jx-moreb{display:block;margin:18px auto 0;min-height:46px;padding:0 22px;border-radius:99px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;font-weight:600;cursor:pointer}.jx-moreb:hover{border-color:rgb(217 119 87 / 45%)}.jx-moreb[hidden]{display:none}
/* phones: thumb-friendly targets, no grey tap flash, safe-area padding, quick taps */
@media (max-width: 720px){
  .jx{padding:20px 14px calc(40px + env(safe-area-inset-bottom))}
  .jx h1{font-size:clamp(30px,9vw,40px)}
  .jx-sub{font-size:15px;margin-top:10px}
  .jx-bar{margin:18px 0 10px}
  .jx-chips{margin-bottom:14px}
  .jx-grid{gap:8px}
  .jx-body{padding:9px 9px 11px}
  .jx-name{font-size:12.5px}
  .jx-xmas{padding:12px 14px;margin-bottom:14px}
}
.jx a,.jx button,.jx input{-webkit-tap-highlight-color:transparent;touch-action:manipulation}

.jx-sky{position:fixed;inset:0;width:100vw;height:100vh;z-index:24;pointer-events:none;opacity:.5}
@media (max-width:640px){.jx-sky{opacity:.42}}
body.jd .jd-sky{opacity:.95}
/* title: the site's display face, tight and heavy */

/* Deals splash: the app's hands reach in, resolving px16 → px48 → ASCII, with a star field and a typed boot line */
.jx-splash{overflow:hidden;animation-delay:1.45s!important}
.jx-splash svg{position:relative;z-index:2}
.jx-hand{position:absolute;right:0;top:22vh;width:min(46vw,500px);aspect-ratio:760/330;opacity:0;z-index:1;
  -webkit-mask:linear-gradient(90deg,#000 55%,transparent);mask:linear-gradient(90deg,#000 55%,transparent);animation:jxReach 1.5s cubic-bezier(.2,.7,.2,1) forwards}
.jx-hand.L{right:auto;left:0;top:auto;bottom:22vh;aspect-ratio:760/291;-webkit-mask:linear-gradient(270deg,#000 55%,transparent);mask:linear-gradient(270deg,#000 55%,transparent);animation-name:jxReachL}
.jx-hand img{position:absolute;inset:0;width:100%;height:100%;opacity:0}
.jx-hand .p16,.jx-hand .p48{image-rendering:pixelated}
.jx-hand .p16{animation:jxP16 1.4s steps(1) forwards}
.jx-hand .p48{animation:jxP48 1.4s steps(1) forwards}
.jx-hand .asc{animation:jxAsc 1.4s steps(1) forwards}
.jx-sst{position:absolute;inset:0;opacity:0;animation:jxIn .5s ease forwards}
.jx-sst span{position:absolute;font:11px/1 ui-monospace,Consolas,monospace;color:#ede6da;opacity:.45;animation:twk 1.1s ease-in-out infinite alternate}
.jx-sst span:nth-child(3n){color:#d97757}
.jx-sst span:nth-child(1){left:8%;top:12%}.jx-sst span:nth-child(2){left:22%;top:31%}.jx-sst span:nth-child(3){left:37%;top:9%}
.jx-sst span:nth-child(4){left:61%;top:15%}.jx-sst span:nth-child(5){left:83%;top:8%}.jx-sst span:nth-child(6){left:91%;top:41%}
.jx-sst span:nth-child(7){left:72%;top:63%}.jx-sst span:nth-child(8){left:55%;top:82%}.jx-sst span:nth-child(9){left:30%;top:88%}
.jx-sst span:nth-child(10){left:12%;top:70%}.jx-sst span:nth-child(11){left:4%;top:47%}.jx-sst span:nth-child(12){left:46%;top:27%}
.jx-sst span:nth-child(13){left:66%;top:36%}.jx-sst span:nth-child(14){left:18%;top:54%}.jx-sst span:nth-child(15){left:88%;top:78%}
.jx-sst span:nth-child(16){left:40%;top:66%}.jx-sst span:nth-child(17){left:77%;top:25%}.jx-sst span:nth-child(18){left:26%;top:18%}
.jx-boot{position:absolute;left:50%;top:calc(50% + 62px);transform:translateX(-50%);z-index:2;font:500 11px/1 ui-monospace,Consolas,monospace;letter-spacing:.08em;color:#d97757;white-space:nowrap;overflow:hidden;width:0;opacity:.85;animation:jxType .9s steps(16) .5s forwards}
@keyframes jxReach{0%{opacity:0;transform:translate(18px,-8px)}35%{opacity:1}100%{opacity:1;transform:none}}
@keyframes jxReachL{0%{opacity:0;transform:translate(-18px,8px)}35%{opacity:1}100%{opacity:1;transform:none}}
@keyframes jxP16{0%{opacity:0}8%{opacity:.4}30%{opacity:0}}
@keyframes jxP48{0%,30%{opacity:0}31%{opacity:.5}100%{opacity:.22}}
@keyframes jxAsc{0%,42%{opacity:0}43%{opacity:1}100%{opacity:.85}}
@keyframes jxIn{to{opacity:1}}
@keyframes twk{to{opacity:.12}}
@keyframes jxType{to{width:16ch}}
@media (prefers-reduced-motion:reduce){.jx-hand,.jx-sst,.jx-boot{display:none}.jx-splash{animation-delay:.65s!important}}

/* day divider spanning the grid: a mono label with a hairline to the edge */
.jx-day{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin:14px 0 2px;font:600 11px/1 ui-monospace,"JetBrains Mono",Consolas,monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--soft)}
.jx-day:first-child{margin-top:0}
.jx-day::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--line),transparent)}
.jx-day span{color:#d97757}

/* quieter day dividers: barely-there label, no accent */
.jx-day{color:var(--ink);opacity:.3;font-weight:500;letter-spacing:.16em;margin:18px 0 0}
.jx-day span{color:inherit}
.jx-day::after{background:linear-gradient(90deg,currentColor,transparent);opacity:.35}

/* phones: chips stay reachable while scrolling, tighter tap feedback, lighter motion */
@media (max-width:720px){
  .jx-chips{position:sticky;top:var(--jx-head,60px);z-index:20;margin-inline:-14px;padding:8px 14px;background:none}
  .jx-day{margin-top:14px}
  .jx-card{transition:transform .18s ease}
  .jx-card:active{transform:scale(.97)}
  .jx-grid.in .jx-card{animation-duration:.3s!important;animation-delay:calc(min(var(--i,0),8) * 18ms)!important}
  .jx-hand{width:78vw;top:16vh}.jx-hand.L{bottom:16vh}
  .jx-ph img{image-rendering:auto}
}

/* tab switch: cards rise in a short stagger, the statue dips and re-resolves */
@keyframes jxCard{from{opacity:0;transform:translateY(14px) scale(.97)}}
.jx-grid.in .jx-card:nth-of-type(2){animation-delay:30ms}.jx-grid.in .jx-card:nth-of-type(3){animation-delay:60ms}.jx-grid.in .jx-card:nth-of-type(4){animation-delay:90ms}
.jx-grid.in .jx-card:nth-of-type(5){animation-delay:120ms}.jx-grid.in .jx-card:nth-of-type(6){animation-delay:150ms}.jx-grid.in .jx-card:nth-of-type(7){animation-delay:180ms}
.jx-grid.in .jx-card:nth-of-type(n+8){animation-delay:210ms}
.jx-grid.in .jx-day{animation:jxDay .4s ease both}
@keyframes jxDay{from{opacity:0;transform:translateX(-8px)}}
.jx-statue.swap{animation:jxSwap .7s cubic-bezier(.16,1,.3,1)}
@keyframes jxSwap{from{opacity:0;transform:translateY(10px) scale(.97);filter:blur(3px)}}
.jx-chips button{transition:background-color .25s,color .25s,border-color .25s,transform .3s cubic-bezier(.34,1.56,.64,1)}
.jx-chips button:active{transform:scale(.93)}
.jx-chips button[aria-pressed="true"]{animation:jxChip .35s cubic-bezier(.34,1.56,.64,1)}
@keyframes jxChip{40%{transform:scale(1.07)}}

/* Christmas box: Georgia italic title like the site's accent words */
.jx-xmas b{font:italic 400 21px/1.1 Georgia,"Times New Roman",serif;letter-spacing:-.01em;color:#e8a283;margin-bottom:3px}
.jx-xmas small{font-size:13.5px}
.jx-xmas .go{font-weight:600;font-size:15px}
@media (max-width:720px){.jx-xmas b{font-size:19px}}
@media (prefers-reduced-motion:reduce){.jx-grid.in .jx-card,.jx-grid.in .jx-day,.jx-statue.swap,.jx-chips button{animation:none!important}}

/* when the deal was posted, so old ones are easy to spot */
.jx-when{margin-left:auto;padding-left:8px;white-space:nowrap;font-variant-numeric:tabular-nums;opacity:.75}
.jx-when.old{opacity:.5}
.jx-store .jx-sn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* phones: the stuck tabs slide away while scrolling down and come back on scroll up; a soft fade (not a box) keeps them readable */
@media (max-width:720px){
  .jx-chips{background:linear-gradient(var(--paper) 62%,transparent)!important;padding-bottom:16px;transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .25s ease}
  .jx-chips.jx-away{transform:translateY(calc(-100% - 8px));opacity:0;pointer-events:none}
}

/* tab bar hide/show as real motion: the bar lifts and fades, each tab follows a beat later */
@media (max-width:720px){
  .jx-chips{transition:none!important;will-change:transform,opacity}
  .jx-chips.jx-away{transform:none;opacity:1;animation:jxBarOut .42s cubic-bezier(.4,0,.2,1) forwards}
  .jx-chips.jx-back{animation:jxBarIn .5s cubic-bezier(.16,1,.3,1) both}
  .jx-chips.jx-away button{animation:jxTabOut .34s cubic-bezier(.4,0,.2,1) both}
  .jx-chips.jx-back button{animation:jxTabIn .5s cubic-bezier(.34,1.4,.64,1) both}
  .jx-chips.jx-away button:nth-child(2),.jx-chips.jx-back button:nth-child(2){animation-delay:30ms}
  .jx-chips.jx-away button:nth-child(3),.jx-chips.jx-back button:nth-child(3){animation-delay:60ms}
  .jx-chips.jx-away button:nth-child(4),.jx-chips.jx-back button:nth-child(4){animation-delay:90ms}
  .jx-chips.jx-away button:nth-child(n+5),.jx-chips.jx-back button:nth-child(n+5){animation-delay:120ms}
}
@keyframes jxBarOut{0%{transform:none;opacity:1}60%{opacity:.9}100%{transform:translateY(calc(-100% - 10px));opacity:0;visibility:hidden}}
@keyframes jxBarIn{from{transform:translateY(calc(-100% - 10px));opacity:0}}
@keyframes jxTabOut{to{transform:translateY(-10px) scale(.92);opacity:0;filter:blur(2px)}}
@keyframes jxTabIn{from{transform:translateY(-12px) scale(.9);opacity:0;filter:blur(2px)}}
@media (prefers-reduced-motion:reduce){.jx-chips.jx-away,.jx-chips.jx-back,.jx-chips.jx-away button,.jx-chips.jx-back button{animation-duration:.01s!important}}
/* no backdrop behind the floating tabs */
@media (max-width:720px){.jx-chips{background:none!important;padding-bottom:8px}}
/* calmer bar motion: one smooth slide for the whole row, no per-tab bounce (that read as shaking) */
@media (max-width:720px){
  .jx-chips.jx-away button,.jx-chips.jx-back button{animation:none!important}
  .jx-chips{will-change:auto;backface-visibility:hidden;transform:translateZ(0)}
  .jx-chips.jx-away{animation:jxBarOut .36s cubic-bezier(.4,0,.2,1) forwards}
  .jx-chips.jx-back{animation:jxBarIn2 .42s cubic-bezier(.22,1,.36,1) both}
}
@keyframes jxBarIn2{from{transform:translate3d(0,calc(-100% - 10px),0);opacity:0}to{transform:translateZ(0);opacity:1}}
.jx-chips button[hidden]{display:none}
.nw-nav{display:flex;align-items:center;justify-content:center;gap:14px;margin:10px 0 18px}
.nw-nav button{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--soft);font:600 22px/1 inherit;display:grid;place-items:center;padding:0 0 3px;cursor:pointer;transition:background .2s,transform .15s}
.nw-nav button:hover{background:var(--accent);color:#1a120c}.nw-nav button:active{transform:scale(.94)}
.nw-nav small{font-variant-numeric:tabular-nums;color:var(--soft);min-width:3.2em;text-align:center}
