.lm-gm-home-banner,
.lm-gm-series-card,
.lm-gm-read-card,
.lm-gm-card {
    background: linear-gradient(160deg, rgba(25, 12, 34, 0.96), rgba(16, 16, 28, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.lm-gm-home-banner {
    max-width: 1380px;
    margin: 18px auto 26px;
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(210px, 0.76fr) minmax(246px, 1.06fr) minmax(120px, 136px);
    gap: 12px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.lm-gm-home-copy {
    min-width: 0;
    max-width: 290px;
    padding-right: 2px;
}

.lm-gm-home-copy h2 {
    max-width: 284px;
    font-size: clamp(20px, 0.82vw + 16px, 28px);
    line-height: 1.08;
}

.lm-gm-home-copy p {
    max-width: 284px;
    font-size: 12px;
    line-height: 1.46;
}

.lm-gm-home-banner::before,
.lm-gm-series-card::before,
.lm-gm-card::before {
    content: "";
    position: absolute;
    inset: -30% auto auto -10%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 120, 163, 0.16), transparent 70%);
    pointer-events: none;
}

.lm-gm-home-copy h2,
.lm-gm-series-copy h3,
.lm-gm-card h3,
.lm-gm-ranking-head h4 {
    margin: 6px 0 8px;
    color: #fff;
}

.lm-gm-home-copy p,
.lm-gm-series-copy p,
.lm-gm-read-head p,
.lm-gm-card p,
.lm-gm-ranking-you,
.lm-gm-wheel-result,
.lm-gm-history-list span {
    color: rgba(236, 232, 241, 0.76);
    line-height: 1.6;
}

.lm-gm-home-copy p {
    line-height: 1.46;
}

.lm-gm-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffb6d4;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lm-gm-home-stats,
.lm-gm-wallet-meta,
.lm-gm-access-list,
.lm-gm-history-columns,
.lm-gm-grid,
.lm-gm-ranking-grid,
.lm-gm-wheel-actions,
.lm-gm-home-actions,
.lm-gm-series-actions {
    display: grid;
    gap: 14px;
}

.lm-gm-home-actions,
.lm-gm-wheel-actions,
.lm-gm-series-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lm-gm-home-actions {
    grid-template-columns: 1fr;
    align-self: stretch;
    min-width: 120px;
    max-width: 136px;
    justify-self: end;
    gap: 10px;
}

.lm-gm-home-actions .lm-gm-btn {
    width: 100%;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 13px;
    text-align: center;
}

.lm-gm-home-stats {
    grid-template-columns: minmax(74px, 1fr) minmax(74px, 1fr) minmax(110px, 1.05fr);
    min-width: 0;
    overflow: visible;
    gap: 10px;
}

.lm-gm-home-stat,
.lm-gm-wallet-meta > div,
.lm-gm-access-list > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 7px;
    min-height: 72px;
    min-width: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
    overflow: hidden;
}

.lm-gm-home-stat strong,
.lm-gm-wallet-balance,
.lm-gm-wallet-meta strong,
.lm-gm-access-list strong {
    display: block;
    color: #fff;
    font-weight: 900;
}

.lm-gm-home-stat strong {
    font-size: 18px;
    line-height: 1.05;
}

.lm-gm-home-stat strong[data-lm-countdown] {
    font-size: clamp(10px, 0.44vw + 8px, 15px);
    line-height: 1.08;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}

.lm-gm-home-stat span,
.lm-gm-wallet-meta span,
.lm-gm-access-list span {
    display: block;
    margin-top: 5px;
    color: rgba(232, 224, 238, 0.56);
    font-size: 10px;
}

.lm-gm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.lm-gm-btn:hover {
    transform: translateY(-1px);
    color: #fff;
}

.lm-gm-btn:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
}

.lm-gm-btn-primary {
    background: linear-gradient(135deg, #ff4e8c, #ff9465);
    box-shadow: 0 16px 28px rgba(255, 78, 140, 0.18);
}

.lm-gm-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
}

.lm-gm-inline-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #f1d6e4;
    font-size: 12px;
    font-weight: 700;
}

