html body {
    margin: 0;
}

.wrl-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(119, 0, 24, 0.55), transparent 30%),
        radial-gradient(circle at 80% 82%, rgba(80, 0, 15, 0.35), transparent 34%),
        linear-gradient(145deg, #050506 0%, #10070a 48%, #020203 100%);
    color: #f3e8e8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
    box-sizing: border-box;
}

.wrl-page * {
    box-sizing: border-box;
}

.wrl-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    background-image:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 42px 42px;
}

.wrl-orb {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.28;
    background: #7a001a;
}

.wrl-orb-one {
    top: -110px;
    right: -90px;
}

.wrl-orb-two {
    bottom: -150px;
    left: -100px;
}

.wrl-logo-wrap {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 46px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrl-logo {
    display: block;
    width: min(290px, 78vw);
    height: auto;
    image-rendering: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.16));
}

.wrl-shell,
.wrl-records-inner {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
}

.wrl-shell {
    min-height: auto;
    display: block;
    padding: 46px 0 42px;
}

.wrl-form,
.wrl-result-card,
.wrl-records-inner {
    border: 1px solid rgba(255, 128, 149, 0.24);
    background: rgba(9, 9, 12, 0.78);
    backdrop-filter: blur(22px);
    box-shadow: 0 30px 90px rgba(0,0,0,0.42);
}

.wrl-form,
.wrl-result-card {
    width: 100%;
    padding: 34px;
}

.wrl-result-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.16;
    letter-spacing: -0.05em;
    color: #fff;
}

.wrl-result-note {
    color: #dbc3c6;
    margin: 0 0 24px;
    line-height: 1.65;
    word-break: keep-all;
}

.wrl-form label {
    display: block;
    color: #f2dede;
    font-size: 14px;
    margin: 18px 0 8px;
}

.wrl-form label:first-of-type {
    margin-top: 0;
}

.wrl-form input,
.wrl-form textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 14px 15px;
    font-size: 15px;
    outline: none;
    border-radius: 0;
    box-shadow: none;
}

.wrl-form input::-webkit-outer-spin-button,
.wrl-form input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wrl-form input[type="number"] {
    -moz-appearance: textfield;
}

.wrl-form textarea {
    resize: vertical;
    min-height: 180px;
}

.wrl-form textarea#wrl_wish,
.wrl-form textarea[name="wrl_wish"] {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
}

.wrl-form input:focus,
.wrl-form textarea:focus,
.wrl-share-box input:focus {
    border-color: rgba(255, 93, 120, 0.78);
    background: rgba(255,255,255,0.09);
}

.wrl-date-row {
    display: grid;
    grid-template-columns: 1fr 0.72fr 0.72fr;
    gap: 10px;
}

.wrl-date-field {
    position: relative;
}

.wrl-date-field input {
    padding-right: 42px;
}

.wrl-date-field span {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
}

.wrl-form button,
.wrl-reset-link,
.wrl-like-button,
.wrl-copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 0;
    background: #8f001f;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.wrl-form button,
.wrl-reset-link {
    width: 100%;
    margin-top: 22px;
}

.wrl-form button:hover,
.wrl-reset-link:hover,
.wrl-like-button:hover,
.wrl-copy-button:hover {
    background: #b00028;
    transform: translateY(-1px);
    color: #fff;
}

.wrl-like-button:disabled,
.wrl-copy-button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.wrl-copy-button {
    background: rgba(255,255,255,0.12);
}

.wrl-copy-button:hover {
    background: rgba(255,255,255,0.18);
}

.wrl-wish-card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 18px;
    color: #fff;
    min-height: 100%;
    transition: opacity 0.45s ease, transform 0.45s ease, max-height 0.45s ease, padding 0.45s ease, margin 0.45s ease, border-color 0.45s ease;
}

.wrl-wish-card-single {
    margin-top: 22px;
}

.wrl-card-status {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 109, 130, 0.35);
    background: rgba(120, 0, 28, 0.22);
    color: #ffbcc6;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.wrl-wish-text {
    margin: 0 0 18px;
    color: #fff;
    line-height: 1.7;
    word-break: keep-all;
    white-space: normal;
}

.wrl-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
}

