.lb-page {
    --lb-accent: var(--accent-color, #ff9800);
    --lb-text: var(--text, #edf0f6);
    --lb-muted: var(--muted, #9ba1b0);
    --lb-surface: color-mix(in srgb, var(--card-bg, #151820) 82%, transparent);
    --lb-line: color-mix(in srgb, var(--lb-accent) 14%, var(--border-color, #ffffff1f));
    --lb-gold: #ffc94d;
    --lb-silver: #cdd5e6;
    --lb-bronze: #e19a67;
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 118px auto 80px;
    padding: 0 22px;
    color: var(--lb-text);
    font-family: Poppins, system-ui, sans-serif;
    line-height: 1.55;
}

.lb-page *,
.lb-page *::before,
.lb-page *::after { box-sizing: border-box; }
.lb-page [hidden] { display: none !important; }
.lb-page a { text-decoration: none; }
.lb-page h1,
.lb-page h2,
.lb-page h3,
.lb-page p { margin: 0; }

.lb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 26px;
}

.lb-title { display: flex; align-items: center; gap: 16px; }

.lb-title-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 26px;
    color: #2a1c00;
    background: linear-gradient(135deg, #ffe08a, var(--lb-gold) 45%, #e49b1c);
    box-shadow: 0 10px 34px color-mix(in srgb, var(--lb-gold) 40%, transparent);
    animation: lbGlow 3.4s ease-in-out infinite;
}

.lb-page h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.1;
    background: linear-gradient(100deg, var(--lb-text) 20%, var(--lb-accent) 45%, var(--lb-text) 70%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: lbShine 7s linear infinite;
}

.lb-countdown { display: flex; align-items: center; gap: 10px; }

.lb-tile {
    min-width: 62px;
    padding: 9px 8px 7px;
    text-align: center;
    border-radius: 14px;
    background: var(--lb-surface);
    border: 1px solid var(--lb-line);
    backdrop-filter: blur(10px);
}

.lb-tile b { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lb-tile small { font-size: 10px; color: var(--lb-muted); }
.lb-tile:last-child b { color: var(--lb-accent); }

.lb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

.lb-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border-radius: 16px;
    background: var(--lb-surface);
    border: 1px solid var(--lb-line);
    backdrop-filter: blur(10px);
    max-width: 100%;
    overflow-x: auto;
}

.lb-tabs a {
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--lb-muted);
    transition: color .25s ease, background .25s ease, box-shadow .25s ease;
}

.lb-tabs a:hover { color: var(--lb-text); }

.lb-tabs a.is-active {
    color: #1b1200;
    background: linear-gradient(135deg, color-mix(in srgb, var(--lb-accent) 78%, #fff), var(--lb-accent));
    box-shadow: 0 6px 18px color-mix(in srgb, var(--lb-accent) 35%, transparent);
}

.lb-range { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--lb-muted); }
.lb-range i { color: var(--lb-accent); }

.lb-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 12.5px;
    color: var(--lb-muted);
    background: color-mix(in srgb, var(--lb-accent) 8%, transparent);
    border: 1px solid var(--lb-line);
}

.lb-info i { flex: none; color: var(--lb-accent); }

.lb-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.lb-card,
.lb-board {
    background: var(--lb-surface);
    border: 1px solid var(--lb-line);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px #0004;
}

.lb-board { position: relative; overflow: hidden; padding: 34px 26px 22px; }

.lb-board::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 20%;
    right: 20%;
    height: 320px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--lb-gold) 16%, transparent), transparent);
    pointer-events: none;
}

.lb-board:not(.is-ready)::after {
    content: '';
    display: block;
    height: 300px;
    border-radius: 18px;
    background: linear-gradient(100deg, #ffffff06 30%, #ffffff12 50%, #ffffff06 70%);
    background-size: 220% 100%;
    animation: lbSweep 1.4s linear infinite;
}

.lb-podium {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    padding-top: 30px;
}

.lb-pod {
    --c: var(--lb-silver);
    position: relative;
    flex: 1 1 0;
    max-width: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 10px 20px;
    border-radius: 20px;
    border: 1px solid var(--lb-line);
    background: linear-gradient(170deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%);
    animation: lbRise .8s cubic-bezier(.2, .9, .25, 1) var(--d, 0s) backwards;
}

.lb-pod::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(110deg, transparent 35%, #ffffff14 50%, transparent 65%);
    background-size: 250% 100%;
    animation: lbSweep 5s ease-in-out infinite;
    pointer-events: none;
}

.lb-pod-1 {
    --c: var(--lb-gold);
    order: 2;
    min-height: 292px;
    border-color: color-mix(in srgb, var(--lb-gold) 55%, transparent);
    box-shadow: 0 0 46px color-mix(in srgb, var(--lb-gold) 20%, transparent);
    animation: lbRise .8s cubic-bezier(.2, .9, .25, 1) var(--d, 0s) backwards, lbGlow 3.6s ease-in-out 1.2s infinite;
}

.lb-pod-2 { --c: var(--lb-silver); order: 1; min-height: 250px; }
.lb-pod-3 { --c: var(--lb-bronze); order: 3; min-height: 226px; }

.lb-pod.is-swap { animation: lbPop .55s ease; }
.lb-pod-1.is-swap { animation: lbPop .55s ease, lbGlow 3.6s ease-in-out infinite; }
.lb-pod.is-you { outline: 2px solid var(--lb-accent); outline-offset: 2px; }
.lb-pod.is-empty { opacity: .55; border-style: dashed; }
.lb-pod.is-empty .lb-pod-count,
.lb-pod.is-empty .lb-you { visibility: hidden; }

.lb-pod-rank {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1a1300;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 40%, transparent);
}

.lb-pod-1 .lb-pod-rank {
    top: -26px;
    min-width: 46px;
    height: 46px;
    font-size: 20px;
    animation: lbFloat 3.4s ease-in-out infinite;
}

.lb-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    color: #1a1300;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--lb-accent)) 65%, #fff), var(--c, var(--lb-accent)));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--lb-accent)) 22%, transparent);
}

