.fc-shell {
    --fc-cw: 60px;
    --fc-ch: 85px;
    --fc-felt: #17605a;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 0 26px;
    color: var(--cg-ink);
    font-family: Inter, Arial, sans-serif;
}

.fc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.fc-stats {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.fc-stat {
    flex: 0 1 auto;
    min-width: 74px;
    padding: 7px 10px;
    border: 1px solid var(--cg-line);
    border-radius: 8px;
    background: var(--cg-panel);
    box-shadow: 0 8px 18px rgba(33, 43, 40, 0.07);
}

.fc-stat span {
    display: block;
    color: var(--cg-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fc-stat strong {
    display: block;
    margin-top: 2px;
    font-size: 18px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.fc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-btn,
.fc-chip,
.fc-close {
    min-height: 44px;
    border: 1px solid var(--cg-line);
    border-radius: 8px;
    background: var(--cg-panel);
    color: var(--cg-ink);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(33, 43, 40, 0.07);
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.fc-btn {
    padding: 0 14px;
}

.fc-btn:hover,
.fc-chip:hover,
.fc-close:hover {
    transform: translateY(-1px);
    border-color: var(--cg-teal);
}

.fc-btn:focus-visible,
.fc-chip:focus-visible,
.fc-close:focus-visible,
.fc-table:focus-visible {
    outline: 3px solid rgba(18, 122, 137, 0.45);
    outline-offset: 2px;
}

.fc-icon {
    width: 44px;
    min-width: 44px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    font-size: 1.05rem;
}

.fc-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fc-primary {
    border-color: transparent;
    background: var(--cg-green);
    color: #fff;
}

.fc-primary:hover {
    border-color: transparent;
    filter: brightness(1.07);
}

.fc-tablewrap {
    padding: 12px;
    overflow: hidden;
    border: 1px solid #0c3b38;
    border-radius: 14px;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0 3px, rgba(0, 0, 0, 0.02) 3px 6px),
        radial-gradient(130% 100% at 50% -10%, #2a8378 0%, var(--fc-felt) 52%, #103f3c 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), inset 0 0 60px rgba(0, 0, 0, 0.28), var(--cg-shadow);
}

.fc-table {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.67;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.fc-layer {
    position: absolute;
    inset: 0;
}

.fc-slot,
.fc-card,
.fc-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--fc-cw);
    height: var(--fc-ch);
    border-radius: calc(var(--fc-cw) * 0.09);
}

.fc-slot {
    display: grid;
    place-items: center;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.16);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.22);
    cursor: pointer;
}

.fc-slot .fc-mark {
    color: rgba(255, 255, 255, 0.26);
    font-size: calc(var(--fc-cw) * 0.42);
    font-style: normal;
    line-height: 1;
}

.fc-slot-hit {
    border-color: rgba(255, 232, 150, 0.85);
    background: rgba(244, 205, 96, 0.18);
}

.fc-ring {
    z-index: 990;
    border: 3px solid #ffd66b;
    border-radius: calc(var(--fc-cw) * 0.12);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25), 0 0 16px rgba(255, 214, 107, 0.5);
    pointer-events: none;
}

.fc-card {
    cursor: grab;
    transition: transform 0.17s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    -webkit-user-drag: none;
}

.fc-card.fc-drag,
.fc-card.fc-fly {
    transition: none;
    cursor: grabbing;
}

.fc-card.fc-drag {
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4));
}