.lm-gm-inline-pill [data-lm-countdown] {
    margin-left: 4px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lm-gm-inline-pill.is-ready {
    background: rgba(94, 210, 145, 0.12);
    color: #8df0bc;
}

.lm-gm-series-card {
    padding: 18px;
    margin: 18px 0;
}

.lm-gm-read-card {
    padding: 10px 14px;
    margin: 8px auto 16px;
    max-width: 720px;
}

.lm-gm-read-card .lm-gm-kicker {
    min-height: 22px;
    padding: 0 9px;
    font-size: 10px;
}

.lm-gm-read-card h3 {
    font-size: 14px;
    margin: 4px 0 2px;
}

.lm-gm-read-card p {
    font-size: 12px;
    margin: 0;
    opacity: 0.72;
}

.lm-gm-series-card,
.lm-gm-read-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.lm-gm-read-progress {
    margin-top: 8px;
    width: min(100%, 760px);
}

.lm-gm-read-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.lm-gm-read-bar span {
    display: block;
    width: 4%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff4e8c, #ffbe6d);
    transition: width 0.25s ease;
}

.lm-gm-read-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 6px;
    color: rgba(230, 224, 235, 0.76);
    font-size: 11px;
}

.lm-gm-read-status,
.lm-gm-wheel-result {
    margin-top: 8px;
    width: min(100%, 760px);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Floating coin animation */
@keyframes lm-coin-float {
    0%   { opacity: 0; transform: translate(-50%, 0) scale(0.7); }
    15%  { opacity: 1; transform: translate(-50%, -12px) scale(1.05); }
    80%  { opacity: 1; transform: translate(-50%, -54px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -72px) scale(0.9); }
}

.lm-gm-coin-float {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(30, 14, 44, 0.96), rgba(20, 10, 32, 0.96));
    border: 1px solid rgba(255, 190, 109, 0.45);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 190, 109, 0.2);
    font-size: 16px;
    font-weight: 800;
    color: #ffda6e;
    letter-spacing: 0.02em;
    white-space: nowrap;
    animation: lm-coin-float 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.lm-gm-read-status.is-success,
.lm-gm-wheel-result.is-success {
    border-color: rgba(94, 210, 145, 0.35);
    background: rgba(94, 210, 145, 0.1);
    color: #8df0bc;
}

.lm-gm-read-status.is-error,
.lm-gm-wheel-result.is-error {
    border-color: rgba(255, 111, 145, 0.35);
    background: rgba(255, 111, 145, 0.1);
    color: #ffb4c5;
}

.lm-gm-panel {
    display: grid;
    gap: 18px;
}

.lm-gm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lm-gm-card {
    position: relative;
    padding: 22px;
    overflow: hidden;
}

.lm-gm-card-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 18px;
}

.lm-gm-wallet-balance {
    font-size: clamp(34px, 6vw, 48px);
    line-height: 1;
    margin-bottom: 14px;
}

.lm-gm-wallet-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.lm-gm-access-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lm-gm-wheel-stage {
    position: relative;
    width: min(420px, 100%);
    margin: 0 auto 22px;
}

.lm-gm-wheel-stage::before {
    content: '';
    position: absolute;
    inset: -28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 78, 140, 0.18), rgba(86, 100, 245, 0.1) 50%, transparent 72%);
    pointer-events: none;
    animation: lm-gm-wheel-glow 3s ease-in-out infinite alternate;
}

@keyframes lm-gm-wheel-glow {
    from { opacity: 0.6; transform: scale(0.96); }
    to   { opacity: 1;   transform: scale(1.04); }
}

.lm-gm-wheel-disc {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    transition: transform 2.8s cubic-bezier(0.17, 0.84, 0.16, 1);
    box-shadow: 0 0 0 6px rgba(255, 78, 140, 0.18), 0 28px 50px rgba(0, 0, 0, 0.4);
}

.lm-gm-wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-top: 0;
    border-bottom: 34px solid #ff4e8c;
    z-index: 3;
    filter: drop-shadow(0 4px 14px rgba(255, 78, 140, 0.75));
}

.lm-gm-prize-list,
.lm-gm-ranking-list,
.lm-gm-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.lm-gm-prize-list li,
.lm-gm-ranking-list li,
.lm-gm-history-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lm-gm-prize-list small {
    color: rgba(242, 230, 238, 0.54);
    font-size: 11px;
    text-transform: uppercase;
}

