﻿/* =========================================================
   فوتبال دکمه‌ای (soccer.css)
   ========================================================= */

/* ---------- صحنه (ساخته‌شده با soccer.js) ---------- */
.sg-host {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.sg-stadium {
    position: relative;
    overflow: hidden;
    padding: 34px 46px 40px;
    border-radius: 0 0 22px 22px;
    background: radial-gradient(ellipse at 10% 0%, rgba(255,255,255,.35), transparent 30%), radial-gradient(ellipse at 90% 0%, rgba(255,255,255,.35), transparent 30%), linear-gradient(180deg, #232c6b, #121741 70%, #0d1235);
}

.sg-crowd {
    position: absolute;
    inset: 0;
    opacity: .4;
    pointer-events: none;
    background: radial-gradient(circle, #ff6b8b 1.6px, transparent 2.4px) 0 0 / 13px 11px, radial-gradient(circle, #ffd54f 1.6px, transparent 2.4px) 6px 5px / 17px 13px, radial-gradient(circle, #7cc0ff 1.6px, transparent 2.4px) 3px 8px / 11px 15px, radial-gradient(circle, #ffffff 1.3px, transparent 2px) 9px 2px / 19px 12px;
    animation: sg-crowd 1.2s steps(2) infinite;
}

@keyframes sg-crowd {
    50% {
        background-position: 0 1px, 6px 4px, 3px 9px, 9px 3px;
    }
}

.sg-light {
    position: absolute;
    top: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,240,.9), rgba(255,255,220,.25) 30%, transparent 65%);
}

.sg-light-l {
    left: -60px;
}

.sg-light-r {
    right: -60px;
}

.sg-ads {
    position: absolute;
    left: 46px;
    right: 46px;
    height: 20px;
    display: flex;
    gap: 6px;
    z-index: 1;
    pointer-events: none;
}

.sg-ads-top {
    top: 8px;
}

.sg-ads-bottom {
    bottom: 10px;
}

.sg-ads div {
    flex: 1;
    min-width: 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
    box-shadow: inset 0 -6px 10px rgba(0,0,0,.18);
}

.sg-box {
    position: relative;
    aspect-ratio: 1000 / 600;
}

.sg-pitch {
    --sg-rot: 0;
    position: absolute;
    inset: 0;
    border-radius: 10px;
    touch-action: none;
    background: repeating-linear-gradient(90deg, #2fb463 0 10%, #29a659 10% 20%);
    box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 25px 50px rgba(0,0,0,.5), inset 0 0 90px rgba(0,40,10,.45);
}

    .sg-pitch::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 10px;
        pointer-events: none;
        background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.10), transparent 60%), repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 6px);
    }

.sg-lines, .sg-aimsvg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.sg-aimsvg {
    z-index: 6;
}

.sg-net {
    transform-box: fill-box;
    transform-origin: center;
}

    .sg-net.sg-shake {
        animation: sg-shake .5s ease-in-out 3;
    }

@keyframes sg-shake {
    25% {
        transform: scale(1.12, 1.06);
    }

    75% {
        transform: scale(.95, 1.02);
    }
}

/* مهره */
.sg-disc {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 5.6%;
    aspect-ratio: 1;
    border-radius: 50%;
    z-index: 2;
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(255,255,255,0) 22%), radial-gradient(circle at 50% 55%, var(--k2), var(--k) 62%, var(--k3) 100%);
    box-shadow: 0 7px 0 var(--k3), 0 12px 14px rgba(0,0,0,.45), inset 0 -4px 6px rgba(0,0,0,.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-face {
    width: 66%;
    height: 66%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 3px rgba(255,255,255,.95), inset 0 2px 4px rgba(0,0,0,.3);
}

    .sg-face img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        pointer-events: none;
    }

.sg-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: clamp(8px, 1.3vw, 15px);
}

.sg-no {
    position: absolute;
    bottom: -3px;
    left: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    border-radius: 9px;
    background: #fff;
    color: var(--k3);
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,.3);
}

