/* KPARASPO 사용자 홈 */

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-3Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'A2z';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2601-6@1.0/에이투지체-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* ====== Hero ====== */
.home-hero {
    background-color: var(--lbp-dark);
    background-image: url('https://dioqaa1kptwcm.cloudfront.net/static/hero-pingpong.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-clip: border-box;
    padding: 0;
    position: relative;
    overflow: hidden;
    clip-path: inset(0);
}
.home-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 35, 0.5);
    z-index: 1;
}
.home-hero::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('https://dioqaa1kptwcm.cloudfront.net/static/hero-pingpong.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transform-origin: center;
    animation: homeHeroImageIntro 5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: none;
    z-index: 0;
}
@keyframes homeHeroImageIntro {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
.home-hero-inner {
    min-height: 800px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    z-index: 2;
}
.home-hero-content {
    width: 100%;
    /* max-width: 680px; */
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: 24px;
}
.home-hero-title {
    margin: 0;
    color: #ffffff;
    font-size: 60px;
    font-family: 'A2z', -apple-system, BlinkMacSystemFont, 'Pretendard', 'Noto Sans KR', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.home-hero-title span {
    font-size:40px;
    font-weight: 400;
    opacity: 0.8;
}

.home-hero-title-accent {
    color: var(--lbp-primary);
}
.home-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 12px;
}
.home-hero-cta .u-btn {
    min-height: 52px;
    padding: 0 30px;
    font-size: 20px;
    font-weight: 700;
}
.home-hero-cta .u-btn.is-primary {
    background: var(--lbp-primary);
    color: #ffffff;
}
.home-hero-cta .u-btn.is-primary:hover {
    background: var(--lbp-primary-hover);
}
.home-hero-cta .u-btn.is-ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.72);
    color: #ffffff;
}
.home-hero-cta .u-btn.is-ghost:hover {
    border-color: #ffffff;
    color: #ffffff;
}
/* ====== Stats ====== */
.home-stats {
    position: relative;
    z-index: 2;
    margin-top: -65px;
    padding: 0 24px 0;
    background: linear-gradient(to bottom, transparent 0 76px, #ffffff 76px 100%);
}
.home-stats-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #ffffff;
    border: 1px solid var(--lbp-border);
    border-radius: 18px;
    overflow: hidden;
}
.home-stat-card {
    min-height: 130px;
    padding: 24px 30px;
    background: #ffffff;
    border-right: 1px solid var(--lbp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}
.home-stat-card:last-child {
    border-right: none;
}
.home-stat-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #8a94a6;
    font-size: 0;
}
.home-stat-icon svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke:#7546d8;
}
.home-stat-icon.is-blue,
.home-stat-icon.is-yellow,
.home-stat-icon.is-green,
.home-stat-icon.is-purple {
    background: transparent;
    color: #8a94a6;
}
.home-stat-body {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    gap: 6px;
}
.home-stat-value {
    margin: 0;
    color: var(--lbp-text);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}
.home-stat-value .home-stat-unit {
    margin-left: 8px;
    color: var(--lbp-text-sub);
    font-size: 16px;
    font-weight: 700;
}
.home-stat-label {
    margin: 0;
    color: #999;
    font-size: 16px;
    font-weight: 600;
}

/* ====== Section ====== */
.home-section {
    padding: 78px 0;
    background: #ffffff;
}
.home-section.is-white {
    background: var(--lbp-bg);
}
.home-section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.home-tournament-section {
    position: relative;
    /* overflow: hidden; */
}
.home-tournament-section::before {
    content: 'TOURNAMENT';
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 0;
    color: #f9f9f9;
    font-size: clamp(72px, 10vw, 150px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    white-space: nowrap;
    pointer-events: none;
}
.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 38px;
}
.home-section-head-center {
    max-width: 560px;
    margin: 0 auto 42px;
    text-align: center;
}
.home-section-label {
    margin: 0  ;
    color: var(--lbp-primary);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.08em;
}
.home-section-title {
    margin: 0;
    color: var(--lbp-text);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0;
}
.home-section-sub {
    margin: 12px 0 0;
    color: var(--lbp-text-sub);
    font-size: 15px;
    line-height: 1.7;
}
.home-section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lbp-primary);
    font-size: 16px;
    font-weight: 600;
}
.home-section-more::after {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lbp-primary-bg);
}
.home-section-more:hover {
    color: var(--lbp-primary-hover);
}