.lm-gm-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lm-gm-ranking-board {
    display: grid;
    gap: 12px;
}

.lm-gm-ranking-head small,
.lm-gm-subhead {
    color: rgba(242, 230, 238, 0.54);
    font-size: 12px;
    margin: 0;
}

.lm-gm-ranking-pos {
    min-width: 38px;
    color: #ffb6d4;
    font-weight: 900;
}

.lm-gm-ranking-name {
    flex: 1;
    color: #fff;
}

.lm-gm-history-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lm-gm-history-list strong.is-positive {
    color: #8df0bc;
}

.lm-gm-history-list strong.is-negative {
    color: #ffb4c5;
}

.lm-gm-toast-stack {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 99999;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
    pointer-events: none;
}

.lm-gm-toast {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(17, 19, 29, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    color: #f5eef4;
    transform: translateY(18px);
    opacity: 0;
    animation: lm-gm-toast-in 0.24s ease forwards;
}

.lm-gm-toast.is-success {
    border-color: rgba(94, 210, 145, 0.36);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(94, 210, 145, 0.08);
}

.lm-gm-toast strong {
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
}

.lm-gm-toast small {
    color: rgba(236, 232, 241, 0.7);
    font-size: 12px;
    line-height: 1.5;
}

@keyframes lm-gm-toast-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lm-gm-page-shell {
    max-width: 1380px;
    margin: 26px auto 60px;
    padding: 0 16px;
    display: grid;
    gap: 20px;
}

.lm-gm-page-header,
.lm-gm-ranking-section {
    position: relative;
    overflow: hidden;
}

.lm-gm-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) auto;
    gap: 18px;
    align-items: center;
    padding: 30px;
    background:
        radial-gradient(circle at top left, rgba(255, 78, 140, 0.16), transparent 42%),
        linear-gradient(150deg, rgba(25, 12, 34, 0.98), rgba(14, 14, 24, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.lm-gm-page-header::after {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(86, 199, 182, 0.16), transparent 68%);
    pointer-events: none;
}

.lm-gm-page-header-copy,
.lm-gm-page-header-actions,
.lm-gm-page-column,
.lm-gm-ranking-section {
    position: relative;
    z-index: 1;
}

.lm-gm-page-header-copy h1 {
    margin: 10px 0 12px;
    color: #fff;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
}

.lm-gm-page-header-copy p {
    max-width: 820px;
    margin: 0;
    color: rgba(236, 232, 241, 0.78);
    line-height: 1.7;
}

.lm-gm-page-header-actions {
    display: grid;
    gap: 12px;
    min-width: 220px;
}

.lm-gm-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.82fr);
    gap: 18px;
    align-items: start;
}

.lm-gm-page-grid.is-wheel {
    grid-template-columns: minmax(0, 1.26fr) minmax(320px, 0.82fr);
}

.lm-gm-page-column {
    display: grid;
    gap: 18px;
}

.lm-gm-rule-list {
    display: grid;
    gap: 12px;
}

.lm-gm-rule-list > div,
.lm-gm-empty-inline {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.lm-gm-rule-list strong,
.lm-gm-empty-inline {
    display: block;
    color: #fff;
}

.lm-gm-rule-list span {
    display: block;
    margin-top: 8px;
    color: rgba(232, 224, 238, 0.62);
    line-height: 1.6;
    font-size: 13px;
}

.lm-gm-empty-inline {
    color: rgba(236, 232, 241, 0.72);
    line-height: 1.6;
}

.lm-gm-recent-spins {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lm-gm-recent-spin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lm-gm-recent-spin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(230, 224, 235, 0.9);
    min-width: 0;
    overflow: hidden;
}

.lm-gm-recent-spin-user span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lm-gm-recent-spin-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lm-gm-recent-spin-prize {
    flex-shrink: 0;
}

.lm-gm-recent-spin-row.is-coins {
    background: rgba(255, 190, 109, 0.06);
    border-color: rgba(255, 190, 109, 0.22);
}

.lm-gm-recent-spin-row.is-fragments {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.24);
}

