:root {
  --purple: #3d2471;
  --gold: #d6ad63;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }

.screen {
  position: relative;         /* <— important */
  min-height: 100%;
  background: var(--purple);
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 45px 24px;
  /*border-radius: 24px;        /* rounded corners like the mock */*/
}

/* The black border you see in the mock */
.screen::before {
  content: "";
  position: absolute;
  inset: 14px;                /* distance from the page edge; tweak 10–22px */
  border: 3px solid #000;     /* black border */
  border-radius: 18px;        /* inner corner radius (slightly smaller than .screen) */
  pointer-events: none;       /* don’t block clicks */
  z-index: 0;
}

/* Keep logo/content above the border line */
.logo,
.content { position: relative; z-index: 1; }

.logo {
  width: 180px;
  display: block;
  margin: 0 auto 16px;
}

.content {
  display: grid;
  place-items: center;
}

.img-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
  filter: drop-shadow(0 6px rgba(0,0,0,.3));
}
.img-btn.small img { width: 140px; }
.img-btn img { display: block; width: 280px; height: auto; }

.frame {
  width: min(82vw, 440px);
  aspect-ratio: 3/5;
  background: #fff;
  border: 4px solid #f0e2bf;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.preview {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.actions {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.error {
  color: #ffd2d2;
  text-align: center;
  margin-top: 12px;
}

.thankyou-wrap {
  display: grid;
  place-items: center;
}
.thankyou {
  width: min(80vw, 480px);
  height: auto;
}
