:root {
    --ll-primary: #ef1f2c;
    --ll-accent: #ffbf19;
    --ll-bg: #f6f7f9;
    --ll-text: #202124;
    --ll-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.line-landing-body {
    margin: 0;
    background: #e9ebef;
    color: var(--ll-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

.ll-app {
    width: 100%;
    max-width: 520px;
    min-height: 100dvh;
    margin: 0 auto;
    padding-bottom: calc(76px + var(--ll-safe-bottom));
    overflow: hidden;
    background: var(--ll-bg);
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.ll-preview-banner,
.ll-demo-banner {
    position: sticky;
    top: 0;
    z-index: 25;
    padding: 7px 12px;
    background: #171719;
    color: #fff;
    font-size: .7rem;
    font-weight: 820;
    text-align: center;
}

.ll-demo-banner {
    background: #087a3b;
}

.ll-top {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
}

.ll-logo,
.ll-logo-fallback {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 11px;
}

.ll-logo {
    object-fit: contain;
}

.ll-logo-fallback {
    display: grid;
    place-items: center;
    background: var(--ll-primary);
    color: #fff;
    font-weight: 900;
}

.ll-top-copy {
    min-width: 0;
    flex: 1;
}

.ll-top-copy strong,
.ll-top-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ll-top-copy strong {
    font-size: .92rem;
}

.ll-top-copy small {
    margin-top: 2px;
    color: #777;
    font-size: .64rem;
}

.ll-lang {
    padding: 7px 9px;
    border: 0;
    border-radius: 999px;
    background: #f0f0f2;
    color: #333;
    font: inherit;
    font-size: .66rem;
    font-weight: 820;
    cursor: pointer;
}

.ll-hero {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--ll-primary), color-mix(in srgb, var(--ll-primary), #000 20%));
    color: #fff;
}

.ll-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ll-hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, .66));
    content: "";
}

.ll-hero-copy {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 22px;
    left: 22px;
}

.ll-hero h1 {
    margin: 0;
    font-size: 1.75rem;
    letter-spacing: -.025em;
    line-height: 1.18;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .22);
}

.ll-hero p {
    margin: 8px 0 0;
    font-size: .88rem;
    line-height: 1.5;
}

.ll-demo-visual {
    position: absolute;
    top: 18px;
    right: 17px;
    z-index: 1;
    width: 122px;
    height: 122px;
    border-radius: 40% 60% 62% 38%;
    background: rgba(255, 255, 255, .2);
    transform: rotate(13deg);
}

.ll-demo-visual::before,
.ll-demo-visual::after {
    position: absolute;
    border-radius: 20px;
    background: rgba(255, 255, 255, .87);
    content: "";
}

.ll-demo-visual::before {
    top: 34px;
    left: 23px;
    width: 62px;
    height: 50px;
    box-shadow: 24px 20px 0 rgba(255, 192, 25, .9);
}

.ll-demo-visual::after {
    top: 18px;
    left: 49px;
    width: 35px;
    height: 34px;
}

.ll-brand-card {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: -18px 15px 12px;
    padding: 13px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(28, 28, 35, .12);
}

.ll-brand-card .ll-logo,
.ll-brand-card .ll-logo-fallback {
    width: 52px;
    height: 52px;
}

.ll-brand-copy {
    min-width: 0;
    flex: 1;
}

.ll-brand-copy strong,
.ll-brand-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ll-brand-copy strong {
    font-size: 1rem;
}

.ll-brand-copy span {
    margin-top: 4px;
    color: #777;
    font-size: .7rem;
}