/* ====== Tournament Cards ====== */
.home-tournaments,
.t-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}
.t-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 224px;
    background: #ffffff44;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}
.t-card:hover {
    border-color: #ddd;
}
.t-card-body {
    flex: 1;
    padding: 24px 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.t-card-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding-right: 35px;
    padding-bottom: 14px;
    /* border-bottom: 1px solid var(--lbp-border); */
}
.home-tournaments .u-badge.is-in_progress::before {
    display: none;
}
.t-card-head .u-badge {
    flex: 0 0 auto;
    width: fit-content;
}
.t-card-cta {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.t-card:hover .t-card-cta {
    color: #7546d8;
    transform: translate(2px, -2px);
}
.t-card-name {
    min-height: 0;
    margin: 0;
    color: var(--lbp-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.t-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #4f5b6f;
    font-size: 15px;
}
.t-card-meta-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 12px;
    align-items: start;
}
.t-card-meta-item strong {
    color: #333;
    font-weight: 700;
    font-size:18px;
}
.t-card-meta-item span {
    min-width: 0;
    color: #666;
    font-size:16px;
    font-weight:500;
}

/* ====== Features ====== */
.home-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.home-feature-card {
    min-height: 218px;
    padding: 30px 28px;
    background: #ffffff;
    border: 1px solid var(--lbp-border);
    border-radius: 14px;
}
.home-feature-card h3 {
    margin: 18px 0 10px;
    color: var(--lbp-text);
    font-size: 17px;
    font-weight: 900;
}
.home-feature-card p {
    margin: 0;
    color: var(--lbp-text-sub);
    font-size: 14px;
    line-height: 1.72;
}
.home-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.home-feature-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.home-feature-icon.is-blue { background: #e8f2ff; color: #4b8df8; }
.home-feature-icon.is-pink { background: #ffe8f3; color: #eb5b9b; }
.home-feature-icon.is-yellow { background: #fff5d8; color: #efa91b; }
.home-feature-icon.is-purple { background: #efe8ff; color: var(--lbp-primary); }
.home-feature-icon.is-green { background: #dff8ec; color: #37c68d; }
.home-feature-icon.is-orange { background: #fff0df; color: #e18a34; }

/* ====== Results Table ====== */
.home-results {
    background: #ffffff;
    border: 1px solid var(--lbp-border);
    border-radius: 10px;
    overflow: hidden;
}
.home-results-head,
.home-results-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.7fr) minmax(130px, 0.9fr) minmax(110px, 0.75fr) minmax(110px, 0.75fr) minmax(110px, 0.75fr) minmax(100px, 0.65fr);
    gap: 16px;
    align-items: center;
}
.home-results-head {
    padding: 22px 30px;
    background: var(--lbp-primary);
    border-bottom: 1px solid var(--lbp-border);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}
.home-results-row {
    padding: 22px 30px;
    border-bottom: 1px solid var(--lbp-border);
    /* color: var(--lbp-text-sub); */
    font-size: 16px;
    text-align: center;
}
.home-results-row:last-child {
    border-bottom: none;
}
.home-results-row:hover {
    background: #fbfcff;
}
.home-results-tournament {
    color: var(--lbp-text);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.home-results-event {
    color: var(--lbp-text-sub);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.home-results-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-results-medal-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.home-results-medal-dot.is-gold { background: #f2a719; }
.home-results-medal-dot.is-silver { background: #9aa6ba; }
.home-results-medal-dot.is-bronze { background: #b9742f; }
.home-results-date {
    color: #999;
    font-size: 15px;
    white-space: nowrap;
}

/* ====== CTA ====== */
.home-cta {
    background: #24324a;
    padding: 30px 0;
}
.home-cta-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: #ffffff;
}
.home-cta h2 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.04em;
}
.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}
.home-cta-actions .u-btn {
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 700;
}
.home-cta-actions .u-btn.is-primary {
    background: #ffffff;
    color: var(--lbp-primary);
}
.home-cta-actions .u-btn.is-primary:hover {
    background: rgba(255, 255, 255, 0.92);
}
.home-cta-actions .u-btn.is-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
}
.home-cta-actions .u-btn.is-ghost:hover {
    border-color: #ffffff;
    color: #ffffff;
}

/* ====== Empty ====== */
.u-empty,
.home-empty {
    grid-column: 1 / -1;
    padding: 46px 24px;
    text-align: center;
    color: var(--lbp-text-sub);
    background: #ffffff;
    border: 1px dashed var(--lbp-border);
    border-radius: 14px;
    font-size: 14px;
}
.home-results-empty {
    border: none;
    border-radius: 0;
}

@media (max-width: 1024px) {
    .home-stats-inner,
    .home-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-stat-card:nth-child(2n) {
        border-right: none;
    }
    .home-stat-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--lbp-border);
    }
    .home-tournaments,
    .t-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-results-head,
    .home-results-row {
        grid-template-columns: minmax(180px, 1.5fr) minmax(150px, 1fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr);
    }
    .home-results-head span:nth-child(5),
    .home-results-head span:nth-child(6),
    .home-results-row > span:nth-child(5),
    .home-results-row > span:nth-child(6) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero::after {
        animation: none;
        transform: scale(1);
    }
}

/* Apple/iOS 계열은 background-attachment: fixed 지원이 불안정해서 일반 배경으로 대체 */
@supports (-webkit-touch-callout: none) {
    .home-hero {
        background-attachment: scroll;
        clip-path: none;
    }
    .home-hero::after {
        position: absolute;
        inset: 0;
        width: auto;
        height: auto;
    }
}

@media (max-width: 768px) {
    .home-hero {
        background-attachment: scroll;
        clip-path: none;
    }
    .home-hero::after {
        position: absolute;
        inset: 0;
        width: auto;
        height: auto;
    }
    .home-hero-inner {
        min-height: 460px;
        padding: 56px 16px;
    }
    .home-hero-title {
        font-size: 40px;
    }
    .home-section-sub {
        font-size: 14px;
    }
    .home-stats {
        margin-top: -64px;
        padding: 0 16px 0;
        background: linear-gradient(to bottom, transparent 0 64px, #ffffff 64px 100%);
    }
    .home-section-inner {
        padding-left: 16px;
        padding-right: 16px;
    }
    .home-stats-inner,
    .home-tournaments,
    .t-card-grid,
    .home-features {
        grid-template-columns: 1fr;
    }
    .home-stat-card,
    .home-stat-card:nth-child(2n),
    .home-stat-card:last-child {
        border-right: none;
    }
    .home-stat-card,
    .home-stat-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--lbp-border);
    }
    .home-stat-card:last-child {
        border-bottom: none;
    }
    .home-section {
        padding: 56px 0;
    }
    .home-section-head {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 28px;
    }
    .home-section-title {
        font-size: 26px;
    }
    .home-cta h2 {
        font-size: 24px;
    }
    .home-cta {
        padding: 30px 0;
    }
    .home-cta-inner {
        padding: 0 16px;
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }
    .home-cta-actions {
        justify-content: flex-start;
        width: 100%;
    }
    .home-results-head {
        display: none;
    }
    .home-results-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px;
    }
    .home-results-row > span:nth-child(5),
    .home-results-row > span:nth-child(6) {
        display: inline-flex;
    }
    .home-hero-cta .u-btn,
    .home-cta-actions .u-btn {
        width: 100%;
    }
}
