/* Insta360 Campus Photobooth: hand-added interactions on top of the export.
   Linked from index.html via extras.json, so a re-export keeps them. */

/* The page-in-page has no tools: those belong to /canva-export. */
#bar { display: none !important; }

/* One continuous background: pages are see-through, the cameras live in
   one floating layer behind everything. */
body { background: #fff9ec; overflow-x: hidden; }
.page { background: transparent !important; }
#deck { position: relative; z-index: 1; }
#bgcams { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#bgcams .cam { position: absolute; opacity: var(--o); transform: translate(calc(var(--mx, 0) * var(--d) * 1px), calc((var(--my, 0) * var(--d) + var(--sy, 0)) * 1px)) rotate(var(--r)); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
#bgcams .cam > .in { animation: float var(--t) ease-in-out var(--delay) infinite alternate; }
#bgcams .cam img { display: block; width: 100%; height: auto; }
@keyframes float {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); }
}

/* Entrances: each piece comes in from its own side once its page is reached. */
:root { --ease: cubic-bezier(.2,.75,.2,1); }
.slide.seen .el.in-l > .in, .slide.seen .unit .el.in-l > .in { animation: inL .9s var(--ease) calc(var(--dl, 0) * 1ms) backwards; }
.slide.seen .el.in-r > .in, .slide.seen .unit .el.in-r > .in { animation: inR .9s var(--ease) calc(var(--dl, 0) * 1ms) backwards; }
.slide.seen .el.in-u > .in, .slide.seen .unit .el.in-u > .in { animation: inU .8s var(--ease) calc(var(--dl, 0) * 1ms) backwards; }
.slide.seen .el.in-d > .in, .slide.seen .unit .el.in-d > .in { animation: inD 1s cubic-bezier(.3,1.4,.5,1) calc(var(--dl, 0) * 1ms) backwards; }
.slide.seen .el.in-pop > .in, .slide.seen .unit .el.in-pop > .in { animation: pop .7s cubic-bezier(.3,1.6,.5,1) calc(var(--dl, 0) * 1ms) backwards; }
.slide.seen .el.in-roll > .in { animation: roll 1.1s var(--ease) calc(var(--dl, 0) * 1ms) backwards; }
.slide.seen .el.in-walk > .in { animation: walk 1.6s linear calc(var(--dl, 0) * 1ms) backwards; }
@keyframes inL { from { opacity: 0; transform: translateX(-160px); } }
@keyframes inR { from { opacity: 0; transform: translateX(160px); } }
@keyframes inU { from { opacity: 0; transform: translateY(70px); } }
@keyframes inD { from { opacity: 0; transform: translateY(-260px) rotate(-4deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.2) rotate(-12deg); } }
@keyframes roll { from { opacity: 0; transform: translateX(420px) rotate(320deg); } }
/* A queue shuffling in: slide from the left with a little step bounce. */
@keyframes walk {
  0% { opacity: 0; transform: translate(-340px, 0); }
  12% { opacity: 1; transform: translate(-300px, -10px); }
  25% { transform: translate(-255px, 0); }
  37% { transform: translate(-210px, -10px); }
  50% { transform: translate(-165px, 0); }
  62% { transform: translate(-120px, -10px); }
  75% { transform: translate(-75px, 0); }
  87% { transform: translate(-30px, -8px); }
  100% { transform: none; }
}