.lm-gm-recent-spin-row.is-ad_free {
    background: rgba(87, 199, 182, 0.06);
    border-color: rgba(87, 199, 182, 0.22);
}

.lm-gm-recent-spin-row.is-premium {
    background: rgba(247, 166, 0, 0.07);
    border-color: rgba(247, 166, 0, 0.28);
}

.lm-gm-recent-spin-row.is-free_spin {
    background: rgba(200, 140, 255, 0.07);
    border-color: rgba(200, 140, 255, 0.24);
}

.lm-gm-recent-spin-row.is-lose {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(248, 113, 113, 0.24);
}

.lm-gm-prize-tag.is-free_spin {
    background: rgba(200, 140, 255, 0.14);
    color: #e0b8ff;
}

.lm-gm-prize-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.lm-gm-prize-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.lm-gm-prize-row strong {
    color: #fff;
}

.lm-gm-prize-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lm-gm-prize-tag.is-coins {
    background: rgba(255, 190, 109, 0.14);
    color: #ffd088;
}

.lm-gm-prize-tag.is-fragments {
    background: rgba(139, 92, 246, 0.16);
    color: #d8b4fe;
}

.lm-gm-prize-tag.is-ad_free {
    background: rgba(87, 199, 182, 0.14);
    color: #8de6d7;
}

.lm-gm-prize-tag.is-premium {
    background: rgba(247, 166, 0, 0.16);
    color: #ffd467;
}

.lm-gm-prize-tag.is-lose {
    background: rgba(239, 68, 68, 0.14);
    color: #fda4af;
}

.lm-gm-ranking-page .lm-gm-page-header-copy p {
    max-width: 760px;
}

.lm-gm-ranking-section {
    padding: 26px;
}

.lm-gm-top3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
    margin-bottom: 40px;
}

.lm-gm-podium-card {
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
    min-height: 250px;
    padding: 28px 20px 24px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
        rgba(18, 18, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lm-gm-podium-card:nth-child(2) {
    min-height: 280px;
    border-color: rgba(247, 166, 0, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 22px 42px rgba(0, 0, 0, 0.28);
}

.lm-gm-podium-card:first-child,
.lm-gm-podium-card:last-child {
    transform: translateY(16px);
}

.lm-gm-podium-rank {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: #2a2237;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffcb72;
    font-size: 13px;
    font-weight: 900;
}

.lm-gm-podium-avatar {
    width: 108px;
    height: 108px;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 190, 109, 0.9), rgba(255, 78, 140, 0.7));
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.26);
}

.lm-gm-podium-avatar .lm-avatar-frame {
    width: 100%;
    height: 100%;
}

.lm-gm-rank-user .lm-avatar-frame {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.lm-gm-podium-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    background: #191824;
}

.lm-gm-podium-card strong {
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
}

.lm-gm-user-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f7a600, #ffd866);
    color: #241300;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lm-gm-podium-metric {
    color: #ffb564;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
}

.lm-gm-podium-sub {
    color: rgba(236, 232, 241, 0.64);
    font-size: 13px;
}

.lm-gm-rank-table {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 16, 26, 0.72);
}

.lm-gm-rank-head,
.lm-gm-rank-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1.6fr) minmax(140px, 0.9fr) minmax(140px, 0.9fr);
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
}

