/*fe*//* re-coloured copy of assets/css/sealed.css src=3b44ae9d (street_evil.py) */
/* 0FF THE PRINT — LAST NIGHT, SEALED.
   The night arrives as a sealed pack instead of a wall of thumbnails.

   ⛔ SELF-CONTAINED AND SCOPED. An /events/ page carries its own inline
   stylesheet and already owns .wrap .back .grid .tile .lb .meta .foot and h1.
   Nothing in here may use one of those names. Everything is .seal / .sl-*.

   ⛔ The GRID IS NOT HIDDEN IN THE HTML. sealed.js hides it on boot, so a
   browser that never runs this file gets the plain gallery that shipped before
   the pack existed. Hiding it in markup would mean one failed request turns a
   client's find-your-photo page into an empty screen. */

.seal{margin-top:26px;display:grid;gap:20px;justify-items:center;text-align:center}
/* ⛔ The acts row and the hand are both empty before the pack is torn. As grid
   children they still take a row each and their gaps, which left a dead 60px
   band between the odds and the escape link. :empty collapses them. */
.seal > :empty{display:none}
@media (min-width:860px){
  .seal.has-hand{justify-items:stretch;text-align:left}
}

/* ---------------- the pack ---------------- */
.sl-pack{
  position:relative;width:min(268px,74vw);aspect-ratio:3/4;border-radius:14px;
  border:1px solid rgba(255,16,153,0.45);overflow:hidden;cursor:pointer;
  background:#140a12;padding:0;display:block;
  box-shadow:0 18px 50px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.05);
  transition:transform .18s ease, box-shadow .18s ease;
}
.sl-pack:hover{transform:translateY(-3px);box-shadow:0 24px 60px rgba(0,0,0,.7),0 0 34px rgba(255,121,198,.3)}
.sl-pack:active{transform:translateY(0)}
/* the night itself, dimmed under the foil so the pack looks like the room
   without spending a frame */
.sl-pack .art{position:absolute;inset:0;background:#140a12 center/cover no-repeat;
  filter:brightness(.42) saturate(.75) blur(1px);}
.sl-pack .foil{position:absolute;inset:0;
  background:
    repeating-linear-gradient(115deg,rgba(46,48,56,0.1) 0 2px,transparent 2px 7px),
    linear-gradient(150deg,rgba(111,9,68,0.75),rgba(8,39,93,0.55) 42%,rgba(111,9,68,0.6) 72%,rgba(20,10,18,.9));
  mix-blend-mode:screen;opacity:.85;}
.sl-pack .glare{position:absolute;inset:0;
  background:linear-gradient(105deg,transparent 38%,rgba(46,48,56,0.34) 48%,transparent 58%);
  transform:translateX(-60%);transition:transform .5s ease}
.sl-pack:hover .glare{transform:translateX(60%)}
.sl-pack .lip{position:absolute;left:0;right:0;top:0;height:34px;
  background:linear-gradient(180deg,rgba(46,48,56,0.22),rgba(46,48,56,0));
  border-bottom:1px dashed rgba(166,166,166,0.35)}
.sl-pack .face{position:absolute;inset:0;display:flex;flex-direction:column;
  justify-content:space-between;padding:42px 16px 16px;text-align:center}
.sl-pack .mk{font-family:var(--f-display);font-style:italic;font-weight:900;
  text-transform:uppercase;font-size:26px;line-height:.95;color:#ffffff;
  text-shadow:0 2px 14px rgba(0,0,0,.75)}
.sl-pack .mk i{font-style:italic;display:block;font-size:15px;letter-spacing:.16em;
  color:var(--pink-t,var(--pink));margin-top:5px}
.sl-pack .bot{font-family:var(--f-mono);font-size:9.5px;letter-spacing:.18em;
  text-transform:uppercase;color:rgba(255,255,255,0.86);text-shadow:0 1px 8px rgba(0,0,0,.8)}