/* Things you can drag (they spring back). */
.toy { cursor: grab; touch-action: none; transition: translate .7s cubic-bezier(.3,1.5,.5,1); }
.toy.dragging { cursor: grabbing; transition: none; z-index: 50; }
.toy:focus-visible { outline: 3px solid #ffc700; outline-offset: 6px; border-radius: 12px; }
.toy > .in { transition: transform .35s var(--ease), filter .35s; }
.toy:hover > .in, .toy.dragging > .in { transform: scale(1.06) rotate(-3deg); filter: drop-shadow(0 18px 18px rgba(0,0,0,.25)); }

/* Photo booth: click for a countdown and a flash; the strip prints again. */
.booth { cursor: pointer; }
.booth:focus-visible { outline: 3px solid #ffc700; outline-offset: -6px; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 60; }
.flash.go { animation: flash .9s ease-out; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: .95; } 100% { opacity: 0; } }
.count { position: absolute; z-index: 61; display: grid; place-items: center; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: #ffc700; color: #111; font: 800 140px/1 Poppins, system-ui, sans-serif; pointer-events: none; animation: tick .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes tick { from { transform: scale(.3); opacity: 0; } }
.printed > .in { animation: print 1.1s cubic-bezier(.3,1.3,.5,1); }
@keyframes print { 0% { transform: translateY(0); } 30% { transform: translateY(-1100px); } 31% { transform: translateY(1150px); } 100% { transform: translateY(0); } }
.hint { position: absolute; z-index: 40; padding: 14px 26px; border-radius: 999px; background: #111; color: #fff; font: 600 26px/1 Poppins, system-ui, sans-serif; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: hint 2.4s ease-in-out 3 alternate; }
@keyframes hint { to { transform: translateY(-10px); } }

/* Staffing: a person and their role line light up together. */
.unit.hot > .in { transform: perspective(900px) translateY(-6px); filter: drop-shadow(0 18px 24px rgba(0,0,0,.22)); }
mark.role { background: linear-gradient(transparent 55%, #ffe27a 55%); color: inherit; padding: 0 2px; transition: background-size .3s; background-size: 0 100%; background-repeat: no-repeat; }
mark.role.on { background-size: 100% 100%; }

/* Marketing bullets tick on one by one. */
.slide.seen .tick { animation: inL .6s var(--ease) calc(var(--k) * 140ms + 500ms) backwards; }

/* Budget: lines and a stacked bar built from the deck's own line items. */
.bl { transition: background .2s; border-radius: 6px; white-space: nowrap; }
.bl.on { background: #ffe27a; }
.slide.seen .bl { display: inline-block; animation: inL .6s var(--ease) calc(var(--k) * 90ms + 300ms) backwards; }
/* Column right of the list, lined up with the price pill and the lines. */
.budget { position: absolute; left: 1610px; top: 426px; width: 80px; height: 534px; display: flex; flex-direction: column; gap: 4px; z-index: 30; }
.budget .seg { flex: var(--v) 1 0; border-radius: 10px; background: var(--c); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; transform-origin: left center; position: relative; }
.budget .seg:hover, .budget .seg.on, .budget .seg:focus-visible { transform: scaleX(1.25); box-shadow: 0 8px 20px rgba(0,0,0,.18); outline: none; }
.budget .seg span { position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); font: 700 22px/1 Poppins, system-ui, sans-serif; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.budget .seg:hover span, .budget .seg.on span, .budget .seg:focus-visible span { opacity: 1; }
.slide.seen .budget .seg { animation: grow .7s var(--ease) calc(var(--k) * 90ms + 500ms) backwards; }
@keyframes grow { from { transform: scaleY(0); opacity: 0; } }
.budget-label { position: absolute; left: 1610px; top: 290px; width: 280px; font: 700 26px/1.2 Poppins, system-ui, sans-serif; color: #111; z-index: 30; }
.js .slide:not(.seen) .budget-label { opacity: 0; }
.slide.seen .budget-label { animation: inR .8s var(--ease) 1.3s backwards; }
.budget-label small { display: block; margin-top: 8px; font-weight: 500; font-size: 18px; line-height: 1.3; color: #6b6b6b; }

@media (prefers-reduced-motion: reduce) {
  #bgcams .cam, #bgcams .cam > .in { animation: none !important; transform: rotate(var(--r)) !important; }
  .slide.seen .el > .in, .slide.seen .tick, .slide.seen .bl, .slide.seen .budget .seg { animation: none !important; }
  .toy { transition: none; }
  .flash.go, .printed > .in, .count, .hint { animation: none !important; }
}

/* Page 3: club logos + handles link to Instagram. */
.iglink { color: inherit; text-decoration: none; background: linear-gradient(#ffc700, #ffc700) 0 100% / 0 3px no-repeat; transition: background-size .3s var(--ease); }
.iglink.on, .iglink:hover, .iglink:focus-visible { background-size: 100% 3px; outline: none; }
.iglink:focus-visible { box-shadow: 0 0 0 3px #ffc700; border-radius: 4px; }
.iglogo { cursor: pointer; }
.iglogo > .in { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.iglogo.on > .in { transform: scale(1.1) rotate(-6deg); }
@media (prefers-reduced-motion: reduce) { .iglogo > .in { transition: none; } }

/* Page 2: drawn eye icons (Canva's stock one doesn't reach apps). */
.eye { display: block; width: 100%; height: 100%; transform-origin: center; }
.el:hover > .in > .eye { animation: blink .5s ease-in-out; }
@keyframes blink { 40%, 60% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) { .el:hover > .in > .eye { animation: none; } }

/* Product Playground: the panel behind the products is a soft peach card in
   Canva (cream at the top, peach at the bottom, rounded), and the ground is
   solid brown. The measured fills came out flat, so they're set here. */
[data-id="p4-el-6"] > .in { background: linear-gradient(180deg, rgb(255,249,235) 0%, rgb(255,243,225) 45%, rgb(255,237,214) 100%) !important; border-radius: 64px; }
[data-id="p4-el-7"] > .in { background: rgb(165,142,108) !important; }

/* No "Click to swap photo" here: photos aren't swappable on this page. */
.swap { display: none !important; }
.photo:not(.toy):not(.booth) { cursor: default; }

/* Background float: a wider, wandering loop (overrides the simple one). */
@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); }
  66% { transform: translate(calc(var(--fy) * -.7), calc(var(--fx) * .8)) rotate(calc(var(--fr) * -1)); }
  100% { transform: translate(calc(var(--fx) * -.5), calc(var(--fy) * -.6)) rotate(calc(var(--fr) * .5)); }
}

/* "Click me" by each booth: a real button with a pulse. */
.cta { position: absolute; z-index: 45; display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px 16px 22px; border: 0; border-radius: 999px; background: #ffc700; color: #111; font: 700 28px/1 Poppins, system-ui, sans-serif; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.22); transition: transform .2s var(--ease), box-shadow .2s; }
.cta svg { width: 34px; height: 34px; }
.cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 3px solid #ffc700; animation: ring 1.8s ease-out infinite; pointer-events: none; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.35, 1.6); opacity: 0; } }
.cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 36px rgba(0,0,0,.26); }
.cta:active { transform: scale(.96); }
.cta:focus-visible { outline: 3px solid #111; outline-offset: 4px; }

/* Hint chips. */
.chip { position: absolute; z-index: 44; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px; background: #111; color: #fff; font: 600 20px/1 Poppins, system-ui, sans-serif; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.2); animation: chipIn .5s cubic-bezier(.3,1.6,.5,1) backwards, bob 2.6s ease-in-out .5s 4 alternate; transition: opacity .4s; }
.chip svg { width: 26px; height: 26px; }
.chip.gone { opacity: 0; }
@keyframes chipIn { from { opacity: 0; transform: scale(.6) translateY(10px); } }
@keyframes bob { to { transform: translateY(-8px); } }

/* Marquees on the Marketing page. */
.marquee { position: absolute; z-index: 20; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 86%, transparent); }
.marquee.dragging { cursor: grabbing; }
.marquee:focus-visible { outline: 3px solid #ffc700; outline-offset: 4px; border-radius: 16px; }
.marquee img { pointer-events: none; }
.marquee .track { position: absolute; inset: 0; will-change: transform; }
.marquee .el { position: absolute; }
.marquee .el > .in { transition: transform .3s var(--ease); }
.marquee .el:hover > .in { transform: translateY(-8px) scale(1.03); }
/* Story progress bars that load one after another, like Instagram stories. */
.bars { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; gap: 6px; z-index: 5; }
.bars i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.45); overflow: hidden; position: relative; }
.bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); animation: load1 9s linear infinite; }
.bars i:nth-child(1)::after { animation-name: load1; }
.bars i:nth-child(2)::after { animation-name: load2; }
.bars i:nth-child(3)::after { animation-name: load3; }
.bars i::after { animation-delay: calc(var(--k) * -2.2s); }
@keyframes load1 { 0% { transform: scaleX(0); } 32%, 100% { transform: scaleX(1); } }
@keyframes load2 { 0%, 33% { transform: scaleX(0); } 65%, 100% { transform: scaleX(1); } }
@keyframes load3 { 0%, 66% { transform: scaleX(0); } 98%, 100% { transform: scaleX(1); } }

/* Logistics: cards glide with the scroll; a line joins the steps. */
.steps-line { position: absolute; left: 246px; top: 420px; width: 1428px; height: 6px; border-radius: 3px; background: #ffc700; transform-origin: left; transform: scaleX(0); z-index: -1; opacity: .7; }
.slide.seen .steps-line { animation: draw 1.4s var(--ease) 1.1s forwards; }
@keyframes draw { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .cta::after, .chip { animation: none !important; }
}

/* Page 1: no yellow half-circle peeking out behind the booth. */
[data-id="p1-el-0"] { display: none; }

/* Each page floats as its own rounded card over the camera background. */
body.continuous #deck { padding: 2vw 0; }
body.continuous .slide { width: calc(100% - 4vw); margin: 0 auto 2vw; border-radius: 2.2vw; overflow: hidden; background: rgba(255, 251, 242, .72); box-shadow: 0 1.2vw 3vw rgba(60, 40, 0, .10), 0 0 0 1px rgba(0, 0, 0, .04); }

/* Insta360 circles roll while dragged and spin when tapped. */
.marquee .track > .el > .in { rotate: var(--roll, 0deg); }
.spin > .in { animation: spin .8s cubic-bezier(.3,1.3,.5,1); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Story viewer. */
.viewer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(17,17,17,.82); opacity: 0; pointer-events: none; transition: opacity .25s; }
.viewer.open { opacity: 1; pointer-events: auto; }
.viewer .story { position: relative; height: min(86vh, 160vw); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; transform: scale(.92); transition: transform .3s var(--ease); }
.viewer.open .story { transform: none; }
.viewer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer p { position: absolute; left: 0; right: 0; bottom: 8%; margin: 0; text-align: center; color: #fff; font: 700 clamp(14px, 2.2vh, 22px)/1.3 Poppins, system-ui, sans-serif; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.vbars { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 5px; z-index: 2; }
.vbars i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); overflow: hidden; position: relative; }
.vbars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.vbars i.done::after { transform: none; }
.vbars i.now::after { animation: vload 4s linear forwards; }
@keyframes vload { to { transform: none; } }
.viewer .prev, .viewer .next { position: absolute; top: 0; bottom: 0; width: 40%; border: 0; background: none; cursor: pointer; }
.viewer .prev { left: 0; } .viewer .next { right: 0; }
.viewer .close { position: absolute; top: 24px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font: 400 26px/1 system-ui; cursor: pointer; z-index: 3; }
.viewer button:focus-visible { outline: 3px solid #ffc700; outline-offset: -3px; }

@media (prefers-reduced-motion: reduce) {
  .slide.seen .steps-line { animation: none; transform: none; }
  .spin > .in, .vbars i.now::after { animation: none; }
  .vbars i.now::after { transform: none; }
}

/* The real booth: a window with your camera, then your strip. */
.cam-booth { width: min(880px, 94vw); max-height: 94vh; max-height: 94dvh; margin: auto; padding: 20px; border: 0; border-radius: 24px; background: #fff9ec; color: #111; font-family: Poppins, system-ui, sans-serif; overflow: auto; }
.cam-booth[open] { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.cam-booth::backdrop { background: rgba(17, 17, 17, .78); }
.cam-view { position: relative; aspect-ratio: 1; max-height: 78vh; border-radius: 10px; overflow: hidden; background: #1c1a17; justify-self: center; width: 100%; }
.cam-view video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.cam-count { position: absolute; inset: 0; display: grid; place-items: center; font: 800 min(34vw, 190px)/1 Poppins, system-ui, sans-serif; color: #ffc700; text-shadow: 0 4px 24px rgba(0, 0, 0, .45); pointer-events: none; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: flash .7s ease-out; }
.cam-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cam-dots li { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; }
.cam-dots li.on { background: #ffc700; border-color: #ffc700; }
.cam-strip { display: none; height: min(78vh, 620px); width: auto; max-width: 100%; justify-self: center; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
.cam-booth[data-mode="done"] .cam-view { display: none; }
.cam-booth[data-mode="done"] .cam-strip { display: block; animation: cam-print .8s var(--ease); }
@keyframes cam-print { from { transform: translateY(-40%); opacity: 0; } }
.cam-side h2 { margin: 0 40px 10px 0; font-size: 26px; line-height: 1.2; }
.cam-msg { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #4a453c; min-height: 3.1em; }
.cam-bw { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; }
.cam-bw input { width: 20px; height: 20px; accent-color: #111; margin: 0; }
.cam-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cam-acts button { position: static; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; font: 700 16px/1.2 Poppins, system-ui, sans-serif; cursor: pointer; box-shadow: none; }
.cam-acts .cam-go::after { content: none; }
.cam-acts .cam-go:hover { transform: none; box-shadow: none; }
.cam-acts .cam-go:disabled { background: #e6dfcf; color: #5c564a; cursor: default; transform: none; }
.cam-save { display: none; background: #111; color: #fff; }
.cam-booth[data-mode="done"] .cam-save { display: block; }
.cam-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #111; color: #fff; font: 400 26px/1 system-ui; cursor: pointer; }
.cam-booth :focus-visible { outline: 3px solid #111; outline-offset: 3px; }
@media (max-width: 640px) {
  .cam-booth { padding: 14px; }
  .cam-booth[open] { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cam-view { max-height: 46vh; width: min(100%, 46vh); }
  .cam-strip { height: 46vh; }
  .cam-side h2 { font-size: 20px; margin-bottom: 4px; }
  .cam-msg { font-size: 14px; margin-bottom: 6px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cam-flash.go, .cam-booth[data-mode="done"] .cam-strip { animation: none; }
}
