.lr-village-tile {
    background:
        linear-gradient(135deg, rgba(245, 158, 11, .22), rgba(79, 70, 229, .18)),
        rgba(22, 36, 58, .92);
    border-color: rgba(245, 158, 11, .42);
}

.lr-village-page {
    display: grid;
    gap: 18px;
}

.lr-village-welcome {
    position: relative;
    min-height: min(690px, calc(100vh - 132px));
    display: grid;
    align-content: end;
    justify-items: start;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, .42);
    border-radius: 28px;
    padding: clamp(24px, 5vw, 54px);
    background:
        linear-gradient(180deg, rgba(6, 9, 17, .08), rgba(6, 9, 17, .78) 58%, rgba(6, 9, 17, .94)),
        radial-gradient(circle at 68% 28%, rgba(248, 113, 113, .2), transparent 24%),
        radial-gradient(circle at 18% 18%, rgba(56, 189, 248, .18), transparent 26%),
        linear-gradient(135deg, #1b2145, #141220 42%, #070b13 100%);
    box-shadow: 0 26px 88px rgba(0, 0, 0, .44), inset 0 1px 0 rgba(255,255,255,.08);
}

.lr-village-sky,
.lr-village-sky::before,
.lr-village-sky::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
}

.lr-village-sky {
    background-image:
        linear-gradient(90deg, transparent 0 9px, rgba(255,255,255,.08) 9px 10px, transparent 10px 24px),
        linear-gradient(0deg, transparent 0 9px, rgba(255,255,255,.05) 9px 10px, transparent 10px 24px);
    background-size: 24px 24px;
    opacity: .22;
    mask-image: linear-gradient(180deg, #000, transparent 74%);
}

.lr-village-sky::before {
    top: auto;
    height: 35%;
    background:
        linear-gradient(135deg, transparent 0 18%, rgba(17, 24, 39, .82) 18% 27%, transparent 27%),
        linear-gradient(45deg, transparent 0 12%, rgba(30, 41, 59, .92) 12% 21%, transparent 21%),
        linear-gradient(180deg, transparent 0, rgba(15, 23, 42, .96) 62%);
    clip-path: polygon(0 52%, 8% 38%, 16% 52%, 25% 26%, 36% 58%, 47% 34%, 57% 54%, 68% 20%, 80% 56%, 91% 36%, 100% 50%, 100% 100%, 0 100%);
}

.lr-village-sky::after {
    inset: auto 8% 17% auto;
    width: min(230px, 38vw);
    height: min(120px, 22vw);
    background:
        linear-gradient(90deg, transparent 0 8%, rgba(12, 17, 28, .9) 8% 18%, transparent 18% 30%, rgba(12, 17, 28, .9) 30% 42%, transparent 42%),
        radial-gradient(circle at 70% 22%, rgba(248, 113, 113, .86), transparent 8%),
        linear-gradient(135deg, rgba(12, 17, 28, .95), rgba(49, 46, 129, .78));
    clip-path: polygon(0 48%, 16% 24%, 31% 45%, 41% 12%, 55% 48%, 72% 7%, 100% 48%, 77% 41%, 68% 75%, 51% 58%, 38% 88%, 27% 55%);
    filter: drop-shadow(0 18px 24px rgba(0,0,0,.32));
    opacity: .78;
}

.lr-village-logo {
    position: relative;
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 213, 128, .82);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 206, 99, .2), rgba(239, 68, 68, .12)),
        #17111f;
    box-shadow: 0 18px 40px rgba(0,0,0,.34), 0 0 42px rgba(245, 158, 11, .24);
}

.lr-village-logo::before {
    content: "";
    position: absolute;
    inset: 13px;
    border: 2px solid rgba(56, 189, 248, .44);
    border-radius: 18px;
    clip-path: polygon(50% 0, 100% 26%, 84% 100%, 16% 100%, 0 26%);
}

.lr-village-logo-sigil {
    position: relative;
    z-index: 1;
    color: #ffe6a8;
    font-size: 2.15rem;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 2px 0 #3b1604, 0 0 24px rgba(245, 158, 11, .55);
}

.lr-village-logo-wings {
    position: absolute;
    inset: -18px;
    background:
        linear-gradient(135deg, transparent 28%, rgba(56, 189, 248, .22) 29% 37%, transparent 38%),
        linear-gradient(225deg, transparent 28%, rgba(248, 113, 113, .24) 29% 37%, transparent 38%);
    clip-path: polygon(0 38%, 20% 18%, 36% 42%, 50% 14%, 64% 42%, 80% 18%, 100% 38%, 76% 47%, 64% 78%, 50% 58%, 36% 78%, 24% 47%);
    opacity: .86;
}

.lr-village-loading {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.lr-village-loading span {
    width: 36px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #38bdf8);
    box-shadow: 0 0 18px rgba(245, 158, 11, .42);
    animation: lrVillagePulse 1.4s ease-in-out infinite;
}

.lr-village-loading span:nth-child(2) { animation-delay: .12s; }
.lr-village-loading span:nth-child(3) { animation-delay: .24s; }
.lr-village-loading span:nth-child(4) { animation-delay: .36s; }

.lr-village-welcome h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.4rem, 8vw, 6rem);
    line-height: .95;
    letter-spacing: 0;
    color: #fff7df;
    text-shadow: 0 4px 0 rgba(91, 33, 10, .72), 0 0 42px rgba(245, 158, 11, .2);
}

.lr-village-lede {
    max-width: 780px;
    color: rgba(237, 244, 255, .86);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.lr-village-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.lr-village-coin-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid rgba(245, 158, 11, .5);
    border-radius: 14px;
    padding: 10px 14px;
    color: #ffe6a8;
    background: rgba(15, 23, 42, .76);
    font-weight: 900;
}

.lr-village-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.lr-village-panel {
    border-radius: 22px;
}

.lr-village-wide {
    grid-column: 1 / -1;
}

.lr-village-balance {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 8px 0;
    color: #facc15;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 950;
}

.lr-village-balance span {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 800;
}

.lr-village-feature-list {
    display: grid;
    gap: 10px;
}

.lr-village-feature-list span {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(13, 23, 40, .68);
}

@keyframes lrVillagePulse {
    0%, 100% { transform: translateY(0); opacity: .46; }
    50% { transform: translateY(-5px); opacity: 1; }
}

@media (max-width: 850px) {
    .lr-village-welcome {
        min-height: 620px;
    }

    .lr-village-grid {
        grid-template-columns: 1fr;
    }
}
