/* Lamplight: pack (spec: design canvas board Offering) — the Offering overlay, root .lamp-pack inside #overlay */
.lamp-pack { position: absolute; inset: 0; z-index: 400; overflow: hidden; background: #1c0a1e; color: #fff4dc; font-family: var(--f-body); -webkit-font-smoothing: antialiased; user-select: none; }
.lamp-pack:focus { outline: none; }
.lamp-pack .of-world { position: absolute; inset: 0; overflow: hidden; }
.lamp-pack .of-bg { position: absolute; left: -20px; top: -12px; width: 1960px; height: calc(1104px + var(--ex, 0px)); background: center/cover no-repeat; filter: saturate(.75); pointer-events: none; }
.lamp-pack .of-veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 50% 62%, rgba(52,16,48,.62), rgba(24,6,24,.9) 75%); }
.lamp-pack .rays { position: absolute; left: 960px; top: 820px; width: 2600px; height: 2600px; margin: -1300px 0 0 -1300px; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,140,.13) 0deg 7deg, rgba(255,214,140,0) 7deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 6%, rgba(0,0,0,.5) 24%, transparent 46%); mask-image: radial-gradient(circle, #000 6%, rgba(0,0,0,.5) 24%, transparent 46%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .3s; animation: lp-spin calc(50s / var(--speed, 1)) linear infinite; }
.lamp-pack.burst .rays { opacity: .45; } /* soft: the choices are the subject, not the light */
.lamp-pack.dense.burst .rays { opacity: .3; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
.lamp-pack .glowpool { position: absolute; left: 960px; top: 820px; width: 900px; height: 620px; margin: -310px 0 0 -450px; border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse, rgba(255,190,110,.32), rgba(255,160,90,0) 66%); mix-blend-mode: screen; }

/* ---------- altar ledge at the top ---------- */
.lamp-pack .al-head { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font: 700 17px/1 var(--f-body); color: rgba(255,244,220,.82); }
.lamp-pack .al-head span { font-weight: 800; color: rgba(255,244,220,.74); }
.lamp-pack .al-ledge { left: 605px; top: 134px; width: 710px; z-index: 58; } /* pack.js centres it on the screen with the row */
.lamp-pack .al-row { position: absolute; left: 617px; top: 40px; z-index: 60; display: flex; gap: 14px; }
.lamp-pack .slot { position: relative; width: 126px; height: 118px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; box-sizing: border-box; }
.lamp-pack .slot .pad { position: absolute; left: 25px; right: 25px; bottom: 7px; height: 13px; border-radius: 50%; background: #d6bc93; box-shadow: inset 0 5px 0 #a8875f; }
.lamp-pack .im { display: block; background-size: contain; background-repeat: no-repeat; background-position: 50% 50%; translate: 0 calc(var(--sink, .053) * 100%); }
.lamp-pack .slot .im { position: relative; width: 92px; height: 92px; filter: drop-shadow(0 3px 2px rgba(50,25,10,.5)); }
.lamp-pack .slot.land .im { animation: lp-land .6s cubic-bezier(.2,1.7,.4,1); }
@keyframes lp-land { 0% { transform: scale(1.8) translateY(-20px); } 55% { transform: scale(.88); } 100% { transform: scale(1); } }
.lamp-pack .slot.glow::after { content: ""; position: absolute; left: 50%; top: 44%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(111,227,207,.7), rgba(111,227,207,0) 62%); animation: lp-burnout .9s ease-out forwards; }
@keyframes lp-burnout { from { opacity: 1; transform: scale(.5); } to { opacity: 0; transform: scale(1.6); } }
.lamp-pack .slot.ed-neg .im { filter: invert(.9) hue-rotate(180deg); }

/* ---------- title ---------- */
.lamp-pack .title { position: absolute; left: 0; top: 198px; width: 1920px; text-align: center; pointer-events: none; }
.lamp-pack .title h1 { margin: 0; font: 800 78px/1 var(--f-chunk); color: #ffd25e; letter-spacing: .5px; text-shadow: 0 6px 0 rgba(110,50,0,.45), 0 0 44px rgba(255,170,50,.55); }
.lamp-pack .title p { margin: 14px 0 0; font: 600 23px/1 var(--f-body); color: rgba(255,244,220,.82); }
.lamp-pack .title p .sz { display: inline-block; margin-right: 12px; padding: 5px 12px 6px; border-radius: 12px; background: rgba(255,210,94,.16); color: #ffd25e; font: 800 18px/1 var(--f-chunk); letter-spacing: .4px; vertical-align: 2px; } /* Jumbo / Mega */
.lamp-pack .title.swap h1 { animation: lp-swap .45s cubic-bezier(.2,1.8,.4,1); }
@keyframes lp-swap { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- the choices, each on a podium ---------- */
.lamp-pack .item { --band: #c98f4a; --rc: #ffe7b0; --hc: 255,232,180; position: absolute; top: 312px; width: 340px; margin-left: -170px; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; border-radius: 26px; }
.lamp-pack .item:not(.in) { cursor: default; }
.lamp-pack .item .fly { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; transition: transform calc(.72s / var(--speed, 1)) cubic-bezier(.25,1.45,.4,1), opacity .4s ease; }
.lamp-pack .item .halo { position: absolute; left: 50%; top: -30px; width: 300px; height: 300px; margin-left: -150px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--hc),.5), rgba(var(--hc),.14) 45%, rgba(0,0,0,0) 68%); opacity: .8; transition: opacity .25s, transform .25s; }
.lamp-pack .item.in:hover .halo, .lamp-pack .item:focus-visible .halo, .lamp-pack .item.chosen .halo { opacity: 1; transform: scale(1.15); }
.lamp-pack .item .lift { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; min-height: 184px; transition: transform .24s cubic-bezier(.3,1.8,.5,1); }
.lamp-pack .item .lift .im { width: 184px; height: 184px; filter: drop-shadow(0 4px 3px rgba(0,0,0,.5)); transition: filter .2s; }
.lamp-pack .item.in:hover .lift, .lamp-pack .item:focus-visible .lift { transform: translateY(-20px) scale(1.05); }
.lamp-pack .item.in:hover .lift .im, .lamp-pack .item:focus-visible .lift .im { filter: drop-shadow(0 22px 16px rgba(0,0,0,.55)) drop-shadow(0 0 16px rgba(255,244,214,.9)); }
.lamp-pack .item .lift .im.ed-foil { filter: drop-shadow(0 4px 3px rgba(0,0,0,.5)) drop-shadow(0 0 14px rgba(127,214,255,.9)); }
.lamp-pack .item .lift .im.ed-holo { filter: drop-shadow(0 4px 3px rgba(0,0,0,.5)) drop-shadow(0 0 14px rgba(255,138,122,.9)); }
.lamp-pack .item .lift .im.ed-poly { filter: drop-shadow(0 4px 3px rgba(0,0,0,.5)) drop-shadow(0 0 16px rgba(214,166,255,.95)) saturate(1.3); }
.lamp-pack .item .lift .im.ed-neg { filter: invert(.9) hue-rotate(180deg) drop-shadow(0 0 12px rgba(255,255,255,.5)); }
/* a playing card stands upright on its podium */
.lamp-pack .item .lift .card.static { position: relative; width: 120px; height: 168px; font-size: 11.43px; transform: none; margin-bottom: 4px; }
.lamp-pack .item .lift .card .face { animation: none; }

.lamp-pack .pod { position: relative; z-index: 1; display: block; width: 176px; height: 108px; margin: -13px auto 0; }
.lamp-pack .pod::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse 30% 30% at 50% 47%, rgba(85,48,26,.38) 0, rgba(85,48,26,.38) 62%, rgba(85,48,26,0) 66%), #f6ead3; box-shadow: 0 6px 0 #d8bf98; }
.lamp-pack .pod .pl-body { position: absolute; left: 24px; width: 128px; top: 13px; height: 65px; border-radius: 0 0 50% 50% / 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 19px, rgba(110,70,35,.22) 19px, rgba(110,70,35,.22) 22px, var(--band) 22px, var(--band) 26px, rgba(0,0,0,0) 26px),
    repeating-linear-gradient(90deg, rgba(110,70,35,.12) 0, rgba(110,70,35,.12) 2px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 13px),
    linear-gradient(90deg, #ecdcbc 0, #ecdcbc 56%, #ccb08a 56%, #ccb08a 100%); }
.lamp-pack .pod .pl-foot { position: absolute; left: 12px; width: 152px; top: 70px; height: 16px; border-radius: 50%; background: #ead8b6; box-shadow: 0 5px 0 #c4a47e; }
.lamp-pack .pod .pl-foot::after { content: ""; position: absolute; z-index: -1; left: -12px; width: 176px; top: 14px; height: 18px; border-radius: 50%; background: #e2cda8; box-shadow: 0 5px 0 #b0906c, 0 10px 0 1px rgba(30,8,20,.22); }

.lamp-pack .item .txt { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; max-width: 100%; margin-top: 8px; transition: opacity .2s; }
.lamp-pack .item .txt::before { content: ""; position: absolute; left: -34px; right: -34px; top: -8px; bottom: -22px; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, rgba(20,4,20,.7), rgba(20,4,20,.4) 50%, rgba(20,4,20,0) 72%); }
.lamp-pack .item .nm { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 800 28px/1.05 var(--f-chunk); color: #fff4dc; text-shadow: 0 3px 0 rgba(40,8,30,.4); }
.lamp-pack .item .rar { margin-top: 8px; font: 700 16px/1.15 var(--f-body); letter-spacing: .3px; color: var(--rc); }
.lamp-pack .item .rule { margin-top: 10px; font: 500 20px/1.32 var(--f-body); color: rgba(255,244,220,.95); }
.lamp-pack .item .pick { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 22px 11px; border-radius: 16px; background: linear-gradient(180deg, #ffd45c, #f2ae1d);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 5px 0 #b97c0a, 0 12px 20px -8px rgba(0,0,0,.6); color: #3a2006; font: 800 22px/1 var(--f-chunk);
  opacity: 0; transform: translateY(-6px) scale(.9); transition: opacity .15s, transform .2s cubic-bezier(.3,1.8,.5,1); }
.lamp-pack .item.in:hover .pick, .lamp-pack .item:focus-visible .pick { opacity: 1; transform: translateY(0) scale(1); }
.lamp-pack .item.chosen .pick, .lamp-pack .item.gone .pick { opacity: 0; }
.lamp-pack .item.going .txt, .lamp-pack .item.going .pod, .lamp-pack .item.going .halo { opacity: 0; transition: opacity .3s; }
.lamp-pack .item.gone { pointer-events: none; }
.lamp-pack .item.nope .fly { animation: lp-nope .34s; }
@keyframes lp-nope { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.lamp-pack .item.used .lift { animation: lp-used .6s ease-out forwards; }
@keyframes lp-used { 0% { transform: scale(1); filter: brightness(1); } 40% { transform: translateY(-30px) scale(1.15); filter: brightness(1.6) drop-shadow(0 0 30px rgba(199,169,255,1)); } 100% { transform: translateY(-60px) scale(.6); opacity: 0; } }
.lamp-pack .item .t-p { color: #7fd6ff; font-weight: 900; } .lamp-pack .item .t-f { color: #ff8a7a; font-weight: 900; } .lamp-pack .item .t-g { color: #ffd25e; font-weight: 900; }
.lamp-pack .item .t-h, .lamp-pack .item .t-k { color: #ffe7b0; font-weight: 900; } .lamp-pack .item .t-x { color: #fff; font-weight: 900; } .lamp-pack .item .t-muted { color: rgba(255,244,220,.55); }
.lamp-pack .item .t-s-H { color: #ff7a7f; } .lamp-pack .item .t-s-D { color: #ffa94d; } .lamp-pack .item .t-s-C { color: #7fd69a; } .lamp-pack .item .t-s-S { color: #9db4ff; }

/* ---------- four or five choices: smaller objects, quieter halos, shorter text ---------- */
.lamp-pack.dense .item .halo { opacity: .4; width: 230px; height: 230px; margin-left: -115px; top: -14px; }
.lamp-pack.dense .item.in:hover .halo, .lamp-pack.dense .item:focus-visible .halo, .lamp-pack.dense .item.chosen .halo { opacity: .85; }
.lamp-pack.dense .item .lift { min-height: 150px; }
.lamp-pack.dense .item .lift .im { width: 150px; height: 150px; }
.lamp-pack.dense .item .lift .card.static { width: 104px; height: 146px; font-size: 9.9px; }
.lamp-pack.dense .pod { width: 148px; height: 85px; margin-top: -11px; }
.lamp-pack.dense .item .nm { font-size: 25px; }
.lamp-pack.dense .item .rule { max-width: 284px; margin-top: 8px; font-size: 18px; line-height: 1.3; color: rgba(255,244,220,.88); } /* leaves a clear gutter between neighbours */
.lamp-pack.dense .item .txt::before { opacity: .8; }
.lamp-pack.same-rar .item .rar { display: none; }
.lamp-pack.same-rar .item .rule { margin-top: 8px; }

/* ---------- the opened vase on a small podium ---------- */
.lamp-pack .vase { position: absolute; left: 880px; top: 744px; width: 160px; height: 160px; pointer-events: none; isolation: isolate; transition: opacity .4s; }
.lamp-pack .vase .im { width: 160px; height: 160px; filter: drop-shadow(0 4px 3px rgba(0,0,0,.5)); }
.lamp-pack .vase .pod { position: absolute; z-index: -1; left: 12px; top: 140px; margin: 0; width: 136px; height: 85px; --band: rgba(0,0,0,0); }
.lamp-pack .vase .pod::after { height: 22px; box-shadow: 0 5px 0 #d8bf98; }
.lamp-pack .vase .pod .pl-body { left: 20px; width: 96px; top: 11px; height: 49px; border-radius: 0 0 50% 50% / 0 0 6px 6px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 16px, rgba(110,70,35,.22) 16px, rgba(110,70,35,.22) 19px, rgba(0,0,0,0) 19px),
    repeating-linear-gradient(90deg, rgba(110,70,35,.12) 0, rgba(110,70,35,.12) 2px, rgba(0,0,0,0) 2px, rgba(0,0,0,0) 13px),
    linear-gradient(90deg, #ecdcbc 0, #ecdcbc 56%, #ccb08a 56%, #ccb08a 100%); }
.lamp-pack .vase .pod .pl-foot { left: 10px; width: 116px; top: 54px; height: 13px; box-shadow: 0 4px 0 #c4a47e; }
.lamp-pack .vase .pod .pl-foot::after { left: -10px; width: 136px; top: 11px; height: 15px; box-shadow: 0 4px 0 #b0906c, 0 9px 0 1px rgba(30,8,20,.22); }
.lamp-pack .vase.shake .im { animation: lp-vshake .09s linear infinite; }
@keyframes lp-vshake { 0% { transform: translate(-4px, 1px) scale(1.01, .99); } 50% { transform: translate(4px, -2px) scale(.99, 1.01); } 100% { transform: translate(-4px, 1px) scale(1.01, .99); } }
.lamp-pack .vase.burst .im { animation: lp-vburst .7s cubic-bezier(.2,1.6,.4,1); }
@keyframes lp-vburst { 0% { transform: scale(1); } 15% { transform: scale(.9, 1.08); } 30% { transform: scale(1.1, .9); } 45% { transform: scale(1.25); filter: drop-shadow(0 0 40px rgba(255,220,150,1)) brightness(1.6); } 100% { transform: scale(1); } }
.lamp-pack .picks-left { position: absolute; left: 0; top: 986px; width: 1920px; text-align: center; font: 700 18px/1 var(--f-body); letter-spacing: .3px; color: rgba(255,244,220,.75); pointer-events: none; }
.lamp-pack .picks-left b { font: 800 26px/1 var(--f-chunk); color: #ffd25e; letter-spacing: 0; }

/* ---------- Hermes and his bubble ---------- */
.lamp-pack .hermes { position: absolute; left: -70px; top: 700px; width: 520px; height: 520px; pointer-events: none; }
.lamp-pack .hermes img { display: block; width: 100%; height: 100%; object-fit: contain; animation: lp-sway calc(5.5s / var(--speed, 1)) ease-in-out infinite; }
@keyframes lp-sway { 0%,100% { transform: none; } 50% { transform: translateY(-5px); } }
.lamp-pack .bubble { left: 300px; top: 778px; width: 400px; max-width: none; z-index: 50; box-sizing: border-box; font: 600 24px/1.3 var(--f-body); transform-origin: 0% 80%; }
.lamp-pack .bubble::after { display: none; }
.lamp-pack .bubble .tail { position: absolute; left: -30px; top: 60px; width: 42px; height: 42px; fill: #fff4dc; }

/* ---------- Skip: a cream slab, bottom right ---------- */
.lamp-pack .acts { position: absolute; right: 40px; top: 950px; display: flex; align-items: center; gap: 22px; }
.lamp-pack .skip { height: 100px; padding: 0 34px 4px; flex-direction: column; gap: 6px; font-size: 38px; border-radius: 26px; }
.lamp-pack .skip small { display: block; font: 600 16px/1 var(--f-body); letter-spacing: 0; opacity: .85; }

/* ---------- targeted Offerings: a temporary hand under the choices ---------- */
.lamp-pack .phand { position: absolute; left: 0; right: 0; top: 760px; height: 220px; pointer-events: none; z-index: 5; }
.lamp-pack .phand:empty { display: none; }
.lamp-pack .phand .card { pointer-events: auto; --s: .86; }
.lamp-pack.has-hand.burst .vase { opacity: 0; }
.lamp-pack.has-hand .title { top: 190px; }
.lamp-pack.has-hand .item { top: 296px; }
.lamp-pack.has-hand .bubble { left: 40px; top: 548px; width: 300px; font-size: 21px; padding: 16px 22px 18px; }
.lamp-pack.has-hand .bubble .tail { left: 120px; top: auto; bottom: -30px; width: 42px; height: 42px; }
.lamp-pack.has-hand .bubble .tail path { d: path("M4 0 C 10 14 16 28 30 42 C 30 28 32 14 40 0 Z"); }

@media (prefers-reduced-motion: reduce) {
  .lamp-pack *, .lamp-pack *::before, .lamp-pack *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* sculpted marble podium art (assets/ui/podium.webp, 3D matte) replaces the drawn cap, drum and base */
.lamp-pack .pod { height: 101px; background: url("../../../assets/ui/podium.webp?v=matte4") 50% 0 / 100% auto no-repeat; filter: drop-shadow(0 10px 8px rgba(30,8,20,.3)); }
.lamp-pack .pod::after, .lamp-pack .pod .pl-foot { display: none; }
.lamp-pack .pod .pl-body { display: none; }
.lamp-pack .vase .pod { height: 78px; }
.lamp-pack .vase .pod .pl-body { display: none; }