.sg-aiming .sg-mine {
    cursor: grab;
}

    .sg-aiming .sg-mine::before {
        content: "";
        position: absolute;
        inset: -6px;
        border-radius: 50%;
        border: 2px dashed rgba(255,255,255,.75);
        animation: sg-spin 6s linear infinite;
    }

@keyframes sg-spin {
    to {
        transform: rotate(360deg);
    }
}

.sg-disc.sg-sel {
    z-index: 5;
    cursor: grabbing;
}

    .sg-disc.sg-sel::after {
        content: "";
        position: absolute;
        inset: -9px;
        border-radius: 50%;
        border: 3px solid #ffd54f;
        box-shadow: 0 0 18px 4px rgba(255,213,79,.8), inset 0 0 10px rgba(255,213,79,.6);
    }

/* توپ */
.sg-ball {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 2.9%;
    aspect-ratio: 1;
    z-index: 4;
    filter: drop-shadow(0 6px 4px rgba(0,0,0,.45));
}

    .sg-ball svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    .sg-ball.sg-fast {
        filter: drop-shadow(0 6px 4px rgba(0,0,0,.45)) drop-shadow(0 0 8px rgba(255,255,255,.9));
    }

/* موبایل: زمین عمودی */
@media (max-width: 640px) {
    .sg-stadium {
        padding: 16px 22px 18px;
    }

    .sg-ads {
        display: none;
    }

    .sg-box {
        aspect-ratio: 600 / 1000;
    }

    .sg-pitch {
        --sg-rot: 1;
        inset: auto;
        width: 166.667%;
        height: 60%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) rotate(-90deg);
    }

    .sg-face, .sg-no {
        transform: rotate(90deg);
    }

    .sg-disc {
        width: 7.2%;
    }

    .sg-ball {
        width: 3.6%;
    }
}