.lb-pod-1 .lb-avatar { width: 72px; height: 72px; font-size: 30px; }

.lb-name { margin: 14px 0 4px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }

.lb-you {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    color: #1a1300;
    background: var(--lb-accent);
    vertical-align: middle;
}

.lb-pod-count { font-size: 34px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.lb-pod-count small { margin-left: 4px; font-size: 11px; font-weight: 500; color: var(--lb-muted); }

.lb-prize {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 12px;
    padding: 6px 14px 7px;
    border-radius: 14px;
    line-height: 1.2;
    color: var(--lb-gold);
    background: color-mix(in srgb, var(--lb-gold) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--lb-gold) 28%, transparent);
}

.lb-prize-label { font-size: 10px; font-weight: 500; white-space: nowrap; color: var(--lb-muted); }
.lb-prize-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.lb-prize-line i { font-size: 11px; }

.lb-list { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }

.lb-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1.1fr) minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 16px;
    background: color-mix(in srgb, #fff 4%, transparent);
    border: 1px solid var(--lb-line);
    animation: lbRowIn .55s cubic-bezier(.2, .9, .25, 1) var(--i, 0s) backwards;
}

.lb-row.is-you { border-color: var(--lb-accent); background: color-mix(in srgb, var(--lb-accent) 10%, transparent); }
.lb-row.is-empty { opacity: .5; border-style: dashed; }
.lb-row.is-bump { animation: lbBump 1.6s ease; }

.lb-row-rank { font-size: 15px; font-weight: 700; text-align: center; color: var(--lb-muted); }
.lb-row-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-row .lb-avatar { width: 38px; height: 38px; font-size: 16px; box-shadow: none; }
.lb-row-name { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lb-track { height: 7px; border-radius: 7px; background: #ffffff0d; overflow: hidden; }

.lb-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--lb-accent) 55%, transparent), var(--lb-accent));
    transition: width .9s cubic-bezier(.2, .8, .2, 1);
}

