/* ============ FONTS ============ */
@font-face {
    font-family: 'Century Gothic';
    src: url('fonts/Century Gothic Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: block;
}
@font-face {
    font-family: 'Love-island-23';
    src: url('fonts/Love-island-23.otf') format('opentype');
    font-weight: 400;
    font-display: block;
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    background: #FF17A3;
    font-family: 'Century Gothic', Arial, sans-serif;
    -webkit-user-select: none; user-select: none;
}

/* ============ 1194 x 834 STAGE (scaled to fit) ============ */
#stage {
    position: absolute;
    top: 50%; left: 50%;
    width: 1194px; height: 834px;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    overflow: hidden;
}

.frame {
    position: absolute; inset: 0;
    width: 1194px; height: 834px;
    overflow: hidden;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.frame.active { opacity: 1; pointer-events: auto; }
.frame--pink { background: #FF17A3; }
.frame--welcome { background: #FFFFFF; cursor: pointer; }

/* ============ SHARED NAV BUTTONS ============ */
.btn {
    position: absolute;
    width: 175px; height: 75px;
    background: #FFFFFF;
    color: #FF17A3;
    border: none;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn:active { transform: scale(.96); }
.btn--back { left: 50px;  top: 709px; }
.btn--next { left: 969px; top: 709px; }

/* ============ SHARED TOP BAR (Customize / Confirm) ============ */
.topbar {
    position: absolute;
    left: 0; top: 127px;
    width: 1125px; height: 140px;
    background: #FFFFFF;
}
.topbar-title {
    position: absolute;
    right: 25px; top: 21px;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 78px;
    color: #FF17A3;
    text-align: right;
    white-space: nowrap;
}
.topbar-rule {
    position: absolute;
    left: 0; top: 106px;
    width: 1100px; height: 10px;
    background: #FF17A3;
}

/* ============ PAGE 1: WELCOME ============ */
.welcome-bg {
    position: absolute;
    left: -11px; top: -14px;
    width: 1216px; height: 862px;
    object-fit: cover;
}
.welcome-logo {
    position: absolute;
    left: 194px; top: 285px;
    width: 799px; height: 257px;
    object-fit: contain;
}
.welcome-footer {
    position: absolute;
    left: 0; top: 649px;
    width: 1125px; height: 140px;
    background: #FF17A3;
}
.welcome-title {
    position: absolute;
    left: 548px; top: 11px;
    font-weight: 700;
    font-size: 64px;
    line-height: 78px;
    color: #FFFFFF;
    white-space: nowrap;
}
.welcome-rule {
    position: absolute;
    left: 0; top: 89px;
    width: 1100px; height: 10px;
    background: #FFFFFF;
}
.welcome-tap {
    position: absolute;
    left: 975px; top: 104px;
    font-weight: 700;
    font-size: 20px;
    line-height: 25px;
    color: #FFFFFF;
    letter-spacing: .5px;
    animation: tapPulse 1.4s ease-in-out infinite;
}
@keyframes tapPulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ============ PAGE 2: DATA INPUT ============ */
.input-box {
    position: absolute;
    left: 264px; top: 317px;
    width: 666px; height: 100px;
    background: #FFFFFF;
    border-radius: 25px;
    overflow: hidden;
}
#name-input {
    width: 100%; height: 100%;
    border: none; outline: none;
    background: transparent;
    text-align: center;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #FF17A3;
    padding: 0 30px;
}
#name-input::placeholder { color: #FF17A3; opacity: .45; }

/* ============ PAGE 3: CUSTOMIZE ============ */
.customize-box {
    position: absolute;
    left: 264px; top: 291px;
    width: 666px; height: 125px;
    background: #FFFFFF;
    border-radius: 25px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.customize-input {
    width: 100%; height: 100%;
    border: none; outline: none;
    background: transparent;
    text-align: center;
    font-family: 'Love-island-23', cursive;
    font-weight: 400;
    font-size: 96px;
    line-height: 1;
    color: #FF17A3;
    padding: 0 24px;
}
.customize-input::placeholder { color: #FF17A3; opacity: .40; }
.customize-logo {
    position: absolute;
    left: 441px; top: 441px;
    width: 313px; height: 137px;
    object-fit: contain;
}

/* ============ PAGE 4: CONFIRM ============ */
.sticker {
    position: absolute;
    left: 299px; top: 287px;
    width: 597px; height: 312px;
}
.sticker-name {
    position: absolute;
    left: 0; top: 0;
    width: 597px;
    text-align: center;
    font-family: 'Love-island-23', cursive;
    font-weight: 400;
    font-size: 175px;
    line-height: 202px;
    color: #FF17A3;
    -webkit-text-stroke: 34px #FFFFFF;  /* 25 +10% +15% +7.5% */
    paint-order: stroke fill;
    white-space: nowrap;
    z-index: 2;
}
.sticker-logo {
    position: absolute;
    left: 103px; top: 97px;
    width: 389.51px; height: 215px;
    object-fit: contain;
    z-index: 1;
}

/* ============ PAGE 5: THANK YOU ============ */
.ty-frame {
    position: absolute;
    left: 215px; top: 236px;
    width: 764px; height: 295px;
    border: 15px solid #FFFFFF;
    display: flex; align-items: center; justify-content: center;
}
.ty-thanks {
    font-weight: 700;
    font-size: 175px;
    line-height: 1;
    color: #FFFFFF;
    letter-spacing: 2px;
}
.ty-logo {
    position: absolute;
    left: 215px; top: 539px;
    width: 369px; height: 119px;
    object-fit: contain;
}
.ty-actions {
    position: absolute;
    right: 50px; top: 545px;
    width: 360px;
    display: flex; flex-direction: column; gap: 18px;
}
.btn-ty {
    width: 100%;
    padding: 22px 0;
    background: #FFFFFF;
    color: #FF17A3;
    border: 4px solid #FFFFFF;
    border-radius: 14px;
    font-family: 'Century Gothic', sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform .12s ease;
}
.btn-ty--ghost { background: transparent; color: #FFFFFF; }
.btn-ty:active { transform: scale(.97); }
.btn-ty[disabled] { opacity: .6; cursor: default; }
