/* Original logo choreography: ribbon sweeps, assembly, and a reverse departure. */
.attendance-burst { display:flex; flex-direction:column; align-items:center; width:390px; max-width:calc(100vw - 32px); padding:12px 24px 28px; border-color:#467d7c; border-radius:26px; background:radial-gradient(ellipse at 50% 20%,#244a51,#10252f 75%); box-shadow:0 24px 90px #0006; font-size:1.35rem; text-align:center; pointer-events:none; }
.attendance-burst[data-action="check_out"] { border-color:#647cad; background:radial-gradient(ellipse at 50% 20%,#33466b,#151f34 75%); }
.attendance-burst small { margin-top:8px; font-size:.82rem; line-height:1.6; color:#d8e7ed; opacity:1; }
.attendance-greeting { overflow-wrap:anywhere; max-width:100%; }
.attendance-scene { --scene-teal:#6ae4cd; --scene-gold:#f3c783; position:relative; isolation:isolate; width:320px; max-width:100%; height:200px; flex-shrink:0; margin:auto; }
.attendance-scene[data-action="check_out"] { --scene-teal:#a7c9ff; --scene-gold:#d4b5ff; }
.attendance-ribbons { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.ribbon { fill:none; stroke:var(--scene-teal); stroke-width:7; stroke-linecap:round; opacity:.75; }
.ribbon-front { stroke:var(--scene-gold); stroke-width:3; }
.scene-orbit { fill:none; stroke:var(--scene-teal); stroke-width:1; opacity:.18; stroke-dasharray:3 9; }
.attendance-logo-badge { position:absolute; left:50%; top:50%; width:94px; height:94px; margin:-47px 0 0 -47px; display:grid; place-items:center; border-radius:24px; background:#f7fcfc; border:1px solid #ffffff99; box-shadow:0 16px 32px #0004,0 0 35px #6ae4cd20; color:#a61b2d; font:800 3rem/1 system-ui; }
.attendance-logo-badge img { width:64px; height:64px; object-fit:contain; }
.attendance-scene-brand { position:absolute; left:0; right:0; bottom:5px; font:700 .7rem/1.5 system-ui,sans-serif; letter-spacing:.3em; color:#d7ecef; }
.attendance-tiles { position:absolute; inset:0; pointer-events:none; }
.attendance-tiles span { position:absolute; left:calc(50% - 5px); top:calc(50% - 5px); width:10px; height:10px; border-radius:2px; background:var(--scene-teal); opacity:0; }
.attendance-tiles span:nth-child(3n) { background:var(--scene-gold); width:7px; height:7px; }
.attendance-tiles span:nth-child(2n) { background:transparent; border:1px solid var(--scene-teal); }
.success-overlay { background:radial-gradient(ellipse at 50% 30%,#234650,#0c1825 75%)!important; }
.success-overlay[data-action="check_out"] { background:radial-gradient(ellipse at 50% 30%,#334264,#101827 75%)!important; }
.success-overlay .result-content { width:min(100%,480px); max-width:480px; padding:24px; }
.success-overlay .result-content :is(h2,p) { color:#fff!important; }
.success-overlay .result-content h2 { font-size:clamp(1.65rem,5vw,2.3rem); overflow-wrap:anywhere; }
.success-overlay .result-content #success-time { color:#c4d6e4!important; font-size:.85rem; }
.success-overlay .result-icon { display:block; width:320px; max-width:100%; height:200px; margin:0 auto 20px; border:0; border-radius:0; background:transparent; animation:none!important; }
.success-overlay .result-icon::after,.attendance-burst::after { display:none; }
@media(prefers-reduced-motion:no-preference) {
  .attendance-burst.is-leaving { animation:reveal-leave .35s ease-in both; }
  .attendance-scene .ribbon { stroke-dasharray:1000; animation:ribbon-reveal 2.6s cubic-bezier(.22,.65,.25,1) both; }
  .attendance-scene .ribbon-front { animation-delay:.14s; }
  .attendance-scene .attendance-logo-badge { animation:logo-assemble 1.4s cubic-bezier(.2,.8,.3,1) both; }
  .attendance-scene .attendance-tiles span { animation:tile-gather 1.35s cubic-bezier(.3,.7,.25,1) var(--tile-delay) both; }
  .attendance-scene .attendance-scene-brand { animation:brand-reveal .6s .8s both; }
  .attendance-scene[data-action="check_out"] .attendance-tiles span { animation:tile-depart 1.8s ease-out var(--tile-delay) both; }
  .attendance-scene[data-action="check_out"] .ribbon { animation:ribbon-farewell 2.8s ease-in-out both; }
  .attendance-scene[data-action="check_out"] .attendance-logo-badge { animation:logo-farewell 2s cubic-bezier(.2,.65,.3,1) both; }
  .attendance-greeting,.success-overlay :is(#success-title,#success-action) { animation:greeting-reveal .65s .55s both; }
  @keyframes reveal-leave { to { opacity:0; transform:translateY(16px) scale(.97); } }
  @keyframes ribbon-reveal { 0% { stroke-dashoffset:1000; opacity:0; } 35% { opacity:.9; } 75% { stroke-dashoffset:0; opacity:.8; } 100% { stroke-dashoffset:-90; opacity:.35; } }
  @keyframes ribbon-farewell { 0% { stroke-dashoffset:0; opacity:.35; } 35% { opacity:.85; } 100% { stroke-dashoffset:-1000; opacity:.12; } }
  @keyframes tile-gather { 0% { opacity:0; transform:translate(var(--tile-x),var(--tile-y)) rotate(var(--tile-turn)) scale(.4); } 25% { opacity:.9; } 100% { opacity:0; transform:translate(0,0) rotate(0) scale(.15); } }
  @keyframes tile-depart { 0% { opacity:0; transform:translate(0,0) scale(.2); } 25% { opacity:.85; } 100% { opacity:0; transform:translate(var(--tile-x),var(--tile-y)) rotate(var(--tile-turn)); } }
  @keyframes logo-assemble { 0%,15% { opacity:0; transform:perspective(500px) rotateY(-55deg) scale(.65); } 70% { opacity:1; transform:perspective(500px) rotateY(8deg) scale(1.04); } 100% { opacity:1; transform:none; } }
  @keyframes logo-farewell { 0% { opacity:0; transform:scale(.9); } 35% { opacity:1; transform:translateY(-8px) rotate(-5deg); } 100% { opacity:1; transform:none; } }
  @keyframes brand-reveal { from { opacity:0; letter-spacing:.6em; } to { opacity:1; letter-spacing:.3em; } }
  @keyframes greeting-reveal { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
}
@media(max-width:575px) { .attendance-burst { padding:8px 18px 24px; } }
@media(max-height:600px) { .success-overlay .result-content { max-height:100dvh; overflow-y:auto; padding:12px 24px; } .success-overlay .result-icon { height:160px; margin-bottom:8px; } .success-overlay .attendance-scene { height:160px; } }
