:root {
  color-scheme: light;
  --wine: #793c46;
  --badge-width: 284px;
  --badge-height: 410px;
  --badge-scale: 1;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: #f5f6f8; -webkit-font-smoothing: antialiased; }
.stage {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: radial-gradient(ellipse at 25% 20%, #edf2f8 0, transparent 58%), radial-gradient(ellipse at 85% 85%, #f0edf7 0, transparent 55%), #fafafa;
}
.lanyard { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ribbon-edge, .ribbon, .ribbon-stitch { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ribbon-edge { stroke: #54232f; stroke-width: 19; }
.ribbon { stroke: url(#ribbon-ink); stroke-width: 17; }
.ribbon-stitch { stroke: #e8c6b7; stroke-opacity: .3; stroke-width: .7; stroke-dasharray: 2 3; }
.badge {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--badge-width);
  height: var(--badge-height);
  transform-origin: 50% 0;
  will-change: transform;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  visibility: hidden;
  filter: drop-shadow(11px 17px 9px #27303b1c);
}
.badge.ready { visibility: visible; }
.badge.is-dragging { cursor: grabbing; filter: drop-shadow(15px 22px 13px #27303b24); }
.badge:focus-visible { outline: none; }
.badge:focus-visible .badge-sleeve { outline: 2px solid var(--wine); outline-offset: 5px; }
.badge.pointer-focus:focus-visible .badge-sleeve { outline: none; }
.badge-clip {
  position: absolute;
  top: -4px;
  left: calc(50% - 25px * var(--badge-scale));
  width: calc(50px * var(--badge-scale));
  height: calc(60px * var(--badge-scale));
  z-index: 2;
  overflow: visible;
}
.badge-sleeve {
  position: absolute;
  top: calc(39px * var(--badge-scale));
  bottom: 0;
  left: 0;
  right: 0;
  padding: calc(11px * var(--badge-scale));
  border: 1.5px solid #c7cbd2;
  background: linear-gradient(120deg, #ffffffb3, #f6f8fa20 40%, #fff8 93%, #d4d7dc50);
  border-radius: calc(17px * var(--badge-scale));
  box-shadow: inset 0 0 0 2px #ffffffe6, inset 0 0 0 5px #dde0e633, 2px 3px 0 #c9cbd150;
  overflow: hidden;
}
.badge-sleeve:after { content: ''; position: absolute; inset: 5px; border: 1px solid #c7ccd466; border-radius: 12px; pointer-events: none; }
.sleeve-seam {
  height: calc(28px * var(--badge-scale));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: calc(5px * var(--badge-scale)) calc(6px * var(--badge-scale)) 0;
  border-bottom: 1px solid #cdd0d66b;
  margin-bottom: calc(8px * var(--badge-scale));
}
.sleeve-seam i { width: calc(10px * var(--badge-scale)); height: calc(10px * var(--badge-scale)); border-radius: 50%; border: 1px solid #c5c9d0; box-shadow: inset 0 1px 2px #c4c6cb6b, 0 1px #fff; }
.sleeve-seam span { height: calc(7px * var(--badge-scale)); width: calc(53px * var(--badge-scale)); border: 1px solid #bcc0c8; border-radius: 5px; background: #dfe0e55e; box-shadow: inset 0 1px 2px #c3c6cc80, 0 1px #fff; }
.photo-wrap { height: calc(100% - 36px * var(--badge-scale)); border: 1px solid #fff; border-radius: calc(7px * var(--badge-scale)); overflow: hidden; background: #a00406; box-shadow: 0 1px 2px #6d6f7526; }
.photo-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; pointer-events: none; }
.sleeve-shine { position: absolute; inset: 0; background: linear-gradient(117deg, #fff0 24%, #fff2 24.5%, #fff0 25.5%, #fff0 72%, #fff2 72.5%, #fff0 86%); pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
