/* Cheat Sheet Table — Unity Expression Evaluator */
.uc-cheat {
    margin: 32px 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(13,17,23,0.7);
}

    .uc-cheat table {
        width: 100%;
        border-collapse: collapse;
        min-width: 600px;
        font-size: 0.92rem;
    }

    .uc-cheat thead {
        background: rgba(242,166,35,0.10);
        border-bottom: 1px solid rgba(242,166,35,0.25);
    }

    .uc-cheat th {
        padding: 12px 14px;
        text-align: left;
        font-weight: 700;
        color: var(--accent-light, #ffd7a0);
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .uc-cheat td {
        padding: 11px 14px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: var(--text-secondary, #9aa4b2);
        vertical-align: middle;
    }

    .uc-cheat tbody tr:last-child td {
        border-bottom: none;
    }

    .uc-cheat tbody tr:hover {
        background: rgba(242,166,35,0.04);
    }

.uc-cheat__expr {
    font-family: 'Consolas', ui-monospace, monospace;
    font-size: 0.88rem;
    color: #ffd7a0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 5px;
    padding: 3px 8px;
    display: inline-block;
    word-break: break-all;
    cursor: pointer;
    transition: all 0.15s;
}

    .uc-cheat__expr:hover {
        border-color: var(--accent-dark, #d4922a);
        background: rgba(242,166,35,0.12);
    }

.uc-cheat th:nth-child(1),
.uc-cheat td:nth-child(1) {
    width: 25%;
}

.uc-cheat th:nth-child(2),
.uc-cheat td:nth-child(2) {
    width: 35%;
}

.uc-cheat th:nth-child(3),
.uc-cheat td:nth-child(3) {
    width: 40%;
}

/* code.code-copy — click-to-copy inline code */
code.code-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.15s;
}

    code.code-copy:hover {
        border-color: var(--accent-dark, #d4922a);
        background: rgba(242,166,35,0.12);
    }

    code.code-copy.is-copied {
        border-color: rgba(34,197,94,0.5);
        background: rgba(34,197,94,0.10);
        color: #22c55e;
    }

.code-copy__icon {
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity 0.15s;
}

code.code-copy:hover .code-copy__icon {
    opacity: 1;
}

/* Functions reference table */
.uc-func-table {
    margin: 24px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(13,17,23,0.5);
}

    .uc-func-table table {
        width: 100%;
        border-collapse: collapse;
        min-width: 500px;
        font-size: 0.9rem;
    }

    .uc-func-table thead {
        background: rgba(255,255,255,0.04);
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .uc-func-table th {
        padding: 10px 14px;
        text-align: left;
        font-weight: 700;
        color: var(--text-primary, #e2e8f0);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .uc-func-table td {
        padding: 10px 14px;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        color: var(--text-secondary, #9aa4b2);
        vertical-align: top;
    }

    .uc-func-table tbody tr:last-child td {
        border-bottom: none;
    }

@media (max-width: 640px) {
    .uc-cheat th,
    .uc-cheat td {
        padding: 9px 10px;
        font-size: 0.84rem;
    }

    .uc-cheat__expr {
        font-size: 0.8rem;
    }
}
