* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", system-ui, sans-serif;
}

body {
    background: #0a3d3a;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

.falling-heart {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0.7;
    animation: fall 10s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.85;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(180deg, #0f5a55, #082c2a);
    overflow: hidden;
    z-index: 2;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 8px;
    position: relative;
    z-index: 10;
    gap: 8px;
}

.page-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #52e2db, #1f8b86);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.back-btn {
    padding: 8px 22px;
    border: 1px solid #3fa39e;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.music-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #3fa39e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.page {
    position: absolute;
    width: 100%;
    height: calc(100% - 78px - 46px);
    top: 74px;
    padding: 10px 24px 8px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    z-index: 5;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.page::-webkit-scrollbar {
    display: none;
}

.page.active {
    display: flex;
}

.envelope-img {
    width: 100%;
    max-width: 240px;
    margin: 16px 0 18px;
    font-size: 100px;
    line-height: 1;
}

.title-en {
    font-size: 14px;
    letter-spacing: 2px;
    color: #87f5ef;
    margin-bottom: 10px;
}

.title-main {
    font-size: 34px;
    line-height: 1.28;
    font-weight: 500;
    margin-bottom: 12px;
}

.title-sub {
    font-size: 16px;
    color: #b7eae7;
    margin-bottom: 20px;
    line-height: 1.5;
}

.gold-text {
    color: #87f5ef;
}

.main-btn {
    width: 100%;
    max-width: 340px;
    height: 68px;
    min-height: 60px;
    border-radius: 99px;
    background: linear-gradient(90deg, #1fa89f, #4dd6d1);
    border: none;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(77, 214, 209, 0.25);
}

.option-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0 6px;
    flex-shrink: 0;
}

.option-full {
    grid-column: 1 / -1;
}

.option-item {
    background: rgba(10, 70, 66, 0.6);
    border: 1px solid #2a6e6a;
    border-radius: 18px;
    padding: 18px 12px;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
}

.option-item.active {
    border: 2px solid #4dd6d1;
    background: rgba(20, 110, 105, 0.7);
    position: relative;
}

.option-item.active::after {
    content: "✓";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #4dd6d1;
    color: #07312e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.option-icon {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1.1;
}

.option-text {
    font-size: 16px;
    line-height: 1.35;
}

.btn-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 18px;
    flex-shrink: 0;
}

.btn-yes {
    width: 48%;
    max-width: 200px;
    height: 68px;
    border-radius: 99px;
    background: linear-gradient(90deg, #1fa89f, #4dd6d1);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(77, 214, 209, 0.25);
    flex-shrink: 0;
}

.btn-no {
    width: 48%;
    max-width: 200px;
    height: 68px;
    border-radius: 99px;
    background: rgba(10, 60, 57, 0.6);
    border: 1px solid #3fa39e;
    color: #ddd;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: 0.1s;
    flex-shrink: 0;
}

.btn-no2 {
    width: 60%;
    max-width: 260px;
    height: 62px;
    border-radius: 99px;
    background: rgba(15, 80, 76, 0.7);
    border: none;
    color: #ccc;
    font-size: 17px;
    margin-top: 12px;
    cursor: pointer;
    position: relative;
    transition: 0.1s;
    flex-shrink: 0;
}

.divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4dd6d1, transparent);
    margin: 18px 0 14px;
    position: relative;
    flex-shrink: 0;
}

.divider::after {
    content: "❧";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    color: #4dd6d1;
    background: #0c4a47;
    padding: 0 10px;
}

.progress-bar {
    position: absolute;
    bottom: 12px;
    width: 86%;
    left: 7%;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.progress-dot {
    flex: 1;
    height: 4px;
    background: #1c5c58;
    border-radius: 2px;
}

.progress-dot.on {
    background: #4dd6d1;
}

.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    z-index: 999;
}

.modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #0d5c58;
    width: 80%;
    max-width: 360px;
    padding: 36px 28px;
    border-radius: 24px;
    border: 1px solid #4dd6d1;
    text-align: center;
}

.modal-box h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.modal-box p {
    margin: 20px 0;
    color: #d9f6f4;
    line-height: 1.6;
}

.input-box {
    width: 100%;
    background: rgba(10, 70, 66, 0.6);
    border: 1px solid #4dd6d1;
    border-radius: 16px;
    padding: 14px 16px;
    color: #fff;
    font-size: 17px;
    margin: 10px 0;
    outline: none;
    flex-shrink: 0;
}

.custom-input {
    width: 100%;
    background: rgba(10, 70, 66, 0.6);
    border: 1px solid #4dd6d1;
    border-radius: 16px;
    padding: 14px 16px;
    color: #fff;
    font-size: 16px;
    margin-top: 10px;
    outline: none;
}

.custom-input::placeholder,
.input-box::placeholder {
    color: #81c9c5;
}

.result-card {
    width: 100%;
    background: rgba(10, 70, 66, 0.7);
    border: 1px solid #4dd6d1;
    border-radius: 22px;
    padding: 20px 18px;
    margin: 14px 0;
    text-align: left;
    flex-shrink: 0;
}

.result-card h4 {
    text-align: center;
    font-size: 20px;
    color: #87f5ef;
    margin-bottom: 14px;
}

.result-line {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #2a6e6a;
    font-size: 15px;
    line-height: 1.5;
}

.result-line:last-child {
    border-bottom: none;
}

.result-line strong {
    min-width: 60px;
    color: #87f5ef;
    flex-shrink: 0;
}

.result-line span {
    word-break: break-all;
    flex: 1;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #87f5ef;
    padding: 12px 24px;
    border-radius: 14px;
    border: 1px solid #4dd6d1;
    z-index: 9999;
    font-size: 14px;
    display: none;
}

@media (max-height: 780px) {
    .top-bar { padding: 12px 16px 6px; }
    .page-num, .music-icon { width: 42px; height: 42px; font-size: 16px; }
    .back-btn { padding: 6px 18px; font-size: 14px; }
    .page { top: 66px; height: calc(100% - 66px - 38px); padding: 6px 20px 6px; }
    .title-main { font-size: 30px; margin-bottom: 10px; }
    .title-sub { font-size: 15px; margin-bottom: 14px; }
    .envelope-img { font-size: 84px; margin: 10px 0 14px; }
    .option-wrap { gap: 10px; margin: 10px 0 4px; }
    .option-item { padding: 14px 10px; border-radius: 16px; }
    .option-icon { font-size: 28px; margin-bottom: 6px; }
    .option-text { font-size: 15px; }
    .main-btn { height: 60px; min-height: 56px; font-size: 18px; margin-top: 12px; }
    .btn-yes, .btn-no { height: 60px; font-size: 18px; }
    .btn-no2 { height: 56px; font-size: 16px; }
    .divider { margin: 14px 0 10px; }
    .btn-group { margin-top: 12px; gap: 10px; }
    .input-box { padding: 12px 14px; font-size: 16px; margin: 8px 0; }
    .progress-bar { bottom: 8px; }
    .result-card { padding: 16px 14px; margin: 10px 0; }
    .result-line { padding: 6px 0; font-size: 14px; }
    .modal-box { padding: 28px 22px; }
    .modal-box h3 { font-size: 22px; }
}

@media (max-width: 360px) {
    .title-main { font-size: 27px; }
    .option-text { font-size: 14px; }
    .main-btn { max-width: 300px; }
    .modal-box { padding: 24px 18px; }
    .modal-box p { margin: 14px 0; font-size: 15px; }
}

