body {
    font-family: "Noto Sans KR", sans-serif;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

.landing-body {
    font-family: "Noto Sans KR", sans-serif;
}

.landing-card {
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
}

.home-banner-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(63, 63, 70, 0.8);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.96), rgba(9, 9, 11, 0.96));
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.home-banner-track {
    position: relative;
    min-height: 220px;
}

.home-banner-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.42s ease;
}

.home-banner-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.home-banner-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.home-banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(9, 9, 11, 0.7);
    color: #fff;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.home-banner-arrow.is-prev {
    left: 1rem;
}

.home-banner-arrow.is-next {
    right: 1rem;
}

.home-banner-dots {
    position: absolute;
    inset-inline: 0;
    bottom: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.home-banner-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.home-banner-dot.is-active {
    background: #f97316;
    transform: scale(1.1);
}

.js-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-auto-dismiss-flash {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.js-auto-dismiss-flash.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.profile-dark-input {
    background-color: #09090b !important;
    -webkit-appearance: none;
    appearance: none;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    background-clip: padding-box;
}

.profile-dark-input:-webkit-autofill,
.profile-dark-input:-webkit-autofill:hover,
.profile-dark-input:-webkit-autofill:focus,
.profile-dark-input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    background-color: #09090b !important;
    -webkit-box-shadow: 0 0 0 1000px #09090b inset !important;
    box-shadow: 0 0 0 1000px #09090b inset !important;
    transition: background-color 9999s ease-in-out 0s;
    border-color: rgb(39 39 42) !important;
}

.public-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: none;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.public-auth-modal.is-open {
    display: block;
}

.public-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.public-auth-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 540px);
    max-height: calc(100vh - 4rem);
    margin: 0 auto;
    border: 1px solid rgba(63, 63, 70, 0.9);
    border-radius: 1.75rem;
    background: #111318;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
    padding: 1.5rem;
}

.public-auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(63, 63, 70, 0.9);
    border-radius: 9999px;
    background: #18181b;
    color: #fafafa;
}

.public-auth-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.public-auth-tab {
    border: 1px solid rgba(63, 63, 70, 0.9);
    border-radius: 9999px;
    background: #18181b;
    color: #a1a1aa;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.85rem 1rem;
}

.public-auth-tab.is-active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

.public-auth-panel {
    display: none;
}

.public-auth-panel.is-active {
    display: block;
}

.public-auth-kicker {
    color: #f97316;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    margin: 0 0 0.6rem;
    text-transform: uppercase;
}

.public-auth-title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
}

.public-auth-copy {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.9rem 0 1.5rem;
}

.public-auth-form {
    display: grid;
    gap: 0.9rem;
}

.public-auth-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-auth-field {
    display: grid;
    gap: 0.45rem;
}

.public-auth-field > span {
    color: #f4f4f5;
    font-size: 0.95rem;
    font-weight: 800;
}

.public-auth-input {
    width: 100%;
    border: 1px solid rgba(63, 63, 70, 0.9);
    border-radius: 1rem;
    background: #09090b;
    color: #fff;
    font-size: 1rem;
    outline: none;
    padding: 0.82rem 1rem;
}

.public-auth-input::placeholder {
    color: #71717a;
}

.public-auth-input:focus {
    border-color: #f97316;
}

.public-auth-submit {
    border: 0;
    border-radius: 1rem;
    background: #f97316;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    margin-top: 0.35rem;
    padding: 0.88rem 1rem;
}

.public-consult-dialog {
    width: min(92vw, 460px);
}

.public-auth-error {
    color: #fb7185;
    font-size: 0.88rem;
    font-weight: 700;
    margin: -0.15rem 0 0.15rem;
}

.public-auth-links {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1rem;
    color: #a1a1aa;
    font-size: 0.9rem;
    font-weight: 700;
}

.public-auth-links a {
    color: inherit;
}

.site-popup-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
}

.site-popup-modal.is-open {
    display: block;
}

.site-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
}

.site-popup-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
    width: min(92vw, 820px);
    max-height: calc(100vh - 3rem);
    margin: 1.5rem auto;
    padding: 1.4rem;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.98), rgba(9, 9, 11, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.site-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.site-popup-image-wrap {
    overflow: hidden;
    border-radius: 22px;
    background: #0f0f10;
}

.site-popup-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.site-popup-copy {
    display: grid;
    gap: 0.95rem;
}

.site-popup-kicker {
    margin: 0;
    color: #f97316;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.site-popup-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.65rem, 2.8vw, 2.4rem);
    font-weight: 900;
    line-height: 1.1;
}

.site-popup-body {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.85;
}

.site-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-popup-cta,
.site-popup-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    font-weight: 800;
}

.site-popup-cta {
    background: #f97316;
    color: #fff;
}

.site-popup-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

@media (max-width: 640px) {
    .home-banner-track {
        min-height: 150px;
    }

    .home-banner-image {
        height: 150px;
    }

    .home-banner-arrow {
        width: 38px;
        height: 38px;
    }

    .home-banner-arrow.is-prev {
        left: 0.75rem;
    }

    .home-banner-arrow.is-next {
        right: 0.75rem;
    }

    .public-auth-modal {
        padding: 1rem 0.75rem;
    }

    .public-auth-dialog {
        max-height: calc(100vh - 2rem);
        padding: 1.25rem;
    }

    .public-consult-dialog {
        width: min(94vw, 460px);
    }

    .public-auth-grid {
        grid-template-columns: 1fr;
    }

    .site-popup-dialog {
        width: min(94vw, 820px);
        max-height: calc(100vh - 1.5rem);
        margin: 0.75rem auto;
        padding: 1rem;
        border-radius: 22px;
    }
}

@media (min-width: 768px) {
    .home-banner-track {
        min-height: 280px;
    }

    .home-banner-image {
        height: 280px;
    }
}

@media (min-width: 1280px) {
    .home-banner-track {
        min-height: 320px;
    }

    .home-banner-image {
        height: 320px;
    }
}
