        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
        
        #tables{
            text-align: center;
            border: 3px solid #5c86d8;
            border-radius: 15px;
            box-shadow: 3px 3px 15px #929291;
            width: 220px;
            margin: 30px auto;
            padding: 15px;
            background: linear-gradient(145deg, #f0f8ff, #e6f0ff);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }    
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        td{
            border: 1px solid #a8c6ff;
            width: 70px;
            height: 45px;
            padding: 0;
            position: relative;
        }
        
        caption{
            text-align: center;
            margin: 0 0 15px 0;
            color: #2c3e50;
            font-weight: bold;
            border-bottom: 2px solid #5c86d8;
            font-size: 18px;
            padding-bottom: 5px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        }
        
        input{
            width: 100%;
            height: 100%;
            text-align: center;
            border: none;
            background: transparent;
            font-size: 16px;
            font-weight: bold;
            color: #2c3e50;
            outline: none;
            padding: 0;
            margin: 0;
        }
        
        input:focus{
            background-color: rgba(173, 216, 230, 0.3);
        }
        
        td:nth-child(3) {
            border-color: #3498db;
            overflow: hidden;
        }
        
        td:nth-child(1) {
            background: linear-gradient(145deg, #7ae0a2, #5cd88c);
            font-weight: bold;
            color: white;
            text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
            font-size: 16px;
        }
        
        th{
            border-right: 1px solid #a8c6ff;
            border-left: 1px solid #a8c6ff;
            background: linear-gradient(145deg, #5c86d8, #4a6cc3);
            color: white;
            padding: 8px 0;
            text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
        }
        
        .otvet {
            border: 3px solid #3498db;
            border-radius: 8px;
            font-weight: bold;
            height: 40px;
            background-color: #2c3e50;
            color: #2ecc71;
            font-family: 'Orbitron', monospace;
            font-size: 16px;
            overflow: hidden;
        }
        
        .buttons {
            margin-top: 20px;
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }
        
        button {
            padding: 8px 15px;
            border: none;
            border-radius: 8px;
            background: linear-gradient(145deg, #5c86d8, #4a6cc3);
            color: white;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            flex: 1;
            font-size: 14px;
            box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
            text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
        }
        
        button:hover {
            background: linear-gradient(145deg, #4a6cc3, #3a5cb5);
            transform: translateY(-2px);
            box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
        }
        
        button:active {
            transform: translateY(0);
            box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
        }
        
        #clearBtn {
            background: linear-gradient(145deg, #e74c3c, #c0392b);
        }
        
        #clearBtn:hover {
            background: linear-gradient(145deg, #c0392b, #a93226);
        }
        
        /* Анимационные стили для карусели цифр */
        .number-display {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .digit-carousel {
            position: relative;
            height: 45px;
            width: 100%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .digit-list {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .digit {
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: bold;
            color: #2c3e50;
            font-family: 'Orbitron', monospace;
        }
        
        .sum-cell .digit {
            font-family: 'Orbitron', monospace;
            font-weight: bold;
            color: #2c3e50;
        }
        
        .otvet .digit {
            color: #2ecc71;
            font-size: 18px;
            text-shadow: 0 0 5px rgba(46, 204, 113, 0.5);
        }
        
        /* Анимация для появления */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes glow {
            0% { text-shadow: 0 0 5px rgba(46, 204, 113, 0.5); }
            50% { text-shadow: 0 0 15px rgba(46, 204, 113, 0.8); }
            100% { text-shadow: 0 0 5px rgba(46, 204, 113, 0.5); }
        }
        
        .glowing {
            animation: glow 2s infinite;
        }
        
        /* Анимация для изменения суммы */
        @keyframes sumChange {
            0% { background-color: rgba(46, 204, 113, 0.1); }
            50% { background-color: rgba(46, 204, 113, 0.3); }
            100% { background-color: transparent; }
        }
        
        .sum-changing {
            animation: sumChange 0.8s ease;
        }
        
        /* Стили для ячеек суммы */
        .sum-cell {
            position: relative;
            font-weight: bold;
            background-color: #f8f9fa;
        }