.sl-pack .bot b{display:block;color:#ffffff;font-weight:500;font-size:11px;margin-bottom:4px}

/* ---------------- the party pack (10/3) ----------------
   The same button, a different body: the night's own full-art booster (pack.webp,
   the night's photo printed edge to edge on the pouch, drawn by makepack.py)
   instead of the drawn pack. Everything above still styles the plain .sl-pack;
   these rules undo the box and lay the picture and the words in.
   ⛔ The words are printed here, not in the picture. Same geometry as
      assets/css/pack.css: seals are the top and bottom 6.2%, the title sits on the
      darkened bottom third. */
.sl-pack.party{width:min(290px,76vw);aspect-ratio:520/878;border:0;border-radius:0;overflow:visible;
  background:none;box-shadow:none;filter:drop-shadow(0 18px 26px rgba(0,0,0,.65));
  transition:transform .18s ease, filter .18s ease}
.sl-pack.party:hover{transform:translateY(-4px) rotate(-1.5deg);box-shadow:none;
  filter:drop-shadow(0 0 22px rgba(255,121,198,.6))}
.sl-pack.party .pk-b,.sl-pack.party .pk-top{position:absolute;inset:0;display:block}
.sl-pack.party .pk-w{position:absolute;inset:0;width:100%;height:100%;display:block}
/* the tear line runs through the bottom of the top seal */
.sl-pack.party .pk-top{z-index:3;
  clip-path:polygon(0 0,100% 0,100% 6.4%,92% 7.6%,84% 6.2%,76% 7.6%,68% 6.2%,60% 7.6%,52% 6.2%,44% 7.6%,36% 6.2%,28% 7.6%,20% 6.2%,12% 7.6%,4% 6.2%,0 7%)}
.sl-pack.party .pk-b{z-index:1;
  clip-path:polygon(0 7%,4% 6.2%,12% 7.6%,20% 6.2%,28% 7.6%,36% 6.2%,44% 7.6%,52% 6.2%,60% 7.6%,68% 6.2%,76% 7.6%,84% 6.2%,92% 7.6%,100% 6.4%,100% 100%,0 100%)}
.sl-pack.party .pk-b::after{content:'';position:absolute;inset:6% 2%;pointer-events:none;mix-blend-mode:screen;
  background:linear-gradient(105deg,transparent 30%,rgba(46,48,56,0.2) 44%,transparent 56%);
  background-size:260% 100%;background-position:120% 0;transition:background-position .6s ease}
.sl-pack.party:hover .pk-b::after{background-position:-20% 0}
.sl-pack.party .face{z-index:2;display:block;padding:0}
.sl-pack.party .mk{position:absolute;left:6%;right:6%;top:auto;bottom:13.4%;height:auto;display:block;text-align:center;text-wrap:balance;overflow:visible;
  font-size:33px;line-height:.88;color:#ffffff;-webkit-text-stroke:4.4px #16060f;paint-order:stroke fill;
  text-shadow:0 2.6px 0 #ff79c6,0 0 9px rgba(0,0,0,.7);transform:rotate(-3deg)}
.sl-pack.party .mk.short{font-size:50px;line-height:.86}
.sl-pack.party .mk.long{font-size:25px;line-height:.92}
/* one line, never two: "CLUB 212 · BAR HOUSE 09.17.26 · 59 FRAMES · SEALED" ran off the foil, so the venue is under the pack now */
.sl-pack.party .bot{position:absolute;left:4%;right:4%;top:auto;bottom:7.6%;font-size:8.5px;letter-spacing:.16em;line-height:1;
  text-shadow:0 1px 3px #000,0 0 6px rgba(0,0,0,.8)}
.sl-pack.party .bot b{display:none}
.sl-pack.party .bot i{display:block;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f1ecf4}
.sl-pack.party.rip .pk-top{animation:sl-tear .52s .08s cubic-bezier(.3,.7,.3,1) forwards}
@keyframes sl-tear{to{transform:translate(58%,-220%) rotate(34deg);opacity:0}}

/* tearing */
.sl-pack.rip{pointer-events:none;animation:sl-shake .42s ease}
.sl-pack.rip .lip{animation:sl-peel .5s .1s ease-in forwards}
.sl-pack.gone{animation:sl-away .34s ease forwards}
@keyframes sl-shake{
  0%,100%{transform:rotate(0)} 20%{transform:rotate(-2.2deg)}
  45%{transform:rotate(2deg)} 70%{transform:rotate(-1.2deg)} }
@keyframes sl-peel{to{transform:translateY(-40px) rotate(-7deg);opacity:0}}
@keyframes sl-away{to{transform:scale(.82) translateY(14px);opacity:0}}

/* ---------------- the copy under it ---------------- */
.sl-say{max-width:520px}
.sl-say .big{font-family:var(--f-display);font-style:italic;font-weight:900;
  text-transform:uppercase;font-size:clamp(23px,4.4vw,34px);line-height:1;color:var(--ink-t,var(--ink))}
.sl-say .sub{font-family:var(--f-mono);font-size:11px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--muted-t,var(--muted));margin-top:9px;line-height:1.9}
.sl-say .odds{font-family:var(--f-mono);font-size:10px;letter-spacing:.13em;
  text-transform:uppercase;color:#e4e2e6;margin-top:12px;line-height:1.9}
.sl-say .odds b{color:var(--pink-deep-t,var(--pink-deep));font-weight:500}

/* ---------------- the hand ---------------- */
.sl-hand{display:grid;grid-template-columns:repeat(auto-fill,minmax(0,168px));
  gap:13px;width:100%;justify-content:center}
@media (min-width:860px){ .sl-hand{justify-content:start} }

.sl-card{position:relative;border-radius:11px;overflow:hidden;background:#0d0c11;
  border:1px solid var(--line-l,var(--line));cursor:zoom-in;padding:0;display:block;width:100%;
  opacity:0;transform:translateY(16px) scale(.94);
  animation:sl-deal .42s cubic-bezier(.2,.9,.3,1.2) forwards}
@keyframes sl-deal{to{opacity:1;transform:none}}
.sl-card img{width:100%;height:auto;display:block;aspect-ratio:3/4;object-fit:cover}
.sl-card .tag{position:absolute;left:0;right:0;bottom:0;display:flex;
  justify-content:space-between;align-items:center;gap:6px;padding:7px 9px;
  background:linear-gradient(180deg,transparent,rgba(6,5,9,.92));
  font-family:var(--f-mono);font-size:8.5px;letter-spacing:.14em;text-transform:uppercase}
.sl-card .no{color:rgba(255,255,255,0.72)}
.sl-card .rar{color:var(--muted-t,var(--muted))}

/* rarity.
   ⛔ THE SHEEN IS AN ::after OVERLAY, NEVER a blend on the image. Blending the
   photograph itself is what erased the card art on the homepage: with
   mix-blend-mode:lighten the brighter of photo and foil wins per channel, so
   anywhere the foil is brighter the picture is simply gone.

   ⛔⛔ AND IT IS AT A QUARTER OF INSTINCT. The first cut used .20 to .30 alpha
   stripes over the whole card and the holo and gold pulls came out as rainbow
   deckchairs with a person somewhere behind them. On a pack whose entire draw
   is "you might pull yourself", burying the face is the one unforgivable bug.
   THE BORDER AND THE GLOW CARRY THE RARITY. The sheen is a hint.

   🔑 Every overlay is MASKED AWAY FROM THE CENTRE, because that is where the
   face is. Strongest at the corners, gone across the middle third. */
.sl-card::after{
  content:'';position:absolute;inset:0;pointer-events:none;
  -webkit-mask-image:radial-gradient(115% 85% at 50% 50%,transparent 34%,#000 88%);
          mask-image:radial-gradient(115% 85% at 50% 50%,transparent 34%,#000 88%);
}
.sl-card.common::after{display:none}

.sl-card.shine{border-color:rgba(255,16,153,0.5)}
.sl-card.shine::after{
  background:linear-gradient(115deg,transparent 42%,rgba(111,9,68,0.16) 50%,transparent 58%)}
.sl-card.shine .rar{color:var(--pink-deep-t,var(--pink-deep))}

.sl-card.holo{border-color:rgba(0,87,238,0.7);box-shadow:0 0 20px rgba(47,107,255,.3)}
.sl-card.holo::after{
  background:repeating-linear-gradient(58deg,
    rgba(111,9,68,0.1) 0 6px, rgba(8,39,93,0.1) 6px 12px,
    rgba(20,89,91,0.08) 12px 18px, transparent 18px 42px);
  mix-blend-mode:screen}
.sl-card.holo .rar{color:#a2c2fa}

.sl-card.hit{border-color:#eba70a;box-shadow:0 0 26px rgba(247,208,70,.42),inset 0 0 0 1px rgba(247,208,70,.5)}
.sl-card.hit::after{
  background:
    repeating-linear-gradient(72deg,rgba(142,103,14,0.13) 0 5px,transparent 5px 17px),
    radial-gradient(90% 55% at 50% 0%,rgba(176,128,14,0.17),transparent 62%);
  mix-blend-mode:screen;animation:sl-swim 6s linear infinite}
@keyframes sl-swim{to{background-position:220px 0, 0 0}}
.sl-card.hit .rar{color:#fade9e}
.sl-card.hit .no{color:#fade9e}
/* the hit says so in words too, since the foil is now deliberately quiet */
.sl-card.hit .rar::before{content:'\2605 '}

/* ---------------- the buttons ---------------- */
.sl-acts{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
@media (min-width:860px){ .seal.has-hand .sl-acts{justify-content:flex-start} }
.sl-btn{font-family:var(--f-display);font-style:italic;font-weight:900;
  text-transform:uppercase;font-size:16px;letter-spacing:.03em;
  border-radius:999px;padding:11px 22px;cursor:pointer;border:0;
  background:linear-gradient(180deg,var(--pink-deep),#4c1736);color:#edd0e2}
.sl-btn:hover{filter:brightness(1.08)}
.sl-btn.ghost{background:transparent;border:1px solid var(--line-l,var(--line));color:var(--ink-t,var(--ink))}
.sl-btn.ghost:hover{border-color:var(--pink-deep-l,var(--pink-deep));color:var(--pink-glow-t,var(--pink-glow))}
.sl-btn:disabled{opacity:.45;cursor:not-allowed}

.sl-done{font-family:var(--f-mono);font-size:10.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--muted-t,var(--muted))}

/* Somebody hunting their own photo is not here to play a game. */
.sl-skip{font-family:var(--f-mono);font-size:10px;letter-spacing:.16em;
  text-transform:uppercase;color:#e4e2e6;background:none;border:0;cursor:pointer;
  text-decoration:underline;text-underline-offset:3px;padding:4px}
.sl-skip:hover{color:var(--pink-glow-t,var(--pink-glow))}

@media (prefers-reduced-motion:reduce){
  .sl-pack,.sl-pack .glare,.sl-pack.rip,.sl-pack.rip .lip,.sl-pack.gone,
  .sl-pack.party .pk-top,.sl-pack.party .pk-b::after,
  .sl-card,.sl-card.hit::after{animation:none!important;transition:none!important}
  .sl-card{opacity:1;transform:none}
}

/* ---------------- the binder (10/4): where this phone stands on this night ---------------- */
.sl-mine{margin-top:14px;display:flex;gap:8px 12px;flex-wrap:wrap;align-items:center;justify-content:center;
  font-family:var(--f-mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted-t,var(--muted))}
.sl-mine[hidden]{display:none}
@media (min-width:860px){ .seal.has-hand .sl-mine{justify-content:flex-start} }
.sl-bind{font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;color:var(--pink-t,var(--pink));
  background:rgba(111,9,68,0.08);border:1px solid rgba(255,16,153,0.45);border-radius:3px;padding:7px 10px}
.sl-bind:hover{border-color:var(--pink-glow-l,var(--pink-glow));color:var(--pink-glow-t,var(--pink-glow))}
.sl-mine .got{color:#fade9e}
.sl-mine.pop{animation:sl-pop .7s cubic-bezier(.2,.9,.3,1.3)}
@keyframes sl-pop{0%{transform:scale(.9);opacity:.4}45%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
/* a frame this phone had never pulled */
.sl-card .nw{position:absolute;z-index:2;top:8px;left:8px;padding:2px 7px;background:var(--pink-glow);color:#efcadf;
  border:1px solid #3a3f4c;font:700 9.5px/1.3 Verdana,Geneva,Tahoma,sans-serif;letter-spacing:.04em;text-transform:uppercase}
.sl-card.hit .nw{background:#8e670e}
@media (prefers-reduced-motion:reduce){ .sl-mine.pop{animation:none} }


/* I'm in this one (10/11): the lightbox button, the names, the dot on a tile you marked.
   --lb-tag-b is set by sealed.js: 52px, or higher when the look chips are up, so the row sits above them. */
.lb-tag{position:absolute;right:16px;bottom:var(--lb-tag-b,52px);z-index:5;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:#f4eef2;background:rgba(10,10,13,.82);border:1px dashed rgba(255,16,153,0.7);border-radius:999px;padding:8px 12px;cursor:pointer;}
.lb-tag.on{color:#e0e0e7;background:#6f0944;border-style:solid;}
.lb-tag[hidden],.lb-who[hidden]{display:none;}
.lb-who{position:absolute;left:16px;bottom:var(--lb-tag-b,52px);z-index:5;max-width:60%;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:10px;letter-spacing:.1em;color:#f4eef2;background:rgba(10,10,13,.82);border-radius:6px;padding:6px 10px;}
.lb-who a{color:#fa9ed3;text-decoration:none;border-bottom:1px solid rgba(255,16,153,0.45);}
.lb-who a:hover{color:#f7b9dd;}
/* a phone has no room for both side by side: the names get their own line, above the button */
@media (max-width:640px){
  .lb-who{max-width:calc(100% - 32px);bottom:calc(var(--lb-tag-b,52px) + 42px);}
}
.tile .tag-dot{position:absolute;top:8px;left:8px;z-index:3;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:8px;letter-spacing:.2em;text-transform:uppercase;color:#e0e0e7;background:#6f0944;border-radius:3px;padding:3px 6px;}
.tile{position:relative;}

/* THE MINI PACK (10/16): a small night (OTPNight.mini) tears the same way off a smaller pouch with a MINI sticker,
   and sealed.js deals all of it in one rip. The title and the line are px here, so they step down with the pouch
   (226 / 290 = .78). The shelf's sticker lives in pack.css. */
.sl-pack.party.mini{width:min(226px,60vw)}
.sl-pack.party.mini .mk{font-size:26px;-webkit-text-stroke:3.4px #16060f}
.sl-pack.party.mini .mk.short{font-size:39px}
.sl-pack.party.mini .mk.long{font-size:20px}
.sl-pack.party.mini .bot{font-size:8px}
.sl-pack.party.mini::after{content:'MINI';position:absolute;top:11%;right:-9%;z-index:4;padding:7px 10px 6px;border-radius:3px;
  font-family:var(--f-mono,monospace);font-weight:700;font-size:13px;line-height:1;letter-spacing:.24em;
  color:#f0cadf;background:#6f0944;box-shadow:0 2px 0 #16060f,0 8px 18px rgba(0,0,0,.55);transform:rotate(9deg);pointer-events:none}
