    /* Scope everything to a self-contained simulator wrapper */
    .simulator-wrapper {
        position: relative;
        width: 100%;
        height: 75vh; /* Slightly increased height to accommodate the fixed bottom text room */
        background-color: #F2D6B3; 
        overflow: hidden;
        font-family: Arial, sans-serif;
        transition: background-color 0.3s ease;
        border-radius: 8px;
        box-sizing: border-box;
    }

    /* Reset/Override WordPress global theme table behaviors */
    .simulator-wrapper table {
        width: 100% !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    .simulator-wrapper td {
        padding: 6px !important;
        border: none !important;
        vertical-align: top !important;
        background: transparent !important;
    }

    #controls {
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        z-index: 10;
        background-color: rgba(255, 255, 255, 0.85);
        padding: 12px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .controls-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 8px;
    }

    .left-controls {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    /* Specific UI Controls Polish */
    .simulator-wrapper select, 
    .simulator-wrapper input[type="text"], 
    .simulator-wrapper button {
        padding: 6px 10px !important;
        font-size: 14px !important;
        height: auto !important;
        line-height: normal !important;
        display: inline-block !important;
        margin: 0 !important;
    }
    .simulator-wrapper input[type="text"] {
        width: 80px !important;
    }

    .simulator-wrapper button:disabled {
        background-color: grey !important;
        cursor: not-allowed !important;
    }

    .square {
        position: absolute;
    }

    /* Cleaned up CSS to naturally lock the display text to the bottom center */
    #displayValue {
        position: absolute;
        bottom: 15px;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 90px; 
        font-weight: bold;
        z-index: 5;
        pointer-events: none;
        white-space: nowrap;
        line-height: 1;
    }

    .simulator-wrapper .footer-link {
         text-align: center;
         margin-top: 8px;
         font-weight: bold;
         font-size: 0.9rem;
         background: #fff9c4;
         display: inline-block;
         padding: 6px 12px;
         border-radius: 999px;
    }