.ll-follow,
.ll-login-button {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: #06c755;
    color: #fff;
    font: inherit;
    font-size: .66rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.ll-notice {
    margin: 8px 15px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff2d7;
    color: #6f4a00;
    font-size: .68rem;
    line-height: 1.5;
}

.ll-section {
    padding: 8px 15px 14px;
}

.ll-member-card {
    overflow: hidden;
    border-radius: 17px;
    background: linear-gradient(145deg, var(--ll-primary), color-mix(in srgb, var(--ll-primary), #000 18%));
    color: #fff;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--ll-primary), transparent 75%);
}

.ll-member-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.ll-avatar {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-weight: 900;
}

.ll-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ll-member-copy {
    min-width: 0;
    flex: 1;
}

.ll-member-copy strong,
.ll-member-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ll-member-copy strong {
    font-size: .96rem;
}

.ll-member-copy span {
    margin-top: 4px;
    font-size: .68rem;
    opacity: .82;
}

.ll-points {
    flex: 0 0 auto;
    text-align: right;
}

.ll-points strong {
    display: block;
    font-size: 1.22rem;
}

.ll-points span {
    display: block;
    margin-top: 2px;
    font-size: .62rem;
    opacity: .82;
}

.ll-member-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 10px 13px;
    background: rgba(0, 0, 0, .14);
    font-size: .66rem;
}

.ll-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ll-menu-grid.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ll-menu-item {
    display: flex;
    min-width: 0;
    min-height: 68px;
    align-items: center;
    gap: 9px;
    padding: 11px;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 15px;
    background: #fff;
    color: var(--ll-text);
    box-shadow: 0 4px 14px rgba(20, 20, 28, .05);
    text-decoration: none;
}

.ll-menu-icon {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--ll-primary), #fff 88%);
    font-size: 1.2rem;
}

.ll-menu-item strong {
    overflow: hidden;
    font-size: .73rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.ll-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0;
}

.ll-section-head h2 {
    margin: 0;
    font-size: 1rem;
}

.ll-section-head span {
    color: #888;
    font-size: .65rem;
}

.ll-reward-list {
    display: grid;
    gap: 10px;
}

.ll-reward {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 17px rgba(20, 20, 28, .05);
}

.ll-reward-media {
    display: grid;
    min-height: 112px;
    place-items: center;
    background: linear-gradient(145deg, color-mix(in srgb, var(--ll-primary), #fff 86%), #fff2d2);
    color: var(--ll-primary);
    font-size: 1.7rem;
    font-weight: 900;
}

.ll-reward-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ll-reward-body {
    min-width: 0;
    padding: 12px;
}

.ll-reward-body > strong {
    display: block;
    font-size: .78rem;
    line-height: 1.35;
}

.ll-reward-body p {
    margin: 5px 0;
    color: #777;
    font-size: .65rem;
    line-height: 1.4;
}

.ll-reward-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.ll-reward-points {
    color: var(--ll-primary);
    font-size: .72rem;
    font-weight: 850;
}

.ll-reward-link {
    padding: 7px 9px;
    border: 0;
    border-radius: 9px;
    background: var(--ll-primary);
    color: #fff;
    font-size: .64rem;
    font-weight: 850;
    text-decoration: none;
}

.ll-reward-empty {
    padding: 20px;
    border: 1px dashed #d6d6dc;
    border-radius: 15px;
    color: #777;
    font-size: .72rem;
    text-align: center;
}

.ll-footer {
    padding: 18px;
    color: #939398;
    font-size: .6rem;
    text-align: center;
}

.ll-bottom {
    position: fixed;
    z-index: 16;
    bottom: 0;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(520px, 100%);
    padding: 7px 8px calc(7px + var(--ll-safe-bottom));
    border-top: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .96);
    transform: translateX(-50%);
    backdrop-filter: blur(16px);
}

.ll-bottom a {
    display: grid;
    place-items: center;
    gap: 3px;
    color: #777;
    font-size: .59rem;
    font-weight: 700;
    text-decoration: none;
}

.ll-bottom b {
    font-size: 1rem;
}

.ll-bottom a.active {
    color: var(--ll-primary);
}

.ll-demo-cta {
    display: block;
    margin: 0 15px 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #171719;
    color: #fff;
    font-size: .72rem;
    font-weight: 820;
    text-align: center;
    text-decoration: none;
}

@media (max-width: 360px) {
    .ll-hero h1 {
        font-size: 1.45rem;
    }

    .ll-menu-grid,
    .ll-menu-grid.columns-3 {
        grid-template-columns: 1fr;
    }

    .ll-member-main {
        padding: 13px;
    }

    .ll-points strong {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