/* ---------- صفحه بازی ---------- */
.sp-page {
    padding: 12px;
    color: var(--lg-text, #1f2340);
    max-width: 1200px;
    margin: 0 auto;
}

.sp-board {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #141a3d, #0b1030);
    border-radius: 20px 20px 0 0;
    padding: 12px 18px;
}

.sp-team {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.sp-team-2 {
    flex-direction: row-reverse;
    text-align: left;
}

.sp-kit {
    width: 10px;
    height: 42px;
    border-radius: 6px;
    flex-shrink: 0;
}

.sp-av {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--k);
}

.sp-name {
    font-weight: 900;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.sp-sub {
    font-size: .75rem;
    opacity: .65;
    color: white;
}

.sp-dots {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.sp-team-2 .sp-dots {
    justify-content: flex-end;
}

.sp-dots b {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}

    .sp-dots b.on {
        background: var(--k);
        box-shadow: 0 0 8px var(--k);
    }

.sp-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.sp-score {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1;
}

    .sp-score span {
        background: linear-gradient(180deg, #fff, #cfd6ff);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        min-width: 34px;
        text-align: center;
    }

    .sp-score i {
        font-style: normal;
        color: #5d6699;
        font-size: 1.7rem;
    }

.sp-pill {
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: white;
}

    .sp-pill .mud-icon-root {
        width: 16px;
        height: 16px;
    }

.sp-pill-turn {
    background: linear-gradient(90deg, #2f7cf6, #22b8cf);
    box-shadow: 0 0 18px rgba(47,124,246,.6);
}

.sp-pill-wait {
    background: linear-gradient(90deg, #ef476f, #ff8fab);
}

.sp-stage {
    position: relative;
}

.sp-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
}

.sp-think {
    position: absolute;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 21;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(11,16,48,.85);
    color: #fff;
    padding: 8px 16px 8px 8px;
    border-radius: 40px;
    font-weight: 700;
    font-size: .85rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
    white-space: nowrap;
}

    .sp-think .bh-av {
        animation: sp-bob 1s ease-in-out infinite;
    }

@keyframes sp-bob {
    50% {
        transform: translateY(-3px) rotate(-6deg);
    }
}

.sp-think-dots i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 2px;
    border-radius: 50%;
    background: #7cc0ff;
    animation: sp-dot 1s infinite;
}

    .sp-think-dots i:nth-child(2) {
        animation-delay: .15s;
    }

    .sp-think-dots i:nth-child(3) {
        animation-delay: .3s;
    }

@keyframes sp-dot {
    50% {
        transform: translateY(-5px);
        opacity: .4;
    }
}

/* گل */
.sp-goal {
    background: radial-gradient(ellipse at center, rgba(10,15,50,.55), rgba(10,15,50,.15) 70%);
}

.sp-goal-text {
    font-size: clamp(64px, 12vw, 150px);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, #fff7c2, #ffd54f 45%, #ff9800);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 8px 0 #b35c00) drop-shadow(0 18px 30px rgba(0,0,0,.5));
    animation: sp-goal-in .6s cubic-bezier(.2,1.6,.4,1) both;
}

@keyframes sp-goal-in {
    from {
        transform: scale(.2) rotate(-20deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(-4deg);
        opacity: 1;
    }
}

.sp-goal-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.96);
    border-radius: 20px;
    padding: 12px 20px;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
    animation: sp-up .5s .25s ease both;
    color: #1f2340;
}

@keyframes sp-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
}

.sp-goal-card b {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
}

.sp-goal-card small {
    color: #7a7f9a;
}

.sp-goal-score {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2f7cf6;
    margin-right: 12px;
    padding-right: 16px;
    border-right: 2px solid #eceef7;
}

.sp-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

    .sp-confetti i {
        position: absolute;
        top: -20px;
        width: 10px;
        height: 16px;
        border-radius: 2px;
        animation: sp-fall linear forwards;
    }

@keyframes sp-fall {
    to {
        transform: translateY(110vh) rotate(720deg);
    }
}

/* پایان بازی */
.sp-end {
    background: rgba(11,16,48,.72);
    backdrop-filter: blur(3px);
}

.sp-end-card {
    background: #fff;
    border-radius: 26px;
    padding: 26px 34px;
    text-align: center;
    min-width: 280px;
    max-width: 92%;
    box-shadow: 0 30px 60px rgba(0,0,0,.4);
    animation: sp-goal-in .6s cubic-bezier(.2,1.4,.4,1) both;
    color: #1f2340;
}

.sp-end-icon {
    width: 96px;
    height: 96px;
    margin: -70px auto 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd54f, #ff9800);
    box-shadow: 0 0 0 6px #fff, 0 12px 30px rgba(255,152,0,.5);
}

    .sp-end-icon .mud-icon-root {
        width: 58px;
        height: 58px;
        color: #fff;
        fill: #fff;
    }

    .sp-end-icon.lose {
        background: #0b1240;
        box-shadow: 0 0 0 6px #fff, 0 12px 30px rgba(0,174,255,.5);
        overflow: hidden;
    }

.sp-end-title {
    font-size: 1.8rem;
    font-weight: 900;
}

.sp-end-score {
    font-size: 2.6rem;
    font-weight: 900;
    color: #5b5bd6;
    margin: 4px 0 14px;
}

.sp-end-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* نوار پایین */
.sp-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(31,35,64,.08);
    padding: 10px 14px;
    flex-wrap: wrap;
}

.sp-ib {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 0;
    background: #f1f2f9;
    color: #4a4f6a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

    .sp-ib:hover {
        background: #e6e8f5;
    }

.sp-power {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: .85rem;
}

    .sp-power .mud-icon-root {
        color: #ef476f;
    }

.sp-power-bar {
    flex: 1;
    height: 14px;
    border-radius: 10px;
    background: #eceef7;
    position: relative;
    overflow: hidden;
    direction: ltr;
}

    .sp-power-bar i {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 0;
        border-radius: 10px;
        background: linear-gradient(90deg, #06d6a0, #ffd54f 60%, #ef476f);
    }

.sp-shots {
    font-size: .8rem;
    font-weight: 700;
    color: #7a7f9a;
    white-space: nowrap;
}

.sp-resign {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 700;
    font-size: .85rem;
    background: #f1f2f9;
    color: #1f2340;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .sp-resign.sure {
        background: #ef476f;
        color: #fff;
    }

/* راهنما */
.sp-help {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(11,16,48,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.sp-help-card {
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    max-width: 460px;
    width: 100%;
    line-height: 2;
    font-size: .9rem;
}

    .sp-help-card h3 {
        margin: 0 0 8px;
        font-weight: 900;
        font-size: 1.15rem;
    }

.sp-help-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

    .sp-help-row .mud-icon-root {
        color: #5b5bd6;
        margin-top: 6px;
        flex-shrink: 0;
    }

@media (max-width: 640px) {
    .sp-page {
        padding: 6px;
    }

    .sp-board {
        padding: 8px 10px;
        gap: 6px;
    }

    .sp-av {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .sp-kit, .sp-sub, .sp-pill-goals {
        display: none;
    }

    .sp-name {
        font-size: .72rem;
    }

    .sp-score {
        font-size: 1.8rem;
        gap: 6px;
    }

    .sp-pill {
        font-size: .62rem;
        padding: 3px 8px;
    }

    .sp-team {
        gap: 6px;
    }

    .sp-stage .sp-overlay {
        border-radius: 0 0 22px 22px;
    }
}

/* ---------- صفحه شروع ---------- */
.ss-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px 28px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: radial-gradient(ellipse at 15% 0%, rgba(255,255,255,.3), transparent 35%), linear-gradient(120deg, #0b1240, #1c3fb8 55%, #0f9d58);
}

    .ss-hero::after {
        content: "";
        position: absolute;
        left: 30px;
        bottom: -60px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        border: 3px solid rgba(255,255,255,.15);
    }

    .ss-hero h1 {
        margin: 0;
        font-size: 1.7rem;
        font-weight: 900;
        color: white;
    }

    .ss-hero p {
        margin: 6px 0 0;
        opacity: .85;
        color: white;
    }

.ss-vs {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

    .ss-vs .sp-av {
        width: 64px;
        height: 64px;
        --k: #fff;
    }

.ss-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.ss-sec {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(31,35,64,.08);
    padding: 18px 20px;
    margin-bottom: 18px;
}

.ss-kits {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ss-kit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    color: #4a4f6a;
    cursor: pointer;
    background: none;
    border: 0;
    font-family: inherit;
}

    .ss-kit .sg-disc {
        position: relative;
        transform: none;
        width: 54px;
    }

    .ss-kit.on .sg-disc::after {
        content: "";
        position: absolute;
        inset: -7px;
        border-radius: 50%;
        border: 3px solid #ffd54f;
        box-shadow: 0 0 14px rgba(255,213,79,.8);
    }

.ss-forms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ss-form {
    border: 2px solid #e6e8f2;
    border-radius: 16px;
    padding: 8px;
    text-align: center;
    font-weight: 900;
    cursor: pointer;
    background: #fff;
    font-family: inherit;
}

    .ss-form.on {
        border-color: #5b5bd6;
        background: #f5f4ff;
        box-shadow: 0 6px 18px rgba(91,91,214,.2);
    }

    .ss-form small {
        display: block;
        color: #7a7f9a;
        font-weight: 500;
        font-size: .7rem;
    }

.ss-mini {
    position: relative;
    aspect-ratio: 10 / 6;
    border-radius: 10px;
    margin-bottom: 6px;
    overflow: hidden;
    background: repeating-linear-gradient(90deg, #2fb463 0 20%, #29a659 20% 40%);
}

    .ss-mini::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        border-left: 2px solid rgba(255,255,255,.7);
    }

    .ss-mini i {
        position: absolute;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: var(--k, #2f7cf6);
        border: 2px solid #fff;
        transform: translate(-50%, -50%);
        box-shadow: 0 2px 3px rgba(0,0,0,.3);
    }

.ss-levels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ss-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    height: auto;
    min-height: 168px;
    border: 2px solid #e6e8f2;
    border-radius: 16px;
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    font-family: inherit;
    color: inherit;
    line-height: 1.5;
    white-space: normal;
}

    .ss-level .bh-av {
        display: block;
        position: static;
        flex: 0 0 auto;
        width: 54px !important;
        height: 54px !important;
        margin: 0 0 4px;
    }

    .ss-level b {
        display: block;
        font-size: .95rem;
        line-height: 1.4;
        margin: 0;
    }

    .ss-level .ss-stars {
        line-height: 0;
    }

    .ss-level small {
        display: block;
        color: #7a7f9a;
        font-size: .7rem;
        line-height: 1.6;
    }

    .ss-level.on {
        border-color: var(--c);
        background: color-mix(in srgb, var(--c) 7%, #fff);
        box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 30%, transparent);
    }

    .ss-level .bh-av {
        box-shadow: 0 0 0 3px var(--c);
    }

    .ss-level.hard .bh-av {
        filter: hue-rotate(140deg);
    }

.ss-stars {
    color: var(--c);
    display: flex;
    justify-content: center;
}

    .ss-stars .mud-icon-root {
        width: 16px;
        height: 16px;
    }

.ss-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ss-chip {
    border: 2px solid #e6e8f2;
    border-radius: 14px;
    padding: 8px 18px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

    .ss-chip.on {
        background: linear-gradient(90deg, #5b5bd6, #9b5de5);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 6px 16px rgba(91,91,214,.35);
    }

    .ss-chip .mud-icon-root {
        width: 18px;
        height: 18px;
    }

.ss-start {
    width: 100%;
    font-size: 1.2rem;
    padding: 16px;
    border-radius: 18px;
    border: 0;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(90deg, #ffd54f, #ff9800);
    color: #3b2a00;
    box-shadow: 0 8px 22px rgba(255,152,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .ss-start:disabled {
        opacity: .6;
        cursor: wait;
    }

.ss-resume {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 18px;
    background: linear-gradient(90deg, #fff8e1, #ffecb3);
    border: 1px solid #ffe082;
}

    .ss-resume b {
        display: block;
    }

    .ss-resume small {
        color: #8a6d00;
    }

@media (max-width: 800px) {
    .ss-grid {
        grid-template-columns: 1fr;
    }

    .ss-vs {
        display: none;
    }
}

.ss-gap {
    margin-top: 22px;
}

@media (max-width: 640px) {
    .ss-mini i {
        width: 9px;
        height: 9px;
        border-width: 1.5px;
    }

    .ss-forms {
        gap: 8px;
    }
}

/* ---------- کل زمین در ارتفاع صفحه + تمام‌صفحه ---------- */
/* --sp-top: ارتفاع نوار بالای سایت (AppBar) و فاصله‌اش؛ اگر کمی اسکرول ماند، این عدد را زیاد کن */
.sp-page {
    --sp-top: 80px;
    --sp-chrome: 304px;
}

.sp-fit {
    margin: 0 auto;
    max-width: min(100%, max(560px, calc((100vh - var(--sp-top) - var(--sp-chrome)) * 1.6667 + 92px)));
    max-width: min(100%, max(560px, calc((100dvh - var(--sp-top) - var(--sp-chrome)) * 1.6667 + 92px)));
}

.sp-page:fullscreen {
    --sp-top: 0px;
    max-width: none;
    margin: 0;
    overflow: auto;
    background: #eef0f8;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sp-page:-webkit-full-screen {
    --sp-top: 0px;
    max-width: none;
    margin: 0;
    overflow: auto;
    background: #eef0f8;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sp-page:fullscreen .sp-fit {
    width: 100%;
}

.sp-page:-webkit-full-screen .sp-fit {
    width: 100%;
}

.sp-fs-exit {
    display: none !important;
}

.sp-page:fullscreen .sp-fs-exit {
    display: inline-flex !important;
}

.sp-page:fullscreen .sp-fs-enter {
    display: none !important;
}

.sp-page:-webkit-full-screen .sp-fs-exit {
    display: inline-flex !important;
}

.sp-page:-webkit-full-screen .sp-fs-enter {
    display: none !important;
}

.sg-nofs .sp-fs {
    display: none;
}

.sp-resign.sure .sp-resign-text {
    color: white;
}

@media (max-width: 640px) {
    .sp-page {
        --sp-top: 64px;
        --sp-chrome: 200px;
    }

    .sp-fit {
        max-width: min(100%, max(330px, calc((100vh - var(--sp-top) - var(--sp-chrome)) * .6 + 44px)));
        max-width: min(100%, max(330px, calc((100dvh - var(--sp-top) - var(--sp-chrome)) * .6 + 44px)));
    }

    .sp-bar {
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 8px;
        padding: 6px 8px;
        border-radius: 14px;
    }

    .sp-ib {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .sp-power {
        flex: 1 1 auto;
        min-width: 30px;
    }

        .sp-power-label, .sp-power .mud-icon-root {
            display: none;
        }

    .sp-shots {
        font-size: .68rem;
    }

    .sp-resign {
        padding: 8px 10px;
        font-size: .75rem;
    }

    .sp-resign-text {
        display: none;
    }

    .sp-resign.sure .sp-resign-text {
        display: inline;
        color: white;
    }
}

@media (min-width: 641px) {
    .sp-bar {
        flex-wrap: nowrap;
    }

    .sp-power {
        min-width: 60px;
    }
}
/* لپ‌تاپ با ارتفاع کم: تابلو و نوار جمع‌وجورتر تا زمین بزرگ‌تر شود */
@media (min-width: 641px) and (max-height: 820px) {
    .sp-page {
        --sp-chrome: 212px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .sp-board {
        padding: 6px 14px;
    }

    .sp-av {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .sp-kit {
        height: 32px;
    }

    .sp-sub, .sp-pill-goals {
        display: none;
    }

    .sp-score {
        font-size: 2rem;
    }

    .sp-pill {
        padding: 2px 10px;
    }

    .sg-stadium {
        padding: 28px 40px 30px;
    }

    .sg-ads {
        left: 40px;
        right: 40px;
        height: 18px;
    }

    .sg-ads-top {
        top: 5px;
    }

    .sg-ads-bottom {
        bottom: 6px;
    }

    .sp-bar {
        margin-top: 8px;
        padding: 6px 12px;
    }

    .sp-ib {
        width: 36px;
        height: 36px;
    }

    .sp-resign {
        padding: 7px 14px;
    }
}

/* ---------- بازی آنلاین: وقت شوت، آنلاین بودن، اتاق انتظار ---------- */
.sp-turnbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255,255,255,.08);
    direction: ltr;
    overflow: hidden;
}

    .sp-turnbar i {
        display: block;
        height: 100%;
        margin: 0 auto;
        background: var(--k);
        box-shadow: 0 0 10px var(--k);
        transition: width 1s linear;
    }

    .sp-turnbar.low i {
        background: #ef476f;
        box-shadow: 0 0 10px #ef476f;
    }

.sp-sec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: rgba(0,0,0,.25);
    font-size: .72rem;
}

.sp-pill.low {
    background: linear-gradient(90deg, #ef476f, #ff8f00);
    animation: sp-blink .8s ease-in-out infinite;
}

@keyframes sp-blink {
    50% {
        opacity: .65;
    }
}

.sp-online {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8a90b0;
    margin-left: 5px;
    vertical-align: middle;
}

    .sp-online.on {
        background: #06d6a0;
        box-shadow: 0 0 8px #06d6a0;
    }

.sp-toast {
    background: linear-gradient(90deg, #ff8f00, #ef476f);
    color: #fff;
}

    .sp-toast .mud-icon-root {
        width: 20px;
        height: 20px;
    }

.sl-lobby {
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: 0 0 22px 22px;
    padding: 22px 20px 26px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(124,192,255,.25), transparent 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 60px, transparent 60px 120px), linear-gradient(180deg, #1b2363, #0d1235);
}

.sl-head {
    margin-bottom: 18px;
}

.sl-league {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .85rem;
    color: #ffd54f;
    background: rgba(255,213,79,.12);
    padding: 4px 14px;
    border-radius: 30px;
}

    .sl-league .mud-icon-root {
        width: 18px;
        height: 18px;
    }

.sl-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 10px 0 8px;
}

.sl-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

    .sl-rules span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: .78rem;
        font-weight: 700;
        padding: 4px 12px;
        border-radius: 30px;
        background: rgba(255,255,255,.1);
    }

        .sl-rules span.gold {
            background: linear-gradient(90deg, #ffd54f, #ff8f00);
            color: #3e2700;
        }

    .sl-rules .mud-icon-root {
        width: 16px;
        height: 16px;
    }

.sl-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
}

.sl-vs {
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(180deg, #ffd54f, #ff8f00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sl-team {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

    .sl-team .sp-av {
        font-size: 28px;
    }

.sl-name {
    font-weight: 900;
    font-size: 1rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 6px;
}

.sl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.sl-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 30px;
    background: rgba(255,255,255,.1);
    color: #c9cdea;
}

    .sl-tag.on {
        color: #fff;
    }

    .sl-tag.ready {
        background: #06d6a0;
        color: #053b2c;
    }

    .sl-tag .mud-icon-root {
        width: 14px;
        height: 14px;
    }

.sl-mini {
    width: 120px;
    margin: 6px 0 0;
}

.sl-form {
    font-size: .72rem;
    color: #c9cdea;
}

.sl-pick {
    max-width: 640px;
    margin: 20px auto 0;
    background: #fff;
    color: #1f2340;
    border-radius: 22px;
    padding: 16px 18px 18px;
}

.sl-pick-title {
    font-weight: 900;
    text-align: right;
    margin: 4px 0 10px;
}

.sl-kits {
    justify-content: center;
    margin-bottom: 14px;
}

.ss-kit.taken {
    opacity: .3;
    cursor: not-allowed;
}

.sl-forms {
    margin-bottom: 16px;
}

.sl-ready {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 900;
    padding: 14px 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd54f, #ff8f00);
    color: #3e2700;
    box-shadow: 0 10px 26px rgba(255,143,0,.45);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: sl-heart 1.4s ease-in-out infinite;
}

    .sl-ready:disabled {
        opacity: .6;
        cursor: wait;
        animation: none;
    }

    .sl-ready .mud-icon-root {
        width: 26px;
        height: 26px;
    }

@keyframes sl-heart {
    50% {
        transform: scale(1.06);
    }
}

.sl-note {
    font-size: .75rem;
    color: #7a7f9a;
    margin-top: 10px;
}

.sl-wait {
    margin-top: 24px;
    font-size: 1.15rem;
    font-weight: 900;
}

@media (max-width: 640px) {
    .sl-lobby {
        padding: 16px 10px 18px;
    }

    .sl-title {
        font-size: 1.25rem;
    }

    .sl-teams {
        gap: 6px;
    }

    .sl-vs {
        font-size: 1.4rem;
    }

    .sl-team {
        padding: 12px 6px;
    }

        .sl-team .sp-av {
            width: 60px !important;
            height: 60px !important;
            font-size: 20px;
        }

    .sl-name {
        font-size: .8rem;
    }

    .sl-mini {
        width: 90px;
    }

    .sl-pick {
        padding: 14px 10px;
    }

    .sl-ready {
        font-size: 1.1rem;
        padding: 12px 32px;
    }
}