.lm-gm-rank-head {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(236, 232, 241, 0.54);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lm-gm-rank-row {
    color: rgba(236, 232, 241, 0.76);
}

.lm-gm-rank-row + .lm-gm-rank-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lm-gm-rank-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.lm-gm-rank-pos {
    color: #9085a7;
    font-weight: 900;
}

.lm-gm-rank-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lm-gm-rank-avatar {
    width: 46px;
    height: 46px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    background: #191824;
}

.lm-gm-rank-user > span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.lm-gm-rank-user strong {
    color: #fff;
    line-height: 1.2;
}

.lm-gm-rank-meta {
    color: rgba(236, 232, 241, 0.58);
    font-size: 13px;
}

.lm-gm-rank-value {
    justify-self: end;
    color: #ffb564;
    font-size: 18px;
    font-weight: 900;
}

@media (max-width: 980px) {
    .lm-gm-home-banner,
    .lm-gm-grid,
    .lm-gm-ranking-grid,
    .lm-gm-history-columns,
    .lm-gm-series-card,
    .lm-gm-read-head,
    .lm-gm-page-header,
    .lm-gm-page-grid,
    .lm-gm-page-grid.is-wheel,
    .lm-gm-top3 {
        grid-template-columns: 1fr;
    }

    .lm-gm-home-actions,
    .lm-gm-series-actions,
    .lm-gm-wheel-actions {
        grid-template-columns: 1fr;
    }

    .lm-gm-page-header-actions,
    .lm-gm-page-column,
    .lm-gm-prize-table {
        grid-template-columns: 1fr;
    }

    .lm-gm-home-stat {
        min-height: 84px;
    }

    .lm-gm-podium-card,
    .lm-gm-podium-card:nth-child(2),
    .lm-gm-podium-card:first-child,
    .lm-gm-podium-card:last-child {
        min-height: auto;
        transform: none;
    }

    .lm-gm-rank-head,
    .lm-gm-rank-row {
        grid-template-columns: 74px minmax(0, 1.3fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr);
    }
}

@media (max-width: 640px) {
    .lm-gm-top3 {
        grid-template-columns: 1fr;
    }

    .lm-gm-podium-card[data-rank="1"] {
        order: 1;
    }

    .lm-gm-podium-card[data-rank="2"] {
        order: 2;
    }

    .lm-gm-podium-card[data-rank="3"] {
        order: 3;
    }

    .lm-gm-home-banner,
    .lm-gm-card,
    .lm-gm-series-card,
    .lm-gm-read-card,
    .lm-gm-page-header,
    .lm-gm-ranking-section {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .lm-gm-home-stats,
    .lm-gm-wallet-meta,
    .lm-gm-access-list {
        grid-template-columns: 1fr;
    }

    .lm-gm-toast-stack {
        right: 14px;
        left: 14px;
        bottom: 14px;
        width: auto;
    }

    .lm-gm-prize-table {
        grid-template-columns: 1fr;
    }

    .lm-gm-prize-row,
    .lm-gm-rank-row {
        align-items: start;
    }

    .lm-gm-rank-head {
        display: none;
    }

    .lm-gm-rank-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lm-gm-rank-pos,
    .lm-gm-rank-value {
        justify-self: start;
    }

    .lm-gm-podium-card strong,
    .lm-gm-podium-metric {
        font-size: 20px;
    }
}

/* ── Podium rank colours ────────────────────────────────── */

/* Rank #1 (centre card = nth-child(2)) — always tallest */
.lm-gm-podium-card:nth-child(2) {
    min-height: 340px !important;
    border-color: rgba(247, 166, 0, 0.45);
    box-shadow:
        0 0 0 1px rgba(247, 166, 0, 0.12),
        0 28px 54px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(247, 166, 0, 0.15);
}

.lm-gm-podium-card:nth-child(2) .lm-gm-podium-avatar {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #f7a600, #ffd866);
    box-shadow: 0 0 32px rgba(247, 166, 0, 0.45);
}

.lm-gm-podium-card:nth-child(2) .lm-gm-podium-rank {
    background: linear-gradient(135deg, #f7a600, #ffd866);
    color: #241300;
    border-color: transparent;
    font-size: 15px;
}

.lm-gm-podium-card:nth-child(2) strong {
    font-size: 24px;
}

.lm-gm-podium-card:nth-child(2) .lm-gm-podium-metric {
    font-size: 28px;
}

/* Rank #2 (first child) */
.lm-gm-podium-card:first-child {
    border-color: rgba(170, 188, 210, 0.32);
    box-shadow: 0 0 24px rgba(170, 188, 210, 0.1), 0 22px 42px rgba(0, 0, 0, 0.28);
}

.lm-gm-podium-card:first-child .lm-gm-podium-avatar {
    background: linear-gradient(135deg, #8a9ab0, #c8d6e2);
}

.lm-gm-podium-card:first-child .lm-gm-podium-rank {
    background: linear-gradient(135deg, #8a9ab0, #c8d6e2);
    color: #111827;
    border-color: transparent;
}

/* Rank #3 (last child) */
.lm-gm-podium-card:last-child {
    border-color: rgba(180, 110, 60, 0.32);
    box-shadow: 0 0 24px rgba(180, 110, 60, 0.1), 0 22px 42px rgba(0, 0, 0, 0.28);
}

.lm-gm-podium-card:last-child .lm-gm-podium-avatar {
    background: linear-gradient(135deg, #a0522d, #cd9058);
}

.lm-gm-podium-card:last-child .lm-gm-podium-rank {
    background: linear-gradient(135deg, #a0522d, #cd9058);
    color: #fff;
    border-color: transparent;
}

/* ── Board tabs ─────────────────────────────────────────── */
.lm-gm-board-tabs {
    position: sticky;
    top: 12px;
    z-index: 90;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(14, 12, 22, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.lm-gm-board-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 26px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(236, 232, 241, 0.72);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lm-gm-board-tab:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.lm-gm-board-tab.is-active {
    background: linear-gradient(135deg, #ff4e8c, #ff9465);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 78, 140, 0.32);
}

.lm-gm-board-panel.is-hidden {
    display: none;
}

@media (max-width: 640px) {
    .lm-gm-board-tabs {
        top: 8px;
        padding: 8px 10px;
        gap: 8px;
    }

    .lm-gm-board-tab {
        padding: 0 14px;
        font-size: 13px;
        min-height: 40px;
    }
}

/* ── Ranking page hero ──────────────────────────────────── */
.lm-gm-ranking-page .lm-gm-page-header {
    background:
        radial-gradient(circle at top left, rgba(255, 120, 30, 0.18), transparent 45%),
        radial-gradient(circle at bottom right, rgba(86, 100, 245, 0.14), transparent 50%),
        linear-gradient(150deg, rgba(25, 12, 34, 0.98), rgba(14, 14, 24, 0.96));
}

.lm-gm-ranking-page .lm-gm-page-header-copy h1 {
    font-size: clamp(32px, 4.5vw, 50px);
}

/* ── Win modal overlay ──────────────────────────────────── */
#lm-gm-win-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(6, 6, 14, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lm-gm-win-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.lm-gm-win-modal {
    position: relative;
    overflow: hidden;
    width: min(460px, 100%);
    padding: 52px 36px 40px;
    border-radius: 30px;
    background: linear-gradient(160deg, rgba(30, 14, 46, 0.98), rgba(14, 14, 26, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 78, 140, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    text-align: center;
    transform: scale(0.84) translateY(20px);
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lm-gm-win-modal::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 78, 140, 0.18), transparent 68%);
    pointer-events: none;
}

.lm-gm-win-modal::after {
    content: '';
    position: absolute;
    inset: auto -10% -40% auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(86, 100, 245, 0.14), transparent 68%);
    pointer-events: none;
}

#lm-gm-win-overlay.is-visible .lm-gm-win-modal {
    transform: scale(1) translateY(0);
}

.lm-gm-win-icon {
    font-size: 62px;
    line-height: 1;
    margin-bottom: 18px;
    display: block;
    position: relative;
    z-index: 1;
    animation: lm-gm-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes lm-gm-bounce {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.lm-gm-win-title {
    position: relative;
    z-index: 1;
    font-size: clamp(32px, 6vw, 42px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ff4e8c, #ffbe6d 60%, #ffd866);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lm-gm-win-prize {
    position: relative;
    z-index: 1;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.lm-gm-win-sub {
    position: relative;
    z-index: 1;
    color: rgba(236, 232, 241, 0.68);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.lm-gm-win-close {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 52px;
    font-size: 16px;
}

/* ── Wheel card centred layout ──────────────────────────── */
.lm-gm-wheel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lm-gm-wheel-card .lm-gm-card-head,
.lm-gm-wheel-card .lm-gm-wheel-actions,
.lm-gm-wheel-card .lm-gm-wheel-result {
    width: 100%;
}

.lm-gm-wheel-result {
    margin-top: 12px;
    text-align: center;
}

/* ── Prize table icons ──────────────────────────────────── */
.lm-gm-prize-row::before {
    content: '🪙';
    font-size: 18px;
    flex-shrink: 0;
}

.lm-gm-prize-row.is-ad_free::before { content: '📺'; }
.lm-gm-prize-row.is-premium::before { content: '⭐'; }
