body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #000000;
      background-image: url('../templates/background/Layer\ 1.png');
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px;
    }
.font-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}
.font-image {
  position: absolute;
  width: clamp(50px, 8vw, 70px);
  height: auto;
  display: block;
  pointer-events: auto;
  top: 2%;
  left: 2%;
}
/* ✅ Visible Frame (preview for user) */
.frame-wrapper {
    position: relative;
    max-width: 418.56px;
    width: 100%;
    aspect-ratio: 418.56/628.16;
    height: 628.16px;
    background: rgb(64,64,64);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3),
    inset 0 3px 3px rgba(255, 255, 255, 0.5),
    inset 0 -4px 6px rgba(0, 0, 0, 0.6);        /* central depth */
}
/* ✅ Low-res preview area */
.photo-area {
    position: absolute;
    top: 60px;
    left: 50%; /* Keep in center */
    transform: translate(-50%);
    width: 320px; /* Square */
    height: 320px;
    border: 2px dashed #ccc;
    background-color: rgb(35,35,35);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.photo-area video,
.photo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.countdown {
    position: absolute;
    font-size: 64px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 8px black;
    z-index: 10;
    pointer-events: none;
}
.controls {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.nanum-pen-script-regular {
  font-family: "Nanum Pen Script", cursive;
  font-weight: 400;
  font-style: normal;
}

.normal-button,
.continue-button {
  font-family: 'Nanum Pen Script', cursive;
  border: none;
  border-radius: 7px;
  padding: 10px 15px;
  white-space: nowrap;  
  height: 50px; 
  line-height: 30px;
  font-size: 30px;
  cursor: pointer;
  color: white;
  box-sizing: border-box;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.2),
    inset 0 3px 3px rgba(255, 255, 255, 0.5),   /* subtle top light */
    inset 0 -4px 6px rgba(0, 0, 0, 0.6);        /* central depth */
}
.normal-button {
    background-color: rgb(64,64,64);
}
.continue-button {
    background-color: rgb(98,42,42);
}
/* ✅ Shadow frame for export (invisible) */
#shadowFrameWrapper {
    width: 1570px;
    height: 2355px;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    z-index: -9999;
}
/* High resolution photo area */
#shadow-photo-box {
    width: 1200px;
    height: 1200px;
    position: absolute;
    top: 225px; /* 60px scaled by 3.75 */
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
}
@media (max-width: 480px) {
.frame-wrapper {
max-width: clamp(300px, 100%, 418.56px);
aspect-ratio: 2 / 3;
height: auto;
margin-top: 15px;
}
.font-image {
/* Consistent dynamic sizing */
/* Positioning for fullscreen mobile */
top: 12px; /* simpler and stable */
left: 10px;
margin-bottom: 10px;
}
.photo-area {
width: clamp(240px, 76.4%, 320px);       /* 76.4% of parent width (≈275px) */
aspect-ratio: 1 / 1; 
height: auto;
top: clamp (51.6px, 9.55%, 60px);
left: 50%;
transform: translateX(-50%);
}
.controls {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 10px;
justify-content: center;
width: 100%;
}
button {
font-size: 17px;
padding: 10px;
width: 100%;
box-sizing: border-box;
}
}