.wrl-card-meta-wide {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.wrl-card-meta span {
    color: #ff97a8;
    font-size: 13px;
}

.wrl-card-meta strong {
    color: #fff;
    font-size: 15px;
    word-break: break-all;
}

.wrl-countdown {
    color: #ff3458 !important;
    font-size: 21px !important;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.wrl-countdown-ended {
    color: #7f7f87 !important;
}

.wrl-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.wrl-share-box {
    margin-top: 16px;
}

.wrl-share-box span {
    display: block;
    color: #ff97a8;
    font-size: 13px;
    margin-bottom: 7px;
}

.wrl-share-box input {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.26);
    color: #fff;
    padding: 13px 14px;
    outline: none;
    border-radius: 0;
    box-shadow: none;
}

.wrl-case-code {
    margin-top: 14px;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.wrl-records {
    position: relative;
    z-index: 2;
    padding: 0 0 44px;
}

.wrl-fulfilled-records,
.wrl-ranking-records {
    padding-bottom: 80px;
}

.wrl-records-inner {
    width: min(760px, calc(100% - 40px));
    padding: 34px;
}

.wrl-records h2 {
    margin: 0 0 22px;
    color: #fff;
    font-size: 30px;
    letter-spacing: -0.04em;
}

.wrl-record-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}


.wrl-rank-card {
    display: block;
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 18px;
    color: #fff;
}

.wrl-rank-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.wrl-rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 34px;
    padding: 0 10px;
    background: rgba(143, 0, 31, 0.82);
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.wrl-rank-like {
    color: #ffbcc6;
    font-size: 14px;
    font-weight: 800;
}

.wrl-rank-status {
    display: inline-flex;
    margin-top: 2px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 218, 120, 0.36);
    background: rgba(255, 199, 64, 0.1);
    color: #ffe3a3;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.wrl-empty-record {
    margin: 0;
    color: #fff;
    line-height: 1.65;
    word-break: keep-all;
}

.wrl-fulfilled-card {
    border-color: rgba(255, 218, 120, 0.34);
    background: rgba(95, 64, 0, 0.18);
}

.wrl-fulfilled-card .wrl-card-status {
    color: #ffe3a3;
    border-color: rgba(255, 218, 120, 0.36);
    background: rgba(255, 199, 64, 0.1);
}

.wrl-expired-on-load,
.wrl-expired-now {
    border-color: rgba(255, 52, 88, 0.38);
    background: rgba(20, 20, 23, 0.72);
}

.wrl-cut-line {
    position: absolute;
    left: -18%;
    top: 50%;
    width: 136%;
    height: 4px;
    transform: rotate(-9deg) scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(255,255,255,0), #ff3458 16%, #ffffff 50%, #ff3458 84%, rgba(255,255,255,0));
    box-shadow: 0 0 16px rgba(255, 52, 88, 0.55);
    z-index: 3;
    animation: wrlCut 0.85s ease forwards;
}

.wrl-cut-text {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 4;
    color: #ff3458;
    font-size: 12px;
    letter-spacing: 0.16em;
    font-weight: 900;
}

.wrl-expired-on-load .wrl-wish-text,
.wrl-expired-now .wrl-wish-text {
    color: rgba(255,255,255,0.34);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #ff3458;
}

.wrl-fade-out {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    border-color: transparent !important;
    pointer-events: none;
}

.wrl-message {
    margin-top: 10px;
    color: #ffbcc6;
    font-size: 13px;
    line-height: 1.5;
}

@keyframes wrlCut {
    from {
        transform: rotate(-9deg) scaleX(0);
    }
    to {
        transform: rotate(-9deg) scaleX(1);
    }
}

@media (max-width: 920px) {
    .wrl-shell {
        padding: 44px 0 34px;
    }

    .wrl-form,
    .wrl-result-card,
    .wrl-records-inner {
        padding: 24px;
    }
}

@media (max-width: 700px) {
    .wrl-record-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .wrl-shell,
    .wrl-records-inner {
        width: min(100% - 24px, 760px);
    }

    .wrl-logo-wrap {
        width: min(100% - 24px, 1180px);
    }

    .wrl-logo-wrap {
        padding-top: 28px;
    }

    .wrl-shell {
        padding: 34px 0 26px;
    }

    .wrl-form,
    .wrl-result-card,
    .wrl-records-inner {
        padding: 20px;
    }

    .wrl-records {
        padding-bottom: 36px;
    }

    .wrl-fulfilled-records,
    .wrl-ranking-records {
        padding-bottom: 52px;
    }

    .wrl-date-row,
    .wrl-card-actions {
        grid-template-columns: 1fr;
    }
}
