/* Send cards (2026-11-07, design/send-cards.html) and the gift pack (design/booster-pack.html). Loaded on both pages. */

/* ---------- Send cards, in the Collection ---------- */
.send-view { width: 100%; max-width: 560px; height: 100%; max-height: none; margin: 0 auto; padding: 0; border: 0; background: #080f1b; color: #f3ecd4; overflow-y: auto; overscroll-behavior: contain; }
.send-view::backdrop { background: rgba(4, 8, 14, .7); }
.send-view[open] { animation: sv-up .42s cubic-bezier(.2, .9, .25, 1); }
.send-view.leaving { animation: sv-down .3s cubic-bezier(.5, 0, .75, .4) forwards; }
@keyframes sv-up { from { transform: translateY(100%); } } @keyframes sv-down { to { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .send-view[open], .send-view.leaving { animation: none; } }
.sv-page { padding: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 14px) 18px calc(var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 110px); }
.sv-head { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 14px; }
.sv-head .sv-t { flex: 1; min-width: 0; }
.sv-head h2 { margin: 4px 0 0; font: 400 26px/1.05 'SC Display', var(--display, sans-serif); text-transform: uppercase; color: #fff2b3; letter-spacing: -.01em; }
.sv-head .x-close { flex: none; }
.sv-back, .sv-link { flex: none; background: none; border: 0; color: #fa8127; font: 500 15px 'SC Label', sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 8px 4px; cursor: pointer; }
.sv-back { font-size: 30px; line-height: .8; padding: 2px 8px 6px 0; color: #fff2b3; }
.sv-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.sv-tabs button { height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid #ffffff2e; background: none; color: #fff2b3; font: 500 14px 'SC Label', sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.sv-tabs button[aria-selected="true"] { background: #fa8127; border-color: #fa8127; color: #080f1b; }
.sv-selrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 10px; font: 500 15px/1.3 'SC Label', sans-serif; color: #c9c6ad; letter-spacing: .02em; }
.sv-sa { flex: none; background: none; border: 0; padding: 6px 0; color: #fa8127; font: 500 13.5px 'SC Label', sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.sv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 520px) { .sv-grid { grid-template-columns: repeat(4, 1fr); } }
.sv-tile { position: relative; aspect-ratio: 5 / 7; padding: 0; border-radius: 9px; overflow: hidden; border: 1.5px solid var(--c); background: #0a1322; color: #fff2b3; cursor: pointer; text-align: left; }
.sv-tile .sv-art { position: absolute; inset: 0; background: center 30% / cover no-repeat; display: grid; place-items: center; }
.sv-tile:has(.mini-face) { aspect-ratio: 2 / 3; border: 0; background: none; overflow: visible; border-radius: calc(14px * var(--mini-s, .4)); } /* the mini card is the tile (2:3, its own frame) */
.sv-tile .sv-art:has(.mini-face) { background: none !important; display: block; }
.sv-tile .mini-face { pointer-events: none; }
.sv-tile.on:has(.mini-face) { outline-offset: 2px; outline-width: 3px; }
.sv-tile .sv-art > i { font-style: normal; font-size: 26px; color: var(--c); opacity: .7; }
.sv-tile .sv-nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 6px; background: linear-gradient(transparent, #080f1bf0 55%); font: 500 12px/1.1 'SC Label', sans-serif; letter-spacing: .04em; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sv-tile .sv-tick { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #ffffffaa; background: #080f1b99; }
.sv-tile.on { outline: 2.5px solid #fa8127; outline-offset: 1px; }
.sv-tile.on .sv-tick { background: #fa8127; border-color: #fa8127; }
.sv-tile.on .sv-tick::after, .sv-night.on .sv-box::after { content: '✓'; display: grid; place-items: center; height: 100%; color: #080f1b; font: 700 14px system-ui; }
.sv-mon { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 2px; font: 500 13px 'SC Label', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #fa8127; }
.sv-night { display: flex; width: 100%; align-items: center; gap: 12px; padding: 11px 0; border: 0; border-bottom: 1px solid #1d2a3c; background: none; color: inherit; text-align: left; cursor: pointer; }
.sv-night .sv-box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid #ffffff77; }
.sv-night.on .sv-box { background: #fa8127; border-color: #fa8127; }
.sv-night .sv-d { flex: 1; font: 500 17px/1.15 'SC Label', sans-serif; color: #fff2b3; letter-spacing: .03em; }
.sv-night .sv-d small { display: block; color: #c9c6ad; font-size: 14px; margin-top: 2px; }
.sv-mini { display: flex; } .sv-mini i { width: 20px; height: 28px; border-radius: 3px; margin-left: -7px; border: 1px solid #080f1b; background: #0a1322 center / cover; }
.sv-gap { display: flex; align-items: center; gap: 8px; margin: 6px 0 6px 36px; padding: 9px 10px; border-radius: 10px; border: 1px dashed #fa8127aa; background: #fa81270f; font: 500 15px/1.25 'SC Label', sans-serif; color: #fff2b3; letter-spacing: .02em; }
.sv-gap span { flex: 1; } .sv-gap small { display: block; color: #c9c6ad; font-size: 13px; }
.sv-gap button { flex: none; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #ffffff33; background: none; color: #fff2b3; font: 500 13px 'SC Label', sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.sv-gap button.o { background: #fa8127; border-color: #fa8127; color: #080f1b; }
.sv-bar { position: fixed; z-index: 3; left: 50%; transform: translateX(-50%); width: min(560px, 100%); bottom: 0; display: flex; gap: 12px; align-items: center; padding: 12px 18px calc(var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 14px); background: linear-gradient(transparent, #080f1b 22%); }
.sv-bar .sv-n { flex: 1; padding: 10px 12px; border-radius: 14px; background: #0d1828ee; border: 1px solid #22344a; font: 500 16px/1.2 'SC Label', sans-serif; color: #fff2b3; letter-spacing: .03em; }
.sv-bar .sv-n small { display: block; color: #c9c6ad; font-size: 13.5px; }
.sv-btn { display: flex; justify-content: center; align-items: center; height: 52px; padding: 0 22px; border-radius: 13px; border: 0; font: 500 16px 'SC Label', sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.sv-btn.o { background: #fa8127; color: #080f1b; } .sv-btn.g { background: #ffffff14; color: #fff2b3; } .sv-btn.w { width: 100%; margin-top: 10px; }
.sv-btn:disabled { opacity: .45; cursor: default; }
.sv-count3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; } .sv-count3.two { grid-template-columns: 1fr 1fr; }
.sv-count3 div { padding: 10px 6px; border-radius: 12px; background: #ffffff0d; text-align: center; font: 500 13px/1.2 'SC Label', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #c9c6ad; }
.sv-count3 b { display: block; font: 400 26px/1.1 'SC Display', sans-serif; color: #fff2b3; letter-spacing: 0; }
.sv-field { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #22344a; border-bottom: 1px solid #22344a; font: 500 16px 'SC Label', sans-serif; letter-spacing: .06em; color: #fff2b3; text-transform: uppercase; }
.sv-field input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid #2a3d55; background: #0d1828; color: #fff2b3; font: 500 17px 'SC Label', sans-serif; letter-spacing: .03em; }
.sv-plain { margin: 12px 0 4px; font: 500 16px/1.4 'SC Label', sans-serif; color: #fff2b3; letter-spacing: .02em; }
html[data-theme='night'] .send-view, body.night .send-view { filter: none; }

/* ---------- the gift pack, over Explore ---------- */
#gift { position: fixed; inset: 0; z-index: 120; overflow: hidden; background: radial-gradient(ellipse 120% 70% at 50% 40%, #0c1d29, #080f1b 60%, #04070d); color: #fff2b3; touch-action: none; user-select: none; -webkit-user-select: none;
  --cf: min(11px, calc((100vw - 90px) / 31), calc((100dvh - 250px) / 50)); --pw: calc(31 * var(--cf)); --ph: calc(49.6 * var(--cf)); --fx: #ffc93d;
  /* the dealt cards are the catch reveal's size (js/reveal.js sizeCard), not the pack's (2026-11-11, Sevaan: they looked smaller) */
  --dcf: max(7px, min(14px, calc((100vw - 58px) / 28), calc((100dvh - 270px) / 39.2))); }
@media (min-width: 600px) and (min-height: 600px) { #gift { --dcf: max(7px, min(18px, calc((100vw - 58px) / 28), calc((100dvh - 270px) / 39.2))); } }
#gift.in { animation: gift-in .35s ease-out; } @keyframes gift-in { from { opacity: 0; } }
#gift.out { animation: gift-out .3s ease-in forwards; } @keyframes gift-out { to { opacity: 0; } }
#gift .gp-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff2b3; opacity: .5; animation: gp-tw 3s ease-in-out infinite alternate; }
@keyframes gp-tw { from { opacity: .15; } to { opacity: .8; } }
#gift .gp-head { position: absolute; z-index: 5; left: 0; right: 0; top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 34px); text-align: center; transition: opacity .4s; padding: 0 20px; }
#gift .gp-head .k { font: 500 13px 'SC Label', sans-serif; letter-spacing: .26em; text-transform: uppercase; color: #fa8127; }
#gift .gp-head h1 { margin: 4px 0 0; font: 400 28px/1 'SC Display', sans-serif; text-transform: uppercase; color: #fff2b3; }
#gift .gp-head p { margin: 7px 0 0; font: 500 15.5px 'SC Label', sans-serif; letter-spacing: .04em; color: #c9c6ad; }
#gift .gp-x { position: absolute; z-index: 11; /* above the summary layer (.gp-haul, z 9, full screen): at 9 the summary took every tap meant for the ✕ (2026-11-12) */ top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 10px); right: 14px; width: 44px; height: 44px; border: 0; background: none; color: #fff2b3; font: 500 24px/1.2 'SC Label', 'Arial Narrow', sans-serif; display: grid; place-items: center; padding: 0; cursor: pointer; } /* the same ✕ as the card viewer's and every other page's (2026-11-12, Sevaan) */
#gift .gp-hint { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 22px); text-align: center; font: 500 15px 'SC Label', sans-serif; letter-spacing: .16em; text-transform: uppercase; transition: opacity .3s; }
#gift .gp-hint b { color: #fa8127; font-weight: 500; }
#gift .gp-hint .sub { display: block; margin-top: 8px; font-size: 13.5px; color: #c9c6ad; letter-spacing: .1em; }
#gift .gp-hint button { margin: 12px 6px 0; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid #ffffff2a; background: #ffffff0e; color: #fff2b3; font: 500 13.5px 'SC Label', sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
#gift .gone { opacity: 0 !important; pointer-events: none !important; }
#gift .gp-pk { position: absolute; left: 50%; top: 50%; width: var(--pw); height: var(--ph); margin: calc(var(--ph) / -2 + 14px) 0 0 calc(var(--pw) / -2); perspective: 1200px; z-index: 3; transition: transform .9s cubic-bezier(.5, 0, .75, .3), opacity .6s; }
#gift .gp-pk.drop { transform: translateY(110vh) rotate(6deg); opacity: 0; }
#gift .gp-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .12s linear; }
#gift .gp-pk.idle .gp-tilt { animation: gp-bob 4.2s ease-in-out infinite; } @keyframes gp-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
#gift .gp-pk.rattle .gp-tilt { animation: gp-rattle .5s ease-in-out; }
@keyframes gp-rattle { 0%, 100% { rotate: 0deg; } 15% { rotate: -3deg; } 30% { rotate: 2.6deg; } 45% { rotate: -2deg; } 60% { rotate: 1.4deg; } 75% { rotate: -.6deg; } }
#gift .gp-leak { position: absolute; left: -30%; right: -30%; top: -20%; height: 60%; pointer-events: none; opacity: calc(.15 + var(--p, 0) * .85); background: radial-gradient(ellipse 50% 40% at 50% 34%, color-mix(in srgb, var(--fx) 70%, transparent), transparent 70%); filter: blur(6px); }
#gift .gp-pk.idle .gp-leak { animation: gp-breathe 2.6s ease-in-out infinite; } @keyframes gp-breathe { 50% { opacity: .38; } }
#gift .gp-piece { position: absolute; left: 0; right: 0; overflow: hidden; filter: drop-shadow(0 18px 30px #000c); }
#gift .gp-cap { top: 0; height: calc(var(--ph) * .14); transform-origin: 100% 100%; transition: transform .25s;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 12px 8px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 7.5px) no-repeat;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 12px 8px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 7.5px) no-repeat; }
#gift .gp-main { top: calc(var(--ph) * .14); bottom: 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7.5px) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 12px 8px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7.5px) no-repeat; }
#gift .gp-main.torn { clip-path: polygon(var(--tear), 100% 100%, 0 100%); }
#gift .gp-cap.fly { transition: transform .75s cubic-bezier(.2, .7, .3, 1), opacity .75s; transform: translate(40%, -140%) rotate(28deg) !important; opacity: 0; }
#gift .gp-skin { position: absolute; left: 0; width: var(--pw); height: var(--ph); }
#gift .gp-cap .gp-skin { top: 0; } #gift .gp-main .gp-skin { top: calc(var(--ph) * -.14); }
#gift .gp-skin > div { position: absolute; inset: 0; pointer-events: none; }
/* A swipe that misses the tear line left the pack blank for a moment on Android (Sky Build playtest v0.1.1812; reproduced on
   the API 37 emulator 2026-11-20 in both games: Space's build 48 lost the whole pack for 19 of ~290 frames over four middle
   swipes). Cause: GPU memory. Each piece carries its own oversized moving lights (sheen 300% wide, glow 180%, band 220%), on
   layers inside a masked piece in a 3D-tilted pack, and the cap's copies are full pack size though only its top 14% shows.
   Over budget, Android's compositor drops tiles or whole masked pieces. The cap keeps its foil but not those lights. Same
   rule as Sky's. */
#gift .gp-cap :is(.gp-glow, .gp-sheen, .gp-band) { display: none; }
#gift .gp-base { background: radial-gradient(ellipse at 50% 40%, #13243a, #070d18 75%); }
#gift .gp-art { background: linear-gradient(120deg, #7a5a14, #f7d77a 30%, #a87d22 45%, #fff2c2 55%, #b88a2a 70%, #f0c860) calc(var(--mx, 50) * 1%) 0 / 260% 100%;
  -webkit-mask: url('../assets/art/backs/back-collector-mask.webp') 50% 52% / 118% auto no-repeat; mask: url('../assets/art/backs/back-collector-mask.webp') 50% 52% / 118% auto no-repeat; /* an alpha mask: WKWebView ignores mask-mode luminance (iPhone 14 simulator 2026-11-07) */ opacity: .95; }
#gift .gp-lines { background: repeating-linear-gradient(0deg, #ffffff06 0 1px, transparent 1px 3px); }
#gift .gp-glow { background: radial-gradient(circle at calc(var(--mx, 50) * 1%) calc(var(--my, 40) * 1%), #ffe9a855, transparent 45%); mix-blend-mode: soft-light; }
#gift .gp-seam { top: calc(var(--ph) * .14 - 1px) !important; bottom: auto !important; height: 2px; background: repeating-linear-gradient(90deg, #f7d77a99 0 6px, transparent 6px 11px); opacity: .7; }
#gift .gp-shade { background: linear-gradient(90deg, #0008, transparent 14%, transparent 86%, #0008), linear-gradient(#0000 80%, #0006); }
#gift .gp-sheen { background: linear-gradient(115deg, transparent 30%, #ffffff40 45%, #ffffff10 52%, transparent 62%) calc(var(--mx, 50) * 1%) 0 / 300% 100% no-repeat; mix-blend-mode: soft-light; }
#gift .gp-count { top: auto !important; bottom: calc(var(--ph) * .06) !important; padding: calc(var(--cf) * 3) 0 calc(var(--cf) * 1.2); text-align: center; background: radial-gradient(ellipse 45% 60% at 50% 60%, #050b16e6, transparent 75%); }
#gift .gp-count b { display: block; font: 400 calc(var(--cf) * 5.4)/.9 'SC Display', sans-serif; background: linear-gradient(120deg, #a87d22, #fff2c2 40%, #d9a93c 60%, #fff2c2) calc(var(--mx, 50) * 1%) 0 / 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 6px #000b); }
#gift .gp-count span { font: 500 calc(var(--cf) * 1.25)/1 'SC Label', sans-serif; letter-spacing: .34em; color: #fff2b3; text-transform: uppercase; }
#gift .gp-ribbon { inset: auto !important; position: absolute; right: calc(var(--cf) * -1.2) !important; top: calc(var(--ph) * .615) !important; padding: calc(var(--cf) * .7) calc(var(--cf) * 2) calc(var(--cf) * .6) calc(var(--cf) * 1.4); background: #fa8127; color: #080f1b; transform: rotate(-8deg); box-shadow: 0 6px 16px #0009; font: 400 calc(var(--cf) * 1.5)/1 'SC Display', sans-serif; text-transform: uppercase; max-width: calc(var(--pw) * .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gift .gp-ribbon small { display: block; font: 500 calc(var(--cf) * .85)/1 'SC Label', sans-serif; letter-spacing: .26em; margin-bottom: 3px; }
#gift .gp-newb { inset: auto !important; position: absolute; left: calc(var(--cf) * 1.6) !important; top: calc(var(--ph) * .64) !important; padding: calc(var(--cf) * .45) calc(var(--cf) * .9); border-radius: 99px; border: 1.5px solid #fff2b3; font: 500 calc(var(--cf) * 1)/1 'SC Label', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #fff2b3; background: #080f1b99; }
#gift .gp-tear { position: absolute; left: 0; top: calc(var(--ph) * .14 - 6px); width: var(--pw); height: 12px; overflow: visible; pointer-events: none; z-index: 4; }
#gift .gp-tear path { fill: none; stroke: #fff6d8; stroke-width: 2; filter: drop-shadow(0 0 4px var(--fx)) drop-shadow(0 0 10px var(--fx)); stroke-linecap: round; stroke-linejoin: round; }
#gift .gp-cue { position: absolute; z-index: 4; left: 8%; top: calc(var(--ph) * .14 - 16px); width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff2b3; box-shadow: 0 0 14px var(--fx); pointer-events: none; animation: gp-cue 2.2s ease-in-out infinite; }
@keyframes gp-cue { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 75% { transform: translateX(calc(var(--pw) * .72)); opacity: 1; } 100% { transform: translateX(calc(var(--pw) * .78)); opacity: 0; } }
#gift .gp-pk:not(.idle) .gp-cue { display: none; }
#gift .gp-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 2; pointer-events: none; }
#gift .gp-rays { position: absolute; left: -30vmax; top: -30vmax; width: 60vmax; height: 60vmax; /* half size, scaled ×2 in the animation: a quarter of the pixels to draw at the tear (2026-11-10, Sevaan: janky) */ border-radius: 50%; opacity: 0; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--fx) 30%, transparent) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0, #0000 60%); mask: radial-gradient(circle, #000 0, #0000 60%); }
#gift .gp-burst.on .gp-rays { animation: gp-rays 2.4s ease-out forwards; }
@keyframes gp-rays { 0% { opacity: 0; transform: rotate(0) scale(1.2); } 15% { opacity: 1; } 100% { opacity: 0; transform: rotate(40deg) scale(2.3); } }
#gift .gp-burst i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #fff6d8; box-shadow: 0 0 8px var(--fx), 0 0 16px var(--fx); }
#gift .gp-flash { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 32%, #fffbe9, color-mix(in srgb, var(--fx) 40%, transparent) 30%, transparent 65%); }
#gift .gp-flash.on { animation: gp-flash .7s ease-out; } @keyframes gp-flash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }
#gift .gp-deck { position: absolute; left: 50%; top: 50%; z-index: 2; width: calc(28 * var(--dcf)); height: calc(39.2 * var(--dcf)); margin: calc(-19.6 * var(--dcf) + 14px) 0 0 calc(-14 * var(--dcf)); pointer-events: none; }
#gift .gp-deck.live { pointer-events: auto; z-index: 7; }
#gift .gp-dc { position: absolute; inset: 0; transition: transform .55s cubic-bezier(.2, .8, .25, 1.05), opacity .4s; transform-style: preserve-3d; }
#gift .gp-dc .card { font-size: var(--dcf); }
#gift .gp-dc .card__back { display: none; } /* the card's own poster side: not used in the pack */
#gift .gp-dc .gp-bk { position: absolute; inset: 0; border-radius: calc(1.15 * var(--dcf)); background: center / contain no-repeat; background-color: #01121c; box-shadow: 0 0 0 1px #ffffff22, 0 14px 30px #000b; }
#gift .gp-dc .gp-fr { position: absolute; inset: 0; visibility: hidden; }
#gift .gp-dc.face .gp-fr { visibility: visible; } #gift .gp-dc.face .gp-bk { visibility: hidden; }
#gift .gp-dc.aura::before { content: ''; position: absolute; inset: -24% -30%; border-radius: 40%; background: radial-gradient(ellipse, color-mix(in srgb, var(--t) 85%, transparent) 20%, color-mix(in srgb, var(--t) 25%, transparent) 50%, transparent 70%); filter: blur(14px); animation: gp-aura 1.1s ease-in-out infinite alternate; z-index: -1; }
#gift .gp-dc.aura .gp-bk { box-shadow: 0 0 0 2px var(--t), 0 0 22px var(--t), 0 0 60px color-mix(in srgb, var(--t) 60%, transparent), 0 14px 30px #000b; }
@keyframes gp-aura { from { opacity: .45; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
#gift .gp-dc.shake { animation: gp-shk .5s ease-in-out infinite; } @keyframes gp-shk { 0%, 100% { rotate: 0deg; } 25% { rotate: -1.4deg; } 75% { rotate: 1.4deg; } }
#gift .gp-tags { position: absolute; z-index: 8; left: 0; right: 0; top: calc(50% + 14px - 21 * var(--dcf) - 52px); display: flex; justify-content: center; gap: 6px; pointer-events: none; }
#gift .gp-tags span { padding: 7px 13px; border-radius: 99px; font: 500 14px/1 'SC Label', sans-serif; letter-spacing: .18em; text-transform: uppercase; animation: gp-tagin .45s cubic-bezier(.2, .9, .3, 1.3) both; }
#gift .gp-tags .new { background: #fa8127; color: #080f1b; } #gift .gp-tags .up { background: #ffffff18; color: #fff2b3; border: 1px solid #ffffff30; } #gift .gp-tags .shiny { background: linear-gradient(90deg, #ff8fd8, #ffe08a, #8ff0ff, #b58cff); color: #0b1120; }
#gift .gp-tags .tease { background: #080f1bcc; color: var(--t, #fff); border: 1.5px solid var(--t, #fff); }
@keyframes gp-tagin { from { transform: translateY(10px) scale(.8); opacity: 0; } }
#gift .gp-count2 { position: absolute; z-index: 8; left: 0; right: 0; bottom: calc(var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 20px); text-align: center; font: 500 14px 'SC Label', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #c9c6ad; }
#gift .gp-count2 b { color: #fff2b3; font-weight: 500; } #gift .gp-count2 button { margin-left: 14px; background: none; border: 0; padding: 8px 4px; color: #fa8127; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
#gift .gp-haul { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; padding: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 30px) 18px calc(var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 16px); }
#gift .gp-haul > :first-child { margin-top: auto; } #gift .gp-haul > :last-child { margin-bottom: auto; } /* centred when short, scrolls from the top when long */
#gift .gp-haul .k { font: 500 13px 'SC Label', sans-serif; letter-spacing: .26em; text-transform: uppercase; color: #fa8127; }
#gift .gp-haul h2:not(:where(.mini-face *, .card *)) { margin: 4px 0 0; font: 400 30px/1 'SC Display', sans-serif; text-transform: uppercase; }
#gift .gp-haul p:not(:where(.mini-face *, .card *)) { margin: 7px 0 14px; font: 500 16px 'SC Label', sans-serif; color: #c9c6ad; letter-spacing: .04em; text-align: center; } #gift .gp-haul p:not(:where(.mini-face *, .card *)) b { color: #fff2b3; font-weight: 500; }
#gift .gp-grid { width: min(100%, 420px); display: grid; grid-template-columns: repeat(var(--cols, 6), calc((100% - 30px) / 6)); justify-content: center; gap: 6px; overflow-y: auto; padding: 4px; min-height: 0; }
#gift .gp-grid .t { position: relative; aspect-ratio: 5 / 7; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--c); background: #0a1322 center 30% / cover no-repeat; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 40%, transparent); opacity: 0; transform: translateY(14px) scale(.9); animation: gp-tin .4s cubic-bezier(.2, .9, .3, 1.2) forwards; }
#gift .gp-grid .t > .mini-face { position: absolute; left: 0; top: 0; border-radius: 0; } /* a drawn card filling the tile when there is no picture file */
#gift .gp-grid .t.n::after { z-index: 2; content: 'NEW'; position: absolute; left: 3px; top: 3px; padding: 2px 4px; border-radius: 4px; background: #fa8127; color: #080f1b; font: 500 9px/1 'SC Label', sans-serif; letter-spacing: .1em; }
@keyframes gp-tin { to { opacity: 1; transform: none; } }
#gift .gp-haul .xp { margin: 14px 0 0; padding: 10px 16px; border-radius: 12px; background: #0d1828; border: 1px solid #22344a; border-left: 4px solid #fa8127; font: 500 16px 'SC Label', sans-serif; letter-spacing: .04em; text-align: center; }
#gift .gp-haul .go { margin-top: 12px; height: 52px; width: min(100%, 380px); border: 0; border-radius: 13px; background: #fa8127; color: #080f1b; font: 500 16px 'SC Label', sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; flex: none; }
#gift .gp-haul .later { margin-top: 6px; height: 40px; background: none; border: 0; color: #c9c6ad; font: 500 14px 'SC Label', sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; flex: none; }
#gift .gp-msg { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
#gift .gp-msg h2 { margin: 0 0 10px; font: 400 26px/1.1 'SC Display', sans-serif; text-transform: uppercase; }
#gift .gp-msg p { margin: 0 0 18px; max-width: 340px; font: 500 16.5px/1.45 'SC Label', sans-serif; color: #e6e2c4; letter-spacing: .02em; }
#gift .gp-msg button { height: 50px; padding: 0 28px; border: 0; border-radius: 13px; background: #fa8127; color: #080f1b; font: 500 16px 'SC Label', sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { #gift .gp-pk.idle .gp-tilt, #gift .gp-stars i, #gift .gp-pk.idle .gp-leak, #gift .gp-cue, #gift .gp-dc.shake, #gift .gp-dc.aura::before { animation: none !important; } #gift .gp-dc { transition: opacity .15s; } }
body.night #gift { filter: none; }

/* ---------- the share sheet: the pack you're sending (design/send-sheet/c-game-moment.html, 2026-11-07) ---------- */
.sv-pack-page { display: flex; flex-direction: column; min-height: 100%; min-height: 100dvh; }
.sv-stage { position: relative; height: calc(290px * var(--k, 1)); display: flex; justify-content: center; align-items: flex-end; margin: 0 0 14px; }
.sv-stage-in { position: absolute; left: 0; right: 0; bottom: 0; height: 290px; display: flex; justify-content: center; align-items: flex-end; scale: var(--k, 1); transform-origin: 50% 100%; }
.sv-glow { position: absolute; bottom: 0; left: 50%; width: 320px; height: 140px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, rgba(255, 201, 61, .24), transparent 70%); pointer-events: none; }
.sv-pk { position: relative; z-index: 3; width: 140px; height: 200px; animation: sv-bob 4.2s ease-in-out infinite; }
.sv-bag { position: absolute; inset: 0; filter: drop-shadow(0 14px 24px #000a);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 10px 7px repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 7px repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - 13px) no-repeat;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 10px 7px repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 7px repeat-x, linear-gradient(#000 0 0) center / 100% calc(100% - 13px) no-repeat; }
@keyframes sv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.sv-bag > div { position: absolute; inset: 0; }
.sv-pk-base { background: radial-gradient(ellipse at 50% 40%, #13243a, #070d18 75%); }
.sv-pk-art { background: linear-gradient(120deg, #7a5a14, #f7d77a 30%, #a87d22 45%, #fff2c2 55%, #b88a2a 70%, #f0c860) 0 0 / 260% 100%; animation: sv-foil 6s ease-in-out infinite alternate;
  -webkit-mask: url('../assets/art/backs/back-collector-mask.webp') 50% 52% / 118% auto no-repeat; mask: url('../assets/art/backs/back-collector-mask.webp') 50% 52% / 118% auto no-repeat; }
@keyframes sv-foil { to { background-position: 100% 0; } }
.sv-pk-crimp { height: 18px; bottom: auto !important; background: repeating-linear-gradient(90deg, #ffffff22 0 1.5px, #00000033 1.5px 4px); mix-blend-mode: overlay; }
.sv-pk-crimp.b { top: auto !important; bottom: 0 !important; }
.sv-pk-sheen { background: linear-gradient(115deg, transparent 35%, #ffffff30 46%, #ffffff10 52%, transparent 60%) 0 0 / 300% 100% no-repeat; mix-blend-mode: soft-light; animation: sv-sheen 4.5s ease-in-out infinite; }
@keyframes sv-sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }
.sv-pk-count { top: auto !important; bottom: 10px !important; padding: 14px 0 4px; text-align: center; background: radial-gradient(ellipse 45% 60% at 50% 60%, #050b16e6, transparent 75%); font: 500 11px 'SC Label', sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #fff2b3; }
.sv-pk-count b { display: block; font: 400 26px/.9 'SC Display', sans-serif; letter-spacing: 0; background: linear-gradient(120deg, #a87d22, #fff2c2 40%, #d9a93c 60%, #fff2c2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-ribbon { position: absolute; left: -12px; right: -12px; top: 112px; height: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fa8127; color: #1b0d02; transform: rotate(-5deg); box-shadow: 0 4px 10px #0007;
  font: 400 15px/1 'SC Display', sans-serif; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 14px; z-index: 2; }
.sv-ribbon small { font: 500 8.5px/1 'SC Label', sans-serif; letter-spacing: .28em; margin-bottom: 2px; }
.sv-ribbon.blank { background: repeating-linear-gradient(45deg, #fa812744 0 6px, #fa812722 6px 12px), #1b1206; color: #fa8127; border: 1px dashed #fa8127; font: 500 13px 'SC Label', sans-serif; letter-spacing: .2em; }
.sv-stamp { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-12deg) scale(2); opacity: 0; padding: 4px 10px; border: 2.5px solid #ffc93d; border-radius: 6px; color: #ffc93d; font: 400 18px 'SC Display', sans-serif; letter-spacing: .14em; text-transform: uppercase; background: #070d18cc; z-index: 3; }
/* the cards sticking out of the top: real mini cards */
.sv-peek { position: absolute; z-index: 2; bottom: 110px; width: 84px; height: 126px; --mini-s: .3; transition: transform .45s cubic-bezier(.5, 0, .75, .3), opacity .3s .3s; filter: drop-shadow(0 6px 12px #0009); }
.sv-peek .mini-face { pointer-events: none; }
.sv-peek.p1 { transform: translateX(-54px) rotate(-14deg); }
.sv-peek.p2 { transform: translateX(54px) rotate(13deg); }
.sv-peek.p3 { transform: translateY(-14px) rotate(-2deg); z-index: 1; }
/* sealing */
.sv-stage.sealing .sv-peek { transform: translateY(110px) rotate(0) scale(.9); opacity: 0; transition: transform .45s cubic-bezier(.5, 0, .75, .3), opacity .2s .1s; } /* gone before it could show below the pack's bottom edge (playtest 2026-11-12) */
.sv-stage.sealing .sv-pk { animation: sv-seal .9s ease-out forwards; }
@keyframes sv-seal { 0% { transform: none; } 55% { transform: translateY(4px) scale(1.02); } 70% { transform: translateY(-6px) scale(1.06); } 100% { transform: scale(1.04); } }
.sv-stage.sealing .sv-pk-crimp.t { animation: sv-flash .9s ease-out forwards; }
@keyframes sv-flash { 0%, 50% { background-color: transparent; } 62% { background-color: #fff6d8; mix-blend-mode: normal; } 100% { background-color: transparent; } }
.sv-stage.sealing .sv-stamp { animation: sv-stamp .9s ease-out forwards; }
@keyframes sv-stamp { 0%, 55% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(2); } 72% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(.95); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } }
/* manifest */
.sv-manifest { background: #0d1828; border: 1px solid #2a3d55; border-radius: 12px; padding: 0 12px 4px; }
.sv-manifest .hd { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #2a3d55; padding: 9px 0 7px; font: 500 12px 'SC Label', sans-serif; letter-spacing: .18em; color: #a9a68f; text-transform: uppercase; }
.sv-manifest .row { display: flex; gap: 12px; align-items: center; padding: 10px 0 8px; }
.sv-manifest .lbl { flex: 1; font: 500 17px/1.2 'SC Label', sans-serif; color: #fff2b3; letter-spacing: .02em; }
.sv-manifest .lbl small { display: block; color: #c9c6ad; font-size: 14px; }
.sv-thumbs { display: flex; flex: none; }
.sv-thumbs i { position: relative; width: 30px; height: 45px; margin-left: -16px; --mini-s: .1071; filter: drop-shadow(0 2px 3px #0009); }
.sv-thumbs i:first-child { margin-left: 0; }
.sv-thumbs i.more { display: grid; place-items: center; border-radius: 4px; background: #13243a; border: 1px solid #2a3d55; color: #ffc93d; font: 400 11px 'SC Display', sans-serif; font-style: normal; }
.sv-from { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 0 12px; height: 50px; border-radius: 12px; background: #0a1322; border: 1px solid #22344a; }
.sv-from .k { font: 400 12px 'SC Display', sans-serif; letter-spacing: .12em; color: #fa8127; text-transform: uppercase; }
.sv-from input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; color: #fff2b3; font: 500 18px 'SC Label', sans-serif; letter-spacing: .03em; outline: none; }
.sv-from input::placeholder { color: #6f6d5f; }
.sv-pack-page .sv-plain { text-align: center; margin: auto 0 0; padding-top: 16px; color: #c9c6ad; font-size: 15px; }
.sv-pack-page .sv-plain + .sv-btn { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .sv-pk, .sv-pk-art, .sv-pk-sheen { animation: none !important; } }
.sv-page.sv-pack-page { box-sizing: border-box; padding-bottom: calc(var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 18px); }

/* In the app, Send cards sits under the shared header (like Observer stats): its own title row goes. */
html.embedded .send-view { margin-top: var(--col-top); height: calc(100% - var(--col-top)); max-width: none; }
html.embedded .send-view::backdrop { background: transparent; }
html.embedded .send-view .sv-head { display: none; }
html.embedded .send-view .sv-page { padding-top: 14px; }
html.embedded .send-view[open] { animation: none; } /* it fades in with the page, no slide of its own */
.sv-backlink { display: block; margin: 0 0 10px; padding: 6px 0; background: none; border: 0; color: #fa8127; font: 500 14px 'SC Label', sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
html:not(.embedded) .sv-backlink { display: none; }
html.embedded .sv-pack-page { min-height: calc(100dvh - var(--col-top)); }
html.embedded .send-view, .send-view:focus, .send-view:focus-visible { outline: none; }
.sv-backlink { margin-left: 0; text-align: left; }
/* each card's back takes its own face's size (faces can run taller than 39.2em with long text; 2026-11-07, Sevaan: the
   back was smaller than the cards behind it) */
#gift .gp-dc { bottom: auto; height: auto; }
#gift .gp-dc .gp-fr { position: relative; inset: auto; }

/* the reveal's turn: a flipper inside each card; the front sits turned 180° until the turn settles */
#gift .gp-flip { position: relative; transform-style: preserve-3d; }
#gift .gp-dc:not(.settled) .gp-fr { transform: rotateY(180deg); }
#gift .gp-grid .t.more { display: grid; place-items: center; background: #13243a; color: #ffc93d; font: 400 13px 'SC Display', sans-serif; }

/* Jank pass (2026-11-07): the pack moves with transforms only. The tilt is set on .gp-tilt directly; the light (sheen,
   glow) slides as its own layer; the foil gradients are still; the drop shadow is a static blurred layer, not a filter on
   the masked pieces (a filter there re-rendered every frame). */
#gift .gp-tilt { transform: none; transition: none; will-change: transform; }
#gift .gp-piece { filter: none; }
#gift .gp-shadow { position: absolute; left: 8%; right: 8%; top: 12%; bottom: -4%; border-radius: 12px; background: #000; filter: blur(22px); opacity: .7; transform: translateZ(-1px); }
#gift .gp-art { background-position: 35% 0 !important; }
#gift .gp-count b { background-position: 35% 0 !important; }
#gift .gp-sheen { left: -100% !important; right: -100% !important; background: linear-gradient(115deg, transparent 42%, #ffffff40 48%, #ffffff10 51%, transparent 56%) !important; will-change: transform; }
#gift .gp-glow { inset: -40% !important; background: radial-gradient(circle at 50% 45%, #ffe9a855, transparent 30%) !important; will-change: transform; }
#gift .gp-leak { opacity: .15; will-change: opacity; }
/* 2026-11-10 (Sevaan: the cards coming out of the pack were janky): while the deck slides out, it's one flat layer: no 3D
   nesting, only the top two cards painted (the rest are hidden under them anyway), nothing animating inside it. Dealing
   (.live) brings the 3D back for the flips. */
#gift .gp-deck { will-change: transform; }
#gift .gp-deck:not(.live) .gp-dc, #gift .gp-deck:not(.live) .gp-flip { transform-style: flat; }
#gift .gp-deck:not(.live) .gp-dc:not(:nth-last-child(-n+2)) { visibility: hidden; }
#gift .gp-deck:not(.live) * { animation-play-state: paused !important; }

/* The morning pack (2026-11-11, design/morning-pack.html): tonight's card has one button under it; the summary can carry a
   text link (Share my night) and a tappable row (tonight's pass) above its buttons. */
#gift .gp-tailbtn { position: absolute; z-index: 8; left: 50%; top: min(calc(var(--gp-y) + var(--dch, 42) * var(--dcf) / 2 + 26px), calc(100% - var(--safe-bottom, env(safe-area-inset-bottom, 0px)) - 96px)); transform: translateX(-50%); /* the card is 42 tall, not 39.2: clear of it (2026-11-13, Sevaan) */ white-space: nowrap; height: 44px; padding: 0 20px; border-radius: 99px; border: 1px solid #fa812788; background: #fa81271c; color: #fa8127; font: 500 15px 'SC Label', sans-serif; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; animation: gp-tagin .45s cubic-bezier(.2, .9, .3, 1.3) both; }
#gift .gp-tailbtn.done { border-color: #5fd08a88; background: #5fd08a1a; color: #9fe8b8; }
#gift .gp-haul .gp-row { margin-top: 12px; width: min(100%, 380px); display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 14px; border-radius: 13px; border: 1px solid #fa812755; background: #fa81270f; color: #fff2b3; cursor: pointer; font: inherit; }
#gift .gp-haul .gp-row small { display: block; font: 500 12px 'SC Label', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #fa8127; }
#gift .gp-haul .gp-row b { display: block; font: 600 15px system-ui, sans-serif; }
#gift .gp-haul .gp-row span { display: block; font-size: 13px; color: #c9c6ad; }
#gift .gp-haul .gp-row i { margin-left: auto; font-style: normal; color: #fa8127; font-size: 20px; }
#gift .gp-share { position: absolute; z-index: 10; top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 10px); right: 62px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: #fff2b3; cursor: pointer; transition: color .2s; }
#gift .gp-share.done { color: #5fd08a; }
#gift .gp-share.busy svg { animation: gp-sharebusy .9s ease-in-out infinite; } /* making the link (up to 10 s offline) */
@keyframes gp-sharebusy { 50% { opacity: .35; transform: translateY(-2px); } }
#gift .gp-sharemsg { position: absolute; z-index: 10; top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 58px); right: 14px; padding: 8px 12px; border-radius: 10px; background: #0d1828; border: 1px solid #22344a; color: #fff2b3; font: 500 14px 'SC Label', sans-serif; letter-spacing: .08em; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
#gift .gp-sharemsg.in { opacity: 1; transform: none; } #gift .gp-sharemsg.bad { border-color: #ff7f7055; color: #ffb3a8; }
/* Patches earned that night, shown (2026-11-11) */
#gift .gp-haul .gp-patches { display: flex; justify-content: center; gap: 14px; margin: 14px 0 0; flex-wrap: wrap; }
#gift .gp-haul .gp-patch { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 74px; }
#gift .gp-haul .gp-patch .patch { width: 62px; height: 62px; display: block; }
#gift .gp-haul .gp-patch .patch svg { width: 100%; height: 100%; }
#gift .gp-haul .gp-patch small { font: 500 11px/1.15 'SC Label', sans-serif; letter-spacing: .06em; color: #c9c6ad; text-align: center; }
#gift .gp-haul .gp-patch.more { justify-content: center; height: 62px; font: 400 16px 'SC Display', sans-serif; color: #ffc93d; }
/* Summary, design A (2026-11-11, design/pack-summary.html): the night's own card filling the screen, buttons at the bottom. */
#gift .gp-haul { display: block; padding: 0; overflow: visible; }
#gift .gp-haul .gp-sum { position: absolute; left: 50%; width: min(calc(100% - 28px), 440px); transform-origin: 50% 60%; translate: -50% 0; top: calc(var(--safe-top, env(safe-area-inset-top, 0px)) + 62px); bottom: calc(var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 22px + 52px + 4px + 40px + 18px); display: flex; flex-direction: column; padding: 16px 16px 12px; border-radius: 18px; background: linear-gradient(#0e1a2c, #0a1322); border: 1.5px solid #d7dde6; box-shadow: 0 0 0 5px #0a1322, 0 0 0 6.5px #d7dde655, 0 24px 50px #000a; touch-action: none; animation: gp-sumin .5s cubic-bezier(.2, .9, .3, 1.1) backwards; }
@keyframes gp-sumin { from { opacity: 0; transform: translateY(24px) scale(.97); } }
#gift .gp-haul .gp-sbar { display: flex; justify-content: space-between; gap: 10px; font: 500 12px 'SC Label', sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #c9c6ad; border-bottom: 1px solid #ffffff1c; padding-bottom: 9px; margin-bottom: 12px; }
#gift .gp-haul .gp-sbar span:first-child { color: #fa8127; }
#gift .gp-haul .gp-sum > h2 { margin: 0; font: 400 28px/1 'SC Display', sans-serif; text-transform: uppercase; text-align: left; }
#gift .gp-haul .gp-sum > p { margin: 6px 0 12px; font: 500 15px 'SC Label', sans-serif; color: #c9c6ad; letter-spacing: .04em; text-align: left; }
#gift .gp-haul .gp-grid { flex: 1 1 auto; min-height: 0; width: 100%; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(var(--cols, 4), calc((100% - 24px) / 4)); justify-content: center; align-content: start; gap: 8px; padding: 4px 2px 10px; }
#gift .gp-haul .gp-grid.more-below { -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
#gift .gp-haul .gp-stats { display: flex; border-top: 1px solid #ffffff1c; border-bottom: 1px solid #ffffff1c; padding: 9px 0; margin-top: 6px; }
#gift .gp-haul .gp-stats > div { flex: 1; text-align: center; } #gift .gp-haul .gp-stats b { display: block; font: 400 20px/1.1 'SC Display', sans-serif; color: #fff2b3; }
#gift .gp-haul .gp-stats small { font: 500 11px 'SC Label', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #c9c6ad; }
#gift .gp-haul .gp-patches { margin: 10px 0 0; gap: 10px; }
#gift .gp-haul .gp-patch { width: 60px; } #gift .gp-haul .gp-patch .patch { width: 46px; height: 46px; } #gift .gp-haul .gp-patch small { font-size: 10px; }
#gift .gp-haul .gp-patch.more { height: 46px; }
#gift .gp-haul .gp-sfoot { display: flex; justify-content: space-between; margin-top: 10px; font: 500 10px 'SC Label', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #8f8d7c; }
#gift .gp-haul .gp-btns { position: absolute; left: 50%; translate: -50% 0; width: min(calc(100% - 28px), 440px); bottom: calc(var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 22px); display: flex; flex-direction: column; align-items: stretch; }
#gift .gp-haul .gp-btns .go { width: 100%; margin: 0; }
#gift .gp-haul .gp-btns .later { margin: 4px 0 0; }
#gift .gp-haul .gp-btns .gp-row { width: 100%; margin: 0 0 8px; }
@media (max-height: 700px) { #gift .gp-haul .gp-sum { padding: 12px 14px 10px; } #gift .gp-haul .gp-sum > h2 { font-size: 24px; } #gift .gp-haul .gp-patch small { display: none; } }
@media (prefers-reduced-motion: reduce) { #gift .gp-haul .gp-sum { animation: none; } }
/* Tiles never shrink to fit (an SE squeezed the grid's rows into each other): wrapped rows of four at a fixed width; the card
   scrolls instead. One short row is centred. */
#gift .gp-haul .gp-grid { display: flex; flex-wrap: wrap; justify-content: flex-start; align-content: flex-start; }
#gift .gp-haul .gp-grid.short { justify-content: center; }
#gift .gp-haul .gp-grid .t { flex: none; width: calc((100% - 24px) / 4); }
/* 2026-11-11 (Sevaan): no light line at the bottom (the card back's frame line in the gold
   art's mask, showing at the pack's foot), no "N new" pill on the pack. */
#gift .gp-newb { display: none !important; }
/* (2026-11-11, Sevaan: the tear's dotted seam stays; the striped crimp along the very top edge read as a dashed line, so it goes) */
#gift .gp-main .gp-art { clip-path: inset(0 0 calc(var(--ph) * .035) 0); }
/* the cap reaches 1 px into the body so no hairline shows where the two pieces meet (it was hidden under the dashed seam) */
#gift .gp-cap { height: calc(var(--ph) * .14 + 1px); }
/* the same frame line ran along the very top, gold in the serrated teeth: trimmed there too (2026-11-11, Sevaan) */
#gift .gp-cap .gp-art { clip-path: inset(calc(var(--ph) * .03) 0 0 0); }
/* The fan of the night's best five (2026-11-11): fills the space between the title and the stats. */
#gift .gp-haul .gp-fan { position: relative; flex: 1 1 auto; min-height: 120px; margin: 4px 0 6px; }
#gift .gp-haul .gp-fan .t { position: absolute; left: 50%; top: calc(50% - var(--more-h, 0px) / 2); width: var(--fw, 120px); aspect-ratio: 5 / 7; border-radius: calc(var(--fw, 120px) * .07); overflow: hidden; border: 2px solid var(--c); background: #0a1322 center 30% / cover no-repeat; box-shadow: 0 0 14px color-mix(in srgb, var(--c) 40%, transparent), 0 14px 26px #000a; transform-origin: 50% 85%; }
#gift .gp-haul .gp-fan .t > .mini-face { position: absolute; left: 0; top: 0; border-radius: 0; }
#gift .gp-haul .gp-fan .t.n::after { z-index: 2; content: 'NEW'; position: absolute; left: 6%; top: 4.5%; padding: 3px 6px; border-radius: 5px; background: #fa8127; color: #080f1b; font: 500 calc(var(--fw, 120px) * .085)/1 'SC Label', sans-serif; letter-spacing: .1em; }
#gift .gp-haul .gp-fan:has(.gp-more) { --more-h: 34px; }
#gift .gp-haul .gp-more { position: absolute; left: 50%; bottom: 0; translate: -50% 0; padding: 6px 12px 5px; border-radius: 99px; background: #ffffff12; border: 1px solid #ffffff2a; color: #fff2b3; font: 500 13px 'SC Label', sans-serif; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
/* the fan's cards are mini cards (2:3, their own frame) */
#gift .gp-haul .gp-fan .t.mini { aspect-ratio: 2 / 3; border: 0; background: none; overflow: hidden; border-radius: calc(var(--fw, 120px) * .05); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 35%, transparent), 0 14px 26px #000a; }
#gift .gp-haul .gp-fan .t.mini > .mini-face { position: absolute; inset: 0; border-radius: inherit; }
/* The summary is card-sized (2026-11-11, Sevaan: "it looks like a card, just bigger"): exactly the dealt cards' and the
   reveal's size (28 × 39.2 --dcf), centred in the space between the top icons and the buttons. */
#gift .gp-haul .gp-sum { width: calc(28 * var(--dcf)); height: calc(39.2 * var(--dcf)); bottom: auto; padding: calc(var(--dcf) * 1.15) calc(var(--dcf) * 1.15) calc(var(--dcf) * .85); border-radius: calc(var(--dcf) * 1.15);
  top: calc((var(--safe-top, env(safe-area-inset-top, 0px)) + 56px + 100% - var(--safe-bottom, env(safe-area-inset-bottom, 0px)) - 22px - 52px - 4px - 40px - 14px) / 2); translate: -50% -50%; }
#gift .gp-haul .gp-sum > h2 { font-size: calc(var(--dcf) * 2.1); }
#gift .gp-haul .gp-sum > p { font-size: calc(var(--dcf) * 1.15); margin: calc(var(--dcf) * .4) 0 calc(var(--dcf) * .6); }
#gift .gp-haul .gp-sbar { font-size: calc(var(--dcf) * .9); padding-bottom: calc(var(--dcf) * .65); margin-bottom: calc(var(--dcf) * .9); }
#gift .gp-haul .gp-stats { padding: calc(var(--dcf) * .6) 0; } #gift .gp-haul .gp-stats b { font-size: calc(var(--dcf) * 1.5); } #gift .gp-haul .gp-stats small { font-size: calc(var(--dcf) * .8); }
#gift .gp-haul .gp-patches { margin-top: calc(var(--dcf) * .7); } #gift .gp-haul .gp-patch { width: calc(var(--dcf) * 4.6); } #gift .gp-haul .gp-patch .patch { width: calc(var(--dcf) * 3.3); height: calc(var(--dcf) * 3.3); } #gift .gp-haul .gp-patch small { font-size: calc(var(--dcf) * .78); } #gift .gp-haul .gp-patch.more { height: calc(var(--dcf) * 3.3); }
#gift .gp-haul .gp-sfoot { font-size: calc(var(--dcf) * .75); margin-top: calc(var(--dcf) * .7); }
#gift .gp-haul .gp-more { font-size: calc(var(--dcf) * .95); }
@media (max-height: 700px) { #gift .gp-haul .gp-sum { padding: calc(var(--dcf) * 1) calc(var(--dcf) * 1.05) calc(var(--dcf) * .75); } }
/* The summary's share chooser (2026-11-11): the card viewer's two options, a picture of this card or the cards themselves. */
#gift .gp-sheet { position: absolute; inset: 0; z-index: 30; display: flex; align-items: flex-end; background: #0008; opacity: 0; transition: opacity .2s; }
#gift .gp-sheet.in { opacity: 1; }
#gift .gp-sheet-card { width: 100%; padding: 18px 16px calc(var(--safe-bottom, env(safe-area-inset-bottom, 0px)) + 18px); border-radius: 22px 22px 0 0; background: #111b2a; border-top: 1px solid #ffffff22; box-shadow: 0 -10px 30px #0008; transform: translateY(30px); transition: transform .25s cubic-bezier(.2, .9, .3, 1); }
#gift .gp-sheet.in .gp-sheet-card { transform: none; }
#gift .gp-sheet .k { font: 500 14px 'SC Label', sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #c9c6ad; margin: 0 4px 12px; }
#gift .gp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#gift .gp-opt { display: flex; flex-direction: column; align-items: stretch; padding: 8px 8px 14px; border: 1px solid #ffffff14; border-radius: 14px; background: #ffffff0a; color: #fff2b3; text-align: center; cursor: pointer; font: inherit; }
#gift .gp-opt:active { background: #ffffff1a; transform: scale(.98); }
#gift .gp-opt-vis { position: relative; display: block; height: 132px; margin-bottom: 10px; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #13243a, #070d18 80%); }
#gift .gp-opt > b { display: block; font: 500 14px/1.2 'SC Label', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
#gift .gp-opt > small { display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 500 13px/1.3 'SC Label', sans-serif; letter-spacing: .06em; color: #bdbea9; }
#gift .gp-haul-mini { position: absolute; inset: 0; pointer-events: none; }
#gift .gp-haul-mini .gp-sum { position: absolute; left: 50%; top: 50%; bottom: auto; translate: none; transform-origin: 50% 50%; transform: translate(-50%, -50%) scale(var(--k, .2)); animation: none; } /* centred: the big card scales from 50% 60% (iPhone 2026-11-12, the picture sat low and was cut off) */
#gift .gp-opt-pack { position: absolute; left: 50%; top: 50%; width: 62px; height: 92px; transform: translate(-50%, -50%); animation: none; border-radius: 6px; }
#gift .gp-cancel { width: 100%; margin-top: 12px; height: 50px; border-radius: 13px; border: 1px solid #ffffff2a; background: none; color: #fff2b3; font: 500 15px 'SC Label', sans-serif; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }

/* The first-run opener (2026-11-12): no backdrop of its own; the welcome page's sky and the welcome card show through, so the card can rise out of the pack's mouth from behind it */
/* (2026-11-12, Sevaan: the opener looked different from the night pack) It has the night pack's own backdrop and stars
   until the tear, then they fade so the welcome card can rise out of the mouth from the page underneath. */
#gift.bare { background: none;
  /* as wide as the welcome card it holds (2026-11-12, Sevaan: "the size of the card. It's much smaller"): the card's own --cf (css/app.css .wc-holder), 28 of them wide */
  --cf: calc(max(7px, min(14px, (var(--vws, 100vw) - 58px) / 28, (100dvh - 120px) / 39.2, (100dvh - var(--safe-top, 0px) - var(--safe-bottom, 0px) - 136px) / 42)) * 28 / 31); }
#gift.bare::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 120% 70% at 50% 40%, #0c1d29, #080f1b 60%, #04070d); transition: opacity .35s ease-out; pointer-events: none; }
#gift.bare .gp-stars { transition: opacity .35s ease-out; }
#gift.bare.clear::before, #gift.bare.clear .gp-stars { opacity: 0; }
#gift.bare.out { animation: none; }
#gift.bare:focus { outline: none; }

/* Pack lighting A "Pillow" (2026-11-12, Sevaan picked it from design/pack-real.html): a sealed bag, not a flat card. The bulge
   shades to the sides and seals, fine pleats where it pinches into the seals, a soft highlight down the bulge that slides with
   the tilt (--mx), ridged seals with their own light, lit side edges, and a contact shadow under the pack. All still layers
   except the band's background-position, like the existing sheen. Replaces the striped .gp-crimp. */
#gift .gp-pillow { background:
    radial-gradient(ellipse 62% 48% at 50% 52%, #ffffff14, transparent 70%),
    linear-gradient(90deg, #0008, #0003 6%, transparent 16%, transparent 84%, #0003 94%, #0008),
    linear-gradient(#0007, #0002 10%, transparent 20%, transparent 80%, #0002 90%, #0008); }
#gift .gp-pinch { background: repeating-linear-gradient(90deg, #ffffff10 0 2px, #00000026 2px 7px, #ffffff08 7px 9px, #0000001a 9px 15px); mix-blend-mode: overlay;
  -webkit-mask: linear-gradient(#000 0, #0008 8%, transparent 20%, transparent 80%, #0008 92%, #000 100%); mask: linear-gradient(#000 0, #0008 8%, transparent 20%, transparent 80%, #0008 92%, #000 100%); }
#gift .gp-seal { inset: 0 0 auto 0 !important; height: calc(var(--ph) * .085); mix-blend-mode: overlay;
  background: linear-gradient(#ffffff2e, #ffffff08 55%, #0000004d 92%, #0009), repeating-linear-gradient(90deg, #ffffff40 0 .8px, #ffffff0c .8px 2.2px, #00000059 2.2px 3.6px, #0000 3.6px 4px); }
#gift .gp-seal.b { inset: auto 0 0 0 !important; background: linear-gradient(#0009, #0000004d 8%, #ffffff08 45%, #ffffff2e), repeating-linear-gradient(90deg, #ffffff40 0 .8px, #ffffff0c .8px 2.2px, #00000059 2.2px 3.6px, #0000 3.6px 4px); }
#gift .gp-edges { background: linear-gradient(90deg, #ffffff30 0 1px, #ffffff0a 1px 3px, transparent 3px calc(100% - 3px), #00000040 calc(100% - 3px) calc(100% - 1px), #ffffff18 calc(100% - 1px)); }
#gift .gp-contact { position: absolute; left: 6%; right: 6%; bottom: -5%; height: 9%; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, #000d, transparent 70%); filter: blur(10px); opacity: .85; pointer-events: none; }
#gift .gp-seal:not(.b) { -webkit-mask: linear-gradient(transparent 0 9px, #000 15px); mask: linear-gradient(transparent 0 9px, #000 15px); } /* not in the serrated teeth: stripes there read as a dashed line along the top (2026-11-11) */

/* Pillow band slides by transform with the tilt (setTilt), like the sheen */
#gift .gp-band { left: -60% !important; right: -60% !important; mix-blend-mode: screen; background: linear-gradient(90deg, transparent 38%, #fff1c80d 44%, #fff1c838 50%, #fff1c80d 56%, transparent 62%); will-change: transform; }


/* The Send cards pack is a small copy of the real one (2026-11-12, Sevaan: "a mini version of the actual pack"): the same
   pillow lighting as the sealed pack (#gift .gp-pillow etc., design A), ridged seals instead of stripes, the dotted tear
   line, the print lines, lit edges and a contact shadow. */
.sv-pk-lines { background: repeating-linear-gradient(0deg, #ffffff06 0 1px, transparent 1px 3px); }
.sv-pk-pillow { background:
    linear-gradient(90deg, #0008, transparent 14%, transparent 86%, #0008), linear-gradient(#0000 80%, #0006), /* the real pack's .gp-shade */
    radial-gradient(ellipse 62% 48% at 50% 52%, #ffffff14, transparent 70%),
    linear-gradient(90deg, #0008, #0003 6%, transparent 16%, transparent 84%, #0003 94%, #0008),
    linear-gradient(#0007, #0002 10%, transparent 20%, transparent 80%, #0002 90%, #0008); }
.sv-pk-pinch { background: repeating-linear-gradient(90deg, #ffffff10 0 2px, #00000026 2px 6px, #ffffff08 6px 8px, #0000001a 8px 12px); mix-blend-mode: overlay;
  -webkit-mask: linear-gradient(#000 0, #0008 8%, transparent 20%, transparent 80%, #0008 92%, #000 100%); mask: linear-gradient(#000 0, #0008 8%, transparent 20%, transparent 80%, #0008 92%, #000 100%); }
.sv-pk-crimp { height: 8.5% !important; background: linear-gradient(#ffffff2e, #ffffff08 55%, #0000004d 92%, #0009), repeating-linear-gradient(90deg, #ffffff40 0 .8px, #ffffff0c .8px 2.2px, #00000059 2.2px 3.6px, #0000 3.6px 4px); }
.sv-pk-crimp.t { -webkit-mask: linear-gradient(transparent 0 7px, #000 11px); mask: linear-gradient(transparent 0 7px, #000 11px); } /* not in the teeth: stripes there read as a dashed line */
.sv-pk-crimp.b { background: linear-gradient(#0009, #0000004d 8%, #ffffff08 45%, #ffffff2e), repeating-linear-gradient(90deg, #ffffff40 0 .8px, #ffffff0c .8px 2.2px, #00000059 2.2px 3.6px, #0000 3.6px 4px); }
.sv-pk-seam { top: 14% !important; bottom: auto !important; height: 1.5px; background: repeating-linear-gradient(90deg, #f7d77a99 0 5px, transparent 5px 9px); opacity: .7; }
.sv-pk-edges { background: linear-gradient(90deg, #ffffff30 0 1px, #ffffff0a 1px 3px, transparent 3px calc(100% - 3px), #00000040 calc(100% - 3px) calc(100% - 1px), #ffffff18 calc(100% - 1px)); }
.sv-pk::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -5%; height: 9%; border-radius: 50%; background: radial-gradient(ellipse at 50% 50%, #000d, transparent 70%); filter: blur(8px); opacity: .85; z-index: -1; pointer-events: none; }

/* Reduce Motion: no rotating burst, no full-screen flash, and the pack pieces and tags fade instead of flying (the deep review, 2026-11-12) */
@media (prefers-reduced-motion: reduce) {
  #gift .gp-burst.on .gp-rays, #gift .gp-flash.on, #gift .gp-tags span, #gift .gp-tailbtn { animation: none !important; }
  #gift .gp-pk.drop { transform: none !important; transition: opacity .2s !important; }
  #gift .gp-cap.fly { transform: none !important; transition: opacity .2s !important; }
}

/* the sealing flash covers the whole top seal (its mask hid all but a sliver) */
.sv-stage.sealing .sv-pk-crimp.t { -webkit-mask: none; mask: none; }
/* The pack summary's share chooser shows the same mini pack as the card viewer's sheet and Send cards (iOS playtest 2026-11-12: it was a flat card back) */
#gift .gp-opt-vis.v-opt-pack .sv-pk { position: absolute; left: 50%; top: 50%; width: 140px; height: 210px; transform: translate(-50%, -50%) scale(.45); animation: none; }
#gift .gp-opt-vis.v-opt-pack .sv-bag > span { position: absolute; inset: 0; display: block; }

/* "Cards in" (2026-11-12, Sevaan picked B of design/pack-thick.html: the pack looked like a flat card): the stack inside presses
   through the foil. A card-shaped panel below the tear line with a lit top edge and a shadowed bottom edge where the foil is
   pulled tight over it, the layered bottoms of the cards behind, and foil that drops away faster beyond the stack. Still
   layers only; nothing changes per frame. */
#gift .gp-pillow { background:
    radial-gradient(ellipse 52% 44% at 50% 54%, #ffffff12, transparent 70%),
    linear-gradient(90deg, #000a, #0005 5%, #0001 9%, transparent 13%, transparent 87%, #0001 91%, #0005 95%, #000a),
    linear-gradient(#0008, #0003 10%, transparent 16%, transparent 84%, #0003 90%, #0009); }
#gift .gp-cards { inset: 17% 7.5% 12% !important; border-radius: 5% / 3.4%; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 40% 35%, #ffffff0d, transparent 60%);
  box-shadow: inset 0 3px 0 #fff4d24d, inset 0 4px 6px #fff4d21a, inset 2px 0 0 #fff4d226, inset 0 -4px 0 #00000080, inset -2px 0 0 #00000059, 0 2px 0 #00000066, 0 -2px 0 #ffffff1a, 0 0 30px #0008; }
#gift .gp-cards::after { content: ''; position: absolute; left: 1.5%; right: 1.5%; bottom: -5px; height: 5px; border-radius: 0 0 6px 6px; background: repeating-linear-gradient(#ffffff14 0 1px, #0000004d 1px 2.5px); opacity: .9; }

/* Sides (2026-11-12, Sevaan: "let me see the sides on the card pack too", A of design/pack-thick.html with B): the pack has
   depth. The front pieces sit forward (the translate property, so the cap's own tear transform is untouched), a dark back
   sits behind, and a side wall joins them on each edge: full depth in the middle, pinched to nothing at the seals. Seen only
   as the pack tilts; the tilt moves them as one piece, nothing per frame. */
#gift .gp-pk { --pd: calc(var(--pw) * .17); }
#gift .gp-piece { translate: 0 0 calc(var(--pd) / 2); }
#gift .gp-back, #gift .gp-wall { position: absolute; pointer-events: none; }
#gift .gp-back { inset: 3% 1.5%; translate: 0 0 calc(var(--pd) / -2); background: #050a14; border-radius: 4px; }
#gift .gp-wall { top: 7.5%; bottom: 7.5%; width: var(--pd); }
#gift .gp-wall.l { left: 0; transform-origin: 0 50%; transform: translateZ(calc(var(--pd) / 2)) rotateY(90deg); clip-path: ellipse(100% 50% at 0 50%);
  background: linear-gradient(90deg, #8a7238 0 2px, #22344e 2.5px, #172539 40%, #0b1424); }
#gift .gp-wall.r { right: 0; transform-origin: 100% 50%; transform: translateZ(calc(var(--pd) / 2)) rotateY(-90deg); clip-path: ellipse(100% 50% at 100% 50%);
  background: linear-gradient(270deg, #8a7238 0 2px, #22344e 2.5px, #172539 40%, #0b1424); }
#gift .gp-pk.drop .gp-back, #gift .gp-pk.drop .gp-wall { opacity: 0; transition: opacity .2s; }
#gift .gp-contact { left: 3%; right: 3%; bottom: -6%; height: 11%; }
/* The tear line and the swipe cue sit on the front, which moved forward with the sides (they were left behind it: 2026-11-12,
   Sevaan "the circle showing where to drag your finger has gone missing"). The cards inside at half strength (Sevaan). */
#gift .gp-tear, #gift .gp-cue { translate: 0 0 calc(var(--pd) / 2 + 1px); }
#gift .gp-cards { opacity: .5; }

/* Send cards: the tile's tick sits at the bottom right, off the card's set name (iPad playtest 2026-11-12); the pack summary's
   share chooser is a centred sheet on wide screens like every other sheet */
.sv-tile:has(.mini-face) .sv-tick { top: auto; bottom: 6px; }
@media (min-width: 700px) { #gift .gp-sheet-card { max-width: 620px; margin-inline: auto; } }
#gift .gp-pk.opened .gp-back, #gift .gp-pk.opened .gp-wall { display: none; }

/* The dealt cards sit exactly where a catch's card does (2026-11-13, Sevaan: the pack's card was lower than the ISS
   card in the store video). Same rule as css/reveal.css: centred between the NEW CARD row (safe top + 52) and the rank
   bar (safe bottom + 84), sized like js/reveal.js sizeCard's second pass (95% of the room between those rows, or of the
   width less 40px). --dch is the cards' real height in card ems, set by js/gift-pack.js once they're built. */
#gift { --gp-st: var(--safe-top, env(safe-area-inset-top, 0px)); --gp-sb: var(--safe-bottom, env(safe-area-inset-bottom, 0px));
  --gp-y: calc(50% + (var(--gp-st) + 92px - var(--gp-sb) - 83px) / 2); /* 2026-11-19: the reveal now centres between the chips row (safe top + 84, +8) and the rank bar's top (safe bottom + 75, +8), measured in sizeCard; this follows it (Sevaan's Flip: the cards sat high) */
  --dcf: max(5px, min(14px, calc(.95 * (100vw - 40px) / 28), calc(.95 * (100dvh - var(--gp-st) - var(--gp-sb) - 149px) / var(--dch, 42)))); }
@media (min-width: 600px) and (min-height: 600px) { #gift { --dcf: max(5px, min(18px, calc(.95 * (100vw - 40px) / 28), calc(.95 * (100dvh - var(--gp-st) - var(--gp-sb) - 149px) / var(--dch, 42)))); } }
#gift .gp-deck { top: var(--gp-y); height: calc(var(--dch, 42) * var(--dcf)); margin-top: calc(var(--dch, 42) * var(--dcf) / -2); }
#gift .gp-tags { top: calc(var(--gp-y) - var(--dch, 42) * var(--dcf) / 2 - 1.4 * var(--dcf) - 52px); }
/* Small phones (2026-11-13, Fable pack hunt: on an iPhone SE the pills ran under the ✕): the row keeps clear of the ✕
   on both sides, and the pills tighten their type so two of them still fit on one line. */
#gift .gp-tags { padding: 0 52px; }
@media (max-width: 400px) { #gift .gp-tags span { font-size: 12.5px; letter-spacing: .12em; padding: 6px 10px; } }
/* Reduce Motion, the wordless opener (Fable pack hunt 2026-11-13: the cue sat still, with no words to say what to do):
   the ring stays put mid-strip and gently brightens and fades instead of travelling. */
@media (prefers-reduced-motion: reduce) { #gift.bare .gp-cue { left: calc(50% - 15px); animation: gp-cuepulse 2.4s ease-in-out infinite !important; } }
@keyframes gp-cuepulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* 320 px phones: "Something legendary · tap to turn" stays on one line (from Sky's QA, 2026-11-19) */
@media (max-width: 340px) { #gift .gp-tags .tease { white-space: nowrap; letter-spacing: .04em; font-size: 12px; } }

/* Send cards, By card (2026-11-20, from Sky; Sevaan: "this list of cards can get really long"): the Collection's own search line,
   filter menus and count line (css/collection.css), pinned to the top of the page while the cards scroll, as in the Collection. */
.send-view .sv-page { --main-pad: 18px; } /* the pinned rows' backdrops reach the page's edges, no further */
#send-view .collection-tools { display: grid !important; top: var(--sv-tabs-h, 0px); }
#send-view :is(.collection-tabs, .collection-tools)[hidden] { display: none !important; }
.send-view .result-row .sv-sa { padding: 0 2px; min-height: 44px; }
.send-view .empty { margin-top: 4px; }
/* Every tile is a card's shape from the start, so a card filling in (or emptied far off screen) never moves the grid. */
.sv-grid .sv-tile { aspect-ratio: 2 / 3; border: 0; background: none; overflow: visible; border-radius: calc(14px * var(--mini-s, .4)); }
/* The pick marker sits in the picture's lower left corner, over no words (it covered the card's footer), the same size on every
   card; a picked card also gets a thick ring. */
.sv-tile .mini-face .sv-tick { position: absolute; z-index: 4; top: auto; right: auto; left: calc(6px / var(--mini-s, .4)); bottom: calc(6px / var(--mini-s, .4)); width: calc(26px / var(--mini-s, .4)); height: calc(26px / var(--mini-s, .4)); border: calc(2px / var(--mini-s, .4)) solid #fff; background: #0d223866; box-shadow: 0 0 calc(4px / var(--mini-s, .4)) #0008; box-sizing: border-box; }
.sv-tile.on .mini-face .sv-tick { background: #fa8127; border-color: #fff; }
.sv-tile.on .mini-face .sv-tick::after { font: 800 calc(15px / var(--mini-s, .4)) / 1 system-ui, sans-serif; color: #080f1b; }
.sv-grid .sv-tile.on { outline: 3px solid #fa8127; outline-offset: 2px; }
.sv-grid .sv-tile:focus-visible { outline: 2px dashed #fa8127; outline-offset: 2px; }
/* A long list scrolls like the Collection's grid: cards off screen skip layout and paint, and an empty slot is a plain
   card-shaped placeholder until its card fills in. */
.sv-grid .sv-tile { contain: strict; }
.sv-grid .sv-tile .sv-art { content-visibility: auto; }
.sv-grid .sv-tile .sv-art:empty { background: var(--panel, #0f1b2a); border-radius: inherit; }
/* Android: no 3D sides or back on the pack (2026-11-20, Sevaan chose this after measuring: with the cap fix alone the pack
   still went blank for 46-76 of ~230 frames over four missed-tear swipes on the API 37 emulator; the sides and back are three
   more 3D layers in the masked, tilted pack). The pack is flat again there, the front unchanged; iPhone and the website keep
   the sides. */
html.android #gift .gp-pk { --pd: 0px; }
html.android #gift :is(.gp-back, .gp-wall) { display: none; }