.fc-face {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    background: linear-gradient(168deg, #ffffff 0%, #fbfaf4 62%, #f1efe4 100%);
    border: 1px solid #c9cdc2;
    box-shadow: 0 2px 5px rgba(6, 26, 19, 0.38);
    color: #23282b;
}

.fc-red .fc-face {
    color: #c0322b;
}

.fc-sel .fc-face {
    box-shadow: 0 0 0 2px #ffd66b, 0 6px 14px rgba(0, 0, 0, 0.35);
}

.fc-ix {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.95;
}

.fc-tl {
    left: 6%;
    top: 3.5%;
}

.fc-br {
    right: 6%;
    bottom: 3.5%;
    transform: rotate(180deg);
}

.fc-ix b {
    font-size: calc(var(--fc-cw) * 0.3);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.fc-ix i {
    margin-top: 1px;
    font-size: calc(var(--fc-cw) * 0.23);
    font-style: normal;
}

.fc-pips {
    position: absolute;
    left: 3%;
    right: 3%;
    top: 8%;
    bottom: 8%;
}

.fc-pip {
    position: absolute;
    font-size: calc(var(--fc-cw) * 0.22);
    font-style: normal;
    line-height: 1;
    transform: translate(-50%, -50%);
}

.fc-pip.fc-flip {
    transform: translate(-50%, -50%) rotate(180deg);
}

.fc-big {
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: calc(var(--fc-cw) * 0.5);
    font-style: normal;
    line-height: 1;
    opacity: 0.92;
    transform: translate(-50%, -50%);
}

.fc-alt {
    display: none;
}

.fc-compact .fc-pips {
    display: none;
}

.fc-compact .fc-alt {
    display: block;
}

.fc-court {
    position: absolute;
    left: 20%;
    right: 20%;
    top: 19%;
    bottom: 19%;
    display: grid;
    place-items: center;
    border-radius: calc(var(--fc-cw) * 0.05);
    overflow: hidden;
}

.fc-court::before,
.fc-court::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.fc-court::before {
    background: currentColor;
    opacity: 0.07;
}

.fc-court::after {
    border: 1px solid currentColor;
    opacity: 0.32;
}

.fc-court b {
    position: relative;
    z-index: 1;
    font-size: calc(var(--fc-cw) * 0.44);
    line-height: 1.05;
}

.fc-court i {
    position: absolute;
    z-index: 1;
    right: 6%;
    bottom: 2%;
    font-size: calc(var(--fc-cw) * 0.19);
    font-style: normal;
}

.fc-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.fc-seg {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(33, 43, 40, 0.07);
}

.fc-seg .fc-chip {
    padding: 0 14px;
    border-radius: 0;
    box-shadow: none;
}

.fc-seg .fc-chip + .fc-chip {
    border-left: 0;
}

.fc-chip[aria-pressed='true'] {
    background: var(--cg-ink);
    border-color: var(--cg-ink);
    color: #fff;
}

.fc-status {
    margin: 10px 2px 0;
    min-height: 20px;
    color: var(--cg-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.fc-result {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #b9d6c9;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef8f3, #ffffff 60%);
    box-shadow: var(--cg-shadow);
    text-align: center;
    animation: fc-rise 0.25s ease;
}

@keyframes fc-rise {
    from { opacity: 0; transform: translateY(8px); }
}

.fc-kicker {
    display: block;
    color: var(--cg-teal);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fc-result strong {
    display: block;
    margin: 4px 0 2px;
    font-size: 1.3rem;
}

.fc-result p {
    margin: 0 0 12px;
    color: var(--cg-muted);
    font-size: 0.9rem;
}

.fc-result-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fc-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(16, 30, 25, 0.55);
}

.fc-modal-card {
    position: relative;
    width: min(100%, 440px);
    padding: 22px;
    border: 1px solid var(--cg-line);
    border-radius: 12px;
    background: var(--cg-panel);
    box-shadow: 0 24px 70px rgba(16, 30, 25, 0.3);
}

.fc-modal-card h2 {
    margin: 0 44px 10px 0;
    font-size: 1.2rem;
}

.fc-modal-card p {
    margin: 0 0 10px;
    color: var(--cg-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.fc-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 640px) {
    .fc-shell {
        padding-bottom: 18px;
    }

    .fc-topbar {
        flex-wrap: nowrap;
    }

    .fc-stat {
        min-width: 52px;
        padding: 6px 6px;
    }

    .fc-btn,
    .fc-chip,
    .fc-close {
        min-height: 40px;
    }

    .fc-icon {
        width: 40px;
        min-width: 40px;
    }

    .fc-stat strong {
        font-size: 15px;
    }

    .fc-stat-wide {
        display: none;
    }

    .fc-topbar {
        gap: 8px;
    }

    .fc-actions {
        gap: 6px;
    }

    .fc-tablewrap {
        padding: 7px;
        border-radius: 10px;
    }

    .fc-btn,
    .fc-chip {
        font-size: 0.82rem;
    }

    .fc-btn {
        padding: 0 11px;
    }

    .fc-seg .fc-chip {
        padding: 0 11px;
    }

    .fc-controls {
        gap: 6px;
    }
}

.fc-mark-cell {
    font-size: calc(var(--fc-cw) * 0.17) !important;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fc-deal {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px 0 10px;
    border: 1px solid var(--cg-line);
    border-radius: 8px;
    background: var(--cg-panel);
    box-shadow: 0 6px 14px rgba(33, 43, 40, 0.07);
}

.fc-deal label {
    color: var(--cg-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fc-num {
    width: 82px;
    height: 34px;
    padding: 0 6px;
    border: 1px solid var(--cg-line);
    border-radius: 6px;
    background: var(--cg-bg);
    color: var(--cg-ink);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.fc-num:focus-visible {
    outline: 3px solid rgba(18, 122, 137, 0.45);
    outline-offset: 1px;
}

.fc-deal .fc-btn {
    min-height: 34px;
    padding: 0 12px;
    box-shadow: none;
}