.lb-row-count { min-width: 70px; text-align: right; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-row-count small { margin-left: 3px; font-size: 10px; font-weight: 500; color: var(--lb-muted); }
.lb-row .lb-prize { margin: 0; }

.lb-empty { padding: 60px 16px; text-align: center; color: var(--lb-muted); }
.lb-empty i { margin-bottom: 18px; font-size: 38px; color: var(--lb-accent); }
.lb-empty h3 { margin-bottom: 8px; font-size: 18px; color: var(--lb-text); }
.lb-empty p { font-size: 13px; }
.lb-note { margin-top: 20px; font-size: 11px; color: var(--lb-muted); }

.lb-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.lb-card { padding: 24px; }
.lb-card h2 { margin-bottom: 16px; font-size: 15px; font-weight: 700; }

.lb-me { background: linear-gradient(150deg, color-mix(in srgb, var(--lb-accent) 16%, var(--lb-surface)), var(--lb-surface)); }
.lb-me-stats { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.lb-me-stats strong { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lb-me-stats small { font-size: 11px; color: var(--lb-muted); }
.lb-me-stats > div + div { padding-left: 20px; border-left: 1px solid var(--lb-line); }
.lb-me-text { font-size: 12.5px; color: var(--lb-muted); }
.lb-me-text.is-ok { color: #6de0b4; }

.lb-pool { display: block; margin-bottom: 12px; font-size: 30px; font-weight: 800; color: var(--lb-gold); }
.lb-pool small { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--lb-muted); }
.lb-reward-list { margin-bottom: 14px; }
.lb-reward { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--lb-line); font-size: 13px; }
.lb-reward strong { margin-left: auto; color: var(--lb-gold); }

.lb-reward-rank {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    color: var(--lb-muted);
    background: #ffffff0d;
}

.lb-reward:nth-child(1) .lb-reward-rank { color: #1a1300; background: var(--lb-gold); }
.lb-reward:nth-child(2) .lb-reward-rank { color: #1a1300; background: var(--lb-silver); }
.lb-reward:nth-child(3) .lb-reward-rank { color: #1a1300; background: var(--lb-bronze); }

.lb-rules {
    margin: 22px 0;
    padding: 17px 22px;
    border-radius: 18px;
    background: var(--lb-surface);
    border: 1px solid var(--lb-line);
}

.lb-rules summary { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.lb-rules summary::-webkit-details-marker { display: none; }
.lb-rules summary i:first-child { color: var(--lb-accent); }
.lb-rules summary i:last-child { margin-left: auto; transition: transform .25s ease; }
.lb-rules[open] summary i:last-child { transform: rotate(180deg); }
.lb-rules p { margin-top: 14px; font-size: 12.5px; color: var(--lb-muted); }

.lb-history { margin-top: 22px; }
.lb-table-wrap { overflow-x: auto; }
.lb-page table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.lb-page th { padding: 10px 12px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--lb-muted); }
.lb-page td { padding: 14px 12px; border-top: 1px solid var(--lb-line); white-space: nowrap; }
.lb-page td small { display: block; font-size: 10px; color: var(--lb-muted); }
.lb-gain { font-weight: 700; color: var(--lb-gold); }

.lb-status { display: inline-flex; padding: 5px 10px; border-radius: 8px; font-size: 11px; background: #ffffff0d; color: #c9cad5; }
.lb-status-paid { background: #24ba8318; color: #6de0b4; }
.lb-status-pending { background: #ffbd5c18; color: #ffd088; }
.lb-status-rejected,
.lb-status-excluded { background: #f5677818; color: #ff9fae; }

.lb-pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; }

.lb-pagination a {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--lb-text);
    background: #ffffff0a;
}

.lb-pagination a.is-active { color: #1a1300; background: var(--lb-accent); }
.lb-pagination span { margin-left: 8px; font-size: 11px; color: var(--lb-muted); }

.lb-alert {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 13px;
    color: #f8c98f;
    background: #e7913315;
    border: 1px solid #e7913340;
}

.lb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1300 !important;
    background: var(--lb-accent);
    transition: filter .2s ease, transform .2s ease;
}

.lb-button:hover { filter: brightness(1.12); transform: translateY(-2px); }
.lb-page a:focus-visible,
.lb-page summary:focus-visible { outline: 2px solid var(--lb-accent); outline-offset: 3px; }

@keyframes lbRise {
    from { opacity: 0; transform: translateY(46px) scale(.96); }
    to { opacity: 1; transform: none; }
}

@keyframes lbRowIn {
    from { opacity: 0; transform: translateX(-22px); }
    to { opacity: 1; transform: none; }
}

@keyframes lbPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes lbBump {
    0%, 100% { box-shadow: 0 0 0 0 transparent; }
    30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--lb-accent) 55%, transparent), 0 0 28px color-mix(in srgb, var(--lb-accent) 35%, transparent); }
}

@keyframes lbGlow {
    0%, 100% { box-shadow: 0 0 30px color-mix(in srgb, var(--lb-gold) 14%, transparent); }
    50% { box-shadow: 0 0 56px color-mix(in srgb, var(--lb-gold) 34%, transparent); }
}

@keyframes lbFloat {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-6deg); }
    50% { transform: translateX(-50%) translateY(-6px) rotate(4deg); }
}

@keyframes lbSweep {
    from { background-position: 150% 0; }
    to { background-position: -100% 0; }
}

@keyframes lbShine {
    from { background-position: 0% 0; }
    to { background-position: 220% 0; }
}

@media (max-width: 991px) {
    .lb-layout { grid-template-columns: 1fr; }
    .lb-side { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 640px) {
    .lb-page { padding: 0 14px; margin-top: 104px; }
    .lb-side { grid-template-columns: 1fr; }
    .lb-title-icon { width: 46px; height: 46px; font-size: 20px; border-radius: 14px; }
    .lb-countdown { width: 100%; gap: 8px; }
    .lb-tile { flex: 1; min-width: 0; padding: 8px 4px 6px; }
    .lb-tile b { font-size: 20px; }
    .lb-board { padding: 30px 12px 18px; border-radius: 20px; }
    .lb-podium { gap: 6px; }
    .lb-pod { padding: 30px 4px 14px; border-radius: 14px; }
    .lb-pod-1 { min-height: 252px; }
    .lb-pod-2 { min-height: 218px; }
    .lb-pod-3 { min-height: 198px; }
    .lb-avatar { width: 42px; height: 42px; font-size: 17px; }
    .lb-pod-1 .lb-avatar { width: 54px; height: 54px; font-size: 22px; }
    .lb-name { font-size: 12px; }
    .lb-pod-count { font-size: 26px; }
    .lb-prize { padding: 4px 6px 5px; border-radius: 10px; }
    .lb-prize-label { font-size: 8px; }
    .lb-prize-line { gap: 4px; font-size: 9px; }
    .lb-prize-line i { font-size: 9px; }
    .lb-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px 10px; padding: 12px; }
    .lb-track { grid-column: 2 / 4; grid-row: 2; }
    .lb-row .lb-prize { grid-column: 2 / 4; grid-row: 3; justify-self: start; }
    .lb-row-count { min-width: 0; }
    .lb-card { padding: 20px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .lb-page *,
    .lb-page *::before,
    .lb-page *::after { animation: none !important; transition: none !important; }
}